Skip to content

Commit

Permalink
Relaxed constraints on gcc+x86/x64 to gcc 4.1.2 (#482)
Browse files Browse the repository at this point in the history
* Relaxed constraints on gcc+x86/x64 to gcc 4.1.2, added ARM and Itanium detection for gcc 4.4
  • Loading branch information
Justin Boswell authored Aug 15, 2019
1 parent 3d73d3e commit fff4d95
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
14 changes: 11 additions & 3 deletions include/aws/common/atomics_gnu_old.inl
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,17 @@
#include <stdlib.h>

#if defined(__GNUC__)
# if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)
/* See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36793 */
# error GCC versions before 4.4.0 are not supported
# if (__GNUC__ < 4)
# error GCC versions before 4.1.2 are not supported
# elif (defined(__arm__) || defined(__ia64__)) && (__GNUC__ == 4 && __GNUC_MINOR__ < 4)
/* See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36793 Itanium codegen */
/* https://bugs.launchpad.net/ubuntu/+source/gcc-4.4/+bug/491872 ARM codegen*/
/* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42263 ARM codegen */
# error GCC versions before 4.4.0 are not supported on ARM or Itanium
# elif (defined(__x86_64__) || defined(__i386__)) && \
(__GNUC__ == 4 && (__GNUC_MINOR__ < 1 || (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ < 2)))
/* 4.1.2 is the first gcc version with 100% working atomic intrinsics on Intel */
# error GCC versions before 4.1.2 are not supported on x86/x64
# endif
#endif

Expand Down
1 change: 1 addition & 0 deletions include/aws/testing/aws_test_harness.h
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ static LONG WINAPI s_test_print_stack_trace(struct _EXCEPTION_POINTERS *exceptio
# include <signal.h>
static void s_print_stack_trace(int sig, siginfo_t *sig_info, void *user_data) {
(void)sig;
(void)sig_info;
(void)user_data;
# if !defined(AWS_HEADER_CHECKER)
aws_backtrace_print(stderr, sig_info);
Expand Down

0 comments on commit fff4d95

Please sign in to comment.