Bug 44722 - [4.6 Regression] Bootstrap fails during libjava
Summary: [4.6 Regression] Bootstrap fails during libjava
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: 4.6.0
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2010-06-30 05:30 UTC by Jerry DeLisle
Modified: 2010-06-30 11:09 UTC (History)
3 users (show)

See Also:
Host: x86-64-gnu-linux
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2010-06-30 09:51:17


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerry DeLisle 2010-06-30 05:30:22 UTC
gfortran -O2 array_reference_1.f90 just hangs.  I have to go in and kill it manually.  This is just one example.  There were several failures before I interrupted make -k check-fortran in order to recover enough CPU cycles to then go in an kill f951 that was left running.

No problems at -O1 so maybe middle-end?
Comment 1 Richard Biener 2010-06-30 09:51:17 UTC
Same issue when building libjava.  We run out of virtual memory.

from gdb I can see we run amok in peephole2_optimize.  So that's again
bernds patch.
Comment 2 Richard Biener 2010-06-30 09:55:41 UTC
We're peepholing in circles I guess?
Comment 3 Richard Biener 2010-06-30 10:16:55 UTC
This issue causes a bootstrap fail in libjava on x86_64-linux.
Comment 4 Richard Biener 2010-06-30 10:32:24 UTC
Index: gcc/config/i386/i386.md
===================================================================
--- gcc/config/i386/i386.md     (revision 161594)
+++ gcc/config/i386/i386.md     (working copy)
@@ -4729,6 +4729,7 @@ (define_peephole2
    (set (match_operand:SSEMODEI24 2 "register_operand" "")
        (fix:SSEMODEI24 (match_dup 0)))]
   "TARGET_SHORTEN_X87_SSE
+   && !(TARGET_AVOID_VECTOR_DECODE && optimize_insn_for_speed_p ())
    && peep2_reg_dead_p (2, operands[0])"
   [(set (match_dup 2) (fix:SSEMODEI24 (match_dup 1)))]
   "")

fixes array_reference_1.f90, checking bootstrap now.
Comment 5 Richard Biener 2010-06-30 11:09:53 UTC
Fixed.
Comment 6 Richard Biener 2010-06-30 11:10:12 UTC
Subject: Bug 44722

Author: rguenth
Date: Wed Jun 30 11:09:37 2010
New Revision: 161597

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161597
Log:
2010-06-30  Richard Guenther  <rguenther@suse.de>

	PR target/44722
	* config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
	against oscillation with reverse peephole2.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.md