public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51532] New: Invalid Code Generated for cpu32.
@ 2011-12-13 19:23 joel at gcc dot gnu.org
  2011-12-13 19:25 ` [Bug c++/51532] " joel at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: joel at gcc dot gnu.org @ 2011-12-13 19:23 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51532
           Summary: Invalid Code Generated for cpu32.
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: joel@gcc.gnu.org


/home2/joel/build/b-m68k-gcc/./gcc/xgcc -shared-libgcc
-B/home2/joel/build/b-m68k-gcc/./gcc -nostdinc++
-L/home2/joel/build/b-m68k-gcc/m68k-rtems4.11/mcpu32/libstdc++-v3/src
-L/home2/joel/build/b-m68k-gcc/m68k-rtems4.11/mcpu32/libstdc++-v3/src/.libs
-nostdinc -B/home2/joel/build/b-m68k-gcc/m68k-rtems4.11/mcpu32/newlib/ -isystem
/home2/joel/build/b-m68k-gcc/m68k-rtems4.11/mcpu32/newlib/targ-include -isystem
/users/joel/test-gcc/gcc-svn/newlib/libc/include
-B/users/joel/test-gcc/install-svn/m68k-rtems4.11/bin/
-B/users/joel/test-gcc/install-svn/m68k-rtems4.11/lib/ -isystem
/users/joel/test-gcc/install-svn/m68k-rtems4.11/include -isystem
/users/joel/test-gcc/install-svn/m68k-rtems4.11/sys-include -mcpu=cpu32
-I/users/joel/test-gcc/gcc-svn/libstdc++-v3/../libgcc
-I/home2/joel/build/b-m68k-gcc/m68k-rtems4.11/mcpu32/libstdc++-v3/include/m68k-rtems4.11
-I/home2/joel/build/b-m68k-gcc/m68k-rtems4.11/mcpu32/libstdc++-v3/include
-I/users/joel/test-gcc/gcc-svn/libstdc++-v3/libsupc++ -fno-implicit-templates
-Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -frandom-seed=eh_tm.lo -g -O2 -mcpu=cpu32
-c /users/joel/test-gcc/gcc-svn/libstdc++-v3/libsupc++/eh_tm.cc -o eh_tm.o
/tmp/ccWdMzkS.s: Assembler messages:
/tmp/ccWdMzkS.s:63: Error: invalid instruction for this architecture; needs
68020 or higher (68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060
[68ec060]) -- statement `cas.l %d0,%d1,-68(%a2)' ignored
/tmp/ccWdMzkS.s:190: Error: invalid instruction for this architecture; needs
68020 or higher (68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060
[68ec060]) -- statement `cas.l %d0,%d1,-68(%a0)' ignored
/tmp/ccWdMzkS.s:296: Error: invalid instruction for this architecture; needs
68020 or higher (68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060
[68ec060]) -- statement `cas.l %d0,%d1,-68(%a0)' ignored
/tmp/ccWdMzkS.s:785: Error: invalid instruction for this architecture; needs
68020 or higher (68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060
[68ec060]) -- statement `cas.l %d1,%d0,-68(%a2)' ignored


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

* [Bug c++/51532] Invalid Code Generated for cpu32.
  2011-12-13 19:23 [Bug c++/51532] New: Invalid Code Generated for cpu32 joel at gcc dot gnu.org
@ 2011-12-13 19:25 ` joel at gcc dot gnu.org
  2011-12-13 19:28 ` joel at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: joel at gcc dot gnu.org @ 2011-12-13 19:25 UTC (permalink / raw)
  To: gcc-bugs

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

Joel Sherrill <joel at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.6.1

--- Comment #1 from Joel Sherrill <joel at gcc dot gnu.org> 2011-12-13 19:23:43 UTC ---
xgcc (GCC) 4.7.0 20111207 (experimental) [trunk revision 182083]

m68k-rtems last completely compiled with this version:

m68k-rtems4.11-g++ (GCC) 4.7.0 20111104 (experimental) [trunk revision 180959]

This is a regression in the past month on the head.


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

* [Bug c++/51532] Invalid Code Generated for cpu32.
  2011-12-13 19:23 [Bug c++/51532] New: Invalid Code Generated for cpu32 joel at gcc dot gnu.org
  2011-12-13 19:25 ` [Bug c++/51532] " joel at gcc dot gnu.org
@ 2011-12-13 19:28 ` joel at gcc dot gnu.org
  2011-12-13 21:11 ` schwab@linux-m68k.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: joel at gcc dot gnu.org @ 2011-12-13 19:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Joel Sherrill <joel at gcc dot gnu.org> 2011-12-13 19:24:37 UTC ---
Created attachment 26073
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26073
Test case


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

* [Bug c++/51532] Invalid Code Generated for cpu32.
  2011-12-13 19:23 [Bug c++/51532] New: Invalid Code Generated for cpu32 joel at gcc dot gnu.org
  2011-12-13 19:25 ` [Bug c++/51532] " joel at gcc dot gnu.org
  2011-12-13 19:28 ` joel at gcc dot gnu.org
@ 2011-12-13 21:11 ` schwab@linux-m68k.org
  2011-12-14 12:12 ` schwab@linux-m68k.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: schwab@linux-m68k.org @ 2011-12-13 21:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> 2011-12-13 20:47:47 UTC ---
The use of cas is currently dependent on TARGET_68020, which is true on cpu32,
but there needs to be a TARGET_CAS flag.


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

* [Bug c++/51532] Invalid Code Generated for cpu32.
  2011-12-13 19:23 [Bug c++/51532] New: Invalid Code Generated for cpu32 joel at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-12-13 21:11 ` schwab@linux-m68k.org
@ 2011-12-14 12:12 ` schwab@linux-m68k.org
  2011-12-14 12:51 ` schwab@linux-m68k.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: schwab@linux-m68k.org @ 2011-12-14 12:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andreas Schwab <schwab@linux-m68k.org> 2011-12-14 12:11:34 UTC ---
Created attachment 26079
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26079
Patch

Please try the attached patch.


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

* [Bug c++/51532] Invalid Code Generated for cpu32.
  2011-12-13 19:23 [Bug c++/51532] New: Invalid Code Generated for cpu32 joel at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-12-14 12:12 ` schwab@linux-m68k.org
@ 2011-12-14 12:51 ` schwab@linux-m68k.org
  2011-12-14 15:45 ` joel at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: schwab@linux-m68k.org @ 2011-12-14 12:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-12-14
     Ever Confirmed|0                           |1


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

* [Bug c++/51532] Invalid Code Generated for cpu32.
  2011-12-13 19:23 [Bug c++/51532] New: Invalid Code Generated for cpu32 joel at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2011-12-14 12:51 ` schwab@linux-m68k.org
@ 2011-12-14 15:45 ` joel at gcc dot gnu.org
  2011-12-19 10:15 ` schwab at gcc dot gnu.org
  2011-12-19 10:21 ` [Bug target/51532] " schwab@linux-m68k.org
  7 siblings, 0 replies; 9+ messages in thread
From: joel at gcc dot gnu.org @ 2011-12-14 15:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Joel Sherrill <joel at gcc dot gnu.org> 2011-12-14 15:38:43 UTC ---
This patch allows m68k-rtems4.11 to complete building the compiler and newlib
with C and C++. 

I haven't tried other languages, built RTEMS itself, or run tests yet. But the
patch looks good to me.


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

* [Bug c++/51532] Invalid Code Generated for cpu32.
  2011-12-13 19:23 [Bug c++/51532] New: Invalid Code Generated for cpu32 joel at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2011-12-14 15:45 ` joel at gcc dot gnu.org
@ 2011-12-19 10:15 ` schwab at gcc dot gnu.org
  2011-12-19 10:21 ` [Bug target/51532] " schwab@linux-m68k.org
  7 siblings, 0 replies; 9+ messages in thread
From: schwab at gcc dot gnu.org @ 2011-12-19 10:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Andreas Schwab <schwab at gcc dot gnu.org> 2011-12-19 10:14:17 UTC ---
Author: schwab
Date: Mon Dec 19 10:14:13 2011
New Revision: 182475

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182475
Log:
PR target/51532
* config/m68k/m68k.h (FL_CAS, TARGET_CAS): Define.
* config/m68k/m68k.c (FL_FOR_isa_20): Add FL_CAS.
* config/m68k/sync.md: Use TARGET_CAS instead of (TARGET_68020 ||
TARGET_68040).

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


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

* [Bug target/51532] Invalid Code Generated for cpu32.
  2011-12-13 19:23 [Bug c++/51532] New: Invalid Code Generated for cpu32 joel at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2011-12-19 10:15 ` schwab at gcc dot gnu.org
@ 2011-12-19 10:21 ` schwab@linux-m68k.org
  7 siblings, 0 replies; 9+ messages in thread
From: schwab@linux-m68k.org @ 2011-12-19 10:21 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|c++                         |target
         Resolution|                            |FIXED

--- Comment #7 from Andreas Schwab <schwab@linux-m68k.org> 2011-12-19 10:15:03 UTC ---
Fixed.


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

end of thread, other threads:[~2011-12-19 10:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-13 19:23 [Bug c++/51532] New: Invalid Code Generated for cpu32 joel at gcc dot gnu.org
2011-12-13 19:25 ` [Bug c++/51532] " joel at gcc dot gnu.org
2011-12-13 19:28 ` joel at gcc dot gnu.org
2011-12-13 21:11 ` schwab@linux-m68k.org
2011-12-14 12:12 ` schwab@linux-m68k.org
2011-12-14 12:51 ` schwab@linux-m68k.org
2011-12-14 15:45 ` joel at gcc dot gnu.org
2011-12-19 10:15 ` schwab at gcc dot gnu.org
2011-12-19 10:21 ` [Bug target/51532] " schwab@linux-m68k.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).