Commit b80a3161 by John David Anglin Committed by John David Anglin

re PR middle-end/17564 (New treatment of function pointers when used with…

re PR middle-end/17564 (New treatment of function pointers when used with equality operators, when casts are involved)

	PR middle-end/17564
	* gcc.c-torture/execute/20041212-1.c: New test.

From-SVN: r92076
parent 7f68c75f
2004-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR middle-end/17564
* gcc.c-torture/execute/20041212-1.c: New test.
2004-12-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
PR fortran/18869
......
/* A function pointer compared with a void pointer should not be canonicalized.
See PR middle-end/17564. */
void *f (void) __attribute__ ((__noinline__));
void *
f (void)
{
return f;
}
int
main (void)
{
if (f () != f)
abort ();
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment