]> git.ipfire.org Git - thirdparty/gcc.git/commit
Suppress -fstack-protector warning on hppa.
authorJohn David Anglin <danglin@gcc.gnu.org>
Fri, 16 Dec 2022 21:44:40 +0000 (21:44 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 11 Feb 2023 16:23:24 +0000 (16:23 +0000)
commitabaa8f9cc4c06dcdae13a33be9253762861d8657
tree8ff906bd775713008de96a53a50e36ae5d5ebb1a
parent8f68a9b8e413ecb73d9c407364f778166c28a5d0
Suppress -fstack-protector warning on hppa.

Some package builds enable -fstack-protector and -Werror. Since
-fstack-protector is not supported on hppa because the stack grows
up, these packages must check for the warning generated by
-fstack-protector and suppress it on hppa. This is problematic
since hppa is the only significant architecture where the stack
grows up.

2022-12-16  John David Anglin  <danglin@gcc.gnu.org>

gcc/ChangeLog:

* config/pa/pa.cc (pa_option_override): Disable -fstack-protector.

gcc/testsuite/ChangeLog:

* lib/target-supports.exp (check_effective_target_static): Return 0
on hppa*-*-*.
gcc/config/pa/pa.cc
gcc/testsuite/lib/target-supports.exp