diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2021-03-17 13:05:47 +0000 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2021-03-17 19:12:25 +0000 |
commit | c86c5195c8c02f5891a222f498c074b373aa946c (patch) | |
tree | 5ca5d12601a32e602b7c489bab6eba4cd893e7e6 /gcc/ada/gcc-interface/utils.c | |
parent | 9c4d77fc1cc363342b5963b07e837d2b017cac43 (diff) | |
download | gcc-c86c5195c8c02f5891a222f498c074b373aa946c.zip gcc-c86c5195c8c02f5891a222f498c074b373aa946c.tar.gz gcc-c86c5195c8c02f5891a222f498c074b373aa946c.tar.bz2 |
testsuite, Darwin : Fix the asan/strncpy-overflow-1 test.
1. To be more compatible with Linux, Darwin testcases that include
string.h should set _FORTIFY_SOURCE=0 since, otherwise, it will be
defaulted on and the _chk versions of the string builtins will be
used. This testcase fails otherwise because there's no convenient
way to disable the _chk builtins.
2. The system tool that handles symbolization (atos) is not reliable
with GCC's DWARF-2 output but, fortunately, all the platform
versions that support the current sanitizers are able to handle
dwarf-3 for this testcase.
gcc/testsuite/ChangeLog:
* c-c++-common/asan/strncpy-overflow-1.c: Add _FORTIFY_SOURCE=0 and
-gdwarf-3 to the command line options. Adjust the expected line
numbers for the revised options header.
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
0 files changed, 0 insertions, 0 deletions