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: unassig...@gcc.gnu.org
        ReportedBy: j...@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. :(

Reply via email to