Override SWITCH_TAKES_ARG() definition from sysv4.h to include
NetBSD options. Allows powerpc-*-netbsd* to accept "-R <arg>" when <arg> doesn't exist in the host environment (as all other NetBSD/ELF platforms do). As with MIPS and as before, accept -G NUM, too. The more portable way to pass arguments to the linker is, of course, still -Wl,-R,/some/path (note that there are two commas).
This commit is contained in:
parent
b4e68c8648
commit
851c74e4ad
16
gnu/dist/gcc/gcc/config/rs6000/netbsd.h
vendored
16
gnu/dist/gcc/gcc/config/rs6000/netbsd.h
vendored
@ -20,6 +20,22 @@ along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* This defines which switch letters take arguments. On NetBSD, most
|
||||
of the normal cases (defined by gcc.c) apply, and we also have -h*
|
||||
and -z* options (for the linker) (coming from SVR4).
|
||||
Copied from ../netbsd-elf.h and re{undef,defined} here to
|
||||
override the powerpc sysv4.h definition.
|
||||
netbsd-elf.h defines the default list + 'h' + 'z' + 'R'.
|
||||
rs6000/sysv4.h defines the default list + 'G'. */
|
||||
|
||||
#undef SWITCH_TAKES_ARG
|
||||
#define SWITCH_TAKES_ARG(CHAR) \
|
||||
(DEFAULT_SWITCH_TAKES_ARG (CHAR) \
|
||||
|| (CHAR) == 'h' \
|
||||
|| (CHAR) == 'z' \
|
||||
|| (CHAR) == 'R' \
|
||||
|| (CHAR) == 'G')
|
||||
|
||||
#undef TARGET_OS_CPP_BUILTINS /* FIXME: sysv4.h should not define this! */
|
||||
#define TARGET_OS_CPP_BUILTINS() \
|
||||
do \
|
||||
|
Loading…
Reference in New Issue
Block a user