https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124682
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jsm28 at gcc dot gnu.org
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So, when I modify the testcase:
--- gcc/testsuite/gcc.dg/torture/builtin-math-6.c
+++ gcc/testsuite/gcc.dg/torture/builtin-math-6.c
@@ -11,7 +11,10 @@
first number is the line number and the second is the value number
among several tests. These appear in the tree dump file and aid in
debugging. */
-extern void link_error(int, int);
+void link_error(int x, int y)
+{
+ __builtin_printf ("%d %d\n", x, y);
+}
#define CONJ(X) __builtin_conjf(X)
and compile/link with -fno-builtin -O0, it passes as is against glibc 2.42 and
2.43,
but against 2.43.9000 prints
281 4
281 4
281 4
281 6
281 6
281 6
281 8
281 8
281 8
281 9
281 9
281 9
281 13
281 13
281 13
281 15
281 15
281 15
284 4
284 4
284 4
284 5
284 5
284 5
284 7
284 7
284 7
284 9
284 9
284 9
284 14
284 14
284 14
284 16
284 16
284 16
287 4
287 4
287 4
287 6
287 6
287 6
287 8
287 8
287 8
287 9
287 9
287 9
287 13
287 13
287 13
287 15
287 15
287 15
290 4
290 4
290 4
290 5
290 5
290 5
290 7
290 7
290 7
290 9
290 9
290 9
290 14
290 14
290 14
290 16
290 16
290 16
293 4
293 4
293 4
293 6
293 6
293 6
293 8
293 8
293 8
293 9
293 9
293 9
293 13
293 13
293 13
293 15
293 15
293 15
Joseph, any idea what has changed this in glibc?
And what should we do in the test? Drop all those subtests, or add some
effective targets mpc_1_4 which would compile something with -fverbose-asm and
scan for
MPC version 1\.[4-9]\. or MPC version 1\.[1-9][0-9]\. or MPC version [2-9]\.
in that assembly and guard the tests with changed expectations against that?
Or have different expectations for mpc_1_4 vs. older MPC?