From 05d5067e33d1d5426cd163e5116699046be0ac57 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Sun, 13 Sep 2015 00:42:48 +0200 Subject: [PATCH] Implement a -carbon option for gcc: link with CarbonLib instead of InterfaceLib --- gcc/gcc/config/rs6000/macos.h | 2 +- gcc/gcc/config/rs6000/rs6000.opt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/gcc/config/rs6000/macos.h b/gcc/gcc/config/rs6000/macos.h index 771d53739e..a4c9ccf2b2 100644 --- a/gcc/gcc/config/rs6000/macos.h +++ b/gcc/gcc/config/rs6000/macos.h @@ -69,7 +69,7 @@ /* Profiled library versions are used by linking with special directories. */ #define LIB_SPEC "-lc" -#define LIBGCC_SPEC "-lretrocrt -lgcc -lInterfaceLib" +#define LIBGCC_SPEC "-lretrocrt -lgcc %{carbon: -lCarbonLib} %{!carbon: -lInterfaceLib}" /* Static linking with shared libstdc++ requires libsupc++ as well. */ #define LIBSTDCXX_STATIC "supc++" diff --git a/gcc/gcc/config/rs6000/rs6000.opt b/gcc/gcc/config/rs6000/rs6000.opt index 79d01d4965..a6d3045a6a 100644 --- a/gcc/gcc/config/rs6000/rs6000.opt +++ b/gcc/gcc/config/rs6000/rs6000.opt @@ -600,3 +600,6 @@ Allow float/double variables in upper registers if cpu allows it moptimize-swaps Target Undocumented Var(rs6000_optimize_swaps) Init(1) Save Analyze and remove doubleword swaps from VSX computations. + +carbon +Target RejectNegative \ No newline at end of file