From b7d1dec3acf1e3f80364bdbcae75c478aa4b35b2 Mon Sep 17 00:00:00 2001 From: iains Date: Sat, 25 Jun 2011 11:17:35 +0000 Subject: PR driver/49371 * config/darwin.c (darwin_override_options): Improve warning when mdynamic-no-pic is given together with fPIC/fpic, also warn when it is given with fpie/fPIE. * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC. * config/darwin9.h (PIE_SPEC): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175397 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/darwin9.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/config/darwin9.h') diff --git a/gcc/config/darwin9.h b/gcc/config/darwin9.h index bb62dd4ca9f..2e835c39e2d 100644 --- a/gcc/config/darwin9.h +++ b/gcc/config/darwin9.h @@ -35,6 +35,12 @@ along with GCC; see the file COPYING3. If not see /* Tell collect2 to run dsymutil for us as necessary. */ #define COLLECT_RUN_DSYMUTIL 1 +#undef PIE_SPEC +#define PIE_SPEC \ + "%{fpie|pie|fPIE: \ + %{mdynamic-no-pic: %n'-mdynamic-no-pic' overrides '-pie', '-fpie' or '-fPIE'; \ + :-pie}}" + #undef ASM_OUTPUT_ALIGNED_COMMON #define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGN) \ do { \ -- cgit v1.2.1