Commit deb3f362 by Jakub Jelinek Committed by Jakub Jelinek

freebsd-spec.h: Add comment about what macros can be defined in this header.

	* config/freebsd-spec.h: Add comment about what macros can be defined
	in this header.
	(LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
	* config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
	here instead.

From-SVN: r183970
parent 9c9e39dd
2012-02-07 Jakub Jelinek <jakub@redhat.com>
* config/freebsd-spec.h: Add comment about what macros can be defined
in this header.
(LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
* config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
here instead.
2012-02-07 Richard Guenther <rguenther@suse.de> 2012-02-07 Richard Guenther <rguenther@suse.de>
* gimple-pretty-print.c (dump_gimple_phi): Avoid excessive * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
......
...@@ -134,15 +134,6 @@ is built with the --enable-threads configure-time option.} \ ...@@ -134,15 +134,6 @@ is built with the --enable-threads configure-time option.} \
#define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1" #define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1"
#endif #endif
#if defined(HAVE_LD_EH_FRAME_HDR) /* NOTE: The freebsd-spec.h header is included also for various
#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} " non-FreeBSD powerpc targets, thus it should never define macros
#endif other than FBSD_* prefixed ones, or USING_CONFIG_FREEBSD_SPEC. */
#ifdef TARGET_LIBC_PROVIDES_SSP
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all:-lssp_nonshared}"
#endif
/* Use --as-needed -lgcc_s for eh support. */
#ifdef HAVE_LD_AS_NEEDED
#define USE_LD_AS_NEEDED 1
#endif
/* Base configuration file for all FreeBSD targets. /* Base configuration file for all FreeBSD targets.
Copyright (C) 1999, 2000, 2001, 2007, 2008, 2009, Copyright (C) 1999, 2000, 2001, 2007, 2008, 2009,
2010 Free Software Foundation, Inc. 2010, 2011, 2012 Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -45,6 +45,19 @@ along with GCC; see the file COPYING3. If not see ...@@ -45,6 +45,19 @@ along with GCC; see the file COPYING3. If not see
#undef LIB_SPEC #undef LIB_SPEC
#define LIB_SPEC FBSD_LIB_SPEC #define LIB_SPEC FBSD_LIB_SPEC
#if defined(HAVE_LD_EH_FRAME_HDR)
#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
#endif
#ifdef TARGET_LIBC_PROVIDES_SSP
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all:-lssp_nonshared}"
#endif
/* Use --as-needed -lgcc_s for eh support. */
#ifdef HAVE_LD_AS_NEEDED
#define USE_LD_AS_NEEDED 1
#endif
/************************[ Target stuff ]***********************************/ /************************[ Target stuff ]***********************************/
/* All FreeBSD Architectures support the ELF object file format. */ /* All FreeBSD Architectures support the ELF object file format. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment