public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/40338]  New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects
@ 2009-06-04 15:05 sje at cup dot hp dot com
  2009-06-04 15:52 ` [Bug bootstrap/40338] " sje at cup dot hp dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: sje at cup dot hp dot com @ 2009-06-04 15:05 UTC (permalink / raw)
  To: gcc-bugs

Starting with r148080 we compare libgcc objects in addition to gcc objects
during bootstrap.  The 32 bit PA bootstrap build is failing because the libgcc
objects are different.  It looks like it is the debug section that has
differences but I haven't got any further then that in my analysis.


-- 
           Summary: bootstrap comparision fails on 32 bit PA when comparing
                    libgcc objects
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sje at cup dot hp dot com
  GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11


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


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

* [Bug bootstrap/40338] bootstrap comparision fails on 32 bit PA when comparing libgcc objects
  2009-06-04 15:05 [Bug bootstrap/40338] New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects sje at cup dot hp dot com
@ 2009-06-04 15:52 ` sje at cup dot hp dot com
  2009-06-04 16:18 ` dje at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sje at cup dot hp dot com @ 2009-06-04 15:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from sje at cup dot hp dot com  2009-06-04 15:52 -------
Compiling the following program with -O2 -fPIC -g -fexceptions will reproduce
the problem.  I get a global variable created with a different name using
gcc/cc1 and prev-gcc/cc1.

void splat (void) { return; }
static void (*bar) (void) = *splat;
void foo (void) { bar (); }


-- 


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


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

* [Bug bootstrap/40338] bootstrap comparision fails on 32 bit PA when comparing libgcc objects
  2009-06-04 15:05 [Bug bootstrap/40338] New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects sje at cup dot hp dot com
  2009-06-04 15:52 ` [Bug bootstrap/40338] " sje at cup dot hp dot com
@ 2009-06-04 16:18 ` dje at gcc dot gnu dot org
  2009-06-04 16:30 ` [Bug bootstrap/40338] [4.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dje at gcc dot gnu dot org @ 2009-06-04 16:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dje at gcc dot gnu dot org  2009-06-04 16:18 -------
AIX started miscomparing in libgcc as well.


-- 

dje at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Priority|P3                          |P1
   Last reconfirmed|0000-00-00 00:00:00         |2009-06-04 16:18:21
               date|                            |


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


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

* [Bug bootstrap/40338] [4.5 Regression] bootstrap comparision fails on 32 bit PA when comparing libgcc objects
  2009-06-04 15:05 [Bug bootstrap/40338] New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects sje at cup dot hp dot com
  2009-06-04 15:52 ` [Bug bootstrap/40338] " sje at cup dot hp dot com
  2009-06-04 16:18 ` dje at gcc dot gnu dot org
@ 2009-06-04 16:30 ` pinskia at gcc dot gnu dot org
  2009-06-04 16:42 ` sje at cup dot hp dot com
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-06-04 16:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2009-06-04 16:30 -------
http://gcc.gnu.org/ml/gcc-patches/2005-05/msg01800.html

Reading that makes me understand why libgcc was not being checked before.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|bootstrap comparision fails |[4.5 Regression] bootstrap
                   |on 32 bit PA when comparing |comparision fails on 32 bit
                   |libgcc objects              |PA when comparing libgcc
                   |                            |objects
   Target Milestone|---                         |4.5.0


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


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

* [Bug bootstrap/40338] [4.5 Regression] bootstrap comparision fails on 32 bit PA when comparing libgcc objects
  2009-06-04 15:05 [Bug bootstrap/40338] New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects sje at cup dot hp dot com
                   ` (2 preceding siblings ...)
  2009-06-04 16:30 ` [Bug bootstrap/40338] [4.5 Regression] " pinskia at gcc dot gnu dot org
@ 2009-06-04 16:42 ` sje at cup dot hp dot com
  2009-06-04 17:11 ` dje at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sje at cup dot hp dot com @ 2009-06-04 16:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from sje at cup dot hp dot com  2009-06-04 16:42 -------
I am not sure I understand the what the pointer in comment #3 has to do with
this failure.  I think the issue is get_file_function_name in tree.c.  If
first_global_object_name is false and targetm.have_ctors_dtors is false then
we run into code that has the comment:

     /* Otherwise, the name must be unique across the entire link.
         We don't have anything that we know to be unique to this translation
         unit, so use what we do have and throw in some randomness.  */

I think this is what we are running into.


-- 


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


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

* [Bug bootstrap/40338] [4.5 Regression] bootstrap comparision fails on 32 bit PA when comparing libgcc objects
  2009-06-04 15:05 [Bug bootstrap/40338] New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects sje at cup dot hp dot com
                   ` (3 preceding siblings ...)
  2009-06-04 16:42 ` sje at cup dot hp dot com
@ 2009-06-04 17:11 ` dje at gcc dot gnu dot org
  2009-06-04 17:17 ` dje at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dje at gcc dot gnu dot org @ 2009-06-04 17:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dje at gcc dot gnu dot org  2009-06-04 17:11 -------
Jakub mentioned that Alexandre patch added comparison of libgcc, which may not
have been compared before.  But I successfully bootstrapped with Alexandre's
patch the previous day.


-- 


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


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

* [Bug bootstrap/40338] [4.5 Regression] bootstrap comparision fails on 32 bit PA when comparing libgcc objects
  2009-06-04 15:05 [Bug bootstrap/40338] New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects sje at cup dot hp dot com
                   ` (4 preceding siblings ...)
  2009-06-04 17:11 ` dje at gcc dot gnu dot org
@ 2009-06-04 17:17 ` dje at gcc dot gnu dot org
  2009-06-04 19:25 ` dje at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dje at gcc dot gnu dot org @ 2009-06-04 17:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from dje at gcc dot gnu dot org  2009-06-04 17:17 -------
Alexandre committed the change in revision 148080 and I successfully
bootstrapped AIX yesterday with revision 148105.


-- 


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


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

* [Bug bootstrap/40338] [4.5 Regression] bootstrap comparision fails on 32 bit PA when comparing libgcc objects
  2009-06-04 15:05 [Bug bootstrap/40338] New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects sje at cup dot hp dot com
                   ` (5 preceding siblings ...)
  2009-06-04 17:17 ` dje at gcc dot gnu dot org
@ 2009-06-04 19:25 ` dje at gcc dot gnu dot org
  2009-06-04 20:32 ` laurent at guerby dot net
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dje at gcc dot gnu dot org @ 2009-06-04 19:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from dje at gcc dot gnu dot org  2009-06-04 19:25 -------
Okay, I think these are separate bugs.  The HP-PA error may be due to
Alexandre's change.


-- 


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


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

* [Bug bootstrap/40338] [4.5 Regression] bootstrap comparision fails on 32 bit PA when comparing libgcc objects
  2009-06-04 15:05 [Bug bootstrap/40338] New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects sje at cup dot hp dot com
                   ` (6 preceding siblings ...)
  2009-06-04 19:25 ` dje at gcc dot gnu dot org
@ 2009-06-04 20:32 ` laurent at guerby dot net
  2009-06-04 23:48 ` sje at cup dot hp dot com
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: laurent at guerby dot net @ 2009-06-04 20:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from laurent at guerby dot net  2009-06-04 20:31 -------
Last revision that did bootstrap on hppa-linux is 147972, starting with 147996
I get on compile farm gcc61:

/home/guerby/build/./gcc/xgcc -B/home/guerby/build/./gcc/
-B/n/61/guerby/install-trunk/hppa2.0-unknown-linux-gnu/bin/
-B/n/61/guerby/install-trunk/hppa2.0-unknown-linux-gnu/lib/ -isystem
/n/61/guerby/instal\
l-trunk/hppa2.0-unknown-linux-gnu/include -isystem
/n/61/guerby/install-trunk/hppa2.0-unknown-linux-gnu/sys-include    -g -O2 -O2 
-g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-pr\
ototypes -Wcast-qual -Wold-style-definition  -isystem ./include  -fPIC -DELF=1
-DLINUX=1 -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I.
-I. -I../.././gcc -I../../../trunk/libgcc -I../../\
../trunk/libgcc/. -I../../../trunk/libgcc/../gcc
-I../../../trunk/libgcc/../include  -DHAVE_CC_TLS -o _bswapdi2.o -MT
_bswapdi2.o -MD -MP -MF _bswapdi2.dep -DL_bswapdi2 -c
../../../trunk/libgcc/../gcc/libgc\
c2.c \
          -fvisibility=hidden -DHIDE_EXPORTS
../../../trunk/libgcc/../gcc/libgcc2.c: In function '__bswapdi2':
../../../trunk/libgcc/../gcc/libgcc2.c:513: internal compiler error: in
dwarf2out_begin_epilogue, at dwarf2out.c:2689
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [_bswapdi2.o] Error 1
make[3]: Leaving directory
`/home/guerby/build/hppa2.0-unknown-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/home/guerby/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/guerby/build'
make: *** [bootstrap] Error 2

I don't know if it's related.

Might have been caused/triggered by dwarf2out change since it introduced the
point of the ICE (dwarf2out_begin_epilogue):

2009-05-29  Richard Henderson  <rth@redhat.com>
...
        (dwarf2out_begin_epilogue): New.
...


-- 

laurent at guerby dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |laurent at guerby dot net,
                   |                            |rth at gcc dot gnu dot org


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


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

* [Bug bootstrap/40338] [4.5 Regression] bootstrap comparision fails on 32 bit PA when comparing libgcc objects
  2009-06-04 15:05 [Bug bootstrap/40338] New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects sje at cup dot hp dot com
                   ` (7 preceding siblings ...)
  2009-06-04 20:32 ` laurent at guerby dot net
@ 2009-06-04 23:48 ` sje at cup dot hp dot com
  2009-06-04 23:49 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sje at cup dot hp dot com @ 2009-06-04 23:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from sje at cup dot hp dot com  2009-06-04 23:47 -------
Laurent, your bootstrap problem on hppa-linux looks like a separate problem and
you should submit a new defect for that bug.  This problem is definitely due to
r148080 when we started comparing libgcc objects during the stage2/stage3
object comparision step.  We have been generating different code (a different
symbol name) for some time but we never compared the objects before so it never
mattered before.

The issue with hppa-hpux is the use of get_random_seed in
get_file_function_name.


-- 


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


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

* [Bug bootstrap/40338] [4.5 Regression] bootstrap comparision fails on 32 bit PA when comparing libgcc objects
  2009-06-04 15:05 [Bug bootstrap/40338] New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects sje at cup dot hp dot com
                   ` (8 preceding siblings ...)
  2009-06-04 23:48 ` sje at cup dot hp dot com
@ 2009-06-04 23:49 ` pinskia at gcc dot gnu dot org
  2009-06-05 22:30 ` sje at cup dot hp dot com
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-06-04 23:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pinskia at gcc dot gnu dot org  2009-06-04 23:49 -------
(In reply to comment #8)
> Last revision that did bootstrap on hppa-linux is 147972, starting with 147996
> I get on compile farm gcc61:

This issue looks like my bug, PR 40347.


-- 


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


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

* [Bug bootstrap/40338] [4.5 Regression] bootstrap comparision fails on 32 bit PA when comparing libgcc objects
  2009-06-04 15:05 [Bug bootstrap/40338] New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects sje at cup dot hp dot com
                   ` (9 preceding siblings ...)
  2009-06-04 23:49 ` pinskia at gcc dot gnu dot org
@ 2009-06-05 22:30 ` sje at cup dot hp dot com
  2009-06-26 17:29 ` sje at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sje at cup dot hp dot com @ 2009-06-05 22:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from sje at cup dot hp dot com  2009-06-05 22:30 -------
Getting back to what is actually causing the failure on HPPA, there seem to be
2 problems.  One is the random seed used by get_file_function_name.  If I
workaround that by using -frandom-seed="make-it-work" I still get a failure
when comparing lib2funcs.o.  This file is created from a .asm file that is
preprocessed first.  The preprocessor/GCC writes the output to a tmp file and
the name of that tmp file winds up in the debug info for the object when
assembled.  stage2 and stage3 use different tmp names and so we get different
objects even when using -frandom-seed.


-- 


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


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

* [Bug bootstrap/40338] [4.5 Regression] bootstrap comparision fails on 32 bit PA when comparing libgcc objects
  2009-06-04 15:05 [Bug bootstrap/40338] New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects sje at cup dot hp dot com
                   ` (10 preceding siblings ...)
  2009-06-05 22:30 ` sje at cup dot hp dot com
@ 2009-06-26 17:29 ` sje at gcc dot gnu dot org
  2009-06-26 17:31 ` sje at gcc dot gnu dot org
  2009-06-26 17:37 ` sje at cup dot hp dot com
  13 siblings, 0 replies; 15+ messages in thread
From: sje at gcc dot gnu dot org @ 2009-06-26 17:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from sje at gcc dot gnu dot org  2009-06-26 17:28 -------
Subject: Bug 40338

Author: sje
Date: Fri Jun 26 17:28:40 2009
New Revision: 148978

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

        PR bootstrap/40338
        * configure.ac (comparestring): Create new variable.
        * Makefile.tpl (comparestring): Use to skip some comparisions.
        * configure: Regenerate.
        * Makefile.in: Regenerate.

Modified:
    trunk/ChangeLog
    trunk/Makefile.in
    trunk/Makefile.tpl
    trunk/configure
    trunk/configure.ac


-- 


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


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

* [Bug bootstrap/40338] [4.5 Regression] bootstrap comparision fails on 32 bit PA when comparing libgcc objects
  2009-06-04 15:05 [Bug bootstrap/40338] New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects sje at cup dot hp dot com
                   ` (11 preceding siblings ...)
  2009-06-26 17:29 ` sje at gcc dot gnu dot org
@ 2009-06-26 17:31 ` sje at gcc dot gnu dot org
  2009-06-26 17:37 ` sje at cup dot hp dot com
  13 siblings, 0 replies; 15+ messages in thread
From: sje at gcc dot gnu dot org @ 2009-06-26 17:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from sje at gcc dot gnu dot org  2009-06-26 17:31 -------
Subject: Bug 40338

Author: sje
Date: Fri Jun 26 17:30:55 2009
New Revision: 148979

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

        PR bootstrap/40338
        * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
        * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/pa/t-pa-hpux10
    trunk/gcc/config/pa/t-pa-hpux11


-- 


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


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

* [Bug bootstrap/40338] [4.5 Regression] bootstrap comparision fails on 32 bit PA when comparing libgcc objects
  2009-06-04 15:05 [Bug bootstrap/40338] New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects sje at cup dot hp dot com
                   ` (12 preceding siblings ...)
  2009-06-26 17:31 ` sje at gcc dot gnu dot org
@ 2009-06-26 17:37 ` sje at cup dot hp dot com
  13 siblings, 0 replies; 15+ messages in thread
From: sje at cup dot hp dot com @ 2009-06-26 17:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from sje at cup dot hp dot com  2009-06-26 17:36 -------
Bug has been resolved, we use -frandom-seed to make most objects identical on
hppa and extended the comparision exclusions to include the two files we
coudln't make identical.


-- 

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=40338


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

end of thread, other threads:[~2009-06-26 17:37 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-04 15:05 [Bug bootstrap/40338] New: bootstrap comparision fails on 32 bit PA when comparing libgcc objects sje at cup dot hp dot com
2009-06-04 15:52 ` [Bug bootstrap/40338] " sje at cup dot hp dot com
2009-06-04 16:18 ` dje at gcc dot gnu dot org
2009-06-04 16:30 ` [Bug bootstrap/40338] [4.5 Regression] " pinskia at gcc dot gnu dot org
2009-06-04 16:42 ` sje at cup dot hp dot com
2009-06-04 17:11 ` dje at gcc dot gnu dot org
2009-06-04 17:17 ` dje at gcc dot gnu dot org
2009-06-04 19:25 ` dje at gcc dot gnu dot org
2009-06-04 20:32 ` laurent at guerby dot net
2009-06-04 23:48 ` sje at cup dot hp dot com
2009-06-04 23:49 ` pinskia at gcc dot gnu dot org
2009-06-05 22:30 ` sje at cup dot hp dot com
2009-06-26 17:29 ` sje at gcc dot gnu dot org
2009-06-26 17:31 ` sje at gcc dot gnu dot org
2009-06-26 17:37 ` sje at cup dot hp dot com

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).