[Bug target/43580] [4.5 Regression] ICE segfault compiling libgcc2.c

2010-03-31 Thread jakub at gcc dot gnu dot org


--- Comment #12 from jakub at gcc dot gnu dot org  2010-03-31 07:45 ---
When it is approved, I will, of course.


-- 


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



[Bug target/43580] [4.5 Regression] ICE segfault compiling libgcc2.c

2010-03-31 Thread jakub at gcc dot gnu dot org


--- Comment #13 from jakub at gcc dot gnu dot org  2010-03-31 08:41 ---
Subject: Bug 43580

Author: jakub
Date: Wed Mar 31 08:41:28 2010
New Revision: 157853

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157853
Log:
PR target/43580
* config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
V2SImode or XFmode on PRE_DEC.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/arm/arm.c


-- 


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



[Bug target/43580] [4.5 Regression] ICE segfault compiling libgcc2.c

2010-03-31 Thread jakub at gcc dot gnu dot org


--- Comment #14 from jakub at gcc dot gnu dot org  2010-03-31 08:51 ---
Should be fixed.


-- 

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=43580



[Bug target/43580] [4.5 Regression] ICE segfault compiling libgcc2.c

2010-03-30 Thread mikpe at it dot uu dot se


--- Comment #3 from mikpe at it dot uu dot se  2010-03-30 09:38 ---
Building gcc-4.5-20100325 as a cross to arm-unknown-eabi works and compiles
__mulsc3 for all three of thumb, arm, and arm + float-abi=hard. But a cross to
arm-unknown-elf fails to build because of an ICE when compiling __mulsc3 for
arm + float-abi=hard:

/tmp/objdir/./gcc/xgcc -B/tmp/objdir/./gcc/ -B/tmp/junk/arm-unknown-elf/bin/
-B/tmp/junk/arm-unknown-elf/lib/ -isystem /tmp/junk/arm-unknown-elf/include
-isystem /tmp/junk/arm-unknown-elf/sys-include-g -O2 -mfloat-abi=hard -O2 
-g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
-isystem ./include  -fno-inline -Wno-missing-prototypes -g  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I. -I. -I../../.././gcc
-I/tmp/gcc-4.5-20100325/libgcc -I/tmp/gcc-4.5-20100325/libgcc/.
-I/tmp/gcc-4.5-20100325/libgcc/../gcc -I/tmp/gcc-4.5-20100325/libgcc/../include
 -DHAVE_CC_TLS -o _mulsc3.o -MT _mulsc3.o -MD -MP -MF _mulsc3.dep -DL_mulsc3 -c
/tmp/gcc-4.5-20100325/libgcc/../gcc/libgcc2.c \

/tmp/gcc-4.5-20100325/libgcc/../gcc/libgcc2.c: In function '__mulsc3':
/tmp/gcc-4.5-20100325/libgcc/../gcc/libgcc2.c:1889:1: internal compiler error:
Segmentation fault


-- 


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



[Bug target/43580] [4.5 Regression] ICE segfault compiling libgcc2.c

2010-03-30 Thread rguenth at gcc dot gnu dot org


--- Comment #4 from rguenth at gcc dot gnu dot org  2010-03-30 13:55 ---
CCing ARM maintainer.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||richard dot earnshaw at arm
   ||dot com


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



[Bug target/43580] [4.5 Regression] ICE segfault compiling libgcc2.c

2010-03-30 Thread mikpe at it dot uu dot se


--- Comment #5 from mikpe at it dot uu dot se  2010-03-30 14:42 ---
It's caused or exposed by r157476:

2010-03-16  Jakub Jelinek  ja...@redhat.com

PR debug/43051
PR debug/43092


-- 


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



[Bug target/43580] [4.5 Regression] ICE segfault compiling libgcc2.c

2010-03-30 Thread mikpe at it dot uu dot se


--- Comment #6 from mikpe at it dot uu dot se  2010-03-30 14:48 ---
(In reply to comment #5)
 It's caused or exposed by r157476:
 
 2010-03-16  Jakub Jelinek  ja...@redhat.com
 
 PR debug/43051
 PR debug/43092

Actually this caused a different ICE earlier in libgcc2.c (__muldi3), but
before this revision it didn't ICE at all.  I'll continue looking.


-- 


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



[Bug target/43580] [4.5 Regression] ICE segfault compiling libgcc2.c

2010-03-30 Thread jakub at gcc dot gnu dot org


--- Comment #7 from jakub at gcc dot gnu dot org  2010-03-30 15:32 ---
Looks like an arm backend bug:
(insn/f 624 6 625 2 /users/joel/test-gcc/gcc-svn/libgcc/../gcc/libgcc2.c:1827
(set (mem:XF (pre_dec:XF (reg/f:SI 13 sp)) [0 S12 A32])
(reg:XF 23 f7)) 390 {*movxf_fpa} (expr_list:REG_DEAD (reg:XF 23 f7)
(nil)))
is certainly not valid RTL.  PRE_DEC must have machine mode for pointers on
the machine in use, XFmode is not such a mode.


-- 

jakub at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||ramana at gcc dot gnu dot
   ||org


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



[Bug target/43580] [4.5 Regression] ICE segfault compiling libgcc2.c

2010-03-30 Thread jakub at gcc dot gnu dot org


--- Comment #8 from jakub at gcc dot gnu dot org  2010-03-30 15:34 ---
Created an attachment (id=20258)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20258action=view)
gcc45-pr43580.patch

Untested fix.  Can somebody please test it?


-- 


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



[Bug target/43580] [4.5 Regression] ICE segfault compiling libgcc2.c

2010-03-30 Thread mikpe at it dot uu dot se


--- Comment #9 from mikpe at it dot uu dot se  2010-03-30 16:04 ---
(In reply to comment #8)
 Created an attachment (id=20258)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20258action=view) [edit]
 gcc45-pr43580.patch
 
 Untested fix.  Can somebody please test it?

Worked for me.  Tested on top of 4.5 r157825 with cross to arm-unknown-elf.


-- 


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



[Bug target/43580] [4.5 Regression] ICE segfault compiling libgcc2.c

2010-03-30 Thread ramana at gcc dot gnu dot org


--- Comment #10 from ramana at gcc dot gnu dot org  2010-03-30 20:09 ---
This would be arm-elf only because arm-eabi configurations don't touch the FPA
which is why this didn't show up earlier. My last trawl of this looked for
PRE_DEC and BLKmode - didn't expect an XFmode for this. 


-- 

ramana at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
 GCC target triplet|arm-rtems4.10   |arm-rtems4.10, arm-elf
   Last reconfirmed|-00-00 00:00:00 |2010-03-30 20:09:51
   date||


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



[Bug target/43580] [4.5 Regression] ICE segfault compiling libgcc2.c

2010-03-30 Thread joel at gcc dot gnu dot org


--- Comment #11 from joel at gcc dot gnu dot org  2010-03-30 23:05 ---
Patch worked for me targeting arm-rtems4.10 on the same gcc checkout.

Please apply it.


-- 


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



[Bug target/43580] [4.5 Regression] ICE segfault compiling libgcc2.c

2010-03-29 Thread pinskia at gcc dot gnu dot org


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

   Keywords||build, ice-on-valid-code
Summary|ICE segfault compiling  |[4.5 Regression] ICE
   |libgcc2.c   |segfault compiling libgcc2.c
   Target Milestone|--- |4.5.0


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



[Bug target/43580] [4.5 Regression] ICE segfault compiling libgcc2.c

2010-03-29 Thread joel at gcc dot gnu dot org


--- Comment #2 from joel at gcc dot gnu dot org  2010-03-29 18:45 ---
Could someone try this with arm-eabi/elf?  That would impact the priority of
this bug.


-- 


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