acb0db7b38
* toplev.c (output_lang_identify): Delete. (compile_file): Don't call ASM_IDENTIFY_GCC or ASM_IDENTIFY_LANGUAGE. Don't generate gcc2_compiled. label. Don't emit a nop if profiling. If IDENT_ASM_OP is defined, emit an .ident "GCC (GNU) <version>" after calling ASM_FILE_END. * dbxout.c (dbxout_init): Don't call ASM_IDENTIFY_GCC_AFTER_SOURCE. Instead, unconditionally emit an N_OPT stab with string equal to STABS_GCC_MARKER, which defaults to "gcc2_compiled." * defaults.h: Don't provide default for ASM_IDENTIFY_LANGUAGE. * config/dbxelf.h, config/freebsd.h, config/nextstep.h, config/psos.h, config/ptx4.h, config/1750a/1750a.h, config/alpha/alpha.h, config/alpha/elf.h, config/arc/arc.h, config/arm/aof.h, config/arm/coff.h, config/arm/elf.h, config/arm/linux-elf.h, config/avr/avr.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h, config/h8300/h8300.h, config/i370/i370.h, config/i386/beos-elf.h, config/i386/osf1elf.h, config/i386/osfrose.h, config/ia64/sysv4.h, config/m68k/3b1.h, config/m68k/auxgas.h, config/m68k/crds.h, config/m68k/hp320.h, config/m68k/m68kv4.h, config/m68k/mot3300.h, config/m68k/news.h, config/m68k/sgs.h, config/m68k/tower-as.h, config/mcore/mcore-elf.h, config/mips/iris6.h, config/mips/osfrose.h, config/mips/sni-svr4.h, config/pa/som.h, config/pdp11/pdp11.h, config/sparc/sp64-elf.h: Delete definitions of any or all of: ASM_IDENTIFY_GCC, ASM_IDENTIFY_GCC_AFTER_SOURCE, and ASM_IDENTIFY_LANGUAGE. * config/elfos.h, config/freebsd.h, config/linux.h, config/alpha/elf.h, config/arm/linux-elf.h, config/i386/i386elf.h, config/i386/ptx4-i.h, config/mips/gnu.h, config/mips/linux.h, config/sparc/linux.h, config/sparc/linux64.h: Delete definitions of ASM_FILE_START which merely emit a .version directive. Delete definitions of ASM_FILE_END which merely emit an .ident directive. * config/avr/avr.h, config/vax/vax.h: Delete definition of ASM_IDENTIFY_GCC and move part of its logic into ASM_FILE_START. * config/i386/att.h, config/i386/gas.h, config/i386/linux.h, config/sparc/linux-aout.h: Don't emit .version directive in ASM_FILE_START. * config/i386/dgux.c, config/m88k/m88k.c, config/sh/sh.c (output_file_start): Correct comment. * config/i386/osfrose.h: Don't emit trailing .ident directive. * config/m68k/mot3300.h: Override STABS_GCC_MARKER to "gcc2_compiled%" to match gdb. * config/pa/lib2funcs.asm: Delete gcc_compiled. label. * config/rs6000/aix.h: Correct comment. * config/i386/i386afe.h: Delete. * config.gcc: Remove references to i386afe.h. * tm.texi: Delete documentation of ASM_IDENTIFY_GCC. The other macros deleted by this patch were undocumented. From-SVN: r41385
123 lines
4.0 KiB
C
123 lines
4.0 KiB
C
/* Base configuration file for all FreeBSD targets.
|
|
Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
|
|
|
This file is part of GNU CC.
|
|
|
|
GNU CC is free software; you can redistribute it and/or modify
|
|
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.
|
|
|
|
GNU CC is distributed in the hope that it will be useful,
|
|
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
|
|
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. */
|
|
|
|
/* Common FreeBSD configuration.
|
|
All FreeBSD architectures should include this file, which will specify
|
|
their commonalities.
|
|
Adapted from gcc/config/i386/freebsd-elf.h by
|
|
David O'Brien <obrien@FreeBSD.org>. */
|
|
|
|
|
|
/* This defines which switch letters take arguments. On FreeBSD, most of
|
|
the normal cases (defined in gcc.c) apply, and we also have -h* and
|
|
-z* options (for the linker) (coming from SVR4).
|
|
We also have -R (alias --rpath), no -z, --soname (-h), --assert etc. */
|
|
|
|
#define FBSD_SWITCH_TAKES_ARG(CHAR) \
|
|
(DEFAULT_SWITCH_TAKES_ARG (CHAR) \
|
|
|| (CHAR) == 'h' \
|
|
|| (CHAR) == 'z' /* ignored by ld */ \
|
|
|| (CHAR) == 'R')
|
|
|
|
#undef SWITCH_TAKES_ARG
|
|
#define SWITCH_TAKES_ARG(CHAR) (FBSD_SWITCH_TAKES_ARG(CHAR))
|
|
|
|
#define FBSD_WORD_SWITCH_TAKES_ARG(STR) \
|
|
(DEFAULT_WORD_SWITCH_TAKES_ARG (STR) \
|
|
|| !strcmp ((STR), "rpath") || !strcmp ((STR), "rpath-link") \
|
|
|| !strcmp ((STR), "soname") || !strcmp ((STR), "defsym") \
|
|
|| !strcmp ((STR), "assert") || !strcmp ((STR), "dynamic-linker"))
|
|
|
|
#undef WORD_SWITCH_TAKES_ARG
|
|
#define WORD_SWITCH_TAKES_ARG(STR) (FBSD_WORD_SWITCH_TAKES_ARG(STR))
|
|
|
|
/* Provide a CPP_SPEC appropriate for FreeBSD. We just deal with the GCC
|
|
option `-posix', and PIC issues. */
|
|
|
|
#undef CPP_SPEC
|
|
#define CPP_SPEC "%(cpp_cpu) \
|
|
%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} \
|
|
%{posix:-D_POSIX_SOURCE}"
|
|
|
|
/* Provide a LIB_SPEC appropriate for FreeBSD. Just select the appropriate
|
|
libc, depending on whether we're doing profiling or need threads support.
|
|
(simular to the default, except no -lg, and no -p). */
|
|
|
|
#undef LIB_SPEC
|
|
#define LIB_SPEC " \
|
|
%{!shared: \
|
|
%{!pg: \
|
|
%{!pthread:-lc} \
|
|
%{pthread:-lc_r}} \
|
|
%{pg: \
|
|
%{!pthread:-lc_p} \
|
|
%{pthread:-lc_r_p}} \
|
|
}"
|
|
|
|
|
|
/* Code generation parameters. */
|
|
|
|
/* Make gcc agree with <machine/ansi.h>. */
|
|
|
|
#undef WCHAR_TYPE
|
|
#define WCHAR_TYPE "int"
|
|
|
|
#undef WCHAR_UNSIGNED
|
|
#define WCHAR_UNSIGNED 0
|
|
|
|
/* Don't default to pcc-struct-return, because gcc is the only compiler, and
|
|
we want to retain compatibility with older gcc versions
|
|
(even though the SVR4 ABI for the i386 says that records and unions are
|
|
returned in memory). */
|
|
#undef DEFAULT_PCC_STRUCT_RETURN
|
|
#define DEFAULT_PCC_STRUCT_RETURN 0
|
|
|
|
/* Ensure we the configuration knows our system correctly so we can link with
|
|
libraries compiled with the native cc. */
|
|
#undef NO_DOLLAR_IN_LABEL
|
|
|
|
/* Use more efficient ``thunks'' to implement C++ vtables. */
|
|
#undef DEFAULT_VTABLE_THUNKS
|
|
#define DEFAULT_VTABLE_THUNKS 1
|
|
|
|
/* This is BSD, so use stabs instead of DWARF debug format. */
|
|
#undef PREFERRED_DEBUGGING_TYPE
|
|
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
|
|
|
|
#undef IDENT_ASM_OP
|
|
#define IDENT_ASM_OP "\t.ident\t"
|
|
|
|
/* Output #ident as a .ident. */
|
|
#undef ASM_OUTPUT_IDENT
|
|
#define ASM_OUTPUT_IDENT(FILE, NAME) \
|
|
fprintf ((FILE), "%s\"%s\"\n", IDENT_ASM_OP, (NAME));
|
|
|
|
/* Miscellaneous parameters. */
|
|
|
|
/* Don't assume anything about the header files. */
|
|
#undef NO_IMPLICIT_EXTERN_C
|
|
#define NO_IMPLICIT_EXTERN_C
|
|
|
|
/* Allow #sccs in preprocessor. */
|
|
#define SCCS_DIRECTIVE
|
|
|
|
/* Handle #pragma weak and #pragma pack. */
|
|
#define HANDLE_SYSV_PRAGMA
|