aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2023-12-05 13:39:49 -0500
committerMarek Polacek <polacek@redhat.com>2023-12-06 08:34:26 -0500
commite0eca4a55bd14d506708fb0396b31e7f7383160c (patch)
tree307ce97ecd0ae4836aedf9c73653b65b9cc6dca4 /gcc/cp
parentfbacdeff9799f2915e3529d0266006f251ea8344 (diff)
downloadgcc-e0eca4a55bd14d506708fb0396b31e7f7383160c.zip
gcc-e0eca4a55bd14d506708fb0396b31e7f7383160c.tar.gz
gcc-e0eca4a55bd14d506708fb0396b31e7f7383160c.tar.bz2
build: unbreak bootstrap on uclinux targets [PR112762]
Currently, cross-compiling with --target=c6x-uclinux (and several other) fails due to: ../../src/gcc/config/linux.h:221:45: error: 'linux_fortify_source_default_level' was not declared in this scope #define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level In the PR Andrew mentions that another fix would be in config.gcc, but really, here I meant to use the target hook for glibc only, not uclibc. This trivial patch fixes the build problem. It means that -fhardened with uclibc will use -D_FORTIFY_SOURCE=2 and not =3. PR target/112762 gcc/ChangeLog: * config/linux.h: Redefine TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL for glibc only.
Diffstat (limited to 'gcc/cp')
0 files changed, 0 insertions, 0 deletions