[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 21/35] Drop `optimize' attribute in tests/test-
From: |
Tommi Rantala |
Subject: |
[Libunwind-devel] [PATCH 21/35] Drop `optimize' attribute in tests/test-varargs.c |
Date: |
Tue, 18 Sep 2012 16:31:30 +0300 |
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] [PATCH 13/35] HPPA: kludge out unused variable in unw_get_save_loc() stub, (continued)
- [Libunwind-devel] [PATCH 13/35] HPPA: kludge out unused variable in unw_get_save_loc() stub, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 08/35] Apply UNW_ALIGN more in src/mi/mempool.c, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 12/35] HPPA: properly check dwarf_get() return value in unw_step(), Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 17/35] Workaround volatileness warning in tests/ia64-test-setjmp.c, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 14/35] Default to non-verbose mode in Ltest-cxx-exceptions, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 16/35] Avoid -Wunused-value warning in tests/Gia64-test-stack.c, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 20/35] Annotate potentially unused variable in tests/test-coredump-unwind.c, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 21/35] Drop `optimize' attribute in tests/test-varargs.c,
Tommi Rantala <=
[Libunwind-devel] [PATCH 23/35] Remove unneeded `config.h' inclusion in Gtest-nomalloc, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 24/35] Cleanup dynamically allocated memory before exit in tests, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 19/35] Annotate potentially unused variable in tests/Gtest-trace.c, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 18/35] Annotate potentially unused variable in tests/Gtest-bt.c, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 29/35] Nuke HAVE_BACKTRACE, Tommi Rantala, 2012/09/18