This is the mail archive of the gcc-patches@gcc.gnu.org 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]

RFA: fix gcc.dg/torture/builtin-noret-2.c for sh-elf


Executing on host: /swbuild/nightly/2003-05-20/sh-elf/gcc/xgcc -B/swbuild/nightly/2003-05-20/sh-elf/gcc/ /swbuild/nightly/2003-05-20/srcw/gcc/testsuite/gcc.dg/torture/builtin-noret-2.c   -O0  
-DSTACK_SIZE=16384  -I/swbuild/nightly/2003-05-20/sh-elf/sh-elf//newlib/targ-include -I/swbuild/nightly/2003-05-20/srcw/newlib/libc/include  -L/swbuild/nightly/2003-05-20/sh-elf/ld
-B/swbuild/nightly/2003-05-20/sh-elf/sh-elf//newlib/ -L/swbuild/nightly/2003-05-20/sh-elf/sh-elf//newlib  -lm -Wl,--defsym,_stack=0x7f000  -o builtin-noret-2.exe    (timeout = 300)
/swbuild/nightly/2003-05-20/sh-elf/sh-elf//newlib/libc.a(syscalls.o)(.text+0x150): In function `_exit':^M
../../../../../../srcw/newlib/libc/sys/sh/syscalls.c:103: multiple definition of `__exit'^M
/tmp/cc09GKSC.o(.text+0x90): first defined here^M
/swbuild/nightly/2003-05-20/sh-elf/gcc/collect-ld: Warning: size of symbol `__exit' changed from 20 in /tmp/cc09GKSC.o to 24 in /swbuild/nightly/2003-05-20/sh-elf/sh-elf//newlib/libc.a(syscalls.o)^M
collect2: ld returned 1 exit status^M
compiler exited with status 1

-- 
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658
2003-05-21  J"orn Rennecke <joern.rennecke@superh.com>

	* gcc.dg/torture/builtin-noret-2.c (_exit): Make weak.

Index: gcc.dg/torture/builtin-noret-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/torture/builtin-noret-2.c,v
retrieving revision 1.1
diff -p -r1.1 builtin-noret-2.c
*** gcc.dg/torture/builtin-noret-2.c	11 May 2003 08:20:34 -0000	1.1
--- gcc.dg/torture/builtin-noret-2.c	21 May 2003 18:21:50 -0000
*************** void
*** 45,55 ****
--- 45,61 ----
  t_exit (void)
  {
    extern void _exit (int);
+   /* Some non-Unix libcs have _exit, and won't allow it to be re-defined,
+      so make it weak.  */
+ #pragma weak _exit
    _exit (1);
    link_failure ();
  }
  
  /* Some non-Unix libcs might not have _exit.  */
+ /* Some non-Unix libcs have _exit, and won't allow it to be re-defined,
+    so make it weak.  */
+ #pragma weak _exit
  void
  _exit (int i)
  {

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