From 45c3fea9baf7690791680ad24eacc01376b6dbd3 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Sun, 18 Oct 2015 14:31:25 +0000 Subject: Darwin - Tidy mmacosx-version-min code and specs. gcc/ * config/darwin-driver.c (darwin_default_min_version): Refactor code. (darwin_driver_init): Note a version-min when provided on the c/l. * config/darwin.h (%darwin_minversion): Remove. * config/i386/darwin.h: Likewise. * config/rs6000/darwin.h: Likewise. * config/darwin.opt (mmacosx-version-min=): Use the configured default, rather than an arbitrary constant. From-SVN: r228944 --- gcc/config/rs6000/darwin.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'gcc/config/rs6000/darwin.h') diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h index 14d54770530..82fcad21e94 100644 --- a/gcc/config/rs6000/darwin.h +++ b/gcc/config/rs6000/darwin.h @@ -93,7 +93,6 @@ extern int darwin_emit_branch_islands; %(cc1_cpu) \ %{g: %{!fno-eliminate-unused-debug-symbols: -feliminate-unused-debug-symbols }} \ %{static: %{Zdynamic: %e conflicting code gen style switches are used}}\ - %{!mmacosx-version-min=*:-mmacosx-version-min=%(darwin_minversion)} \ %{!mkernel:%{!static:%{!mdynamic-no-pic:-fPIC}}} \ %{faltivec:-maltivec -include altivec.h} %{fno-altivec:-mno-altivec} \ % 10.4 mmacosx-version-min= crt2.o%s)}" -/* Determine a minimum version based on compiler options. */ -#define DARWIN_MINVERSION_SPEC \ - "%{m64:%{fgnu-runtime:10.4; \ - ,objective-c|,objc-cpp-output:10.5; \ - ,objective-c-header:10.5; \ - ,objective-c++|,objective-c++-cpp-output:10.5; \ - ,objective-c++-header|,objc++-cpp-output:10.5; \ - :10.4}; \ - shared-libgcc:10.3; \ - :10.1}" - #undef SUBTARGET_EXTRA_SPECS #define SUBTARGET_EXTRA_SPECS \ DARWIN_EXTRA_SPECS \ -- cgit v1.2.1