This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
S/390: Default to -fasynchronous-unwind-tables
- From: "Ulrich Weigand" <Ulrich dot Weigand at de dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: "Gerhard Tonn" <TON at de dot ibm dot com>
- Date: Fri, 15 Nov 2002 18:05:35 +0100
- Subject: S/390: Default to -fasynchronous-unwind-tables
- Sensitivity:
Hello,
this switches on the DWARF-2 unwind data for all functions by default.
Thanks to Jan Hubicka for pointing out the correct way to do so.
Bootstrapped/regtested on s390-ibm-linux and s390x-ibm-linux.
(Note: a not-yet-published patch to gdb is necessary to actually exploit
the DWARF-2 data for backtraces on s390.)
* config/s390/s390.c (optimization_options): Set
flag_asynchronous_unwind_tables to 1 by default.
Index: gcc/config/s390/s390.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/s390/s390.c,v
retrieving revision 1.67
diff -c -p -r1.67 s390.c
*** gcc/config/s390/s390.c 4 Nov 2002 19:04:46 -0000 1.67
--- gcc/config/s390/s390.c 15 Nov 2002 14:17:28 -0000
*************** optimization_options (level, size)
*** 816,821 ****
--- 816,825 ----
{
/* ??? There are apparently still problems with -fcaller-saves. */
flag_caller_saves = 0;
+
+ /* By default, always emit DWARF-2 unwind info. This allows debugging
+ without maintaining a stack frame back-chain. */
+ flag_asynchronous_unwind_tables = 1;
}
void
Mit freundlichen Gruessen / Best Regards
Ulrich Weigand
--
Dr. Ulrich Weigand
Linux for S/390 Design & Development
IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen
Phone: +49-7031/16-3727 --- Email: Ulrich.Weigand@de.ibm.com