This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: IA-64 Patch: Make flag_unwind_tables default ON
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: IA-64 Patch: Make flag_unwind_tables default ON
- From: Andrew Haley <aph at pasanda dot cygnus dot co dot uk>
- Date: 28 Jun 2000 17:37:54 -0000
Apparently the IA-64 ABI requires unwinder information; this patch
changes gcc's default so that it's on. I could have made the change
in OPTIMIZATION_OPTIONS, but this isn't an optimization option.
Andrew.
2000-06-28 Andrew Haley <aph@cygnus.com>
* toplev.c (main): On an IA-64, make flag_unwind_tables defauit
to true.
Index: toplev.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/toplev.c,v
retrieving revision 1.344
diff -u -r1.344 toplev.c
--- toplev.c 2000/05/25 15:21:50 1.344
+++ toplev.c 2000/06/28 17:33:25
@@ -4511,6 +4511,12 @@
target_flags = 0;
set_target_switch ("");
+ /* Unwind tables are always present in an ABI-conformant IA-64
+ object file, so the default should be ON. */
+#ifdef IA64_UNWIND_INFO
+ flag_unwind_tables = IA64_UNWIND_INFO;
+#endif
+
#ifdef OPTIMIZATION_OPTIONS
/* Allow default optimizations to be specified on a per-machine basis. */
OPTIMIZATION_OPTIONS (optimize, optimize_size);