Implement a -carbon option for gcc: link with CarbonLib instead of InterfaceLib

This commit is contained in:
Wolfgang Thaller 2015-09-13 00:42:48 +02:00
parent ce3a2dcc52
commit 05d5067e33
2 changed files with 4 additions and 1 deletions

View File

@ -69,7 +69,7 @@
/* Profiled library versions are used by linking with special directories. */ /* Profiled library versions are used by linking with special directories. */
#define LIB_SPEC "-lc" #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. */ /* Static linking with shared libstdc++ requires libsupc++ as well. */
#define LIBSTDCXX_STATIC "supc++" #define LIBSTDCXX_STATIC "supc++"

View File

@ -600,3 +600,6 @@ Allow float/double variables in upper registers if cpu allows it
moptimize-swaps moptimize-swaps
Target Undocumented Var(rs6000_optimize_swaps) Init(1) Save Target Undocumented Var(rs6000_optimize_swaps) Init(1) Save
Analyze and remove doubleword swaps from VSX computations. Analyze and remove doubleword swaps from VSX computations.
carbon
Target RejectNegative