public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/47761] New: powerpc not supporting -mcpu
@ 2011-02-15 23:20 joel at gcc dot gnu.org
  2011-02-16  0:39 ` [Bug ada/47761] " schwab@linux-m68k.org
  2011-11-10 22:24 ` joel at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: joel at gcc dot gnu.org @ 2011-02-15 23:20 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: powerpc not supporting -mcpu
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: joel@gcc.gnu.org


PowerPC cc1 supports -mcpu.  gnat1 reports:

gcc -c -I../../../../../../../rtems/c/src/ada-tests/samples/hello/
-I../../../../../psim/lib/include/adainclude
-I../../../../../psim/psim/lib/include/adainclude
-I../../../../../../../rtems/c/src/ada-tests/support -mcpu=603e -Dppc603e -O2
-g -fno-keep-inline-functions -Wall -Wimplicit-function-declaration
-Wstrict-prototypes -Wnested-externs -B../../../../../psim/lib/ -specs
bsp_specs -qrtems -I-
../../../../../../../rtems/c/src/ada-tests/samples/hello/hello.adb
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
gnat1: warning: command line option "-Wimplicit-function-declaration" is valid
for C/ObjC but not for Ada
gnat1: warning: command line option "-Wnested-externs" is valid for C/ObjC but
not for Ada
gnat1: error: unrecognized command line option "-mcpu=603e"

If you try to follow those recommendations, you end up not making cc1 happy.

[joel@rtbf64a test-gcc]$ powerpc-rtems4.11-gcc -march=603e m.c -c
cc1: error: unrecognized command line option "-march=603e"
[joel@rtbf64a test-gcc]$ powerpc-rtems4.11-gcc -mtune=603e m.c -c
[joel@rtbf64a test-gcc]$ powerpc-rtems4.11-gcc -mcpu=603e m.c -c

I can't find a way to specify 603e which makes Ada and cc1 happy. :(


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

* [Bug ada/47761] powerpc not supporting -mcpu
  2011-02-15 23:20 [Bug ada/47761] New: powerpc not supporting -mcpu joel at gcc dot gnu.org
@ 2011-02-16  0:39 ` schwab@linux-m68k.org
  2011-11-10 22:24 ` joel at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: schwab@linux-m68k.org @ 2011-02-16  0:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> 2011-02-16 00:23:29 UTC ---
Your PowerPC compiler is called powerpc-rtems4.11-gcc, not gcc.


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

* [Bug ada/47761] powerpc not supporting -mcpu
  2011-02-15 23:20 [Bug ada/47761] New: powerpc not supporting -mcpu joel at gcc dot gnu.org
  2011-02-16  0:39 ` [Bug ada/47761] " schwab@linux-m68k.org
@ 2011-11-10 22:24 ` joel at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: joel at gcc dot gnu.org @ 2011-11-10 22:24 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Joel Sherrill <joel at gcc dot gnu.org> 2011-11-10 21:21:36 UTC ---
Looks like Andreas corrected me.


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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-15 23:20 [Bug ada/47761] New: powerpc not supporting -mcpu joel at gcc dot gnu.org
2011-02-16  0:39 ` [Bug ada/47761] " schwab@linux-m68k.org
2011-11-10 22:24 ` joel 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).