aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-patterns.c
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@arm.com>2017-12-07 21:48:35 +0000
committerThomas Preud'homme <thopre01@gcc.gnu.org>2017-12-07 21:48:35 +0000
commit38b28c6eb28463feadfc7e18d553f8f2327a2219 (patch)
tree0911da3ce64cf83a36681782588324c347aff783 /gcc/tree-vect-patterns.c
parentd3861707ebebb3c4dc6965582cb7ff696f9b6b73 (diff)
downloadgcc-38b28c6eb28463feadfc7e18d553f8f2327a2219.zip
gcc-38b28c6eb28463feadfc7e18d553f8f2327a2219.tar.gz
gcc-38b28c6eb28463feadfc7e18d553f8f2327a2219.tar.bz2
Improve fstack_protector effective target
Effective target fstack_protector fails to return an error for newlib-based target (such as arm-none-eabi targets) which does not support stack protector. This is due to the test being too simplist for stack protection code to be generated by GCC: it does not contain a local buffer and does not read unknown input. This commit adds a small local buffer with a copy of the filename to trigger stack protector code to be generated. The filename is used instead of the full path so as to ensure the size will fit in the local buffer. 2017-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com> gcc/testsuite/ * lib/target-supports.exp (check_effective_target_fstack_protector): Copy filename in local buffer to trigger stack protection. From-SVN: r255484
Diffstat (limited to 'gcc/tree-vect-patterns.c')
0 files changed, 0 insertions, 0 deletions