diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2022-04-03 13:41:04 +0300 |
---|---|---|
committer | Dimitar Dimitrov <dimitar@dinux.eu> | 2022-05-23 18:44:38 +0300 |
commit | e6c04ac9fd9c7b5538a6f5f45e5f9dc22954764b (patch) | |
tree | d6b6384c4188f0a30ef14c3d7a1533a76441008a /gcc/config.gcc | |
parent | b7feb71d45e4cd894d7706c21a21a3871070d098 (diff) | |
download | gcc-e6c04ac9fd9c7b5538a6f5f45e5f9dc22954764b.zip gcc-e6c04ac9fd9c7b5538a6f5f45e5f9dc22954764b.tar.gz gcc-e6c04ac9fd9c7b5538a6f5f45e5f9dc22954764b.tar.bz2 |
testsuite: mallign: Handle word size of 1 byte
This patch fixes a spurious warning for the pru-unknown-elf target:
gcc/testsuite/gcc.dg/mallign.c:12:27: warning: ignoring return value of 'malloc' declared with attribute 'warn_unused_result' [-Wunused-result]
For 8-bit targets the resulting mask ignores all bits in the value
returned by malloc. Fix by first checking the target word size.
gcc/testsuite/ChangeLog:
* gcc.dg/mallign.c: Skip check if sizeof(word)==1.
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions