public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/56916] New: ICE when building libgfortran for arm-none-eabi
@ 2013-04-11  8:57 ktkachov at gcc dot gnu.org
  2013-04-11  9:01 ` [Bug middle-end/56916] " ktkachov at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2013-04-11  8:57 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56916
           Summary: ICE when building libgfortran for arm-none-eabi
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ktkachov@gcc.gnu.org
                CC: rguenther@suse.de
            Target: arm-none-eabi


With r197671 gcc ICEs while building libgfortran

$SOURCE/gcc/libgfortran/generated/matmul_i8.c: In function 'matmul_i8':
$SOURCE/gcc/libgfortran/generated/matmul_i8.c:374:1: internal compiler error:
Segmentation fault
 }
 ^
0x8f1a85 crash_signal
0x8a1c88 rtx_cost(rtx_def*, rtx_code, int, bool)
    $SOURCE/gcc/gcc/rtlanal.c:3805
0xd4220d set_src_cost
    $SOURCE/gcc/gcc/rtl.h:1368
0xd4220d doloop_optimize
    $SOURCE/gcc/gcc/loop-doloop.c:662
0xd4220d doloop_optimize_loops()
    $SOURCE/gcc/gcc/loop-doloop.c:764
0x7e3b37 rtl_doloop
    $SOURCE/gcc/gcc/loop-init.c:543
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Weirdly, when I execute the ICEing command on itself it ICEs, but when I add
-save-temps it doesn't and the resulting .i file compiles without error

$SOURCE/build/obj/gcc2/./gcc/xgcc -B$SOURCE/build/obj/gcc2/./gcc/
-B$SOURCE/build/install/arm-none-eabi/bin/
-B$SOURCE/build/install/arm-none-eabi/lib/ -isystem
$SOURCE/build/install/arm-none-eabi/include -isystem
$SOURCE/build/install/arm-none-eabi/sys-include -DHAVE_CONFIG_H -I.
-I$SOURCE/gcc/libgfortran -iquote$SOURCE/gcc/libgfortran/io
-I$SOURCE/gcc/libgfortran/../gcc -I$SOURCE/gcc/libgfortran/../gcc/config
-I../.././gcc -I$SOURCE/gcc/libgfortran/../libgcc -I../libgcc -std=gnu99 -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra
-Wwrite-strings -fcx-fortran-rules -ffunction-sections -fdata-sections
-ftree-vectorize -funroll-loops -O2 -g -MT matmul_i8.lo -MD -MP -MF
.deps/matmul_i8.Tpo -c $SOURCE/gcc/libgfortran/generated/matmul_i8.c -o
matmul_i8.o


Cross compiler configuration:
--with-fpu=neon-vfpv4 --with-float=hard --with-arch=armv7-a
--with-language=c,c++,fortran


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

* [Bug middle-end/56916] ICE when building libgfortran for arm-none-eabi
  2013-04-11  8:57 [Bug middle-end/56916] New: ICE when building libgfortran for arm-none-eabi ktkachov at gcc dot gnu.org
@ 2013-04-11  9:01 ` ktkachov at gcc dot gnu.org
  2013-04-11 11:35 ` ktkachov at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2013-04-11  9:01 UTC (permalink / raw)
  To: gcc-bugs


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

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.9.0
      Known to fail|                            |4.9.0


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

* [Bug middle-end/56916] ICE when building libgfortran for arm-none-eabi
  2013-04-11  8:57 [Bug middle-end/56916] New: ICE when building libgfortran for arm-none-eabi ktkachov at gcc dot gnu.org
  2013-04-11  9:01 ` [Bug middle-end/56916] " ktkachov at gcc dot gnu.org
@ 2013-04-11 11:35 ` ktkachov at gcc dot gnu.org
  2013-04-11 15:53 ` ramana at gcc dot gnu.org
  2013-04-14 23:54 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2013-04-11 11:35 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from ktkachov at gcc dot gnu.org 2013-04-11 11:34:56 UTC ---
Created attachment 29856
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29856
Reduced testcase

ICEs with:
-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules
-ffunction-sections -fdata-sections -ftree-vectorize -funroll-loops -O2 -g

This is as much as I could reduce the testcase


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

* [Bug middle-end/56916] ICE when building libgfortran for arm-none-eabi
  2013-04-11  8:57 [Bug middle-end/56916] New: ICE when building libgfortran for arm-none-eabi ktkachov at gcc dot gnu.org
  2013-04-11  9:01 ` [Bug middle-end/56916] " ktkachov at gcc dot gnu.org
  2013-04-11 11:35 ` ktkachov at gcc dot gnu.org
@ 2013-04-11 15:53 ` ramana at gcc dot gnu.org
  2013-04-14 23:54 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ramana at gcc dot gnu.org @ 2013-04-11 15:53 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Target|arm-none-eabi               |arm-none-eabi,
                   |                            |arm-none-linux-gnueabihf
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-04-11
                 CC|                            |ramana at gcc dot gnu.org
     Ever Confirmed|0                           |1


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

* [Bug middle-end/56916] ICE when building libgfortran for arm-none-eabi
  2013-04-11  8:57 [Bug middle-end/56916] New: ICE when building libgfortran for arm-none-eabi ktkachov at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2013-04-11 15:53 ` ramana at gcc dot gnu.org
@ 2013-04-14 23:54 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-04-14 23:54 UTC (permalink / raw)
  To: gcc-bugs


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-04-14 23:54:11 UTC ---
Dup of bug 56921 really.

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


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

end of thread, other threads:[~2013-04-14 23:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-11  8:57 [Bug middle-end/56916] New: ICE when building libgfortran for arm-none-eabi ktkachov at gcc dot gnu.org
2013-04-11  9:01 ` [Bug middle-end/56916] " ktkachov at gcc dot gnu.org
2013-04-11 11:35 ` ktkachov at gcc dot gnu.org
2013-04-11 15:53 ` ramana at gcc dot gnu.org
2013-04-14 23:54 ` pinskia 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).