aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2023-07-07 04:02:40 -0300
committerMarc Poulhiès <poulhies@adacore.com>2023-09-05 13:05:14 +0200
commitfd208ccbfcb8562b4302b618b3fc1d2601af17d5 (patch)
treeaa5c16061b46b7cb19ff827350e9d63a153eda22 /gcc
parent67138e097ee2af4633fbf904f4251dda5589fc6f (diff)
downloadgcc-fd208ccbfcb8562b4302b618b3fc1d2601af17d5.zip
gcc-fd208ccbfcb8562b4302b618b3fc1d2601af17d5.tar.gz
gcc-fd208ccbfcb8562b4302b618b3fc1d2601af17d5.tar.bz2
ada: Pass -msmp when linking for ppc-vx6 --RTS=rtp-smp
gprbuild and gnatmake won't pass --RTS=rtp-smp to the compiler driver for linking. The flag was not used during linking: the .spec files named as linker options were all we passed for the linker to get the -L flags for lib_smp and lib. There was a problem, though: although /lib_smp/ and /lib/ were to be searched in this order, and the specs files did that correctly, the compiler would search /lib/ first regardless, because STARTFILE_PREFIX_SPEC said so, and specs files cannot override that. With this patch, we make sure the rtp-smp runtime causes -msmp to be added to the command line passed to the compiler driver for linking, and a corresponding patch for the ppc-vxworks configuration makes the GCC compiler driver use this flag to select /lib_smp/ rather than /lib/. gcc/ada/ * libgnat/system-vxworks-ppc-rtp-smp.ads: Add -msmp to Linker_Options pragma.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/libgnat/system-vxworks-ppc-rtp-smp.ads1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ada/libgnat/system-vxworks-ppc-rtp-smp.ads b/gcc/ada/libgnat/system-vxworks-ppc-rtp-smp.ads
index d8c498f..e4b80a8 100644
--- a/gcc/ada/libgnat/system-vxworks-ppc-rtp-smp.ads
+++ b/gcc/ada/libgnat/system-vxworks-ppc-rtp-smp.ads
@@ -120,6 +120,7 @@ package System is
private
+ pragma Linker_Options ("-msmp");
pragma Linker_Options ("--specs=vxworks-smp-ppc-link.spec");
pragma Linker_Options ("--specs=vxworks-ppc-link.spec");
-- Setup proper set of -L's for this configuration