aboutsummaryrefslogtreecommitdiff
path: root/libiberty/pex-unix.c
diff options
context:
space:
mode:
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>2024-08-16 14:43:41 +0200
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>2024-08-16 16:50:24 +0200
commit479dab62b828f93d6be48241178dbf654bdd33e7 (patch)
treea8ff5923ae92e2926e838ec24e23c2484b1488b5 /libiberty/pex-unix.c
parent10bf0357750972e20dc702997f2930eab1c1be17 (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
testsuite: Verify -fshort-enums and -fno-short-enums in pr33738.CHEADtrunkmaster
For some targets, like Cortex-M on arm-none-eabi, the -fshort-enums is enabled by default. For these targets, the test case fails as sizeof(Alpha) < sizeof(int). To make the test case behave identical for targets that does enable -fshort-enums and those that does not, add -fno-short-enums in the test case and verify that the warning is not emitted. Then also create a copy and run the test with -fshort-enums and verify that the warning is emitted. Regtested on x86_64-pc-linux-gnu and arm-none-eabi. gcc/testsuite/ChangeLog: * g++.dg/warn/pr33738.C: Added -fno-short-enums. * g++.dg/warn/pr33738-2.C: Duplicate g++.dg/warn/pr33738.C with -fshort-enums and removed xfail. Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Diffstat (limited to 'libiberty/pex-unix.c')
0 files changed, 0 insertions, 0 deletions