This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/47500] New: mips-*-rtems*: -G0 option not recognized by gnat1
- From: "joel at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Jan 2011 22:40:05 +0000
- Subject: [Bug ada/47500] New: mips-*-rtems*: -G0 option not recognized by gnat1
- Auto-submitted: auto-generated
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.