[patch,testsuite,applied] PR52641: Fix more sloppy tests.

Georg-Johann Lay avr@gjlay.de
Sat Jul 6 13:14:46 GMT 2024


Such tests exists because pre-processed sources are used
as test cases, like they are provided in PRs.

This means they have, say, "unsigned long" instead of size_t,
but "unsigned long" is not a correct size_t on some targets.

Some of the tests can be transformed back so that they use __SIZE_TYPE__
but for other tests it's not possible to reverse engineer the
spirit of the test case.

Similar problems are when int32_t is replaced by "int", or
intptr_t is replaced by "long", etc.

For test cases that use integer constants larger that 16 bits,
it is unclear whether the test case still reproduces the
same artifact when the constant is replaced by a smaller one;
or if it still works when int is replaced by int32_t etc.

Johann

--

testsuite/52641 - Fix more sloppy tests.

	PR testsuite/52641
gcc/testsuite/
	* gcc.dg/analyzer/torture/boxed-ptr-1.c: Requires size24plus.
	* gcc.dg/analyzer/torture/pr102692.c: Use intptr_t instead of long.
	* gcc.dg/ipa/pr102714.c: Use uintptr_t instead of unsigned long.
	* gcc.dg/torture/pr115387-1.c: Same.
	* gcc.dg/torture/pr113895-1.c : Same.
	* gcc.dg/ipa/pr108007.c: Require int32plus.
	* gcc.dg/ipa/pr109318.c: Same.
	* gcc.dg/ipa/pr96040.c: Use size_t instead of unsigned long.
	* gcc.dg/torture/pr113126.c: Use vectors of same dimension.
	* gcc.dg/tree-ssa/builtin-sprintf-9.c: Requires double64.

	* gcc.dg/spellcheck-inttypes.c [avr]: Avoid include of inttypes.h.
	* gcc.dg/analyzer/torture/pr104159.c [avr]: Skip.
	* gcc.dg/torture/pr84682-2.c [avr]: Skip.
	* gcc.dg/wtr-conversion-1.c [avr]: Remove avr selector since
	long double is a 64-bit type by now.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr52641-4.diff
Type: text/x-patch
Size: 7738 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20240706/a70b1365/attachment.bin>


More information about the Gcc-patches mailing list