public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52481] New: m68k-*: internal compiler error: in extract_insn, at recog.c:2123
@ 2012-03-04 17:22 ralf_corsepius at rtems dot org
  2012-03-04 19:25 ` [Bug target/52481] " schwab@linux-m68k.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: ralf_corsepius at rtems dot org @ 2012-03-04 17:22 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52481
           Summary: m68k-*: internal compiler error: in extract_insn, at
                    recog.c:2123
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ralf_corsepius@rtems.org
            Target: m68k-rtems*


Bootstrapping gcc-4.7.0-RC-20120302 for m68k-rtems* fails with this error:
...
libtool: compile: 
/builddir/build/BUILD/rtems-4.11-m68k-rtems4.11-gcc-4.7.0/build/./gcc/xgcc
-shared-libgcc
-B/builddir/build/BUILD/rtems-4.11-m68k-rtems4.11-gcc-4.7.0/build/./gcc
-nostdinc++
-L/builddir/build/BUILD/rtems-4.11-m68k-rtems4.11-gcc-4.7.0/build/m68k-rtems4.11/m5206/libstdc++-v3/src
-L/builddir/build/BUILD/rtems-4.11-m68k-rtems4.11-gcc-4.7.0/build/m68k-rtems4.11/m5206/libstdc++-v3/src/.libs
-nostdinc
-B/builddir/build/BUILD/rtems-4.11-m68k-rtems4.11-gcc-4.7.0/build/m68k-rtems4.11/m5206/newlib/
-isystem
/builddir/build/BUILD/rtems-4.11-m68k-rtems4.11-gcc-4.7.0/build/m68k-rtems4.11/m5206/newlib/targ-include
-isystem
/builddir/build/BUILD/rtems-4.11-m68k-rtems4.11-gcc-4.7.0/gcc-4.7.0-RC-20120302/newlib/libc/include
-B/opt/rtems-4.11/m68k-rtems4.11/bin/ -B/opt/rtems-4.11/m68k-rtems4.11/lib/
-isystem /opt/rtems-4.11/m68k-rtems4.11/include -isystem
/opt/rtems-4.11/m68k-rtems4.11/sys-include -mcpu=5206
-I/builddir/build/BUILD/rtems-4.11-m68k-rtems4.11-gcc-4.7.0/gcc-4.7.0-RC-20120302/libstdc++-v3/../libgcc
-I/builddir/build/BUILD/rtems-4.11-m68k-rtems4.11-gcc-4.7.0/build/m68k-rtems4.11/m5206/libstdc++-v3/include/m68k-rtems4.11
-I/builddir/build/BUILD/rtems-4.11-m68k-rtems4.11-gcc-4.7.0/build/m68k-rtems4.11/m5206/libstdc++-v3/include
-I/builddir/build/BUILD/rtems-4.11-m68k-rtems4.11-gcc-4.7.0/gcc-4.7.0-RC-20120302/libstdc++-v3/libsupc++
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-frandom-seed=compatibility-atomic-c++0x.lo -std=gnu++11 -g -O2 -mcpu=5206 -c
../../../../../../gcc-4.7.0-RC-20120302/libstdc++-v3/src/c++11/compatibility-atomic-c++0x.cc
-o compatibility-atomic-c++0x.o
../../../../../../gcc-4.7.0-RC-20120302/libstdc++-v3/src/c++11/compatibility-atomic-c++0x.cc:
In function 'bool
std::atomic_flag_test_and_set_explicit(std::__atomic_flag_base*,
std::memory_order)':
../../../../../../gcc-4.7.0-RC-20120302/libstdc++-v3/src/c++11/compatibility-atomic-c++0x.cc:100:3:
error: unrecognizable insn:
(insn 11 10 12 3 (set (reg:QI 33 [ D.31990 ])
        (neg:QI (reg:QI 33 [ D.31990 ])))
/builddir/build/BUILD/rtems-4.11-m68k-rtems4.11-gcc-4.7.0/build/m68k-rtems4.11/m5206/libstdc++-v3/include/bits/atomic_base.h:259
-1
     (nil))
../../../../../../gcc-4.7.0-RC-20120302/libstdc++-v3/src/c++11/compatibility-atomic-c++0x.cc:100:3:
internal compiler error: in extract_insn, at recog.c:2123
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[9]: *** [compatibility-atomic-c++0x.lo] Error 1
make[9]: *** Waiting for unfinished jobs....
make[9]: Leaving directory
`/builddir/build/BUILD/rtems-4.11-m68k-rtems4.11-gcc-4.7.0/build/m68k-rtems4.11/m5206/libstdc++-v3/src/c++11'

Configuration:
CC='gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic'
../gcc-4.7.0-RC-20120302/configure --prefix=/opt/rtems-4.11
--bindir=/opt/rtems-4.11/bin --exec_prefix=/opt/rtems-4.11
--includedir=/opt/rtems-4.11/include 
--libdir=/opt/rtems-4.11/lib --libexecdir=/opt/rtems-4.11/libexec
--mandir=/opt/rtems-4.11/share/man --infodir=/opt/rtems-4.11/share/info
--datadir=/opt/rtems-4.11/share --build=x86_64-unknown-linux-gnu
--host=x86_64-unknown-linux-gnu --target=m68k-rtems4.11 --disable-libstdcxx-pch
--with-gnu-as --with-gnu-ld --verbose --with-newlib --with-system-zlib
--disable-nls --without-included-gettext --disable-win32-registry
--enable-version-specific-runtime-libs --enable-threads --disable-lto
--disable-plugin --enable-newlib-io-c99-formats --enable-newlib-iconv
--enable-languages=c,c++


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

* [Bug target/52481] m68k-*: internal compiler error: in extract_insn, at recog.c:2123
  2012-03-04 17:22 [Bug c++/52481] New: m68k-*: internal compiler error: in extract_insn, at recog.c:2123 ralf_corsepius at rtems dot org
@ 2012-03-04 19:25 ` schwab@linux-m68k.org
  2012-03-04 21:02 ` mikpe at it dot uu.se
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: schwab@linux-m68k.org @ 2012-03-04 19:25 UTC (permalink / raw)
  To: gcc-bugs

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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|m68k-rtems*                 |m68k-*-*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-03-04
                 CC|                            |rth at gcc dot gnu.org
          Component|c++                         |target
     Ever Confirmed|0                           |1


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

* [Bug target/52481] m68k-*: internal compiler error: in extract_insn, at recog.c:2123
  2012-03-04 17:22 [Bug c++/52481] New: m68k-*: internal compiler error: in extract_insn, at recog.c:2123 ralf_corsepius at rtems dot org
  2012-03-04 19:25 ` [Bug target/52481] " schwab@linux-m68k.org
@ 2012-03-04 21:02 ` mikpe at it dot uu.se
  2012-03-05 16:28 ` rth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mikpe at it dot uu.se @ 2012-03-04 21:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2012-03-04 21:01:28 UTC ---
Created attachment 26827
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26827
reduced test case in C

Depends on target CPU selection.  -mcpu=680[012346]0 and -mcpu=cpu32 all work,
but -mcpu=5206 (or apparently any other coldfire) ICEs.


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

* [Bug target/52481] m68k-*: internal compiler error: in extract_insn, at recog.c:2123
  2012-03-04 17:22 [Bug c++/52481] New: m68k-*: internal compiler error: in extract_insn, at recog.c:2123 ralf_corsepius at rtems dot org
  2012-03-04 19:25 ` [Bug target/52481] " schwab@linux-m68k.org
  2012-03-04 21:02 ` mikpe at it dot uu.se
@ 2012-03-05 16:28 ` rth at gcc dot gnu.org
  2012-03-05 18:38 ` rth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rth at gcc dot gnu.org @ 2012-03-05 16:28 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Henderson <rth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |rth at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #2 from Richard Henderson <rth at gcc dot gnu.org> 2012-03-05 16:27:47 UTC ---
Mine.


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

* [Bug target/52481] m68k-*: internal compiler error: in extract_insn, at recog.c:2123
  2012-03-04 17:22 [Bug c++/52481] New: m68k-*: internal compiler error: in extract_insn, at recog.c:2123 ralf_corsepius at rtems dot org
                   ` (2 preceding siblings ...)
  2012-03-05 16:28 ` rth at gcc dot gnu.org
@ 2012-03-05 18:38 ` rth at gcc dot gnu.org
  2012-03-05 18:42 ` rth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rth at gcc dot gnu.org @ 2012-03-05 18:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Richard Henderson <rth at gcc dot gnu.org> 2012-03-05 18:37:29 UTC ---
Author: rth
Date: Mon Mar  5 18:37:19 2012
New Revision: 184948

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184948
Log:
PR target/52481
    * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
    instead of calling negqi2 directly.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/m68k/sync.md


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

* [Bug target/52481] m68k-*: internal compiler error: in extract_insn, at recog.c:2123
  2012-03-04 17:22 [Bug c++/52481] New: m68k-*: internal compiler error: in extract_insn, at recog.c:2123 ralf_corsepius at rtems dot org
                   ` (3 preceding siblings ...)
  2012-03-05 18:38 ` rth at gcc dot gnu.org
@ 2012-03-05 18:42 ` rth at gcc dot gnu.org
  2012-03-05 18:46 ` rth at gcc dot gnu.org
  2012-03-05 18:58 ` rth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rth at gcc dot gnu.org @ 2012-03-05 18:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Richard Henderson <rth at gcc dot gnu.org> 2012-03-05 18:42:08 UTC ---
Author: rth
Date: Mon Mar  5 18:41:56 2012
New Revision: 184950

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184950
Log:
PR target/52481
    * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
    instead of calling negqi2 directly.

Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/config/m68k/sync.md


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

* [Bug target/52481] m68k-*: internal compiler error: in extract_insn, at recog.c:2123
  2012-03-04 17:22 [Bug c++/52481] New: m68k-*: internal compiler error: in extract_insn, at recog.c:2123 ralf_corsepius at rtems dot org
                   ` (4 preceding siblings ...)
  2012-03-05 18:42 ` rth at gcc dot gnu.org
@ 2012-03-05 18:46 ` rth at gcc dot gnu.org
  2012-03-05 18:58 ` rth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rth at gcc dot gnu.org @ 2012-03-05 18:46 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Henderson <rth at gcc dot gnu.org> changed:

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

--- Comment #5 from Richard Henderson <rth at gcc dot gnu.org> 2012-03-05 18:45:29 UTC ---
Fixed.


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

* [Bug target/52481] m68k-*: internal compiler error: in extract_insn, at recog.c:2123
  2012-03-04 17:22 [Bug c++/52481] New: m68k-*: internal compiler error: in extract_insn, at recog.c:2123 ralf_corsepius at rtems dot org
                   ` (5 preceding siblings ...)
  2012-03-05 18:46 ` rth at gcc dot gnu.org
@ 2012-03-05 18:58 ` rth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rth at gcc dot gnu.org @ 2012-03-05 18:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Richard Henderson <rth at gcc dot gnu.org> 2012-03-05 18:57:40 UTC ---
Author: rth
Date: Mon Mar  5 18:57:36 2012
New Revision: 184952

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184952
Log:
PR target/52481
    * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
    instead of calling negqi2 directly.

Modified:
    trunk/gcc/ChangeLog


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

end of thread, other threads:[~2012-03-05 18:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-04 17:22 [Bug c++/52481] New: m68k-*: internal compiler error: in extract_insn, at recog.c:2123 ralf_corsepius at rtems dot org
2012-03-04 19:25 ` [Bug target/52481] " schwab@linux-m68k.org
2012-03-04 21:02 ` mikpe at it dot uu.se
2012-03-05 16:28 ` rth at gcc dot gnu.org
2012-03-05 18:38 ` rth at gcc dot gnu.org
2012-03-05 18:42 ` rth at gcc dot gnu.org
2012-03-05 18:46 ` rth at gcc dot gnu.org
2012-03-05 18:58 ` rth 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).