public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/47500] New: mips-*-rtems*: -G0 option not recognized by gnat1
@ 2011-01-27 22:53 joel at gcc dot gnu.org
  2011-01-28  9:26 ` [Bug ada/47500] " ebotcazou at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: joel at gcc dot gnu.org @ 2011-01-27 22:53 UTC (permalink / raw)
  To: gcc-bugs

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.


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

end of thread, other threads:[~2014-11-22 11:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-27 22:53 [Bug ada/47500] New: mips-*-rtems*: -G0 option not recognized by gnat1 joel at gcc dot gnu.org
2011-01-28  9:26 ` [Bug ada/47500] " ebotcazou at gcc dot gnu.org
2011-01-28 18:08 ` joel at gcc dot gnu.org
2011-01-28 20:58 ` pinskia at gcc dot gnu.org
2011-01-28 22:46 ` joel at gcc dot gnu.org
2011-01-30 23:41 ` ebotcazou at gcc dot gnu.org
2011-09-05 19:45 ` [Bug target/47500] " linux at schildmann dot info
2014-11-06 23:11 ` ebotcazou at gcc dot gnu.org
2014-11-20 11:56 ` charlet at gcc dot gnu.org
2014-11-20 11:57 ` charlet at gcc dot gnu.org
2014-11-22 11:29 ` ebotcazou at gcc dot gnu.org
2014-11-22 11:30 ` ebotcazou at gcc dot gnu.org
2014-11-22 11:30 ` ebotcazou 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).