public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/41674] New: /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main
@ 2009-10-11 14:36 danglin at gcc dot gnu dot org
2009-10-11 15:32 ` [Bug middle-end/41674] [4.5 Regression] " dave at hiauly1 dot hia dot nrc dot ca
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-10-11 14:36 UTC (permalink / raw)
To: gcc-bugs
Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/
/te
st/gnu/gcc/gcc/gcc/testsuite/gcc.dg/struct/w_prof_global_array.c -O3
-fwhole-
program -combine -fipa-type-escape -fprofile-generate -lm -o
/test/gnu/gcc/ob
jdir/gcc/testsuite/gcc/w_prof_global_array.x01 (timeout = 300)
/usr/ccs/bin/ld: Unsatisfied symbols:
_GLOBAL__I_65535_0_main (first referenced in /var/tmp//ccC7FsIt.o) (code)
collect2: ld returned 1 exit status
compiler exited with status 1
output is:
/usr/ccs/bin/ld: Unsatisfied symbols:
_GLOBAL__I_65535_0_main (first referenced in /var/tmp//ccC7FsIt.o) (code)
collect2: ld returned 1 exit status
FAIL: gcc.dg/struct/w_prof_global_array.c compilation, -O3 -fwhole-program
-com
bine -fipa-type-escape -fprofile-generate
Similar fails:
FAIL: gcc.dg/struct/w_prof_local_array.c compilation, -O3 -fwhole-program
-comb
ine -fipa-type-escape -fprofile-generate
FAIL: gcc.dg/struct/w_prof_local_var.c compilation, -O3 -fwhole-program
-combin
e -fipa-type-escape -fprofile-generate
FAIL: gcc.dg/struct/w_prof_single_str_global.c compilation, -O3
-fwhole-program
-combine -fipa-type-escape -fprofile-generate
FAIL: gcc.dg/struct/w_prof_two_strs.c compilation, -O3 -fwhole-program
-combine
-fipa-type-escape -fprofile-generate
FAIL: gcc.dg/struct/w_ratio_cold_str.c compilation, -O3 -fwhole-program
-combin
e -fipa-type-escape -fprofile-generate
_GLOBAL__I_65535_0_main is not global in the assembler output.
--
Summary: /usr/ccs/bin/ld: Unsatisfied symbols:
_GLOBAL__I_65535_0_main
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: danglin at gcc dot gnu dot org
GCC build triplet: hppa2.0w-hp-hpux11.11
GCC host triplet: hppa2.0w-hp-hpux11.11, hppa64-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11, hppa64-hp-hpux11.11
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41674
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/41674] [4.5 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main
2009-10-11 14:36 [Bug middle-end/41674] New: /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main danglin at gcc dot gnu dot org
@ 2009-10-11 15:32 ` dave at hiauly1 dot hia dot nrc dot ca
2009-10-24 12:04 ` rguenth at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2009-10-11 15:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dave at hiauly1 dot hia dot nrc dot ca 2009-10-11 15:32 -------
Subject: Re: [4.5 Regression] /usr/ccs/bin/ld: Unsatisfied symbols:
_GLOBAL__I_65535_0_main
Introduced between 152432 and 152630.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41674
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/41674] [4.5 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main
2009-10-11 14:36 [Bug middle-end/41674] New: /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main danglin at gcc dot gnu dot org
2009-10-11 15:32 ` [Bug middle-end/41674] [4.5 Regression] " dave at hiauly1 dot hia dot nrc dot ca
@ 2009-10-24 12:04 ` rguenth at gcc dot gnu dot org
2009-10-24 22:50 ` dave at hiauly1 dot hia dot nrc dot ca
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-24 12:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2009-10-24 12:03 -------
Can you attach preprocessed source (or reduce the testcase to not require
headers?)
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41674
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/41674] [4.5 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main
2009-10-11 14:36 [Bug middle-end/41674] New: /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main danglin at gcc dot gnu dot org
2009-10-11 15:32 ` [Bug middle-end/41674] [4.5 Regression] " dave at hiauly1 dot hia dot nrc dot ca
2009-10-24 12:04 ` rguenth at gcc dot gnu dot org
@ 2009-10-24 22:50 ` dave at hiauly1 dot hia dot nrc dot ca
2009-11-09 13:03 ` rguenth at gcc dot gnu dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2009-10-24 22:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from dave at hiauly1 dot hia dot nrc dot ca 2009-10-24 22:49 -------
Subject: Re: [4.5 Regression] /usr/ccs/bin/ld:
Unsatisfied symbols: _GLOBAL__I_65535_0_main
On Sat, 24 Oct 2009, rguenth at gcc dot gnu dot org wrote:
> Can you attach preprocessed source (or reduce the testcase to not require
> headers?)
Attached.
Dave
------- Comment #4 from dave at hiauly1 dot hia dot nrc dot ca 2009-10-24 22:49 -------
Created an attachment (id=18889)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18889&action=view)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41674
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/41674] [4.5 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main
2009-10-11 14:36 [Bug middle-end/41674] New: /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main danglin at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-10-24 22:50 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2009-11-09 13:03 ` rguenth at gcc dot gnu dot org
2009-11-27 11:12 ` rguenth at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-11-09 13:03 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-11-09 13:03:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41674
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/41674] [4.5 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main
2009-10-11 14:36 [Bug middle-end/41674] New: /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main danglin at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-11-09 13:03 ` rguenth at gcc dot gnu dot org
@ 2009-11-27 11:12 ` rguenth at gcc dot gnu dot org
2009-11-27 18:39 ` danglin at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-11-27 11:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2009-11-27 11:12 -------
Does this still happen?
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41674
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/41674] [4.5 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main
2009-10-11 14:36 [Bug middle-end/41674] New: /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main danglin at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-11-27 11:12 ` rguenth at gcc dot gnu dot org
@ 2009-11-27 18:39 ` danglin at gcc dot gnu dot org
2009-12-07 2:55 ` danglin at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-11-27 18:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from danglin at gcc dot gnu dot org 2009-11-27 18:39 -------
Fixed.
--
danglin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41674
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/41674] [4.5 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main
2009-10-11 14:36 [Bug middle-end/41674] New: /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main danglin at gcc dot gnu dot org
` (5 preceding siblings ...)
2009-11-27 18:39 ` danglin at gcc dot gnu dot org
@ 2009-12-07 2:55 ` danglin at gcc dot gnu dot org
2009-12-24 22:13 ` danglin at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-12-07 2:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from danglin at gcc dot gnu dot org 2009-12-07 02:55 -------
The failures still occur on hppa2.0w-hp-hpux11.11.
--
danglin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
GCC host triplet|hppa2.0w-hp-hpux11.11, |hppa2.0w-hp-hpux11.11
|hppa64-hp-hpux11.11 |
GCC target triplet|hppa2.0w-hp-hpux11.11, |hppa2.0w-hp-hpux11.11
|hppa64-hp-hpux11.11 |
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41674
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/41674] [4.5 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main
2009-10-11 14:36 [Bug middle-end/41674] New: /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main danglin at gcc dot gnu dot org
` (6 preceding siblings ...)
2009-12-07 2:55 ` danglin at gcc dot gnu dot org
@ 2009-12-24 22:13 ` danglin at gcc dot gnu dot org
2010-01-11 21:51 ` danglin at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-12-24 22:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from danglin at gcc dot gnu dot org 2009-12-24 22:13 -------
This appears to be a problem with cgraph_externally_visible_p.
function_and_variable_visibility sets the TREE_PUBLIC flag in
decl to zeor when cgraph_externally_visible_p returns false.
--
danglin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41674
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/41674] [4.5 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main
2009-10-11 14:36 [Bug middle-end/41674] New: /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main danglin at gcc dot gnu dot org
` (7 preceding siblings ...)
2009-12-24 22:13 ` danglin at gcc dot gnu dot org
@ 2010-01-11 21:51 ` danglin at gcc dot gnu dot org
2010-02-20 5:42 ` jason at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: danglin at gcc dot gnu dot org @ 2010-01-11 21:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from danglin at gcc dot gnu dot org 2010-01-11 21:51 -------
Patch here:
http://gcc.gnu.org/ml/gcc-patches/2010-01/msg00066.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41674
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/41674] [4.5 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main
2009-10-11 14:36 [Bug middle-end/41674] New: /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main danglin at gcc dot gnu dot org
` (8 preceding siblings ...)
2010-01-11 21:51 ` danglin at gcc dot gnu dot org
@ 2010-02-20 5:42 ` jason at gcc dot gnu dot org
2010-02-20 14:03 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-02-20 5:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jason at gcc dot gnu dot org 2010-02-20 05:42 -------
That patch seems like too big a hammer; it basically undoes the effect of
-fwhole-program. I think we want to limit the change to the functions created
by cgraph_build_static_cdtor.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41674
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/41674] [4.5 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main
2009-10-11 14:36 [Bug middle-end/41674] New: /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main danglin at gcc dot gnu dot org
` (9 preceding siblings ...)
2010-02-20 5:42 ` jason at gcc dot gnu dot org
@ 2010-02-20 14:03 ` rguenth at gcc dot gnu dot org
2010-03-27 15:43 ` danglin at gcc dot gnu dot org
2010-03-27 15:54 ` danglin at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-20 14:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from rguenth at gcc dot gnu dot org 2010-02-20 14:03 -------
Are they marked as DECL_PRESERVED_P? No, they are not.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41674
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/41674] [4.5 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main
2009-10-11 14:36 [Bug middle-end/41674] New: /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main danglin at gcc dot gnu dot org
` (10 preceding siblings ...)
2010-02-20 14:03 ` rguenth at gcc dot gnu dot org
@ 2010-03-27 15:43 ` danglin at gcc dot gnu dot org
2010-03-27 15:54 ` danglin at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: danglin at gcc dot gnu dot org @ 2010-03-27 15:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from danglin at gcc dot gnu dot org 2010-03-27 15:43 -------
Subject: Bug 41674
Author: danglin
Date: Sat Mar 27 15:43:19 2010
New Revision: 157779
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157779
Log:
PR middle-end/41674
* cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
cdtors, set DECL_PRESERVE_P.
* ipa.c (cgraph_externally_visible_p): Return true if declaration
should be preseved.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
trunk/gcc/ipa.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41674
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/41674] [4.5 Regression] /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main
2009-10-11 14:36 [Bug middle-end/41674] New: /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main danglin at gcc dot gnu dot org
` (11 preceding siblings ...)
2010-03-27 15:43 ` danglin at gcc dot gnu dot org
@ 2010-03-27 15:54 ` danglin at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: danglin at gcc dot gnu dot org @ 2010-03-27 15:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from danglin at gcc dot gnu dot org 2010-03-27 15:53 -------
Fixed.
--
danglin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41674
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2010-03-27 15:54 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-11 14:36 [Bug middle-end/41674] New: /usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main danglin at gcc dot gnu dot org
2009-10-11 15:32 ` [Bug middle-end/41674] [4.5 Regression] " dave at hiauly1 dot hia dot nrc dot ca
2009-10-24 12:04 ` rguenth at gcc dot gnu dot org
2009-10-24 22:50 ` dave at hiauly1 dot hia dot nrc dot ca
2009-11-09 13:03 ` rguenth at gcc dot gnu dot org
2009-11-27 11:12 ` rguenth at gcc dot gnu dot org
2009-11-27 18:39 ` danglin at gcc dot gnu dot org
2009-12-07 2:55 ` danglin at gcc dot gnu dot org
2009-12-24 22:13 ` danglin at gcc dot gnu dot org
2010-01-11 21:51 ` danglin at gcc dot gnu dot org
2010-02-20 5:42 ` jason at gcc dot gnu dot org
2010-02-20 14:03 ` rguenth at gcc dot gnu dot org
2010-03-27 15:43 ` danglin at gcc dot gnu dot org
2010-03-27 15:54 ` danglin 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).