1995-02-23 03:32:41 +01:00
|
|
|
/* Operating system specific defines to be used when targeting GCC for some
|
|
|
|
generic System V Release 4 system.
|
2000-02-26 21:24:45 +01:00
|
|
|
Copyright (C) 1991, 1994, 1995, 1996, 1997, 1998, 1999,
|
config.gcc (i[34567]86-*-gnu*, [...]): Delete superflous ${cpu_type} setting.
2001-10-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
cris-*-none, cris-*-linux*: Update ${tmfile} list.
(c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
v850-*-*): Delete superflous ${cpu_type} setting.
* config/linux.h: Delete svr4.h include.
(SET_ASM_OP): Delete.
* config/netware.h (INT_ASM_OP): Undef before define.
* config/ptx4.h: Delete elfos.h include.
(PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
* config/svr4.h: Delete elfos.h include. Update commentary.
* config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
config/mn10200/mn10300.h, config/stormy16/stormy16.h,
config/v850/v850.h: Delete svr4.h include.
* config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
config/m68k/m68kv4.h, config/m88k/sysv4.h,
config/sparc/sysv4.h: Update includes.
* config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
config/m88k/dguxbcs.h: Delete includes.
* config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
(PREFERRED_DEBUGGING_TYPE): Undef before defining it.
* config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
it.
* config/m88k/dgux.h: Delete include.
(SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Undef before
defining it.
* config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
* config/sh/elf.h: Update include.
(SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
From-SVN: r46366
2001-10-20 00:27:41 +02:00
|
|
|
2000, 2001 Free Software Foundation, Inc.
|
1996-09-21 13:05:59 +02:00
|
|
|
Contributed by Ron Guilmette (rfg@monkeys.com).
|
1992-02-01 07:00:10 +01:00
|
|
|
|
2003-06-16 13:34:38 +02:00
|
|
|
This file is part of GCC.
|
1992-02-01 07:00:10 +01:00
|
|
|
|
2003-06-16 13:34:38 +02:00
|
|
|
GCC is free software; you can redistribute it and/or modify
|
1992-02-01 07:00:10 +01:00
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
any later version.
|
|
|
|
|
2003-06-16 13:34:38 +02:00
|
|
|
GCC is distributed in the hope that it will be useful,
|
1992-02-01 07:00:10 +01:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2003-06-16 13:34:38 +02:00
|
|
|
along with GCC; see the file COPYING. If not, write to
|
1995-06-15 14:55:05 +02:00
|
|
|
the Free Software Foundation, 59 Temple Place - Suite 330,
|
|
|
|
Boston, MA 02111-1307, USA.
|
1992-02-01 07:00:10 +01:00
|
|
|
|
config.gcc (i[34567]86-*-gnu*, [...]): Delete superflous ${cpu_type} setting.
2001-10-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
cris-*-none, cris-*-linux*: Update ${tmfile} list.
(c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
v850-*-*): Delete superflous ${cpu_type} setting.
* config/linux.h: Delete svr4.h include.
(SET_ASM_OP): Delete.
* config/netware.h (INT_ASM_OP): Undef before define.
* config/ptx4.h: Delete elfos.h include.
(PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
* config/svr4.h: Delete elfos.h include. Update commentary.
* config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
config/mn10200/mn10300.h, config/stormy16/stormy16.h,
config/v850/v850.h: Delete svr4.h include.
* config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
config/m68k/m68kv4.h, config/m88k/sysv4.h,
config/sparc/sysv4.h: Update includes.
* config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
config/m88k/dguxbcs.h: Delete includes.
* config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
(PREFERRED_DEBUGGING_TYPE): Undef before defining it.
* config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
it.
* config/m88k/dgux.h: Delete include.
(SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Undef before
defining it.
* config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
* config/sh/elf.h: Update include.
(SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
From-SVN: r46366
2001-10-20 00:27:41 +02:00
|
|
|
To use this file, make up a line like that in config.gcc:
|
1992-02-01 07:00:10 +01:00
|
|
|
|
config.gcc (i[34567]86-*-gnu*, [...]): Delete superflous ${cpu_type} setting.
2001-10-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
cris-*-none, cris-*-linux*: Update ${tmfile} list.
(c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
v850-*-*): Delete superflous ${cpu_type} setting.
* config/linux.h: Delete svr4.h include.
(SET_ASM_OP): Delete.
* config/netware.h (INT_ASM_OP): Undef before define.
* config/ptx4.h: Delete elfos.h include.
(PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
* config/svr4.h: Delete elfos.h include. Update commentary.
* config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
config/mn10200/mn10300.h, config/stormy16/stormy16.h,
config/v850/v850.h: Delete svr4.h include.
* config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
config/m68k/m68kv4.h, config/m88k/sysv4.h,
config/sparc/sysv4.h: Update includes.
* config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
config/m88k/dguxbcs.h: Delete includes.
* config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
(PREFERRED_DEBUGGING_TYPE): Undef before defining it.
* config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
it.
* config/m88k/dgux.h: Delete include.
(SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Undef before
defining it.
* config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
* config/sh/elf.h: Update include.
(SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
From-SVN: r46366
2001-10-20 00:27:41 +02:00
|
|
|
tm_file="$tm_file elfos.h svr4.h MACHINE/svr4.h"
|
1992-02-01 07:00:10 +01:00
|
|
|
|
config.gcc (i[34567]86-*-gnu*, [...]): Delete superflous ${cpu_type} setting.
2001-10-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
cris-*-none, cris-*-linux*: Update ${tmfile} list.
(c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
v850-*-*): Delete superflous ${cpu_type} setting.
* config/linux.h: Delete svr4.h include.
(SET_ASM_OP): Delete.
* config/netware.h (INT_ASM_OP): Undef before define.
* config/ptx4.h: Delete elfos.h include.
(PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
* config/svr4.h: Delete elfos.h include. Update commentary.
* config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
config/mn10200/mn10300.h, config/stormy16/stormy16.h,
config/v850/v850.h: Delete svr4.h include.
* config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
config/m68k/m68kv4.h, config/m88k/sysv4.h,
config/sparc/sysv4.h: Update includes.
* config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
config/m88k/dguxbcs.h: Delete includes.
* config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
(PREFERRED_DEBUGGING_TYPE): Undef before defining it.
* config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
it.
* config/m88k/dgux.h: Delete include.
(SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Undef before
defining it.
* config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
* config/sh/elf.h: Update include.
(SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
From-SVN: r46366
2001-10-20 00:27:41 +02:00
|
|
|
where MACHINE is replaced by the name of the basic hardware that you
|
|
|
|
are targeting for. Then, in the file MACHINE/svr4.h, put any really
|
|
|
|
system-specific defines (or overrides of defines) which you find that
|
2003-05-17 23:59:25 +02:00
|
|
|
you need.
|
1992-02-01 07:00:10 +01:00
|
|
|
*/
|
|
|
|
|
1992-08-04 21:17:40 +02:00
|
|
|
/* Define a symbol indicating that we are using svr4.h. */
|
|
|
|
#define USING_SVR4_H
|
|
|
|
|
1992-02-01 07:00:10 +01:00
|
|
|
/* Cpp, assembler, linker, library, and startfile spec's. */
|
|
|
|
|
|
|
|
/* This defines which switch letters take arguments. On svr4, most of
|
|
|
|
the normal cases (defined in gcc.c) apply, and we also have -h* and
|
|
|
|
-z* options (for the linker). Note however that there is no such
|
|
|
|
thing as a -T option for svr4. */
|
|
|
|
|
2003-10-23 07:16:56 +02:00
|
|
|
#undef SWITCH_TAKES_ARG
|
2000-01-07 19:30:43 +01:00
|
|
|
#define SWITCH_TAKES_ARG(CHAR) \
|
|
|
|
(DEFAULT_SWITCH_TAKES_ARG (CHAR) \
|
|
|
|
|| (CHAR) == 'h' \
|
|
|
|
|| (CHAR) == 'x' \
|
1992-02-01 07:00:10 +01:00
|
|
|
|| (CHAR) == 'z')
|
|
|
|
|
|
|
|
/* This defines which multi-letter switches take arguments. On svr4,
|
|
|
|
there are no such switches except those implemented by GCC itself. */
|
|
|
|
|
|
|
|
#define WORD_SWITCH_TAKES_ARG(STR) \
|
1993-04-27 16:58:13 +02:00
|
|
|
(DEFAULT_WORD_SWITCH_TAKES_ARG (STR) \
|
|
|
|
&& strcmp (STR, "Tdata") && strcmp (STR, "Ttext") \
|
|
|
|
&& strcmp (STR, "Tbss"))
|
1992-02-01 07:00:10 +01:00
|
|
|
|
|
|
|
/* Provide an ASM_SPEC appropriate for svr4. Here we try to support as
|
|
|
|
many of the specialized svr4 assembler options as seems reasonable,
|
|
|
|
given that there are certain options which we can't (or shouldn't)
|
1996-01-16 12:25:50 +01:00
|
|
|
support directly due to the fact that they conflict with other options
|
1992-02-01 07:00:10 +01:00
|
|
|
for other svr4 tools (e.g. ld) or with other options for GCC itself.
|
|
|
|
For example, we don't support the -o (output file) or -R (remove
|
|
|
|
input file) options because GCC already handles these things. We
|
|
|
|
also don't support the -m (run m4) option for the assembler because
|
|
|
|
that conflicts with the -m (produce load map) option of the svr4
|
|
|
|
linker. We do however allow passing arbitrary options to the svr4
|
|
|
|
assembler via the -Wa, option.
|
|
|
|
|
|
|
|
Note that gcc doesn't allow a space to follow -Y in a -Ym,* or -Yd,*
|
|
|
|
option.
|
2002-12-16 19:23:00 +01:00
|
|
|
|
|
|
|
The svr4 assembler wants '-' on the command line if it's expected to
|
|
|
|
read its stdin.
|
1992-02-01 07:00:10 +01:00
|
|
|
*/
|
|
|
|
|
2000-01-07 19:30:43 +01:00
|
|
|
#undef ASM_SPEC
|
1992-02-01 07:00:10 +01:00
|
|
|
#define ASM_SPEC \
|
1996-07-12 20:44:59 +02:00
|
|
|
"%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}"
|
1992-02-01 07:00:10 +01:00
|
|
|
|
2002-12-16 19:23:00 +01:00
|
|
|
#define AS_NEEDS_DASH_FOR_PIPED_INPUT
|
1992-02-01 07:00:10 +01:00
|
|
|
|
1992-05-23 23:24:27 +02:00
|
|
|
/* Under svr4, the normal location of the `ld' and `as' programs is the
|
|
|
|
/usr/ccs/bin directory. */
|
|
|
|
|
1995-11-30 00:08:59 +01:00
|
|
|
#ifndef CROSS_COMPILE
|
2000-01-07 19:30:43 +01:00
|
|
|
#undef MD_EXEC_PREFIX
|
1992-05-23 23:24:27 +02:00
|
|
|
#define MD_EXEC_PREFIX "/usr/ccs/bin/"
|
1995-11-30 00:08:59 +01:00
|
|
|
#endif
|
1992-05-23 23:24:27 +02:00
|
|
|
|
1992-02-01 07:00:10 +01:00
|
|
|
/* Under svr4, the normal location of the various *crt*.o files is the
|
|
|
|
/usr/ccs/lib directory. */
|
|
|
|
|
1995-11-30 00:08:59 +01:00
|
|
|
#ifndef CROSS_COMPILE
|
2000-01-07 19:30:43 +01:00
|
|
|
#undef MD_STARTFILE_PREFIX
|
1992-02-01 07:00:10 +01:00
|
|
|
#define MD_STARTFILE_PREFIX "/usr/ccs/lib/"
|
1995-11-30 00:08:59 +01:00
|
|
|
#endif
|
1992-02-01 07:00:10 +01:00
|
|
|
|
1992-03-14 06:17:01 +01:00
|
|
|
/* Provide a LIB_SPEC appropriate for svr4. Here we tack on the default
|
1994-11-19 05:09:58 +01:00
|
|
|
standard C library (unless we are building a shared library). */
|
|
|
|
|
|
|
|
#undef LIB_SPEC
|
|
|
|
#define LIB_SPEC "%{!shared:%{!symbolic:-lc}}"
|
|
|
|
|
|
|
|
/* Provide an ENDFILE_SPEC appropriate for svr4. Here we tack on our own
|
|
|
|
magical crtend.o file (see crtstuff.c) which provides part of the
|
|
|
|
support for getting C++ file-scope static object constructed before
|
1992-02-01 07:00:10 +01:00
|
|
|
entering `main', followed by the normal svr3/svr4 "finalizer" file,
|
|
|
|
which is either `gcrtn.o' or `crtn.o'. */
|
|
|
|
|
1994-11-19 05:09:58 +01:00
|
|
|
#undef ENDFILE_SPEC
|
1996-04-16 16:10:51 +02:00
|
|
|
#define ENDFILE_SPEC "crtend.o%s %{pg:gcrtn.o%s}%{!pg:crtn.o%s}"
|
1992-02-01 07:00:10 +01:00
|
|
|
|
|
|
|
/* Provide a LINK_SPEC appropriate for svr4. Here we provide support
|
|
|
|
for the special GCC options -static, -shared, and -symbolic which
|
|
|
|
allow us to link things in one of these three modes by applying the
|
|
|
|
appropriate combinations of options at link-time. We also provide
|
|
|
|
support here for as many of the other svr4 linker options as seems
|
|
|
|
reasonable, given that some of them conflict with options for other
|
|
|
|
svr4 tools (e.g. the assembler). In particular, we do support the
|
2001-08-13 23:43:42 +02:00
|
|
|
-z*, -V, -b, -t, -Qy, -Qn, and -YP* options here, and the -e*, -l*,
|
|
|
|
-o*, -r, -s, -u*, and -L* options are directly supported by gcc.c
|
|
|
|
itself. We don't directly support the -m (generate load map)
|
|
|
|
option because that conflicts with the -m (run m4) option of the
|
|
|
|
svr4 assembler. We also don't directly support the svr4 linker's
|
|
|
|
-I* or -M* options because these conflict with existing GCC
|
|
|
|
options. We do however allow passing arbitrary options to the svr4
|
|
|
|
linker via the -Wl, option, in gcc.c. We don't support the svr4
|
|
|
|
linker's -a option at all because it is totally useless and because
|
|
|
|
it conflicts with GCC's own -a option.
|
1992-02-01 07:00:10 +01:00
|
|
|
|
|
|
|
Note that gcc doesn't allow a space to follow -Y in a -YP,* option.
|
|
|
|
|
|
|
|
When the -G link option is used (-shared and -symbolic) a final link is
|
|
|
|
not being done. */
|
|
|
|
|
|
|
|
#undef LINK_SPEC
|
1995-11-30 00:08:59 +01:00
|
|
|
#ifdef CROSS_COMPILE
|
1996-07-12 20:44:59 +02:00
|
|
|
#define LINK_SPEC "%{h*} %{v:-V} \
|
2001-08-13 23:43:42 +02:00
|
|
|
%{b} \
|
1995-11-30 00:08:59 +01:00
|
|
|
%{static:-dn -Bstatic} \
|
1998-01-13 22:43:41 +01:00
|
|
|
%{shared:-G -dy -z text} \
|
|
|
|
%{symbolic:-Bsymbolic -G -dy -z text} \
|
1995-11-30 00:08:59 +01:00
|
|
|
%{G:-G} \
|
|
|
|
%{YP,*} \
|
|
|
|
%{Qy:} %{!Qn:-Qy}"
|
|
|
|
#else
|
1996-07-12 20:44:59 +02:00
|
|
|
#define LINK_SPEC "%{h*} %{v:-V} \
|
2001-08-13 23:43:42 +02:00
|
|
|
%{b} \
|
1992-02-01 07:00:10 +01:00
|
|
|
%{static:-dn -Bstatic} \
|
1998-01-13 22:43:41 +01:00
|
|
|
%{shared:-G -dy -z text} \
|
|
|
|
%{symbolic:-Bsymbolic -G -dy -z text} \
|
1992-03-14 06:17:01 +01:00
|
|
|
%{G:-G} \
|
1992-02-01 07:00:10 +01:00
|
|
|
%{YP,*} \
|
|
|
|
%{!YP,*:%{p:-Y P,/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \
|
|
|
|
%{!p:-Y P,/usr/ccs/lib:/usr/lib}} \
|
|
|
|
%{Qy:} %{!Qn:-Qy}"
|
1995-11-30 00:08:59 +01:00
|
|
|
#endif
|
1992-02-01 07:00:10 +01:00
|
|
|
|
c-common.c, [...]: Delete code implementing -traditional mode.
* c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
gcc.c, toplev.c: Delete code implementing -traditional mode.
* ada/misc.c, ch/ch-tree.h, ch/decl.c, cp/decl2.c, f/com.c,
f/lex.c, f/top.c, java/builtins.c, java/decl.c: Delete
traditional-mode-related code copied from the C front end
but not used, or used only to permit the compiler to link.
* doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
Document removal of -traditional mode for compilation, and
remove documentation only relevant to that mode.
* config/nextstep.h, config/ptx4.h, config/svr4.h,
config/convex/convex.h, config/d30v/d30v.h,
config/i386/dgux.h, config/i386/osf1elf.h,
config/i386/osfelf.h, config/i386/osfrose.h,
config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
config/m68k/hp310.h, config/m88k/dgux.h,
config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
config/m88k/m88k.h, config/m88k/openbsd.h,
config/mips/abi64.h, config/mips/osfrose.h,
config/mips/svr4-5.h, config/mips/svr4-t.h,
config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
config/stormy16/stormy16.h: Remove all references to
-traditional from target specs. Delete all mention of the
no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
delete a couple of commented-out definitions of
DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
to -traditional.
* system.h: Poison TRADITIONAL_RETURN_FLOAT.
* doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
* testsuite/gcc.c-torture/execute/920730-1t.c,
testsuite/gcc.c-torture/execute/920730-1t.x,
testsuite/gcc.dg/ext-glob.c: Delete test cases, only relevant
to -traditional.
From-SVN: r50110
2002-02-27 19:48:07 +01:00
|
|
|
/* Gcc automatically adds in one of the files /usr/ccs/lib/values-Xc.o
|
|
|
|
or /usr/ccs/lib/values-Xa.o for each final link step (depending
|
|
|
|
upon the other gcc options selected, such as -ansi). These files
|
|
|
|
each contain one (initialized) copy of a special variable called
|
|
|
|
`_lib_version'. Each one of these files has `_lib_version' initialized
|
|
|
|
to a different (enum) value. The SVR4 library routines query the
|
|
|
|
value of `_lib_version' at run to decide how they should behave.
|
|
|
|
Specifically, they decide (based upon the value of `_lib_version')
|
|
|
|
if they will act in a strictly ANSI conforming manner or not. */
|
1992-02-01 07:00:10 +01:00
|
|
|
|
|
|
|
#undef STARTFILE_SPEC
|
|
|
|
#define STARTFILE_SPEC "%{!shared: \
|
|
|
|
%{!symbolic: \
|
1994-11-19 05:09:58 +01:00
|
|
|
%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}}}\
|
|
|
|
%{pg:gcrti.o%s}%{!pg:crti.o%s} \
|
|
|
|
%{ansi:values-Xc.o%s} \
|
c-common.c, [...]: Delete code implementing -traditional mode.
* c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
gcc.c, toplev.c: Delete code implementing -traditional mode.
* ada/misc.c, ch/ch-tree.h, ch/decl.c, cp/decl2.c, f/com.c,
f/lex.c, f/top.c, java/builtins.c, java/decl.c: Delete
traditional-mode-related code copied from the C front end
but not used, or used only to permit the compiler to link.
* doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
Document removal of -traditional mode for compilation, and
remove documentation only relevant to that mode.
* config/nextstep.h, config/ptx4.h, config/svr4.h,
config/convex/convex.h, config/d30v/d30v.h,
config/i386/dgux.h, config/i386/osf1elf.h,
config/i386/osfelf.h, config/i386/osfrose.h,
config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
config/m68k/hp310.h, config/m88k/dgux.h,
config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
config/m88k/m88k.h, config/m88k/openbsd.h,
config/mips/abi64.h, config/mips/osfrose.h,
config/mips/svr4-5.h, config/mips/svr4-t.h,
config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
config/stormy16/stormy16.h: Remove all references to
-traditional from target specs. Delete all mention of the
no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
delete a couple of commented-out definitions of
DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
to -traditional.
* system.h: Poison TRADITIONAL_RETURN_FLOAT.
* doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
* testsuite/gcc.c-torture/execute/920730-1t.c,
testsuite/gcc.c-torture/execute/920730-1t.x,
testsuite/gcc.dg/ext-glob.c: Delete test cases, only relevant
to -traditional.
From-SVN: r50110
2002-02-27 19:48:07 +01:00
|
|
|
%{!ansi:values-Xa.o%s} \
|
1994-11-19 05:09:58 +01:00
|
|
|
crtbegin.o%s"
|
1992-02-01 07:00:10 +01:00
|
|
|
|
|
|
|
/* The numbers used to denote specific machine registers in the System V
|
|
|
|
Release 4 DWARF debugging information are quite likely to be totally
|
|
|
|
different from the numbers used in BSD stabs debugging information
|
|
|
|
for the same kind of target machine. Thus, we undefine the macro
|
|
|
|
DBX_REGISTER_NUMBER here as an extra inducement to get people to
|
|
|
|
provide proper machine-specific definitions of DBX_REGISTER_NUMBER
|
|
|
|
(which is also used to provide DWARF registers numbers in dwarfout.c)
|
|
|
|
in their tm.h files which include this file. */
|
|
|
|
|
|
|
|
#undef DBX_REGISTER_NUMBER
|
|
|
|
|
|
|
|
/* Define the actual types of some ANSI-mandated types. (These
|
|
|
|
definitions should work for most SVR4 systems). */
|
|
|
|
|
2000-01-07 19:30:43 +01:00
|
|
|
#undef SIZE_TYPE
|
1992-02-01 07:00:10 +01:00
|
|
|
#define SIZE_TYPE "unsigned int"
|
|
|
|
|
2000-01-07 19:30:43 +01:00
|
|
|
#undef PTRDIFF_TYPE
|
1992-02-01 07:00:10 +01:00
|
|
|
#define PTRDIFF_TYPE "int"
|
|
|
|
|
2000-01-07 19:30:43 +01:00
|
|
|
#undef WCHAR_TYPE
|
1992-02-01 07:00:10 +01:00
|
|
|
#define WCHAR_TYPE "long int"
|
|
|
|
|
2000-01-07 19:30:43 +01:00
|
|
|
#undef WCHAR_TYPE_SIZE
|
1992-02-01 07:00:10 +01:00
|
|
|
#define WCHAR_TYPE_SIZE BITS_PER_WORD
|
|
|
|
|
2000-01-26 23:27:31 +01:00
|
|
|
#define TARGET_HAS_F_SETLKW
|