This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
S/390: Fix .eh_frame bug due to -fasyncronous-unwind-tables
- From: "Ulrich Weigand" <Ulrich dot Weigand at de dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 29 Nov 2002 21:02:46 +0100
- Subject: S/390: Fix .eh_frame bug due to -fasyncronous-unwind-tables
- Sensitivity:
Hello,
this fixes the same problem Jakub Jelinek described for x86_64 in
http://gcc.gnu.org/ml/gcc-patches/2002-11/msg01671.html
on s390 and s390x.
Bootstrapped/regtested on s390-ibm-linux and s390x-ibm-linux.
ChangeLog:
* config/s390/t-crtstuff: New target makefile fragment.
* config.gcc [s390-*-linux, s390x-*-linux]: Use it.
Index: gcc/config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.264
diff -c -p -r1.264 config.gcc
*** gcc/config.gcc 28 Nov 2002 14:46:59 -0000 1.264
--- gcc/config.gcc 29 Nov 2002 16:46:55 -0000
*************** rs6000-*-lynxos*)
*** 2194,2200 ****
;;
s390-*-linux*)
tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
! tmake_file="t-slibgcc-elf-ver t-linux"
;;
s390x-*-linux*)
tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
--- 2194,2200 ----
;;
s390-*-linux*)
tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
! tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff"
;;
s390x-*-linux*)
tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
*************** s390x-*-linux*)
*** 2202,2208 ****
md_file=s390/s390.md
extra_modes=s390/s390-modes.def
out_file=s390/s390.c
! tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux64"
;;
sh-*-elf* | sh[2346l]*-*-elf*)
tmake_file="sh/t-sh sh/t-elf"
--- 2202,2208 ----
md_file=s390/s390.md
extra_modes=s390/s390-modes.def
out_file=s390/s390.c
! tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff s390/t-linux64"
;;
sh-*-elf* | sh[2346l]*-*-elf*)
tmake_file="sh/t-sh sh/t-elf"
*** /dev/null Thu Sep 19 11:33:10 2002
--- gcc/config/s390/t-crtstuff Fri Nov 29 17:45:18 2002
***************
*** 0 ****
--- 1,4 ----
+ # crtend*.o cannot be compiled without -fno-asynchronous-unwind-tables,
+ # because then __FRAME_END__ might not be the last thing in .eh_frame
+ # section.
+ CRTSTUFF_T_CFLAGS = -fno-asynchronous-unwind-tables
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