public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/41228]  New: [4.5 regression] Solaris 10/x86 comparison failure after VTA merge
@ 2009-09-02 14:42 ro at gcc dot gnu dot org
  2009-09-02 14:44 ` [Bug bootstrap/41228] " ro at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: ro at gcc dot gnu dot org @ 2009-09-02 14:42 UTC (permalink / raw)
  To: gcc-bugs

After the VTA merge (i.e. as of rev. 151322, bootstrap on i386-pc-solaris2.10
fails since all? object files miscompare between stages 2 and 3.  To
investigate
this, I've rebuild stage2 and stage3 plugin.o with -save-temps. The two .s
files
differ by additional .debug_* sections in stage3, together with many labels
(which shouldn't affect the object files), .loc statements.  This accounts for
a significant size difference between the .o files:

-rw-r--r-- 1 ro gcc 32480 Sep  2 15:18 stage1-gcc/plugin.o
-rw-r--r-- 1 ro gcc  9936 Sep  2 16:29 stage2-gcc/plugin.o
-rw-r--r-- 1 ro gcc 35852 Sep  2 16:29 stage3-gcc/plugin.o

The stage2 plugin.o was built with

/vol/gcc/obj/gcc-4.5.0-20090902/10-gcc/./prev-gcc/xgcc
-B/vol/gcc/obj/gcc-4.5.0-20090902/10-gcc/./prev-gcc/
-B/vol/gcc/i386-pc-solaris2.10/bin/ -B/vol/gcc/i386-pc-solaris2.10/bin/
-B/vol/gcc/i386-pc-solaris2.10/lib/ -isystem
/vol/gcc/i386-pc-solaris2.10/include -isystem
/vol/gcc/i386-pc-solaris2.10/sys-include    -c  -g -O2 -gtoggle -DIN_GCC   -W
-Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat -fno-common
 -DHAVE_CONFIG_H -I. -I. -I/vol/gcc/src/gcc-dist/gcc
-I/vol/gcc/src/gcc-dist/gcc/. -I/vol/gcc/src/gcc-dist/gcc/../include
-I/vol/gcc/src/gcc-dist/gcc/../libcpp/include -I/vol/gcc/include
-I/vol/gcc/include -I/vol/gcc/src/gcc-dist/gcc/../libdecnumber
-I/vol/gcc/src/gcc-dist/gcc/../libdecnumber/dpd -I../libdecnumber   
/vol/gcc/src/gcc-dist/gcc/plugin.c -o plugin.o

the stage3 plugin.o with
/vol/gcc/obj/gcc-4.5.0-20090902/10-gcc/./prev-gcc/xgcc
-B/vol/gcc/obj/gcc-4.5.0-20090902/10-gcc/./prev-gcc/
-B/vol/gcc/i386-pc-solaris2.10/bin/ -B/vol/gcc/i386-pc-solaris2.10/bin/
-B/vol/gcc/i386-pc-solaris2.10/lib/ -isystem
/vol/gcc/i386-pc-solaris2.10/include -isystem
/vol/gcc/i386-pc-solaris2.10/sys-include    -c  -g -O2 -DIN_GCC   -W -Wall
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat -fno-common
 -DHAVE_CONFIG_H -I. -I. -I/vol/gcc/src/gcc-dist/gcc
-I/vol/gcc/src/gcc-dist/gcc/. -I/vol/gcc/src/gcc-dist/gcc/../include
-I/vol/gcc/src/gcc-dist/gcc/../libcpp/include -I/vol/gcc/include
-I/vol/gcc/include -I/vol/gcc/src/gcc-dist/gcc/../libdecnumber
-I/vol/gcc/src/gcc-dist/gcc/../libdecnumber/dpd -I../libdecnumber   
/vol/gcc/src/gcc-dist/gcc/plugin.c -o plugin.o

I'm attaching the .i and both .s files for further investigation.

sparc-sun-solaris2.11 bootstrap just broke in the same way.


-- 
           Summary: [4.5 regression] Solaris 10/x86 comparison failure after
                    VTA merge
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: aoliva at gcc dot gnu dot org
        ReportedBy: ro at gcc dot gnu dot org
 GCC build triplet: i386-pc-solaris2.10
  GCC host triplet: i386-pc-solaris2.10
GCC target triplet: i386-pc-solaris2.10


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


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

* [Bug bootstrap/41228] [4.5 regression] Solaris 10/x86 comparison failure after VTA merge
  2009-09-02 14:42 [Bug bootstrap/41228] New: [4.5 regression] Solaris 10/x86 comparison failure after VTA merge ro at gcc dot gnu dot org
@ 2009-09-02 14:44 ` ro at gcc dot gnu dot org
  2009-09-02 14:45 ` ro at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ro at gcc dot gnu dot org @ 2009-09-02 14:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ro at gcc dot gnu dot org  2009-09-02 14:44 -------
Created an attachment (id=18466)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18466&action=view)
preprocessed plugin.c


-- 


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


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

* [Bug bootstrap/41228] [4.5 regression] Solaris 10/x86 comparison failure after VTA merge
  2009-09-02 14:42 [Bug bootstrap/41228] New: [4.5 regression] Solaris 10/x86 comparison failure after VTA merge ro at gcc dot gnu dot org
  2009-09-02 14:44 ` [Bug bootstrap/41228] " ro at gcc dot gnu dot org
@ 2009-09-02 14:45 ` ro at gcc dot gnu dot org
  2009-09-02 14:45 ` ro at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ro at gcc dot gnu dot org @ 2009-09-02 14:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ro at gcc dot gnu dot org  2009-09-02 14:45 -------
Created an attachment (id=18468)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18468&action=view)
stage3 plugin.s


-- 


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


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

* [Bug bootstrap/41228] [4.5 regression] Solaris 10/x86 comparison failure after VTA merge
  2009-09-02 14:42 [Bug bootstrap/41228] New: [4.5 regression] Solaris 10/x86 comparison failure after VTA merge ro at gcc dot gnu dot org
  2009-09-02 14:44 ` [Bug bootstrap/41228] " ro at gcc dot gnu dot org
  2009-09-02 14:45 ` ro at gcc dot gnu dot org
@ 2009-09-02 14:45 ` ro at gcc dot gnu dot org
  2009-09-02 15:14 ` jakub at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ro at gcc dot gnu dot org @ 2009-09-02 14:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ro at gcc dot gnu dot org  2009-09-02 14:44 -------
Created an attachment (id=18467)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18467&action=view)
stage2 plugin.s


-- 


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


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

* [Bug bootstrap/41228] [4.5 regression] Solaris 10/x86 comparison failure after VTA merge
  2009-09-02 14:42 [Bug bootstrap/41228] New: [4.5 regression] Solaris 10/x86 comparison failure after VTA merge ro at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-09-02 14:45 ` ro at gcc dot gnu dot org
@ 2009-09-02 15:14 ` jakub at gcc dot gnu dot org
  2009-09-02 15:25 ` ro at techfak dot uni-bielefeld dot de
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-09-02 15:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2009-09-02 15:14 -------
bootstrap-debug intentionally compares (stripped) -g compiled objects with
(stripped) -g0 compiled objects.
Please provide info requested in:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41224#c4


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aoliva at gcc dot gnu dot
                   |                            |org


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


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

* [Bug bootstrap/41228] [4.5 regression] Solaris 10/x86 comparison failure after VTA merge
  2009-09-02 14:42 [Bug bootstrap/41228] New: [4.5 regression] Solaris 10/x86 comparison failure after VTA merge ro at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-09-02 15:14 ` jakub at gcc dot gnu dot org
@ 2009-09-02 15:25 ` ro at techfak dot uni-bielefeld dot de
  2009-09-02 16:19 ` aoliva at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2009-09-02 15:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ro at techfak dot uni-bielefeld dot de  2009-09-02 15:25 -------
Subject: Re:  [4.5 regression] Solaris 10/x86 comparison failure after VTA
merge

jakub at gcc dot gnu dot org writes:

> bootstrap-debug intentionally compares (stripped) -g compiled objects with
> (stripped) -g0 compiled objects.
> Please provide info requested in:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41224#c4

ro@zingana 192 > /vol/gcc/src/gcc-dist/contrib/compare-debug --preserve
stage[23]-gcc/plugin.o
stage2-gcc/plugin.o.stripped. stage3-gcc/plugin.o.stripped. differ: char 33,
line 1
preserving stage2-gcc/plugin.o.stripped. stage3-gcc/plugin.o.stripped.

objdump -s output is identical, but e.g. objdump -h output differs
considerably, though only in file offsets:

--- stage2-gcc/plugin.o.stripped.objdump        2009-09-02 17:23:20.999895800
+0200
+++ stage3-gcc/plugin.o.stripped.objdump        2009-09-02 17:23:23.631184000
+0200
@@ -1,19 +1,19 @@

-stage2-gcc/plugin.o.stripped:     file format elf32-i386
+stage3-gcc/plugin.o.stripped:     file format elf32-i386

 Sections:
 Idx Name          Size      VMA       LMA       File off  Algn
   0 .text         00000ce9  00000000  00000000  00000034  2**2
                   CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
-  1 .data         00000078  00000000  00000000  00000d20  2**5
+  1 .data         00000078  00000000  00000000  000012a0  2**5
                   CONTENTS, ALLOC, LOAD, RELOC, DATA
-  2 .bss          0000003c  00000000  00000000  00000da0  2**5
+  2 .bss          0000003c  00000000  00000000  000013a0  2**5
                   ALLOC
-  3 .rodata.str1.1 0000019e  00000000  00000000  00000da0  2**0
+  3 .rodata.str1.1 0000019e  00000000  00000000  000013a0  2**0
                   CONTENTS, ALLOC, LOAD, READONLY, DATA
-  4 .rodata.str1.4 00000338  00000000  00000000  00000f40  2**2
+  4 .rodata.str1.4 00000338  00000000  00000000  00001540  2**2
                   CONTENTS, ALLOC, LOAD, READONLY, DATA
-  5 .rodata       000001b3  00000000  00000000  00001280  2**5
+  5 .rodata       000001b3  00000000  00000000  00001880  2**5
                   CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA
-  6 .comment      00000042  00000000  00000000  00001433  2**0
+  6 .comment      00000042  00000000  00000000  00001b04  2**0
                   CONTENTS, READONLY

Let me know what else you need from objdump.

        Rainer


-- 


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


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

* [Bug bootstrap/41228] [4.5 regression] Solaris 10/x86 comparison failure after VTA merge
  2009-09-02 14:42 [Bug bootstrap/41228] New: [4.5 regression] Solaris 10/x86 comparison failure after VTA merge ro at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-09-02 15:25 ` ro at techfak dot uni-bielefeld dot de
@ 2009-09-02 16:19 ` aoliva at gcc dot gnu dot org
  2009-09-02 16:30 ` ro at techfak dot uni-bielefeld dot de
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2009-09-02 16:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from aoliva at gcc dot gnu dot org  2009-09-02 16:18 -------
Thanks, Rainer.  Could I ask for your help in coming up with a minimal testcase
that, compiled with both -g and -g0, fails the contrib/compare-debug test?  I
see no other alternative than to test whether something like that stands a
chance of working before setting out to build stage2 with -gtoggle.  Thanks in
advance,


-- 

aoliva at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-09-02 16:18:54
               date|                            |


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


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

* [Bug bootstrap/41228] [4.5 regression] Solaris 10/x86 comparison failure after VTA merge
  2009-09-02 14:42 [Bug bootstrap/41228] New: [4.5 regression] Solaris 10/x86 comparison failure after VTA merge ro at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-09-02 16:19 ` aoliva at gcc dot gnu dot org
@ 2009-09-02 16:30 ` ro at techfak dot uni-bielefeld dot de
  2009-09-02 17:22 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2009-09-02 16:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from ro at techfak dot uni-bielefeld dot de  2009-09-02 16:30 -------
Subject: Re:  [4.5 regression] Solaris 10/x86 comparison failure after VTA
merge

aoliva at gcc dot gnu dot org writes:

> Thanks, Rainer.  Could I ask for your help in coming up with a minimal testcase
> that, compiled with both -g and -g0, fails the contrib/compare-debug test?  I
> see no other alternative than to test whether something like that stands a
> chance of working before setting out to build stage2 with -gtoggle.  Thanks in
> advance,

Sure: I obviously care about Solaris (and IRIX and Tru64 UNIX :-), and even
a minimal hello.c fails the test:

ro@zingana 218 > cat hello.c
int
main (void)
{
  return 0;
}
ro@zingana 219 > ./xgcc -B./ -g0 -c hello.c -o hello-g0.o
ro@zingana 220 > ./xgcc -B./ -g -c hello.c -o hello-g.o
ro@zingana 221 > /vol/gcc/src/gcc-dist/contrib/compare-debug --preserve
hello-g0.o hello-g.o
hello-g0.o.stripped. hello-g.o.stripped. differ: char 33, line 1
preserving hello-g0.o.stripped. hello-g.o.stripped.
ro@zingana 222 > ls -l hello*.o*
-rw-r--r-- 1 ro gcc 1964 Sep  2 18:23 hello-g.o
-rw-r--r-- 1 ro gcc  884 Sep  2 18:21 hello-g.o.stripped
-rw-r--r-- 1 ro gcc  884 Sep  2 18:23 hello-g.o.stripped.
-rw-r--r-- 1 ro gcc  630 Sep  2 18:23 hello-g0.o
-rw-r--r-- 1 ro gcc  630 Sep  2 18:21 hello-g0.o.stripped
-rw-r--r-- 1 ro gcc  630 Sep  2 18:23 hello-g0.o.stripped.

        Rainer


-- 


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


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

* [Bug bootstrap/41228] [4.5 regression] Solaris 10/x86 comparison failure after VTA merge
  2009-09-02 14:42 [Bug bootstrap/41228] New: [4.5 regression] Solaris 10/x86 comparison failure after VTA merge ro at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-09-02 16:30 ` ro at techfak dot uni-bielefeld dot de
@ 2009-09-02 17:22 ` jakub at gcc dot gnu dot org
  2009-09-02 19:55 ` howarth at nitro dot med dot uc dot edu
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-09-02 17:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jakub at gcc dot gnu dot org  2009-09-02 17:21 -------
If Solaris strip reorders the sections, I'm afraid either we have to compare
one section by one, or somehow force them to be reordered in the same order, or
give up on bootstrap-debug on Solaris when not using GNU ld/strip.


-- 


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


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

* [Bug bootstrap/41228] [4.5 regression] Solaris 10/x86 comparison failure after VTA merge
  2009-09-02 14:42 [Bug bootstrap/41228] New: [4.5 regression] Solaris 10/x86 comparison failure after VTA merge ro at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-09-02 17:22 ` jakub at gcc dot gnu dot org
@ 2009-09-02 19:55 ` howarth at nitro dot med dot uc dot edu
  2009-09-02 20:27 ` dominiq at lps dot ens dot fr
  2009-09-04 19:08 ` aoliva at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2009-09-02 19:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from howarth at nitro dot med dot uc dot edu  2009-09-02 19:54 -------
(In reply to comment #8)
> If Solaris strip reorders the sections, I'm afraid either we have to compare
> one section by one, or somehow force them to be reordered in the same order, or
> give up on bootstrap-debug on Solaris when not using GNU ld/strip.
> 

I wonder if this could be the same reason that the comparison of stage2 and
stage3
fails on powerpc-apple-darwin9 (PR41224)?


-- 


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


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

* [Bug bootstrap/41228] [4.5 regression] Solaris 10/x86 comparison failure after VTA merge
  2009-09-02 14:42 [Bug bootstrap/41228] New: [4.5 regression] Solaris 10/x86 comparison failure after VTA merge ro at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2009-09-02 19:55 ` howarth at nitro dot med dot uc dot edu
@ 2009-09-02 20:27 ` dominiq at lps dot ens dot fr
  2009-09-04 19:08 ` aoliva at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-09-02 20:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from dominiq at lps dot ens dot fr  2009-09-02 20:27 -------
> I wonder if this could be the same reason that the comparison of stage2 
> and stage3 fails on powerpc-apple-darwin9 (PR41224)?

I don't think so, strip (if it does anything) is leaving DWARF stuff in the *.o
files.


-- 


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


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

* [Bug bootstrap/41228] [4.5 regression] Solaris 10/x86 comparison failure after VTA merge
  2009-09-02 14:42 [Bug bootstrap/41228] New: [4.5 regression] Solaris 10/x86 comparison failure after VTA merge ro at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2009-09-02 20:27 ` dominiq at lps dot ens dot fr
@ 2009-09-04 19:08 ` aoliva at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2009-09-04 19:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from aoliva at gcc dot gnu dot org  2009-09-04 19:08 -------
Fixed in revision 151367.


-- 

aoliva at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2009-09-04 19:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-02 14:42 [Bug bootstrap/41228] New: [4.5 regression] Solaris 10/x86 comparison failure after VTA merge ro at gcc dot gnu dot org
2009-09-02 14:44 ` [Bug bootstrap/41228] " ro at gcc dot gnu dot org
2009-09-02 14:45 ` ro at gcc dot gnu dot org
2009-09-02 14:45 ` ro at gcc dot gnu dot org
2009-09-02 15:14 ` jakub at gcc dot gnu dot org
2009-09-02 15:25 ` ro at techfak dot uni-bielefeld dot de
2009-09-02 16:19 ` aoliva at gcc dot gnu dot org
2009-09-02 16:30 ` ro at techfak dot uni-bielefeld dot de
2009-09-02 17:22 ` jakub at gcc dot gnu dot org
2009-09-02 19:55 ` howarth at nitro dot med dot uc dot edu
2009-09-02 20:27 ` dominiq at lps dot ens dot fr
2009-09-04 19:08 ` aoliva 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).