public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug regression/32582]  New: Bootstrap with vectorization enabled fails with ICE on PPC
@ 2007-07-02  9:58 victork at il dot ibm dot com
  2007-07-02 10:07 ` [Bug regression/32582] " rakdver at kam dot mff dot cuni dot cz
                   ` (36 more replies)
  0 siblings, 37 replies; 38+ messages in thread
From: victork at il dot ibm dot com @ 2007-07-02  9:58 UTC (permalink / raw)
  To: gcc-bugs

Since revision 124727, mainline doesn't pass bootstrap wirh vectorization
enabled on ppc.  It works OK on x86.  Revision 124727 was committed on
2007-05-15 by Zdenek Dvorak  <dvorakz@suse.cz>.


configured and built with:
  ../gcc/configure --prefix=/home/victork/mainline-vanila/usr.124727 \
      --enable-languages=c
  make bootstrap BOOT_CFLAGS="-g -O2 -ftree-vectorize -maltivec"

The result is:
[...]
/home/victork/mainline-20-06/build.124727/./prev-gcc/xgcc
-B/home/victork/mainline-20-06/build.124727/./prev-gcc/
-B/home/victork/mainline-vanila/usr.124727/powerpc64-unknown-linux-gnu/bin/ -c 
 -g -O2 -ftree-vectorize -maltivec -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition
-Wmissing-format-attribute -Werror -fno-common   -DHAVE_CONFIG_H -I. -I.
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber   
../../gcc/gcc/regclass.c -o regclass.o
../../gcc/gcc/regclass.c: In function 'init_regs':
../../gcc/gcc/regclass.c:579: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [regclass.o] Error 1
make[3]: Leaving directory `/home/victork/mainline-20-06/build.124727/gcc'
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory `/home/victork/mainline-20-06/build.124727'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/home/victork/mainline-20-06/build.124727'
make: *** [bootstrap] Error 2

The failure is in the following command:
/home/victork/mainline-20-06/build.124727/./prev-gcc/cc1 -quiet -v -I. -I.
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -iprefix
/home/victork/mainline-20-06/build.124727/prev-gcc/../lib/gcc/powerpc64-unknown-linux-gnu/4.3.0/
-isystem /home/victork/mainline-20-06/build.124727/./prev-gcc/include -isystem
/home/victork/mainline-20-06/build.124727/./prev-gcc/include-fixed -D__unix__
-D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=linux
-Asystem=unix -Asystem=posix -DIN_GCC -DHAVE_CONFIG_H ../../gcc/gcc/regclass.c
-quiet -dumpbase regclass.c -maltivec -auxbase-strip regclass.o -g -O2 -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wmissing-format-attribute -Werror -version -fno-common
-o /tmp/ccQwGuJU.s

and it works OK if "-ftree-vectorize" is omitted.


I can add full make log if it is needed.
-- Victor


-- 
           Summary: Bootstrap with vectorization enabled fails with ICE on
                    PPC
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: regression
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: victork at il dot ibm dot com
 GCC build triplet: powerpc64-unknown-linux-gnu
  GCC host triplet: powerpc64-unknown-linux-gnu
GCC target triplet: powerpc64-unknown-linux-gnu


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
@ 2007-07-02 10:07 ` rakdver at kam dot mff dot cuni dot cz
  2007-07-02 11:47 ` victork at il dot ibm dot com
                   ` (35 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rakdver at kam dot mff dot cuni dot cz @ 2007-07-02 10:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rakdver at kam dot mff dot cuni dot cz  2007-07-02 10:06 -------
Subject: Re:   New: Bootstrap with vectorization enabled fails with ICE on PPC

> Since revision 124727, mainline doesn't pass bootstrap wirh vectorization
> enabled on ppc.  It works OK on x86.  Revision 124727 was committed on
> 2007-05-15 by Zdenek Dvorak  <dvorakz@suse.cz>.
> ../../gcc/gcc/regclass.c: In function 'init_regs':
> ../../gcc/gcc/regclass.c:579: internal compiler error: Segmentation fault

Does the fix for PR 32230 fix this?


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
  2007-07-02 10:07 ` [Bug regression/32582] " rakdver at kam dot mff dot cuni dot cz
@ 2007-07-02 11:47 ` victork at il dot ibm dot com
  2007-07-02 11:51 ` rakdver at gcc dot gnu dot org
                   ` (34 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: victork at il dot ibm dot com @ 2007-07-02 11:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from victork at il dot ibm dot com  2007-07-02 11:47 -------
Subject: Re:  Bootstrap with vectorization enabled fails with
 ICE on PPC

"rakdver at kam dot mff dot cuni dot cz" <gcc-bugzilla@gcc.gnu.org> wrote
on 02.07.2007 13:06:50:

>
> Does the fix for PR 32230 fix this?
>

Patch for PR 32230 did not help, it fails in the same fasion.


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
  2007-07-02 10:07 ` [Bug regression/32582] " rakdver at kam dot mff dot cuni dot cz
  2007-07-02 11:47 ` victork at il dot ibm dot com
@ 2007-07-02 11:51 ` rakdver at gcc dot gnu dot org
  2007-07-02 12:12 ` victork at il dot ibm dot com
                   ` (33 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2007-07-02 11:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rakdver at gcc dot gnu dot org  2007-07-02 11:51 -------
OK, I will have a look.  Could you please provide a preprocessed source for the
testcase, I need to use a crosscompiler to reproduce it?


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (2 preceding siblings ...)
  2007-07-02 11:51 ` rakdver at gcc dot gnu dot org
@ 2007-07-02 12:12 ` victork at il dot ibm dot com
  2007-07-02 15:27 ` rakdver at kam dot mff dot cuni dot cz
                   ` (32 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: victork at il dot ibm dot com @ 2007-07-02 12:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from victork at il dot ibm dot com  2007-07-02 12:12 -------
Subject: Re:  Bootstrap with vectorization enabled fails with
 ICE on PPC



"rakdver at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> wrote on
02.07.2007 14:51:35:

> OK, I will have a look.
thanks!

>  Could you please provide a preprocessed
> source for the
> testcase, I need to use a crosscompiler to reproduce it?

I'm using a native compiler and I'm not sure how easy it will be to
reproduce the
failure, as it happens during stage3 build using the compier from stage2
when
on "regclass.c" source. regclass.c passes the compilation when cc1 from
stage1 is used.

I've tried to get a backtrace using gdb, but I'm getting the following
error
from gdb:
(gdb) b main
Breakpoint 1 at 0x1009eac0: file ../../gcc/gcc/main.c, line 35.
(gdb) run
Starting program: /home/victork/mainline-20-06/build.124727/prev-gcc/cc1
-quiet -v -I. -I. -I../../gcc/gcc -I../../gcc/gcc/.
-I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd
-I../libdecnumber -iprefix
/home/victork/mainline-20-06/build.124727/prev-gcc/../lib/gcc/powerpc64-unknown-linux-gnu/4.3.0
/ -isystem /home/victork/mainline-20-06/build.124727/./prev-gcc/include
-isystem /home/victork/mainline-20-06/build.124727/./prev-gcc/include-fixed
-D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux
-Asystem=linux -Asystem=unix -Asystem=posix -DIN_GCC -DHAVE_CONFIG_H
../../gcc/gcc/regclass.c -quiet -dumpbase regclass.c -maltivec
-auxbase-strip regclass.o -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition
-Wmissing-format-attribute -Werror -version -ftree-vectorize -fno-common -o
x.s
Warning:
Cannot insert breakpoint -1.
Error accessing memory address 0x6a600000d692: Input/output error.

(gdb)

-- Victor


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (3 preceding siblings ...)
  2007-07-02 12:12 ` victork at il dot ibm dot com
@ 2007-07-02 15:27 ` rakdver at kam dot mff dot cuni dot cz
  2007-07-26 12:09 ` rakdver at gcc dot gnu dot org
                   ` (31 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rakdver at kam dot mff dot cuni dot cz @ 2007-07-02 15:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rakdver at kam dot mff dot cuni dot cz  2007-07-02 15:27 -------
Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC

> "rakdver at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> wrote on
> 02.07.2007 14:51:35:
> 
> > OK, I will have a look.
> thanks!
> 
> >  Could you please provide a preprocessed
> > source for the
> > testcase, I need to use a crosscompiler to reproduce it?
> 
> I'm using a native compiler and I'm not sure how easy it will be to
> reproduce the
> failure, as it happens during stage3 build using the compier from stage2
> when
> on "regclass.c" source. regclass.c passes the compilation when cc1 from
> stage1 is used.

With the same flags?  Strange.  Anyway, send me the preprocessed
source (possibly just to the mail), I will have a look.


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (4 preceding siblings ...)
  2007-07-02 15:27 ` rakdver at kam dot mff dot cuni dot cz
@ 2007-07-26 12:09 ` rakdver at gcc dot gnu dot org
  2007-07-26 12:53 ` dje at gcc dot gnu dot org
                   ` (30 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2007-07-26 12:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rakdver at gcc dot gnu dot org  2007-07-26 12:09 -------
rs6000_conditional_register_usage ();
memset (&reg_class_size, 0, 84);

gets compiled to

vxor    v0,v0,v0
...
bl      0x104f0c68 <rs6000_conditional_register_usage>
...
stvx    v0,r0,r9
addi    r9,r11,32
stw     r0,80(r11)
stvx    v0,r0,r11
addi    r11,r11,48
stvx    v0,r0,r27
stvx    v0,r0,r9
stvx    v0,r0,r11

The value of v0 gets changed inside rs6000_conditional_register_usage (some
loop gets vectorized there and v0 is used), so we are not setting
reg_class_size to zero, but to some random value.

I am not familiar with ppc abi -- is v0 call clobbered?


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (5 preceding siblings ...)
  2007-07-26 12:09 ` rakdver at gcc dot gnu dot org
@ 2007-07-26 12:53 ` dje at gcc dot gnu dot org
  2007-07-28 19:20 ` dorit at gcc dot gnu dot org
                   ` (29 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: dje at gcc dot gnu dot org @ 2007-07-26 12:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from dje at gcc dot gnu dot org  2007-07-26 12:53 -------
v0 (and v10 are scratch registers and not saved.


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (6 preceding siblings ...)
  2007-07-26 12:53 ` dje at gcc dot gnu dot org
@ 2007-07-28 19:20 ` dorit at gcc dot gnu dot org
  2007-07-28 19:27 ` rakdver at kam dot mff dot cuni dot cz
                   ` (28 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: dorit at gcc dot gnu dot org @ 2007-07-28 19:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from dorit at gcc dot gnu dot org  2007-07-28 19:20 -------
> v0 (and v10 are scratch registers and not saved.

so does it look like a register allocation bug then? 


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (7 preceding siblings ...)
  2007-07-28 19:20 ` dorit at gcc dot gnu dot org
@ 2007-07-28 19:27 ` rakdver at kam dot mff dot cuni dot cz
  2007-07-28 19:40 ` dje at watson dot ibm dot com
                   ` (27 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rakdver at kam dot mff dot cuni dot cz @ 2007-07-28 19:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from rakdver at kam dot mff dot cuni dot cz  2007-07-28 19:27 -------
Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC

> > v0 (and v10 are scratch registers and not saved.
> 
> so does it look like a register allocation bug then? 

not really; it seems like a md problem (the registers v0-v19
are not marked as call clobbered); the patch below should
fix the problem.

Index: testsuite/gcc.dg/pr32582.c
===================================================================
*** testsuite/gcc.dg/pr32582.c  (revision 0)
--- testsuite/gcc.dg/pr32582.c  (revision 0)
***************
*** 0 ****
--- 1,32 ----
+ /* { dg-do run { target { powerpc*-*-* && powerpc_altivec_ok } } } */
+ /* { dg-options "-O2 -ftree-vectorize -maltivec" } */
+ 
+ #include <stdlib.h>
+ #include <string.h>
+ 
+ char a[64];
+ 
+ void set (void)
+ {
+   int i;
+ 
+   for (i = 0; i < 64; i++)
+     a[i] = 'x';
+ }
+ 
+ void check (void)
+ {
+   int i;
+ 
+   for (i = 0; i < 64; i++)
+     if (a[i] != 0)
+       abort ();
+ }
+ 
+ int main (void)
+ {
+   set ();
+   memset (a, 0, sizeof a);
+   check ();
+   return 0;
+ }
Index: config/rs6000/rs6000.h
===================================================================
*** config/rs6000/rs6000.h      (revision 126932)
--- config/rs6000/rs6000.h      (working copy)
*************** extern enum rs6000_nop_insertion rs6000_
*** 699,706 ****
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
     1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1,        \
     /* AltiVec registers.  */                     \
!    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
!    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
     1, 1                                                  \
     , 1, 1, 1                                       \
  }
--- 699,706 ----
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
     1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1,        \
     /* AltiVec registers.  */                     \
!    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \
!    1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
     1, 1                                                  \
     , 1, 1, 1                                       \
  }
*************** extern enum rs6000_nop_insertion rs6000_
*** 718,725 ****
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
     1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1,        \
     /* AltiVec registers.  */                     \
!    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
!    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
     0, 0                                                  \
     , 0, 0, 0                                       \
  }
--- 718,725 ----
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
     1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1,        \
     /* AltiVec registers.  */                     \
!    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \
!    1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
     0, 0                                                  \
     , 0, 0, 0                                       \
  }


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (8 preceding siblings ...)
  2007-07-28 19:27 ` rakdver at kam dot mff dot cuni dot cz
@ 2007-07-28 19:40 ` dje at watson dot ibm dot com
  2007-07-28 19:45 ` pinskia at gcc dot gnu dot org
                   ` (26 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: dje at watson dot ibm dot com @ 2007-07-28 19:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from dje at watson dot ibm dot com  2007-07-28 19:40 -------
Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC 

        Should this test be using -mabi=altivec or is there a general
assumption of -mabi=altivec when using autovec?  That conditionally sets
the call clobbered registers correctly.  I don't think the MD should
change for -maltivec.

David


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (9 preceding siblings ...)
  2007-07-28 19:40 ` dje at watson dot ibm dot com
@ 2007-07-28 19:45 ` pinskia at gcc dot gnu dot org
  2007-07-28 19:48 ` dje at watson dot ibm dot com
                   ` (25 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-07-28 19:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pinskia at gcc dot gnu dot org  2007-07-28 19:45 -------
This code in  rs6000_conditional_register_usage should have done the same thing
as the patch posted:
  if (TARGET_ALTIVEC_ABI)
    for (i = FIRST_ALTIVEC_REGNO; i < FIRST_ALTIVEC_REGNO + 20; ++i)
      call_used_regs[i] = call_really_used_regs[i] = 1;


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (10 preceding siblings ...)
  2007-07-28 19:45 ` pinskia at gcc dot gnu dot org
@ 2007-07-28 19:48 ` dje at watson dot ibm dot com
  2007-07-28 19:49 ` pinskia at gcc dot gnu dot org
                   ` (24 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: dje at watson dot ibm dot com @ 2007-07-28 19:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from dje at watson dot ibm dot com  2007-07-28 19:48 -------
Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC 

        And we default to ALTIVEC ABI for powerpc-linux:

  /* Set Altivec ABI as default for powerpc64 linux.  */
  if (TARGET_ELF && TARGET_64BIT)
    {
      rs6000_altivec_abi = 1;
      TARGET_ALTIVEC_VRSAVE = 1;
    }

So something else is wrong.

David


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (11 preceding siblings ...)
  2007-07-28 19:48 ` dje at watson dot ibm dot com
@ 2007-07-28 19:49 ` pinskia at gcc dot gnu dot org
  2007-07-28 21:12 ` rakdver at kam dot mff dot cuni dot cz
                   ` (23 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-07-28 19:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from pinskia at gcc dot gnu dot org  2007-07-28 19:49 -------
What happens if you add -mabi=altivec to the command line, does it work then? 
If not, then that loop I pointed out is being miscompiled :).


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (12 preceding siblings ...)
  2007-07-28 19:49 ` pinskia at gcc dot gnu dot org
@ 2007-07-28 21:12 ` rakdver at kam dot mff dot cuni dot cz
  2007-07-28 21:48 ` dje at watson dot ibm dot com
                   ` (22 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rakdver at kam dot mff dot cuni dot cz @ 2007-07-28 21:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from rakdver at kam dot mff dot cuni dot cz  2007-07-28 21:11 -------
Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC

> What happens if you add -mabi=altivec to the command line, does it work then? 
> If not, then that loop I pointed out is being miscompiled :).

that seems unlikely (I will check on Monday, I do not have access to a
ppc machine till then).  Probably the problem is that -maltivec does not
imply -mabi=altivec, or some similar omission.


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (13 preceding siblings ...)
  2007-07-28 21:12 ` rakdver at kam dot mff dot cuni dot cz
@ 2007-07-28 21:48 ` dje at watson dot ibm dot com
  2007-07-29  6:33 ` rakdver at kam dot mff dot cuni dot cz
                   ` (21 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: dje at watson dot ibm dot com @ 2007-07-28 21:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from dje at watson dot ibm dot com  2007-07-28 21:48 -------
Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC 

>>>>> rakdver at kam dot mff dot cuni dot cz writes:

rakdver> Probably the problem is that -maltivec does not
rakdver> imply -mabi=altivec, or some similar omission.

        -maltivec does not imply -mabi=altivec, which is intended.

        The Bugzilla PR says the target is powerpc64-linux, which
implicitly should enable -mabi=altivec.  If this is some other target,
then the BOOT_CFLAGS should include -mabi=altivec.  Either something is
wrong with GCC enabling ALTIVEC_ABI or this is cockpit error in the
options used to bootstrap GCC that has been hidden until now.

David


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (14 preceding siblings ...)
  2007-07-28 21:48 ` dje at watson dot ibm dot com
@ 2007-07-29  6:33 ` rakdver at kam dot mff dot cuni dot cz
  2007-07-29  7:16 ` rakdver at kam dot mff dot cuni dot cz
                   ` (20 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rakdver at kam dot mff dot cuni dot cz @ 2007-07-29  6:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from rakdver at kam dot mff dot cuni dot cz  2007-07-29 06:33 -------
Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC

> >>>>> rakdver at kam dot mff dot cuni dot cz writes:
> 
> rakdver> Probably the problem is that -maltivec does not
> rakdver> imply -mabi=altivec, or some similar omission.
> 
>         -maltivec does not imply -mabi=altivec, which is intended.
> 
>         The Bugzilla PR says the target is powerpc64-linux, which
> implicitly should enable -mabi=altivec.  If this is some other target,
> then the BOOT_CFLAGS should include -mabi=altivec.

it's on ppc-linux.  Nevertheless, it is suspicious that we allow a
fairly natural combination of flags (-O2 -maltivec -ftree-vectorize)
to cause misscompilation.


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (15 preceding siblings ...)
  2007-07-29  6:33 ` rakdver at kam dot mff dot cuni dot cz
@ 2007-07-29  7:16 ` rakdver at kam dot mff dot cuni dot cz
  2007-07-29 11:57 ` dje at watson dot ibm dot com
                   ` (19 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rakdver at kam dot mff dot cuni dot cz @ 2007-07-29  7:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from rakdver at kam dot mff dot cuni dot cz  2007-07-29 07:16 -------
Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC

> > rakdver> Probably the problem is that -maltivec does not
> > rakdver> imply -mabi=altivec, or some similar omission.
> > 
> >         -maltivec does not imply -mabi=altivec, which is intended.
> > 
> >         The Bugzilla PR says the target is powerpc64-linux, which
> > implicitly should enable -mabi=altivec.  If this is some other target,
> > then the BOOT_CFLAGS should include -mabi=altivec.
> 
> it's on ppc-linux.

I mean, I did the testing on ppc-linux; it is possible that there is
another misscompilation on ppc64-linux, though.


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (16 preceding siblings ...)
  2007-07-29  7:16 ` rakdver at kam dot mff dot cuni dot cz
@ 2007-07-29 11:57 ` dje at watson dot ibm dot com
  2007-07-30 11:09 ` victork at il dot ibm dot com
                   ` (18 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: dje at watson dot ibm dot com @ 2007-07-29 11:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #18 from dje at watson dot ibm dot com  2007-07-29 11:57 -------
Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC 

>>>>> rakdver at kam dot mff dot cuni dot cz writes:

>> it's on ppc-linux.

rakdver> I mean, I did the testing on ppc-linux; it is possible that there is
rakdver> another misscompilation on ppc64-linux, though.

        The target in the PR says powerpc64-linux, which is what confused
Andrew and me.

        There is a valid mode of Altivec programming using builtins and
asms that does not require the Altivec ABI.  That is what -maltivec
supports.

        I suspect that -ftree-vectorize should enable -mabi=altivec by
default on PowerPC.

David


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (17 preceding siblings ...)
  2007-07-29 11:57 ` dje at watson dot ibm dot com
@ 2007-07-30 11:09 ` victork at il dot ibm dot com
  2007-07-30 11:56 ` rakdver at kam dot mff dot cuni dot cz
                   ` (17 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: victork at il dot ibm dot com @ 2007-07-30 11:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #19 from victork at il dot ibm dot com  2007-07-30 11:08 -------
I've tried to bootstrap with "-mabi=altivec", but it failed with the same
error:

/home/victork/mainline-20-06/build.124727mabi/./prev-gcc/xgcc
-B/home/victork/mainline-20-06/build.124727mabi/./prev-gcc/
-B/home/victork/mainline/usr.124727mabi/powerpc64-unknown-linux-gnu/bin/ -c  
-g -O2 -ftree-vectorize -maltivec -mabi=altivec -DIN_GCC   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wmissing-format-attribute -Werror -fno-common  
-DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/.
-I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd
-I../libdecnumber    ../../gcc/gcc/regmove.c -o regmove.o
../../gcc/gcc/regclass.c: In function 'init_regs':
../../gcc/gcc/regclass.c:579: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [regclass.o] Error 1
make[3]: *** Waiting for unfinished jobs....
rm fsf-funding.pod gcov.pod gfdl.pod gpl.pod cpp.pod gfortran.pod gcc.pod
make[3]: Leaving directory `/home/victork/mainline-20-06/build.124727mabi/gcc'
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory `/home/victork/mainline-20-06/build.124727mabi'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/home/victork/mainline-20-06/build.124727mabi'
make: *** [bootstrap] Error 2


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (18 preceding siblings ...)
  2007-07-30 11:09 ` victork at il dot ibm dot com
@ 2007-07-30 11:56 ` rakdver at kam dot mff dot cuni dot cz
  2007-07-31 11:57 ` victork at il dot ibm dot com
                   ` (16 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rakdver at kam dot mff dot cuni dot cz @ 2007-07-30 11:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #20 from rakdver at kam dot mff dot cuni dot cz  2007-07-30 11:56 -------
Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC

> I've tried to bootstrap with "-mabi=altivec", but it failed with the same
> error:

yes, the problem on ppc64 must be something different


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (19 preceding siblings ...)
  2007-07-30 11:56 ` rakdver at kam dot mff dot cuni dot cz
@ 2007-07-31 11:57 ` victork at il dot ibm dot com
  2007-08-01  9:21 ` victork at il dot ibm dot com
                   ` (15 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: victork at il dot ibm dot com @ 2007-07-31 11:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #21 from victork at il dot ibm dot com  2007-07-31 11:57 -------
Just to be sure that the problem on ppc64 is not related to a problem with
passing -mabi during bootstrap I've tried to build with the patch from
http://gcc.gnu.org/ml/gcc-patches/2007-07/msg02159.html
but it didn't help and bootstrap still fails in the same manner.


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (20 preceding siblings ...)
  2007-07-31 11:57 ` victork at il dot ibm dot com
@ 2007-08-01  9:21 ` victork at il dot ibm dot com
  2007-08-01  9:56 ` rakdver at kam dot mff dot cuni dot cz
                   ` (14 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: victork at il dot ibm dot com @ 2007-08-01  9:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #22 from victork at il dot ibm dot com  2007-08-01 09:21 -------
Zdenek, do you have the access to a ppc64 machine to work on the bootstrap
problem?  Can I provide an useful assistance?

-- Victor


-- 

victork at il dot ibm dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |victork at il dot ibm dot
                   |                            |com


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (21 preceding siblings ...)
  2007-08-01  9:21 ` victork at il dot ibm dot com
@ 2007-08-01  9:56 ` rakdver at kam dot mff dot cuni dot cz
  2007-08-01 10:09 ` dorit at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rakdver at kam dot mff dot cuni dot cz @ 2007-08-01  9:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #23 from rakdver at kam dot mff dot cuni dot cz  2007-08-01 09:55 -------
Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC

> Zdenek, do you have the access to a ppc64 machine to work on the bootstrap
> problem?

I do; however, I got stuck with another bootstrap problem at the moment
(vectorization changes alignment of variables, which causes a
misscompilation of crtend.o on my machine; once I fix that, I should
hopefully be able to reproduce the problem described in this PR.


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (22 preceding siblings ...)
  2007-08-01  9:56 ` rakdver at kam dot mff dot cuni dot cz
@ 2007-08-01 10:09 ` dorit at gcc dot gnu dot org
  2007-08-13  6:43 ` victork at il dot ibm dot com
                   ` (12 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: dorit at gcc dot gnu dot org @ 2007-08-01 10:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #24 from dorit at gcc dot gnu dot org  2007-08-01 10:08 -------
> I do; however, I got stuck with another bootstrap problem at the moment
> (vectorization changes alignment of variables, which causes a
> misscompilation of crtend.o on my machine; 

I wonder if this is related to PR32893?


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (23 preceding siblings ...)
  2007-08-01 10:09 ` dorit at gcc dot gnu dot org
@ 2007-08-13  6:43 ` victork at il dot ibm dot com
  2007-08-13 11:32 ` rakdver at kam dot mff dot cuni dot cz
                   ` (11 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: victork at il dot ibm dot com @ 2007-08-13  6:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #25 from victork at il dot ibm dot com  2007-08-13 06:42 -------
Yesterday, I've tried to check if mainline passes boostrap with vectorization
enabled on ppc32 using latest mainline.  Since I don't have the access to ppc32
machine, I've tried to imitate in on ppc64 using the following config:

../gcc/configure --build=powerpc-suse-linux --with-cpu=default32
--prefix=/home/victork/mainline/usr.trunk.127373
--enable-languages=c,c++,fortran

Unfortuantely, this bootstrap failed as shown below:

.....
/home/victork/mainline/build.trunk.127373/./gcc/xgcc
-B/home/victork/mainline/build.trunk.127373/./gcc/
-B/home/victork/mainline/usr.trunk.127373/powerpc-suse-linux/bin/
-B/home/victork/mainline/usr.trunk.127373/powerpc-suse-linux/lib/ -isystem
/home/victork/mainline/usr.trunk.127373/powerpc-suse-linux/include -isystem
/home/victork/mainline/usr.trunk.127373/powerpc-suse-linux/sys-include -g -O2
-ftree-vectorize -maltivec -msoft-float -fPIC -mstrict-align -O2  -O2 -g -O2 
-DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -mlong-double-128 -I. -I.
-I../../.././gcc -I../../../../gcc/libgcc -I../../../../gcc/libgcc/.
-I../../../../gcc/libgcc/../gcc -I../../../../gcc/libgcc/../include
-I../../../../gcc/libgcc/../libdecnumber/dpd
-I../../../../gcc/libgcc/../libdecnumber -I../../../libdecnumber -DHAVE_CC_TLS
-o _ashldi3.o -MT _ashldi3.o -MD -MP -MF _ashldi3.dep -DL_ashldi3 -c
../../../../gcc/libgcc/../gcc/libgcc2.c \
          -fvisibility=hidden -DHIDE_EXPORTS
../../../../gcc/libgcc/../gcc/libgcc2.c: In function '__negdi2':
../../../../gcc/libgcc/../gcc/libgcc2.c:80: internal compiler error: in
push_reload, at reload.c:1288
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[5]: *** [_negdi2.o] Error 1
make[5]: *** Waiting for unfinished jobs....


Zdenek, David, did you try to test bootstrap with vectoriaztion enabled
recently? Can you give me an access to ppc32 to try my hand at it?


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (24 preceding siblings ...)
  2007-08-13  6:43 ` victork at il dot ibm dot com
@ 2007-08-13 11:32 ` rakdver at kam dot mff dot cuni dot cz
  2007-08-13 15:09 ` victork at il dot ibm dot com
                   ` (10 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rakdver at kam dot mff dot cuni dot cz @ 2007-08-13 11:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #26 from rakdver at kam dot mff dot cuni dot cz  2007-08-13 11:31 -------
Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC

> Yesterday, I've tried to check if mainline passes boostrap with vectorization
> enabled on ppc32 using latest mainline.  Since I don't have the access to ppc32
> machine, I've tried to imitate in on ppc64 using the following config:
> 
> ../gcc/configure --build=powerpc-suse-linux --with-cpu=default32
> --prefix=/home/victork/mainline/usr.trunk.127373
> --enable-languages=c,c++,fortran
> 
> Unfortuantely, this bootstrap failed as shown below:
> 
> .....
> /home/victork/mainline/build.trunk.127373/./gcc/xgcc
> -B/home/victork/mainline/build.trunk.127373/./gcc/
> -B/home/victork/mainline/usr.trunk.127373/powerpc-suse-linux/bin/
> -B/home/victork/mainline/usr.trunk.127373/powerpc-suse-linux/lib/ -isystem
> /home/victork/mainline/usr.trunk.127373/powerpc-suse-linux/include -isystem
> /home/victork/mainline/usr.trunk.127373/powerpc-suse-linux/sys-include -g -O2
> -ftree-vectorize -maltivec -msoft-float -fPIC -mstrict-align -O2  -O2 -g -O2 
> -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT
> -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -mlong-double-128 -I. -I.
> -I../../.././gcc -I../../../../gcc/libgcc -I../../../../gcc/libgcc/.
> -I../../../../gcc/libgcc/../gcc -I../../../../gcc/libgcc/../include
> -I../../../../gcc/libgcc/../libdecnumber/dpd
> -I../../../../gcc/libgcc/../libdecnumber -I../../../libdecnumber -DHAVE_CC_TLS
> -o _ashldi3.o -MT _ashldi3.o -MD -MP -MF _ashldi3.dep -DL_ashldi3 -c
> ../../../../gcc/libgcc/../gcc/libgcc2.c \
>           -fvisibility=hidden -DHIDE_EXPORTS
> ../../../../gcc/libgcc/../gcc/libgcc2.c: In function '__negdi2':
> ../../../../gcc/libgcc/../gcc/libgcc2.c:80: internal compiler error: in
> push_reload, at reload.c:1288
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> make[5]: *** [_negdi2.o] Error 1
> make[5]: *** Waiting for unfinished jobs....
> 
> 
> Zdenek, David, did you try to test bootstrap with vectoriaztion enabled
> recently?

this is the problem we discussed in this thread before; for now, add
-mabi=altivec to BOOT_CFLAGS to workaround it.


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (25 preceding siblings ...)
  2007-08-13 11:32 ` rakdver at kam dot mff dot cuni dot cz
@ 2007-08-13 15:09 ` victork at il dot ibm dot com
  2007-08-13 15:18 ` dje at watson dot ibm dot com
                   ` (9 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: victork at il dot ibm dot com @ 2007-08-13 15:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #27 from victork at il dot ibm dot com  2007-08-13 15:09 -------
> this is the problem we discussed in this thread before; for now, add
> -mabi=altivec to BOOT_CFLAGS to workaround it.

yes, this helped. Still I see a failure in cofigure before stage3 starts:
checking for powerpc-suse-linux-gcc... 
/home/victork/mainline/build.trunk.127373/./prev-gcc/xgcc
-B/home/victork/mainline/build.trunk.127373/./prev-gcc/
-B/home/victork/mainline/usr.trunk.127373/powerpc-suse-linux/bin/
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C
compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

Seemingly, the compiler created by stage 2 is unusable.  I'm not sure if it was
originally a good idea to try to bootstrap ppc32 compiler on ppc64 machine.  Do
you think it is feasible? What should be configuration and bootstrap make
flags?


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (26 preceding siblings ...)
  2007-08-13 15:09 ` victork at il dot ibm dot com
@ 2007-08-13 15:18 ` dje at watson dot ibm dot com
  2007-08-13 18:05 ` rakdver at kam dot mff dot cuni dot cz
                   ` (8 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: dje at watson dot ibm dot com @ 2007-08-13 15:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #28 from dje at watson dot ibm dot com  2007-08-13 15:17 -------
Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC 

        Most everyone else bootstraps GCC on PPC64 with
--with-cpu=default32.  Are you missing some packages on SUSE?  This really
isn't a GCC bug any more, it is some problem with the way that you are
configuring and building GCC on your system.


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (27 preceding siblings ...)
  2007-08-13 15:18 ` dje at watson dot ibm dot com
@ 2007-08-13 18:05 ` rakdver at kam dot mff dot cuni dot cz
  2007-08-13 18:07 ` rakdver at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rakdver at kam dot mff dot cuni dot cz @ 2007-08-13 18:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #29 from rakdver at kam dot mff dot cuni dot cz  2007-08-13 18:04 -------
Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC

> ------- Comment #27 from victork at il dot ibm dot com  2007-08-13 15:09 -------
> > this is the problem we discussed in this thread before; for now, add
> > -mabi=altivec to BOOT_CFLAGS to workaround it.
> 
> yes, this helped. Still I see a failure in cofigure before stage3 starts:
> checking for powerpc-suse-linux-gcc... 
> /home/victork/mainline/build.trunk.127373/./prev-gcc/xgcc
> -B/home/victork/mainline/build.trunk.127373/./prev-gcc/
> -B/home/victork/mainline/usr.trunk.127373/powerpc-suse-linux/bin/
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... configure: error: cannot run C
> compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details.
> 
> Seemingly, the compiler created by stage 2 is unusable.

this is a misscompilation of crtbegin.o that I have been investigating
as well.  The reason seems to be that with -ftree-vectorize, we
change alignment of __CTOR_LIST__ and __DTOR_LIST__, although why
exactly this causes problems I did not find out yet.


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (28 preceding siblings ...)
  2007-08-13 18:05 ` rakdver at kam dot mff dot cuni dot cz
@ 2007-08-13 18:07 ` rakdver at gcc dot gnu dot org
  2007-08-14  5:53 ` victork at il dot ibm dot com
                   ` (6 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2007-08-13 18:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #30 from rakdver at gcc dot gnu dot org  2007-08-13 18:06 -------
(In reply to comment #28)
> Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC 
> 
>         Most everyone else bootstraps GCC on PPC64 with
> --with-cpu=default32.  Are you missing some packages on SUSE?  This really
> isn't a GCC bug any more, it is some problem with the way that you are
> configuring and building GCC on your system.

This is a GCC bug. The reason why it was not noticed before is that nobody
bootstraps with vectorization enabled.


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (29 preceding siblings ...)
  2007-08-13 18:07 ` rakdver at gcc dot gnu dot org
@ 2007-08-14  5:53 ` victork at il dot ibm dot com
  2007-10-09  6:55 ` victork at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: victork at il dot ibm dot com @ 2007-08-14  5:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #31 from victork at il dot ibm dot com  2007-08-14 05:53 -------
>         Most everyone else bootstraps GCC on PPC64 with
> --with-cpu=default32.  Are you missing some packages on SUSE?  This really
> isn't a GCC bug any more, it is some problem with the way that you are
> configuring and building GCC on your system.

I think that my system is OK, since I am able to bootstrap with
--with-cpu=default32 without vectorization.

> this is a misscompilation of crtbegin.o that I have been investigating
> as well.  The reason seems to be that with -ftree-vectorize, we
> change alignment of __CTOR_LIST__ and __DTOR_LIST__, although why
> exactly this causes problems I did not find out yet.

Maybe it is somehow related to PR32893 ?


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (30 preceding siblings ...)
  2007-08-14  5:53 ` victork at il dot ibm dot com
@ 2007-10-09  6:55 ` victork at gcc dot gnu dot org
  2007-10-09 12:48 ` rakdver at kam dot mff dot cuni dot cz
                   ` (4 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: victork at gcc dot gnu dot org @ 2007-10-09  6:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #32 from victork at gcc dot gnu dot org  2007-10-09 06:55 -------
Zdenek, do you need an access to PPC, in order to look into this?


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (31 preceding siblings ...)
  2007-10-09  6:55 ` victork at gcc dot gnu dot org
@ 2007-10-09 12:48 ` rakdver at kam dot mff dot cuni dot cz
  2007-10-13 20:40 ` rakdver at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rakdver at kam dot mff dot cuni dot cz @ 2007-10-09 12:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #33 from rakdver at kam dot mff dot cuni dot cz  2007-10-09 12:48 -------
Subject: Re:  Bootstrap with vectorization enabled fails with ICE on PPC

> Zdenek, do you need an access to PPC, in order to look into this?

I was finally able to get access to the machine I left back at home;
I will have a look at the problem sometime this week.


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (32 preceding siblings ...)
  2007-10-09 12:48 ` rakdver at kam dot mff dot cuni dot cz
@ 2007-10-13 20:40 ` rakdver at gcc dot gnu dot org
  2007-10-15  5:52 ` dorit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2007-10-13 20:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #34 from rakdver at gcc dot gnu dot org  2007-10-13 20:40 -------
Does this still reproduce for you?  After workarounding the crtstuff.c
misscompilation as described in
http://gcc.gnu.org/ml/gcc-patches/2007-10/msg00743.html, bootstrap with
BOOT_CFLAGS="-O2 -ftree-vectorize -maltivec" passes for me on ppc64-linux.


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (33 preceding siblings ...)
  2007-10-13 20:40 ` rakdver at gcc dot gnu dot org
@ 2007-10-15  5:52 ` dorit at gcc dot gnu dot org
  2007-11-13 13:53 ` victork at gcc dot gnu dot org
  2007-11-14 12:22 ` victork at gcc dot gnu dot org
  36 siblings, 0 replies; 38+ messages in thread
From: dorit at gcc dot gnu dot org @ 2007-10-15  5:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #35 from dorit at gcc dot gnu dot org  2007-10-15 05:52 -------
bootstrap with vectorization enabled with your patch applied passes for me on
ppc64-linux. thanks!!


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (34 preceding siblings ...)
  2007-10-15  5:52 ` dorit at gcc dot gnu dot org
@ 2007-11-13 13:53 ` victork at gcc dot gnu dot org
  2007-11-14 12:22 ` victork at gcc dot gnu dot org
  36 siblings, 0 replies; 38+ messages in thread
From: victork at gcc dot gnu dot org @ 2007-11-13 13:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #36 from victork at gcc dot gnu dot org  2007-11-13 13:53 -------
Subject: Bug 32582

Author: victork
Date: Tue Nov 13 13:53:33 2007
New Revision: 130138

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130138
Log:
2007-11-13  Victor Kaplansky  <victork@il.ibm.com>

        PR tree-optimization/32582
        * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-tree-vectorize



Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/Makefile.in


-- 


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


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

* [Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC
  2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
                   ` (35 preceding siblings ...)
  2007-11-13 13:53 ` victork at gcc dot gnu dot org
@ 2007-11-14 12:22 ` victork at gcc dot gnu dot org
  36 siblings, 0 replies; 38+ messages in thread
From: victork at gcc dot gnu dot org @ 2007-11-14 12:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #37 from victork at gcc dot gnu dot org  2007-11-14 12:22 -------
Fixed in revision 130138.


-- 

victork at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-11-14 12:22 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-02  9:58 [Bug regression/32582] New: Bootstrap with vectorization enabled fails with ICE on PPC victork at il dot ibm dot com
2007-07-02 10:07 ` [Bug regression/32582] " rakdver at kam dot mff dot cuni dot cz
2007-07-02 11:47 ` victork at il dot ibm dot com
2007-07-02 11:51 ` rakdver at gcc dot gnu dot org
2007-07-02 12:12 ` victork at il dot ibm dot com
2007-07-02 15:27 ` rakdver at kam dot mff dot cuni dot cz
2007-07-26 12:09 ` rakdver at gcc dot gnu dot org
2007-07-26 12:53 ` dje at gcc dot gnu dot org
2007-07-28 19:20 ` dorit at gcc dot gnu dot org
2007-07-28 19:27 ` rakdver at kam dot mff dot cuni dot cz
2007-07-28 19:40 ` dje at watson dot ibm dot com
2007-07-28 19:45 ` pinskia at gcc dot gnu dot org
2007-07-28 19:48 ` dje at watson dot ibm dot com
2007-07-28 19:49 ` pinskia at gcc dot gnu dot org
2007-07-28 21:12 ` rakdver at kam dot mff dot cuni dot cz
2007-07-28 21:48 ` dje at watson dot ibm dot com
2007-07-29  6:33 ` rakdver at kam dot mff dot cuni dot cz
2007-07-29  7:16 ` rakdver at kam dot mff dot cuni dot cz
2007-07-29 11:57 ` dje at watson dot ibm dot com
2007-07-30 11:09 ` victork at il dot ibm dot com
2007-07-30 11:56 ` rakdver at kam dot mff dot cuni dot cz
2007-07-31 11:57 ` victork at il dot ibm dot com
2007-08-01  9:21 ` victork at il dot ibm dot com
2007-08-01  9:56 ` rakdver at kam dot mff dot cuni dot cz
2007-08-01 10:09 ` dorit at gcc dot gnu dot org
2007-08-13  6:43 ` victork at il dot ibm dot com
2007-08-13 11:32 ` rakdver at kam dot mff dot cuni dot cz
2007-08-13 15:09 ` victork at il dot ibm dot com
2007-08-13 15:18 ` dje at watson dot ibm dot com
2007-08-13 18:05 ` rakdver at kam dot mff dot cuni dot cz
2007-08-13 18:07 ` rakdver at gcc dot gnu dot org
2007-08-14  5:53 ` victork at il dot ibm dot com
2007-10-09  6:55 ` victork at gcc dot gnu dot org
2007-10-09 12:48 ` rakdver at kam dot mff dot cuni dot cz
2007-10-13 20:40 ` rakdver at gcc dot gnu dot org
2007-10-15  5:52 ` dorit at gcc dot gnu dot org
2007-11-13 13:53 ` victork at gcc dot gnu dot org
2007-11-14 12:22 ` victork 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).