From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25259 invoked by alias); 15 Feb 2011 23:20:19 -0000 Received: (qmail 25248 invoked by uid 22791); 15 Feb 2011 23:20:18 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Feb 2011 23:20:12 +0000 From: "joel at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/47761] New: powerpc not supporting -mcpu X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joel at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 15 Feb 2011 23:20:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg01883.txt.bz2 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. :(