diff options
author | Olivier Hainque <hainque@adacore.com> | 2021-12-07 13:26:30 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@adacore.com> | 2021-12-13 17:59:54 +0000 |
commit | 0ecb48d753005405f84876ed3032c4cda789e072 (patch) | |
tree | 1bd9a6bf19ca967363e520a6f04df2e132f9959a /libgcc | |
parent | 16c848090f237c2398930b8c0ef75acebf4fa44d (diff) | |
download | gcc-0ecb48d753005405f84876ed3032c4cda789e072.zip gcc-0ecb48d753005405f84876ed3032c4cda789e072.tar.gz gcc-0ecb48d753005405f84876ed3032c4cda789e072.tar.bz2 |
Preserve cpu specific CRTSTUFF_T_CFLAGS on powerpc-vxworks7
The unconditional assignment performed in t-vxworks to handle
include flags currently overrides what specific cpu ports had
for the regular (!vxworks) crtstuff objects.
This was not done on purpose and the proposed change adjusts the
configuration bits to apply the vxworks specific flags on top of
the cpu ones instead.
2021-12-07 Olivier Hainque <hainque@adacore.com>
* config.host (powerpc*-wrs-vxworks7*): Place t-crtstuff
ahead of the other files in tmake_files.
* config/t-vxworks: Add to CRTSTUFF_T_CFLAGS instead of
overriding it.
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/config.host | 3 | ||||
-rw-r--r-- | libgcc/config/t-vxworks | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/libgcc/config.host b/libgcc/config.host index 1c1b60c..a94f4bf 100644 --- a/libgcc/config.host +++ b/libgcc/config.host @@ -1235,7 +1235,8 @@ powerpc*-*-linux*) md_unwind_header=rs6000/linux-unwind.h ;; powerpc*-wrs-vxworks7*) - tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-linux t-dfprules rs6000/t-ppc64-fp t-slibgcc-libgcc" + tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr rs6000/t-linux t-dfprules rs6000/t-ppc64-fp t-slibgcc-libgcc" + tmake_file="rs6000/t-crtstuff ${tmake_file}" case $ppc_fp_type in 64) ;; diff --git a/libgcc/config/t-vxworks b/libgcc/config/t-vxworks index aa79474..18a0b1e 100644 --- a/libgcc/config/t-vxworks +++ b/libgcc/config/t-vxworks @@ -17,4 +17,6 @@ LIBGCC2_INCLUDES = -nostdinc -I. \ -I$(VSB_DIR)/h -I$(VSB_DIR)/share/h -I=/system -I=/public, \ -I=/ -I=/wrn/coreip) -CRTSTUFF_T_CFLAGS = $(LIBGCC2_INCLUDES) +# Use these also for the vxcrstuff objects (.e.g for version.h), on top of +# the options possibly already set specifically for the target: +CRTSTUFF_T_CFLAGS += $(LIBGCC2_INCLUDES) |