The `optimize' attribute causes GCC to die on internal compiler error when cross-compiling to IA64 with gcc-4.4.5. Drop the attributes, the test still worked in my tests on various architectures with -O0 and -O2.
tests/test-varargs.c: In function 'main': tests/test-varargs.c:81: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions. --- tests/test-varargs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test-varargs.c b/tests/test-varargs.c index bf5cee3..8f8301e 100644 --- a/tests/test-varargs.c +++ b/tests/test-varargs.c @@ -7,10 +7,10 @@ int ok; int verbose; -#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 3) -void a (int, ...) __attribute__((noinline, optimize(0))); -void b (void) __attribute__((noinline, optimize(0))); -void c (void) __attribute__((noinline, optimize(0))); +#ifdef __GNUC__ +void a (int, ...) __attribute__((noinline)); +void b (void) __attribute__((noinline)); +void c (void) __attribute__((noinline)); #endif void -- 1.7.9.5 _______________________________________________ Libunwind-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/libunwind-devel
