Re: [PATCH] testsuite: mallign: Handle word size of 1 byte

2022-05-23 Thread Richard Sandiford via Gcc-patches
Dimitar Dimitrov writes: > On Sun, May 08, 2022 at 10:31:04AM +0300, Dimitar Dimitrov wrote: >> This patch fixes a spurious warning for pru-unknown-elf target: >> gcc/testsuite/gcc.dg/mallign.c:12:27: warning: ignoring return value of >> 'malloc' declared with attribute 'warn_unused_result'

Re: [PATCH] testsuite: mallign: Handle word size of 1 byte

2022-05-16 Thread Dimitar Dimitrov
On Sun, May 08, 2022 at 10:31:04AM +0300, Dimitar Dimitrov wrote: > This patch fixes a spurious warning for 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

[PATCH] testsuite: mallign: Handle word size of 1 byte

2022-05-08 Thread Dimitar Dimitrov
This patch fixes a spurious warning for 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.