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]

[PATCH] Modify gcc.dg/lto/20091216-1_0.c


Hi,

This test case gcc.dg/lto/20091216-1_0.c fails on darwin with LTO because:

Executing on host: /Users/stevenb/lto_objdir/gcc/xgcc
-B/Users/stevenb/lto_objdir/gcc/ c_lto_20091216-1_0.o  -O0 -fwhopr
  -o gcc-dg-lto-ld: duplicate symbol start in c_lto_20091216-1_0.o and
/usr/lib/crt1.10.5.o^M
collect2: ld returned 1 exit status^M
compiler exited with status 1

Mind if I rename start to start_ to avoid this issue?

With that, I still have the following FAILs with LTO on Mach-O:

* gcc.dg/lto/20100423-2_1.c failing because _stderr is undefined:
Undefined symbols:^M
  "_stderr", referenced from:
      _read_error in c_lto_20100423-2_0.o
ld: symbol(s) not found^M

* gcc.dg/lto/c_lto_20081201-2 because WHOPR miscompiles this
apparently (there is no output explaining the FAIL)

* gcc.dg/lto/20081222_1.c:14:21: error: only weak aliases are
supported in this configuration

* gcc.dg/lto/20090914-1 because for some reason GCC emits an
unrecognized assembler directive:
/var/tmp//ccVZkECh.s:44:Unknown pseudo-op: .type
/var/tmp//ccVZkECh.s:44:Rest of line ignored. 1st junk character valued 109 (m).
compiler exited with status 1

Not bad for a half-finished patch. IIRC Dave ran into some of the
above FAILs on Cygwin also. How should those test cases be fixed (or
disabled)?

Ciao!
Steven

        * gcc.dg/lto/20091216-1_0.c

Index: gcc.dg/lto/20091216-1_0.c
===================================================================
--- gcc.dg/lto/20091216-1_0.c	(revision 158800)
+++ gcc.dg/lto/20091216-1_0.c	(working copy)
@@ -1,6 +1,6 @@
 /* { dg-lto-do run } */

-asm (".globl start; start: nop");
+asm (".globl start_; start_: nop");

 int
 main ()


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