http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #35 from Jakub Jelinek jakub at gcc dot gnu.org 2011-02-03
10:49:09 UTC ---
Author: jakub
Date: Thu Feb 3 10:49:06 2011
New Revision: 169785
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=169785
Log:
PR lto/47274
*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
Jakub Jelinek jakub at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |RESOLVED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #31 from Jakub Jelinek jakub at gcc dot gnu.org 2011-02-02
16:07:14 UTC ---
Created attachment 23217
-- http://gcc.gnu.org/bugzilla/attachment.cgi?id=23217
gcc46-pr47274.patch
I think it is fairly obvious where the bug is (though
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #32 from Andreas Schwab sch...@linux-m68k.org 2011-02-02 16:42:05
UTC ---
Similar (dormant) problem with slot_num.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #33 from Andreas Schwab sch...@linux-m68k.org 2011-02-02 16:47:54
UTC ---
All other calls to lto_output_data_stream use sizeof, so this should probably
do as well.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #34 from Jakub Jelinek jakub at gcc dot gnu.org 2011-02-02
16:57:26 UTC ---
Isn't the format of that section mandated by lto-plugin though?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #29 from Jan Hubicka hubicka at ucw dot cz 2011-02-01 18:17:36
UTC ---
And here are the IR symtabs (I built a cross GCC just far enough to get the
liblto_plugin):
$ ./obj/binutils/.libs/nm-new.exe --plugin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #30 from Dave Korn davek at gcc dot gnu.org 2011-02-01 19:17:04
UTC ---
*** Bug 47287 has been marked as a duplicate of this bug. ***
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
Jan Hubicka hubicka at gcc dot gnu.org changed:
What|Removed |Added
CC||dave.korn.cygwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
Dave Korn davek at gcc dot gnu.org changed:
What|Removed |Added
CC||davek at gcc dot
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #23 from Dave Korn davek at gcc dot gnu.org 2011-01-31 18:53:30
UTC ---
(In reply to comment #21)
The problem is that first one is defined as prevailing_def_ironly while it is
not an definition, just use of the symbol. Correct
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #24 from dave at hiauly1 dot hia.nrc.ca 2011-01-31 19:35:15 UTC ---
What endian-ness are the ppc and hppa targets?
hppa is big. I believe ppc is also big.
Dave
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #25 from Dave Korn davek at gcc dot gnu.org 2011-01-31 19:40:52
UTC ---
(In reply to comment #24)
What endian-ness are the ppc and hppa targets?
hppa is big. I believe ppc is also big.
Dave
Probably the first time this
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #26 from dave at hiauly1 dot hia.nrc.ca 2011-02-01 00:27:21 UTC ---
On Mon, 31 Jan 2011, davek at gcc dot gnu.org wrote:
If one of you could try the whole thing with --save-temps -v -Wl,-v
-Wl,--verbose, and attach the various .o
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #27 from dave at hiauly1 dot hia.nrc.ca 2011-02-01 00:37:22 UTC ---
On Mon, 31 Jan 2011, davek at gcc dot gnu.org wrote:
If one of you could try the whole thing with --save-temps -v -Wl,-v
-Wl,--verbose, and attach the various .o
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #28 from Dave Korn davek at gcc dot gnu.org 2011-02-01 06:59:58
UTC ---
It looks like the problem is much earlier than the linker; it looks like the IR
symtabs in the input object files are being generated incorrectly. Here are
the
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #17 from Jan Hubicka hubicka at gcc dot gnu.org 2011-01-27
15:51:54 UTC ---
You uploaded the cgraph files from local compilation.main_test is not called in
abs-1.c
I need to see the dump from merging, too.
They gets name of one of
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #18 from dave at hiauly1 dot hia.nrc.ca 2011-01-27 17:07:34 UTC ---
On Thu, 27 Jan 2011, hubicka at gcc dot gnu.org wrote:
I need to see the dump from merging, too.
They gets name of one of the .o files when -save-temps is used.
lto1: internal compiler error: in lto_varpool_replace_node, at
lto-symtab.c:305
Merging should happen after unmerged files are dumped. Perhaps they go to some
funny place,
like /tmp?
Honza
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #19 from Jan Hubicka hubicka at ucw dot cz 2011-01-27 17:16:31
UTC ---
lto1: internal compiler error: in lto_varpool_replace_node, at
lto-symtab.c:305
Merging should happen after unmerged files are dumped. Perhaps they go to some
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #20 from dave at hiauly1 dot hia.nrc.ca 2011-01-27 18:06:02 UTC ---
On Thu, 27 Jan 2011, hubicka at ucw dot cz wrote:
Merging should happen after unmerged files are dumped. Perhaps they go to
some
funny place,
like /tmp?
They
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
Jakub Jelinek jakub at gcc dot gnu.org changed:
What|Removed |Added
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #16 from dave at hiauly1 dot hia.nrc.ca 2011-01-20 00:13:36 UTC ---
On Tue, 18 Jan 2011, dave at hiauly1 dot hia.nrc.ca wrote:
Here is abs-1.c.000i.cgraph:
The above call graph indicates main_test is not called. Here is
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #6 from Richard Guenther rguenth at gcc dot gnu.org 2011-01-17
13:49:47 UTC ---
I can't reproduce this with the testcase from comment #3 on x86_64-linux
with either gold or GNU ld from stock binutils 2.21 nor without using
the linker
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #7 from John David Anglin danglin at gcc dot gnu.org 2011-01-17
15:42:26 UTC ---
Resolution file is:
3
abs-1.o 3
70 262910e5 PREEMPTED_IR main_test
84 262910e5 PREEMPTED_IR abs
88 262910e5 PREEMPTED_IR abs_called
abs-1-lib.o 3
70
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #8 from Jan Hubicka hubicka at ucw dot cz 2011-01-17 16:03:37 UTC
---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #7 from John David Anglin danglin at gcc dot gnu.org 2011-01-17
15:42:26 UTC ---
Resolution
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #9 from Jan Hubicka hubicka at ucw dot cz 2011-01-17 16:05:56 UTC
---
Note that the assert probably should do , not ||. Or it doesn't
make sense at all. Asserting that the prevailing_node is analyzed
should be enough.
No, the
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #10 from Richard Guenther rguenth at gcc dot gnu.org 2011-01-17
16:14:21 UTC ---
The GNU linker made
extern int abs_called;
prevailing (it's a common, probably works with -fno-common?) instead of
int abs_called = 0;
thus I think
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #11 from Richard Guenther rguenth at gcc dot gnu.org 2011-01-17
16:15:10 UTC ---
(In reply to comment #10)
The GNU linker made
extern int abs_called;
prevailing (it's a common, probably works with -fno-common?) instead of
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #12 from dave at hiauly1 dot hia.nrc.ca 2011-01-17 18:32:22 UTC ---
On Mon, 17 Jan 2011, hubicka at ucw dot cz wrote:
It seems that we get wrong already when streaming abs-1-lib.o file. Would be
possible to attach cgraph dump from
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #13 from dave at hiauly1 dot hia.nrc.ca 2011-01-17 18:39:14 UTC ---
Last graph.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #14 from dave at hiauly1 dot hia.nrc.ca 2011-01-18 00:10:55 UTC ---
This is it!
Dave
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #15 from dave at hiauly1 dot hia.nrc.ca 2011-01-18 00:21:42 UTC ---
Here is abs-1.c.000i.cgraph:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
Andreas Schwab sch...@linux-m68k.org changed:
What|Removed |Added
CC||hubicka at gcc dot
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #3 from Anton Blanchard anton at samba dot org 2011-01-15
02:04:04 UTC ---
I'm seeing this too:
# cat test1.c
void *ptr;
# cat test2.c
extern void *ptr;
void foo()
{
ptr = 0;
}
# gcc -flto -c test1.c
# gcc -flto -c test2.c
#
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
Jack Howarth howarth at nitro dot med.uc.edu changed:
What|Removed |Added
CC||howarth at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
Richard Guenther rguenth at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
Andreas Schwab sch...@linux-m68k.org changed:
What|Removed |Added
Status|WAITING |NEW
--- Comment #2
38 matches
Mail list logo