Commit a1cd04ac by Jan Hubicka Committed by Jan Hubicka

re PR ipa/61159 (__builtin_constant_p gives incorrect results with aliases)

	PR ipa/61159
	* compile/pr61159.c: New testcase

From-SVN: r240082
parent e3912107
2016-08-09 Jan Hubicka <hubicka@ucw.cz> 2016-08-09 Jan Hubicka <hubicka@ucw.cz>
PR ipa/61159
* compile/pr61159.c: New testcase
2016-08-09 Jan Hubicka <hubicka@ucw.cz>
PR ipa/64316 PR ipa/64316
* gcc.dg/ipa/pr63416.c: New testcase. * gcc.dg/ipa/pr63416.c: New testcase.
......
/* { dg-require-alias "" } */
/* { dg-require-weak "" } */
static int dummy = 0;
extern int foo __attribute__((__weak__, __alias__("dummy")));
typedef char check[2*!__builtin_constant_p(dummy)-1];
typedef char check[2*!__builtin_constant_p(foo)-1];
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