Bug 28784 - [4.2 regression] Bootstrap comparison failure
Summary: [4.2 regression] Bootstrap comparison failure
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: 4.2.0
Assignee: roger
URL:
Keywords: build
Depends on: 20586 28752
Blocks:
  Show dependency treegraph
 
Reported: 2006-08-20 09:34 UTC by Andreas Schwab
Modified: 2006-09-12 17:11 UTC (History)
2 users (show)

See Also:
Host:
Target: ia64-suse-linux
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-09-11 16:52:53


Attachments
Diff of "objdump -d" output (35.13 KB, application/octet-stream)
2006-08-20 09:36 UTC, Andreas Schwab
Details
Diff of compiler dumps (51.29 KB, application/octet-stream)
2006-08-20 14:21 UTC, Andreas Schwab
Details
stage3 mach dump (506.62 KB, application/octet-stream)
2006-08-20 14:29 UTC, Andreas Schwab
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schwab 2006-08-20 09:34:11 UTC
Since about 3 weeks bootstrap is failing due to comparison failure on java/decl.o (no other object file is affected).  It first started with r115810, then went away with r115850, but reoccurred with r115851.  Since then it reoccurred often but irregularily.  Bootstrap is currently failing for three days now.
When running the compilation command for java/decl.o manually the resulting object file is identical to the stage2 object file, which means that there is an environmental dependency in the generated code.  Bootstrapping with --enable-checking=all didn't show any error, the comparison failure remained.
Comment 1 Andreas Schwab 2006-08-20 09:36:20 UTC
Created attachment 12103 [details]
Diff of "objdump -d" output
Comment 2 Andreas Schwab 2006-08-20 14:21:09 UTC
Created attachment 12104 [details]
Diff of compiler dumps

All dumps before mach are identical.
Comment 3 Andreas Schwab 2006-08-20 14:29:18 UTC
Created attachment 12105 [details]
stage3 mach dump
Comment 4 Andreas Schwab 2006-08-20 15:24:12 UTC
The bug is very sensitive on the environment size.  Adding "-da" makes it go away, adding "-da -da" makes it reappear.  Looks like some decision is made on the low bits of an address.
Comment 5 Andrew Pinski 2006-08-20 15:39:24 UTC
I really don't think this is a regression, this is most likely related to PR 20586 or PR 28752.
Comment 6 roger 2006-09-11 16:52:53 UTC
I believe I have a patch.  I'm just waiting for the fix for PR28672 (which I've
just approved) to be applied, so I can complete bootstrap and regression test
to confirm there are no unexpected side-effects. 
Comment 7 Roger Sayle 2006-09-12 16:02:47 UTC
Subject: Bug 28784

Author: sayle
Date: Tue Sep 12 16:02:31 2006
New Revision: 116891

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116891
Log:

	PR middle-end/4520
	PR bootstrap/28784
	* cselib.c (cselib_hash_rtx): Avoid hashing on the address of labels
	and symbols.  Instead use the implementation from cse.c's hash_rtx.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cselib.c

Comment 8 Andrew Pinski 2006-09-12 17:11:59 UTC
Fixed.