public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/49398] New: [4.7 ] bootstrap broken for arm-linux-gnueabi with thumb mode.
@ 2011-06-14  0:23 ramana at gcc dot gnu.org
  2011-06-14  0:24 ` [Bug target/49398] " ramana at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ramana at gcc dot gnu.org @ 2011-06-14  0:23 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.7 ] bootstrap broken for arm-linux-gnueabi with
                    thumb mode.
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ramana@gcc.gnu.org
                CC: rearnsha@arm.com, ramana@gcc.gnu.org,
                    carrot@gcc.gnu.org, michael.hope@linaro.org


Created attachment 24513
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24513
Original test case.

Originally found by Michael Hope's bootstrap builds . 

Rev 174940 appears to break bootstrap for --target=arm-linux-gnueabi
--with-cpu=cortex-a9 --with-fpu=neon --with-float=softfp --with-mode=thumb. 

Bootstrap fails during the build of libiberty - from Michaels' logs here. 

http://builds.linaro.org/toolchain/gcc-4.7~svn174981/logs/armv7l-maverick-cbuild130-ursa4-cortexa9r1/gcc-build.txt


Bisecting using a cross-compiler lead me to this revision.

The cross-compiler was configured as follows : 

/home/ramrad01/sources/fsf/trunk/configure --target=arm-linux-gnueabi
--with-cpu=cortex-a9 --with-fpu=neon --with-float=softfp --enable-languages=c



ramrad01@e102742:/work/cross-build/build-174940/gcc$ !./xgcc
./xgcc -B`pwd` -mthumb -g -O2  ~/Downloads/regex.i  -S
../../../gcc-4.7~/libiberty/regex.c: In function ‘xre_search_2’:
../../../gcc-4.7~/libiberty/regex.c:4961:1: internal compiler error: in
cselib_record_set, at cselib.c:2224
Please submit a full bug report,
with preprocessed source if appropriate.

ramrad01@e102742:/work/cross-build/build-174938/gcc$ !./xgcc
./xgcc -B`pwd` -mthumb -g -O2  ~/Downloads/regex.i  -S

ICE disappears without -g - (So not sure if 174940 is the cause or it just
appears to trigger it) . 


cheers
Ramana


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

* [Bug target/49398] [4.7 ] bootstrap broken for arm-linux-gnueabi with thumb mode.
  2011-06-14  0:23 [Bug target/49398] New: [4.7 ] bootstrap broken for arm-linux-gnueabi with thumb mode ramana at gcc dot gnu.org
@ 2011-06-14  0:24 ` ramana at gcc dot gnu.org
  2011-06-14  0:38 ` ramana at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ramana at gcc dot gnu.org @ 2011-06-14  0:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> 2011-06-14 00:23:33 UTC ---
Created attachment 24514
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24514
Reduced testcase.


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

* [Bug target/49398] [4.7 ] bootstrap broken for arm-linux-gnueabi with thumb mode.
  2011-06-14  0:23 [Bug target/49398] New: [4.7 ] bootstrap broken for arm-linux-gnueabi with thumb mode ramana at gcc dot gnu.org
  2011-06-14  0:24 ` [Bug target/49398] " ramana at gcc dot gnu.org
@ 2011-06-14  0:38 ` ramana at gcc dot gnu.org
  2011-06-14 12:49 ` [Bug target/49398] [4.7 Regression] " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ramana at gcc dot gnu.org @ 2011-06-14  0:38 UTC (permalink / raw)
  To: gcc-bugs

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.06.14 00:37:35
     Ever Confirmed|0                           |1

--- Comment #2 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> 2011-06-14 00:37:35 UTC ---
Hmmm the *ldrd pattern appears to allow this which is just unpredictable
behaviour. 




(insn:TI 42 38 43 2 (parallel [
            (set (reg/v/f:SI 4 r4 [orig:143 regs ] [143])
                (mem/f/c/i:SI (plus:SI (reg/f:SI 26 afp)
                        (const_int 12 [0xc])) [3 regs+0 S4 A32]))
            (set (reg/v:SI 4 r4 [orig:144 stop ] [144])
                (mem/c/i:SI (plus:SI (reg/f:SI 26 afp)
                        (const_int 16 [0x10])) [2 stop+0 S4 A32]))
        ]) ../../../gcc-4.7~/libiberty/regex.c:4959 396 {*ldrd}
     (expr_list:REG_UNUSED (reg/v/f:SI 4 r4 [orig:143 regs ] [143])
        (nil)))

You can't have Rt == Rt2 in Thumb2 - that is just broken behaviour. 


at the very least you need the following patch to get builds going further. 


Index: arm.c
===================================================================
--- arm.c    (revision 174940)
+++ arm.c    (working copy)
@@ -23865,6 +23865,9 @@

   if (TARGET_ARM)
     max_offset = 255;
+  
+  if (regno1 == regno2)
+    return false;

   if (off1 != NULL_RTX)
     offset1 = INTVAL (off1);


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

* [Bug target/49398] [4.7 Regression] bootstrap broken for arm-linux-gnueabi with thumb mode.
  2011-06-14  0:23 [Bug target/49398] New: [4.7 ] bootstrap broken for arm-linux-gnueabi with thumb mode ramana at gcc dot gnu.org
  2011-06-14  0:24 ` [Bug target/49398] " ramana at gcc dot gnu.org
  2011-06-14  0:38 ` ramana at gcc dot gnu.org
@ 2011-06-14 12:49 ` rguenth at gcc dot gnu.org
  2011-06-16 13:51 ` ramana at gcc dot gnu.org
  2011-07-08 11:11 ` ramana at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-14 12:49 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.0
            Summary|[4.7 ] bootstrap broken for |[4.7 Regression] bootstrap
                   |arm-linux-gnueabi with      |broken for
                   |thumb mode.                 |arm-linux-gnueabi with
                   |                            |thumb mode.


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

* [Bug target/49398] [4.7 Regression] bootstrap broken for arm-linux-gnueabi with thumb mode.
  2011-06-14  0:23 [Bug target/49398] New: [4.7 ] bootstrap broken for arm-linux-gnueabi with thumb mode ramana at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-06-14 12:49 ` [Bug target/49398] [4.7 Regression] " rguenth at gcc dot gnu.org
@ 2011-06-16 13:51 ` ramana at gcc dot gnu.org
  2011-07-08 11:11 ` ramana at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ramana at gcc dot gnu.org @ 2011-06-16 13:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> 2011-06-16 13:51:20 UTC ---
Author: ramana
Date: Thu Jun 16 13:51:17 2011
New Revision: 175104

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175104
Log:

Revert r174940

Fix PR target/49398



Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/arm-protos.h
    trunk/gcc/config/arm/arm.c
    trunk/gcc/config/arm/ldmstm.md
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/arm/pr40457-1.c
    trunk/gcc/testsuite/gcc.target/arm/pr40457-2.c
    trunk/gcc/testsuite/gcc.target/arm/pr40457-3.c


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

* [Bug target/49398] [4.7 Regression] bootstrap broken for arm-linux-gnueabi with thumb mode.
  2011-06-14  0:23 [Bug target/49398] New: [4.7 ] bootstrap broken for arm-linux-gnueabi with thumb mode ramana at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-06-16 13:51 ` ramana at gcc dot gnu.org
@ 2011-07-08 11:11 ` ramana at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ramana at gcc dot gnu.org @ 2011-07-08 11:11 UTC (permalink / raw)
  To: gcc-bugs

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

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

--- Comment #4 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> 2011-07-08 11:10:54 UTC ---
This is now fixed.


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

end of thread, other threads:[~2011-07-08 11:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-14  0:23 [Bug target/49398] New: [4.7 ] bootstrap broken for arm-linux-gnueabi with thumb mode ramana at gcc dot gnu.org
2011-06-14  0:24 ` [Bug target/49398] " ramana at gcc dot gnu.org
2011-06-14  0:38 ` ramana at gcc dot gnu.org
2011-06-14 12:49 ` [Bug target/49398] [4.7 Regression] " rguenth at gcc dot gnu.org
2011-06-16 13:51 ` ramana at gcc dot gnu.org
2011-07-08 11:11 ` ramana at gcc dot gnu.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).