This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

S/390: Default to -fasynchronous-unwind-tables


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;


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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]