public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/43283]  New: ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o
@ 2010-03-07 19:21 danglin at gcc dot gnu dot org
  2010-03-08 10:41 ` [Bug testsuite/43283] " rguenth at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2010-03-07 19:21 UTC (permalink / raw)
  To: gcc-bugs

PASS: gcc.dg/lto/20091027-1 c_lto_20091027-1_0.o-c_lto_20091027-1_1.o link
Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/ 
-O
0 -fwhopr  -c  -o c_lto_20091216-1_0.o
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/lt
o/20091216-1_0.c    (timeout = 300)
PASS: gcc.dg/lto/20091216-1 c_lto_20091216-1_0.o assemble, -O0 -fwhopr
Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/
c_l
to_20091216-1_0.o  -O0 -fwhopr       -o gcc-dg-lto-20091216-1-01    (timeout =
3
00)
ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o
1 errors.
collect2: ld returned 1 exit status
compiler exited with status 1
output is:
ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o
1 errors.
collect2: ld returned 1 exit status

FAIL: gcc.dg/lto/20091216-1 c_lto_20091216-1_0.o-c_lto_20091216-1_0.o link
UNRESOLVED: gcc.dg/lto/20091216-1 c_lto_20091216-1_0.o-c_lto_20091216-1_0.o
exec
ute -O0 -fwhopr

Problem is asm:

asm (".globl start; start: nop");

Semicolon starts a comment.  Labels must start a line on hpux.


-- 
           Summary: ld: Unsatisfied symbol "start" in file c_lto_20091216-
                    1_0.o
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa64-hp-hpux11.11
  GCC host triplet: hppa64-hp-hpux11.11
GCC target triplet: hppa64-hp-hpux11.11


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43283


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug testsuite/43283] ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o
  2010-03-07 19:21 [Bug lto/43283] New: ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o danglin at gcc dot gnu dot org
@ 2010-03-08 10:41 ` rguenth at gcc dot gnu dot org
  2010-03-08 14:00 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-08 10:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2010-03-08 10:40 -------
Patch welcome (either skipping the test or adjusting the asm)


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-03-08 10:40:58
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43283


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug testsuite/43283] ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o
  2010-03-07 19:21 [Bug lto/43283] New: ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o danglin at gcc dot gnu dot org
  2010-03-08 10:41 ` [Bug testsuite/43283] " rguenth at gcc dot gnu dot org
@ 2010-03-08 14:00 ` dave at hiauly1 dot hia dot nrc dot ca
  2010-04-14 17:00 ` sje at cup dot hp dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2010-03-08 14:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dave at hiauly1 dot hia dot nrc dot ca  2010-03-08 14:00 -------
Subject: Re:  ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o

> Patch welcome (either skipping the test or adjusting the asm)

Testing a patch with adjusted asm (uses __hpux).

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43283


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug testsuite/43283] ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o
  2010-03-07 19:21 [Bug lto/43283] New: ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o danglin at gcc dot gnu dot org
  2010-03-08 10:41 ` [Bug testsuite/43283] " rguenth at gcc dot gnu dot org
  2010-03-08 14:00 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2010-04-14 17:00 ` sje at cup dot hp dot com
  2010-04-14 18:54 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: sje at cup dot hp dot com @ 2010-04-14 17:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from sje at cup dot hp dot com  2010-04-14 16:59 -------
Dave, do you have a patch for this?  I see it on ia64 hpux too.


-- 

sje at cup dot hp dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at cup dot hp dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43283


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug testsuite/43283] ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o
  2010-03-07 19:21 [Bug lto/43283] New: ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-04-14 17:00 ` sje at cup dot hp dot com
@ 2010-04-14 18:54 ` dave at hiauly1 dot hia dot nrc dot ca
  2010-04-14 19:34 ` sje at cup dot hp dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2010-04-14 18:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dave at hiauly1 dot hia dot nrc dot ca  2010-04-14 18:53 -------
Subject: Re:  ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o

> Dave, do you have a patch for this?  I see it on ia64 hpux too.

Something like this works for hppa*-&-hpux* using gas:

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

+#ifdef __hpux
+asm (".globl start\nstart: nop");
+#else
 asm (".globl start; start: nop");
+#endif

 int
 main ()

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43283


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug testsuite/43283] ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o
  2010-03-07 19:21 [Bug lto/43283] New: ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-04-14 18:54 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2010-04-14 19:34 ` sje at cup dot hp dot com
  2010-04-14 20:05 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: sje at cup dot hp dot com @ 2010-04-14 19:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from sje at cup dot hp dot com  2010-04-14 19:34 -------
I wonder if using 

asm (".globl start");
asm ("start: nop");

Would work for everyone?  I am going to try that on my nightly HP-UX and Linux
runs.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43283


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug testsuite/43283] ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o
  2010-03-07 19:21 [Bug lto/43283] New: ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o danglin at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-04-14 19:34 ` sje at cup dot hp dot com
@ 2010-04-14 20:05 ` dave at hiauly1 dot hia dot nrc dot ca
  2010-06-24 22:31 ` sje at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2010-04-14 20:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from dave at hiauly1 dot hia dot nrc dot ca  2010-04-14 20:05 -------
Subject: Re:  ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o

> I wonder if using 
> 
> asm (".globl start");
> asm ("start: nop");
> 
> Would work for everyone?  I am going to try that on my nightly HP-UX and Linux
> runs.

No.  The second asm will add a tab before the label `start'.  Both
the HP and GNU PARISC assemblers require labels to start in column one.

Also, `.global' doesn't work with the HP assembler.  It also doesn't
like a colon at the end of labels.

I think the following would work with most versions of gas:
asm (.global start\nstart: nop");

The problem with the original form was the `;'.  It introduces a comment
on PA.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43283


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug testsuite/43283] ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o
  2010-03-07 19:21 [Bug lto/43283] New: ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o danglin at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2010-04-14 20:05 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2010-06-24 22:31 ` sje at gcc dot gnu dot org
  2010-06-25 16:11 ` sje at cup dot hp dot com
  2010-08-04  7:46 ` uros at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: sje at gcc dot gnu dot org @ 2010-06-24 22:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from sje at gcc dot gnu dot org  2010-06-24 22:31 -------
Subject: Bug 43283

Author: sje
Date: Thu Jun 24 22:31:23 2010
New Revision: 161342

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161342
Log:
2010-06-24  Steve Ellcey  <sje@cup.hp.com>

        PR testsuite/43283
        * gcc.dg/lto/20091216-1_0.c: Use newline instead of semicolon
        and add argument to nop for IA64.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/lto/20091216-1_0.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43283


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug testsuite/43283] ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o
  2010-03-07 19:21 [Bug lto/43283] New: ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o danglin at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2010-06-24 22:31 ` sje at gcc dot gnu dot org
@ 2010-06-25 16:11 ` sje at cup dot hp dot com
  2010-08-04  7:46 ` uros at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: sje at cup dot hp dot com @ 2010-06-25 16:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from sje at cup dot hp dot com  2010-06-25 16:10 -------
Resolved with code change to test case.


-- 

sje at cup dot hp dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43283


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug testsuite/43283] ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o
  2010-03-07 19:21 [Bug lto/43283] New: ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o danglin at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2010-06-25 16:11 ` sje at cup dot hp dot com
@ 2010-08-04  7:46 ` uros at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: uros at gcc dot gnu dot org @ 2010-08-04  7:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from uros at gcc dot gnu dot org  2010-08-04 07:46 -------
Subject: Bug 43283

Author: uros
Date: Wed Aug  4 07:46:00 2010
New Revision: 162856

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162856
Log:
        Backport from mainline:
        2010-07-20  Bingfeng Mei  <bmei@broadcom.com>

        * gcc.dg/lto/20090313_0.c: Use dg-require-effective-target
        sync_char_short

        2010-06-24  Steve Ellcey  <sje@cup.hp.com>

        PR testsuite/43283
        * gcc.dg/lto/20091216-1_0.c: Use newline instead of semicolon
        and add argument to nop for IA64.


Modified:
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/lto/20090313_0.c
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/lto/20091216-1_0.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43283


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-08-04  7:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-07 19:21 [Bug lto/43283] New: ld: Unsatisfied symbol "start" in file c_lto_20091216-1_0.o danglin at gcc dot gnu dot org
2010-03-08 10:41 ` [Bug testsuite/43283] " rguenth at gcc dot gnu dot org
2010-03-08 14:00 ` dave at hiauly1 dot hia dot nrc dot ca
2010-04-14 17:00 ` sje at cup dot hp dot com
2010-04-14 18:54 ` dave at hiauly1 dot hia dot nrc dot ca
2010-04-14 19:34 ` sje at cup dot hp dot com
2010-04-14 20:05 ` dave at hiauly1 dot hia dot nrc dot ca
2010-06-24 22:31 ` sje at gcc dot gnu dot org
2010-06-25 16:11 ` sje at cup dot hp dot com
2010-08-04  7:46 ` uros at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).