diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2021-02-22 20:36:01 +0100 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2021-02-22 20:47:15 +0100 |
commit | 8e99b5ba4c19526335fe9cabdc6df7fb2edcfe6f (patch) | |
tree | f0ca48703d2917cc832141b1fed4068437f5b489 /libgcc | |
parent | a7de0ffa34a9559919b14094b804175d7d9b446f (diff) | |
download | gcc-8e99b5ba4c19526335fe9cabdc6df7fb2edcfe6f.zip gcc-8e99b5ba4c19526335fe9cabdc6df7fb2edcfe6f.tar.gz gcc-8e99b5ba4c19526335fe9cabdc6df7fb2edcfe6f.tar.bz2 |
g++.dg/warn/Warray-bounds-10..13: Fix for 32-bit newlib targets
See gcc/config/newlib-stdint.h, where targets that have
LONG_TYPE_SIZE == 32, get __INT32_TYPE__ defined to "long
int".
All these tests have "typedef __INT32_TYPE__ int32_t;".
Thus the tests fail for 32-bit newlib targets due to related
warning messages being matched to "aka int" where the
emitted message for these targets have "aka long int".
Tested cris-elf and x86_64-linux, committed as obvious.
gcc/testsuite:
* g++.dg/warn/Warray-bounds-10.C, g++.dg/warn/Warray-bounds-11.C,
g++.dg/warn/Warray-bounds-12.C, g++.dg/warn/Warray-bounds-13.C:
Handle __INT32_TYPE__ being "long int".
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions