From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29878 invoked by alias); 27 Jan 2011 22:40:11 -0000 Received: (qmail 29868 invoked by uid 22791); 27 Jan 2011 22:40:10 -0000 X-SWARE-Spam-Status: No, hits=-2.9 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; Thu, 27 Jan 2011 22:40:06 +0000 From: "joel at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/47500] New: mips-*-rtems*: -G0 option not recognized by gnat1 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: Thu, 27 Jan 2011 22:53: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-01/txt/msg03051.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47500 Summary: mips-*-rtems*: -G0 option not recognized by gnat1 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassigned@gcc.gnu.org ReportedBy: joel@gcc.gnu.org The checking for arguments passed to gnat1 does not allow for -Gn which is used on at least the mips. $ mips-rtems4.11-gcc -c -march=r3900 -G0 -fstack-check -O -O2 -I/users/joel/test-gcc/gcc-svn/gcc/testsuite/ada/acats/work-jmr3904/support a22006b.adb Usage: gnat1 switches sfile sfile Source file name .................. $ mips-rtems4.11-gcc -c -march=r3900 -fstack-check -O -O2 -I/users/joel/test-gcc/gcc-svn/gcc/testsuite/ada/acats/work-jmr3904/support a22006b.adb This switch is meaningful on at least the MIPS and PowerPC. `-G NUM' On embedded PowerPC systems, put global and static items less than or equal to NUM bytes into the small data or bss sections instead of the normal data or bss section. By default, NUM is 8. The `-G NUM' switch is also passed to the linker. All modules should be compiled with the same `-G NUM' value. I thought that adding 'G' to the list around line 204 of switch-m.adb would have addressed it but I must not be looking in the right place. Hints or tiny patch appreciated.