public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/37299]  New: libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index domain error, in create_vop_ref_mapping_loop at tree-ssa-loop-im.c:1519
@ 2008-08-31 16:33 danglin at gcc dot gnu dot org
  2008-08-31 17:39 ` [Bug tree-optimization/37299] " rguenth at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-08-31 16:33 UTC (permalink / raw)
  To: gcc-bugs

/test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/
-B/opt/gnu64/gcc/g
cc-4.4.0/hppa64-hp-hpux11.11/bin/
-B/opt/gnu64/gcc/gcc-4.4.0/hppa64-hp-hpux11.11
/lib/ -isystem /opt/gnu64/gcc/gcc-4.4.0/hppa64-hp-hpux11.11/include -isystem
/op
t/gnu64/gcc/gcc-4.4.0/hppa64-hp-hpux11.11/sys-include -g -O2 -O2  -g -O2
-DIN_GC
C   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wcast-qua
l -Wold-style-definition  -isystem ./include  -fPIC -Dpa64=1 -DELF=1
-mlong-call
s -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I.
-I../..
/./gcc -I../../../gcc/libgcc -I../../../gcc/libgcc/.
-I../../../gcc/libgcc/../gc
c -I../../../gcc/libgcc/../include  -DHAVE_CC_TLS -o _popcountdi2.o -MT
_popcoun
tdi2.o -MD -MP -MF _popcountdi2.dep -DL_popcountdi2 -c
../../../gcc/libgcc/../gc
c/libgcc2.c \
          -fvisibility=hidden -DHIDE_EXPORTS
../../../gcc/libgcc/../gcc/libgcc2.c: In function '__popcountsi2':
../../../gcc/libgcc/../gcc/libgcc2.c:792: internal compiler error: vector
VEC(me
m_ref_p,base) index domain error, in create_vop_ref_mapping_loop at
tree-ssa-loo
p-im.c:1519
Please submit a full bug report,

-bash-3.2$ ./xgcc -B./ -v
Reading specs from ./specs
Target: hppa64-hp-hpux11.11
Configured with: ../gcc/configure --with-gnu-as --with-as=/opt/gnu64/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --disable-nls
--with-local-prefix=/opt/gnu64 --prefix=/opt/gnu64/gcc/gcc-4.4.0
--build=hppa64-hp-hpux11.11 --enable-threads=posix --disable-libmudflap
--with-gmp=/opt/gnu64/gcc/gcc-4.4.0
--enable-languages=c,c++,fortran,objc,obj-c++
Thread model: posix
gcc version 4.4.0 20080831 (experimental) [trunk revision 139820] (GCC) 

Breakpoint 1, tree_ssa_lim () at ../../gcc/gcc/tree-ssa-loop-im.c:1519
1519          ref = VEC_index (mem_ref_p, memory_accesses.refs_list, i);
(gdb) bt
#0  tree_ssa_lim () at ../../gcc/gcc/tree-ssa-loop-im.c:1519
#1  0x40000000005bccb8 in tree_ssa_loop_im ()
    at ../../gcc/gcc/tree-ssa-loop.c:110
#2  0x400000000040f2fc in execute_one_pass (pass=0x80000001000c9778)
    at ../../gcc/gcc/passes.c:1277
#3  0x400000000040f658 in execute_pass_list (pass=0x80000001000c9778)
    at ../../gcc/gcc/passes.c:1325
#4  0x400000000040f674 in execute_pass_list (pass=0x80000001000c96d8)
    at ../../gcc/gcc/passes.c:1326
#5  0x400000000040f674 in execute_pass_list (pass=0x80000001000c8d80)
    at ../../gcc/gcc/passes.c:1326
#6  0x400000000051e6f8 in tree_rest_of_compilation (fndecl=0x800003fffdc67a00)
    at ../../gcc/gcc/tree-optimize.c:418
#7  0x40000000006bef00 in cgraph_expand_function (node=0x800003fffdc67f00)
    at ../../gcc/gcc/cgraphunit.c:1039
#8  0x40000000006c1754 in cgraph_optimize ()
    at ../../gcc/gcc/cgraphunit.c:1101
#9  0x400000000017405c in c_write_global_declarations ()
    at ../../gcc/gcc/c-decl.c:8080
#10 0x40000000004bb054 in toplev_main (argc=<value optimized out>, 
    argv=<value optimized out>) at ../../gcc/gcc/toplev.c:979
#11 0x40000000001f92e4 in main (argc=1689016, argv=0x800000010019c818)
    at ../../gcc/gcc/main.c:35
(gdb) c
Continuing.

../../../gcc/libgcc/../gcc/libgcc2.c: In function '__popcountdi2':
../../../gcc/libgcc/../gcc/libgcc2.c:806: internal compiler error: vector
VEC(mem_ref_p,base) index domain error, in create_vop_ref_mapping_loop at
tree-ssa-loop-im.c:1519

Occurs building libgcc after stage2.


-- 
           Summary: libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index
                    domain error, in create_vop_ref_mapping_loop at tree-
                    ssa-loop-im.c:1519
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa64-hp-hpux11.11
  GCC host triplet: hppa64-hp-hpux11.11
GCC target triplet: hppa64-hp-hpux11.11


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


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

* [Bug tree-optimization/37299] libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index domain error, in create_vop_ref_mapping_loop at tree-ssa-loop-im.c:1519
  2008-08-31 16:33 [Bug tree-optimization/37299] New: libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index domain error, in create_vop_ref_mapping_loop at tree-ssa-loop-im.c:1519 danglin at gcc dot gnu dot org
@ 2008-08-31 17:39 ` rguenth at gcc dot gnu dot org
  2008-08-31 19:22 ` danglin at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-08-31 17:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-08-31 17:37 -------
Sounds like stage2 is miscompiled then.  Can you try the preprocessed source
with
the stage1 compiler and the same flags?


-- 


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


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

* [Bug tree-optimization/37299] libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index domain error, in create_vop_ref_mapping_loop at tree-ssa-loop-im.c:1519
  2008-08-31 16:33 [Bug tree-optimization/37299] New: libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index domain error, in create_vop_ref_mapping_loop at tree-ssa-loop-im.c:1519 danglin at gcc dot gnu dot org
  2008-08-31 17:39 ` [Bug tree-optimization/37299] " rguenth at gcc dot gnu dot org
@ 2008-08-31 19:22 ` danglin at gcc dot gnu dot org
  2008-08-31 20:31 ` danglin at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-08-31 19:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from danglin at gcc dot gnu dot org  2008-08-31 19:21 -------
Yes.  I can't duplicate this any more.  I've been updating to
gmp-4.2.3.  Now, I get a build error much earlier:

checking for suffix of object files... configure: error: in
`/test/gnu/gcc/objdi
r/hppa64-hp-hpux11.11/libgcc':
configure: error: cannot compute suffix of object files: cannot compile

This may be the same bug as the one reported here:
http://gcc.gnu.org/ml/gcc/2008-08/msg00500.html

I have been experimenting with IRA:

--- pa64-regs.h (revision 139820)
+++ pa64-regs.h (working copy)
@@ -235,12 +235,25 @@
  {{0x00000000, 0x00000000},    /* NO_REGS */                   \
   {0x00000002, 0x00000000},    /* R1_REGS */                   \
   {0xfffffffe, 0x00000000},    /* GENERAL_REGS */              \
-  {0x00000000, 0x00000000},    /* FPUPPER_REGS */                      \
+  {0x00000000, 0x00000000},    /* FPUPPER_REGS */              \
   {0x00000000, 0x0fffffff},    /* FP_REGS */                   \
   {0xfffffffe, 0x0fffffff},    /* GENERAL_OR_FP_REGS */        \
   {0x00000000, 0x10000000},    /* SHIFT_REGS */                \
   {0xfffffffe, 0x1fffffff}}    /* ALL_REGS */

+/* The following macro defines cover classes for Integrated Register
+   Allocator.  Cover classes is a set of non-intersected register
+   classes covering all hard registers used for register allocation
+   purpose.  Any move between two registers of a cover class should be
+   cheaper than load or store of the registers.  The macro value is
+   array of register classes with LIM_REG_CLASSES used as the end
+   marker.  */
+
+#define IRA_COVER_CLASSES                                              \
+{                                                                      \
+  GENERAL_REGS, FP_REGS, SHIFT_REGS, LIM_REG_CLASSES                   \
+}
+

Had a full bootstrap with this define on hppa2.0w-hp-hpux11.11.  The
define seemed straight forward on the PA.


-- 


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


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

* [Bug tree-optimization/37299] libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index domain error, in create_vop_ref_mapping_loop at tree-ssa-loop-im.c:1519
  2008-08-31 16:33 [Bug tree-optimization/37299] New: libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index domain error, in create_vop_ref_mapping_loop at tree-ssa-loop-im.c:1519 danglin at gcc dot gnu dot org
  2008-08-31 17:39 ` [Bug tree-optimization/37299] " rguenth at gcc dot gnu dot org
  2008-08-31 19:22 ` danglin at gcc dot gnu dot org
@ 2008-08-31 20:31 ` danglin at gcc dot gnu dot org
  2008-09-01 20:46 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-08-31 20:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from danglin at gcc dot gnu dot org  2008-08-31 20:30 -------
The problem in comment #2 is the libgmp/libmpfr installation.  I
accidentally installed the shared versions which have a dependency
on libgcc_s.sl.  As a result, the following fails:

configure:2611: /test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/
-B
/opt/gnu64/gcc/gcc-4.4.0/hppa64-hp-hpux11.11/bin/
-B/opt/gnu64/gcc/gcc-4.4.0/hpp
a64-hp-hpux11.11/lib/ -isystem
/opt/gnu64/gcc/gcc-4.4.0/hppa64-hp-hpux11.11/incl
ude -isystem /opt/gnu64/gcc/gcc-4.4.0/hppa64-hp-hpux11.11/sys-include -c -g -O2
   conftest.c >&5
/usr/lib/pa20_64/dld.sl: Unable to find library 'libgcc_s.sl'.
xgcc: Internal error: Killed (program cc1)

The embedded path for libmpfr.sl doesn't include a search path for libgcc_s.sl.


-- 


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


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

* [Bug tree-optimization/37299] libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index domain error, in create_vop_ref_mapping_loop at tree-ssa-loop-im.c:1519
  2008-08-31 16:33 [Bug tree-optimization/37299] New: libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index domain error, in create_vop_ref_mapping_loop at tree-ssa-loop-im.c:1519 danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-08-31 20:31 ` danglin at gcc dot gnu dot org
@ 2008-09-01 20:46 ` dave at hiauly1 dot hia dot nrc dot ca
  2008-09-02 20:42 ` [Bug tree-optimization/37299] [4.4 Regression] " pinskia at gcc dot gnu dot org
  2008-10-11 15:20 ` danglin at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2008-09-01 20:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dave at hiauly1 dot hia dot nrc dot ca  2008-09-01 20:44 -------
Subject: Re:  libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index domain
error, in create_vop_ref_mapping_loopRO

> Sounds like stage2 is miscompiled then.  Can you try the preprocessed source
> with
> the stage1 compiler and the same flags?

While I didn't specifically try with the preprocessed source, the stage1
compiler has no problem compiling the file with the same flags.

The miscompilation appears when IRA_COVER_CLASSES is defined.

Looking through the test results without it defined, it is a somewhat
surprising that this target builds at all.  There are bitfield and many
problems in struct handling (both layout and argument passing).  The
struct problems appear to have been introduced in late June.

Dave


-- 


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


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

* [Bug tree-optimization/37299] [4.4 Regression] libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index domain error, in create_vop_ref_mapping_loop at tree-ssa-loop-im.c:1519
  2008-08-31 16:33 [Bug tree-optimization/37299] New: libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index domain error, in create_vop_ref_mapping_loop at tree-ssa-loop-im.c:1519 danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-09-01 20:46 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2008-09-02 20:42 ` pinskia at gcc dot gnu dot org
  2008-10-11 15:20 ` danglin at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-02 20:42 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Keywords|                            |build, wrong-code
            Summary|libgcc2.c:806: ICE: vector  |[4.4 Regression]
                   |VEC(me m_ref_p,base) index  |libgcc2.c:806: ICE: vector
                   |domain error, in            |VEC(me m_ref_p,base) index
                   |create_vop_ref_mapping_loop |domain error, in
                   |at tree-ssa-loop-im.c:1519  |create_vop_ref_mapping_loop
                   |                            |at tree-ssa-loop-im.c:1519
   Target Milestone|---                         |4.4.0


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


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

* [Bug tree-optimization/37299] [4.4 Regression] libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index domain error, in create_vop_ref_mapping_loop at tree-ssa-loop-im.c:1519
  2008-08-31 16:33 [Bug tree-optimization/37299] New: libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index domain error, in create_vop_ref_mapping_loop at tree-ssa-loop-im.c:1519 danglin at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-09-02 20:42 ` [Bug tree-optimization/37299] [4.4 Regression] " pinskia at gcc dot gnu dot org
@ 2008-10-11 15:20 ` danglin at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-10-11 15:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from danglin at gcc dot gnu dot org  2008-10-11 15:18 -------


*** This bug has been marked as a duplicate of 37608 ***


-- 

danglin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2008-10-11 15:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-31 16:33 [Bug tree-optimization/37299] New: libgcc2.c:806: ICE: vector VEC(me m_ref_p,base) index domain error, in create_vop_ref_mapping_loop at tree-ssa-loop-im.c:1519 danglin at gcc dot gnu dot org
2008-08-31 17:39 ` [Bug tree-optimization/37299] " rguenth at gcc dot gnu dot org
2008-08-31 19:22 ` danglin at gcc dot gnu dot org
2008-08-31 20:31 ` danglin at gcc dot gnu dot org
2008-09-01 20:46 ` dave at hiauly1 dot hia dot nrc dot ca
2008-09-02 20:42 ` [Bug tree-optimization/37299] [4.4 Regression] " pinskia at gcc dot gnu dot org
2008-10-11 15:20 ` danglin 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).