public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/37251]  New: [4.4 Regression] ICE with ira: delete_allocno_from_bucket
@ 2008-08-27  6:26 jv244 at cam dot ac dot uk
  2008-08-27  6:27 ` [Bug rtl-optimization/37251] " jv244 at cam dot ac dot uk
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-08-27  6:26 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2236 bytes --]

The following triggered with CP2K:

gfortran -v -c -O3 -ffast-math -funroll-loops -ftree-vectorize -march=native
xc_xbecke88_lr_adiabatic.f90
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /data/vondele/gcc_bench/gcc_trunk/gcc/configure
--prefix=/data/vondele/gcc_bench/gcc_trunk/build --enable-languages=c,fortran
Thread model: posix
gcc version 4.4.0 20080826 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-c' '-O3' '-ffast-math' '-funroll-loops'
'-ftree-vectorize'

/data/vondele/gcc_bench/gcc_trunk/build/libexec/gcc/x86_64-unknown-linux-gnu/4.4.0/f951
xc_xbecke88_lr_adiabatic.f90 -march=core2 -mcx16 -msahf --param
l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096
-mtune=core2 -quiet -dumpbase xc_xbecke88_lr_adiabatic.f90 -auxbase
xc_xbecke88_lr_adiabatic -O3 -version -ffast-math -funroll-loops
-ftree-vectorize -fintrinsic-modules-path
/data/vondele/gcc_bench/gcc_trunk/build/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/finclude
-o /tmp/cci09Vqi.s
GNU Fortran (GCC) version 4.4.0 20080826 (experimental)
(x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.4.0 20080826 (experimental), GMP version
4.2.2, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
xc_xbecke88_lr_adiabatic.f90: In function ‘xb88_lr_adiabatic_lda_calc’:
xc_xbecke88_lr_adiabatic.f90:492: internal compiler error: in
delete_allocno_from_bucket, at ira-color.c:619

testcase to be attached. Using -march=opteron (which I used to test the ira
branch) is enough to avoid it, so the -march=xxx and so on parameters are
relevant.

Full sources can be downloaded:
http://cp2k.berlios.de/gfortran/
ftp://ftp.berlios.de/pub/cp2k/gfortran/gcc_bench.tgz


-- 
           Summary: [4.4 Regression] ICE with ira:
                    delete_allocno_from_bucket
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk
OtherBugsDependingO 29975
             nThis:


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


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

* [Bug rtl-optimization/37251] [4.4 Regression] ICE with ira: delete_allocno_from_bucket
  2008-08-27  6:26 [Bug rtl-optimization/37251] New: [4.4 Regression] ICE with ira: delete_allocno_from_bucket jv244 at cam dot ac dot uk
@ 2008-08-27  6:27 ` jv244 at cam dot ac dot uk
  2008-08-27  6:28 ` jv244 at cam dot ac dot uk
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-08-27  6:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jv244 at cam dot ac dot uk  2008-08-27 06:26 -------
Created an attachment (id=16153)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16153&action=view)
testcase


-- 


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


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

* [Bug rtl-optimization/37251] [4.4 Regression] ICE with ira: delete_allocno_from_bucket
  2008-08-27  6:26 [Bug rtl-optimization/37251] New: [4.4 Regression] ICE with ira: delete_allocno_from_bucket jv244 at cam dot ac dot uk
  2008-08-27  6:27 ` [Bug rtl-optimization/37251] " jv244 at cam dot ac dot uk
@ 2008-08-27  6:28 ` jv244 at cam dot ac dot uk
  2008-08-27  7:46 ` jv244 at cam dot ac dot uk
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-08-27  6:28 UTC (permalink / raw)
  To: gcc-bugs



-- 

jv244 at cam dot ac dot uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.4.0


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


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

* [Bug rtl-optimization/37251] [4.4 Regression] ICE with ira: delete_allocno_from_bucket
  2008-08-27  6:26 [Bug rtl-optimization/37251] New: [4.4 Regression] ICE with ira: delete_allocno_from_bucket jv244 at cam dot ac dot uk
  2008-08-27  6:27 ` [Bug rtl-optimization/37251] " jv244 at cam dot ac dot uk
  2008-08-27  6:28 ` jv244 at cam dot ac dot uk
@ 2008-08-27  7:46 ` jv244 at cam dot ac dot uk
  2008-08-27  7:54 ` jv244 at cam dot ac dot uk
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-08-27  7:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jv244 at cam dot ac dot uk  2008-08-27 07:45 -------
Created an attachment (id=16154)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16154&action=view)
shorter Fortran only testcase

gfortran -v -c -O3 -ffast-math -funroll-loops -ftree-vectorize -march=native
bug_PR37251.f90


-- 


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


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

* [Bug rtl-optimization/37251] [4.4 Regression] ICE with ira: delete_allocno_from_bucket
  2008-08-27  6:26 [Bug rtl-optimization/37251] New: [4.4 Regression] ICE with ira: delete_allocno_from_bucket jv244 at cam dot ac dot uk
                   ` (2 preceding siblings ...)
  2008-08-27  7:46 ` jv244 at cam dot ac dot uk
@ 2008-08-27  7:54 ` jv244 at cam dot ac dot uk
  2008-08-27  8:00 ` dominiq at lps dot ens dot fr
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-08-27  7:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jv244 at cam dot ac dot uk  2008-08-27 07:53 -------
This is the minimal command line to reproduce the bug:

gfortran  -c -O1 -ffast-math -march=core2  bug_PR37251.f90


-- 


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


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

* [Bug rtl-optimization/37251] [4.4 Regression] ICE with ira: delete_allocno_from_bucket
  2008-08-27  6:26 [Bug rtl-optimization/37251] New: [4.4 Regression] ICE with ira: delete_allocno_from_bucket jv244 at cam dot ac dot uk
                   ` (3 preceding siblings ...)
  2008-08-27  7:54 ` jv244 at cam dot ac dot uk
@ 2008-08-27  8:00 ` dominiq at lps dot ens dot fr
  2008-08-27 22:01 ` vmakarov at redhat dot com
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens dot fr @ 2008-08-27  8:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dominiq at lps dot ens dot fr  2008-08-27 07:59 -------
Confirmed on i686-apple-darwin9 for the code in comment #3. -O2 is sufficient
to trigger the ICE

[ibook-dhum] f90/bug% gfc -O2 pr37251.f90
pr37251.f90: In function 'xb88_lr_adiabatic_lda_calc':
pr37251.f90:216: internal compiler error: in delete_allocno_from_bucket, at
ira-color.c:619


-- 


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


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

* [Bug rtl-optimization/37251] [4.4 Regression] ICE with ira: delete_allocno_from_bucket
  2008-08-27  6:26 [Bug rtl-optimization/37251] New: [4.4 Regression] ICE with ira: delete_allocno_from_bucket jv244 at cam dot ac dot uk
                   ` (4 preceding siblings ...)
  2008-08-27  8:00 ` dominiq at lps dot ens dot fr
@ 2008-08-27 22:01 ` vmakarov at redhat dot com
  2008-08-28  8:16 ` jv244 at cam dot ac dot uk
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: vmakarov at redhat dot com @ 2008-08-27 22:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from vmakarov at redhat dot com  2008-08-27 21:59 -------
  The problem occurs when a region and its nested region have more 4000
uncolorable allocnos.  In this case splay tree is used to deal with the
uncolorable allocnos.  Part of uncolorable_allocnos is temporarily stored in an
array which is not truncated after region coloring and allocnos in the array
are put into the splay tree in its subregion.

The patch solving the problem will be sent soon.


-- 


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


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

* [Bug rtl-optimization/37251] [4.4 Regression] ICE with ira: delete_allocno_from_bucket
  2008-08-27  6:26 [Bug rtl-optimization/37251] New: [4.4 Regression] ICE with ira: delete_allocno_from_bucket jv244 at cam dot ac dot uk
                   ` (5 preceding siblings ...)
  2008-08-27 22:01 ` vmakarov at redhat dot com
@ 2008-08-28  8:16 ` jv244 at cam dot ac dot uk
  2008-08-29 16:20 ` vmakarov at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-08-28  8:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jv244 at cam dot ac dot uk  2008-08-28 08:15 -------
(In reply to comment #5)
> 
> The patch solving the problem will be sent soon.
> 
The patch you posted fixes the build of CP2K. Benchmark results will appear:

http://cp2k.berlios.de/gfortran/

the night after it hits trunk.


-- 

jv244 at cam dot ac dot uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-08-28 08:15:19
               date|                            |


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


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

* [Bug rtl-optimization/37251] [4.4 Regression] ICE with ira: delete_allocno_from_bucket
  2008-08-27  6:26 [Bug rtl-optimization/37251] New: [4.4 Regression] ICE with ira: delete_allocno_from_bucket jv244 at cam dot ac dot uk
                   ` (6 preceding siblings ...)
  2008-08-28  8:16 ` jv244 at cam dot ac dot uk
@ 2008-08-29 16:20 ` vmakarov at gcc dot gnu dot org
  2008-09-02 18:18 ` hjl at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: vmakarov at gcc dot gnu dot org @ 2008-08-29 16:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from vmakarov at gcc dot gnu dot org  2008-08-29 16:19 -------
Subject: Bug 37251

Author: vmakarov
Date: Fri Aug 29 16:18:11 2008
New Revision: 139770

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139770
Log:
2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>

        PR rtl-opt/37251

        * ira-color.c (push_allocnos_to_stack): Truncate
        removed_splay_allocno_vec.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ira-color.c


-- 


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


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

* [Bug rtl-optimization/37251] [4.4 Regression] ICE with ira: delete_allocno_from_bucket
  2008-08-27  6:26 [Bug rtl-optimization/37251] New: [4.4 Regression] ICE with ira: delete_allocno_from_bucket jv244 at cam dot ac dot uk
                   ` (7 preceding siblings ...)
  2008-08-29 16:20 ` vmakarov at gcc dot gnu dot org
@ 2008-09-02 18:18 ` hjl at gcc dot gnu dot org
  2008-09-06  9:11 ` jv244 at cam dot ac dot uk
  2008-10-10  8:27 ` jakub at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: hjl at gcc dot gnu dot org @ 2008-09-02 18:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from hjl at gcc dot gnu dot org  2008-09-02 18:17 -------
Subject: Bug 37251

Author: hjl
Date: Tue Sep  2 18:16:24 2008
New Revision: 139900

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139900
Log:
2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>

        Backport from mainline:
        2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

        * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is
        defined.

        2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>

        PR rtl-opt/37251
        * ira-color.c (push_allocnos_to_stack): Truncate
        removed_splay_allocno_vec.

        2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>

        PR rtl-opt/37243
        * ira-color (ira_fast_allocation): Don't assign hard registers to
        global allocnos.

Added:
    branches/ira-merge/gcc/ChangeLog.ira
Modified:
    branches/ira-merge/gcc/ira-color.c
    branches/ira-merge/gcc/ira.c


-- 


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


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

* [Bug rtl-optimization/37251] [4.4 Regression] ICE with ira: delete_allocno_from_bucket
  2008-08-27  6:26 [Bug rtl-optimization/37251] New: [4.4 Regression] ICE with ira: delete_allocno_from_bucket jv244 at cam dot ac dot uk
                   ` (8 preceding siblings ...)
  2008-09-02 18:18 ` hjl at gcc dot gnu dot org
@ 2008-09-06  9:11 ` jv244 at cam dot ac dot uk
  2008-10-10  8:27 ` jakub at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-09-06  9:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jv244 at cam dot ac dot uk  2008-09-06 09:09 -------
I believe this bug should be closed ? Or do you still want to add the testcase
to mainline?


-- 


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


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

* [Bug rtl-optimization/37251] [4.4 Regression] ICE with ira: delete_allocno_from_bucket
  2008-08-27  6:26 [Bug rtl-optimization/37251] New: [4.4 Regression] ICE with ira: delete_allocno_from_bucket jv244 at cam dot ac dot uk
                   ` (9 preceding siblings ...)
  2008-09-06  9:11 ` jv244 at cam dot ac dot uk
@ 2008-10-10  8:27 ` jakub at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-10-10  8:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from jakub at gcc dot gnu dot org  2008-10-10 08:25 -------
Let's close this...


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-10-10  8:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-27  6:26 [Bug rtl-optimization/37251] New: [4.4 Regression] ICE with ira: delete_allocno_from_bucket jv244 at cam dot ac dot uk
2008-08-27  6:27 ` [Bug rtl-optimization/37251] " jv244 at cam dot ac dot uk
2008-08-27  6:28 ` jv244 at cam dot ac dot uk
2008-08-27  7:46 ` jv244 at cam dot ac dot uk
2008-08-27  7:54 ` jv244 at cam dot ac dot uk
2008-08-27  8:00 ` dominiq at lps dot ens dot fr
2008-08-27 22:01 ` vmakarov at redhat dot com
2008-08-28  8:16 ` jv244 at cam dot ac dot uk
2008-08-29 16:20 ` vmakarov at gcc dot gnu dot org
2008-09-02 18:18 ` hjl at gcc dot gnu dot org
2008-09-06  9:11 ` jv244 at cam dot ac dot uk
2008-10-10  8:27 ` jakub 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).