Commit c6de6665 by Jakub Jelinek Committed by Jakub Jelinek

re PR ipa/59722 (Bootstrap comparison failure on i686-linux)

	PR ipa/59722
	* ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.

	* gcc.dg/pr59722.c: New test.

From-SVN: r206438
parent 4c437f02
2014-01-08 Jakub Jelinek <jakub@redhat.com>
PR ipa/59722
* ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR middle-end/57748
......
......@@ -2127,8 +2127,11 @@ ipa_analyze_params_uses (struct cgraph_node *node,
FOR_EACH_IMM_USE_FAST (use_p, imm_iter, ddef)
if (!is_gimple_call (USE_STMT (use_p)))
{
controlled_uses = IPA_UNDESCRIBED_USE;
break;
if (!is_gimple_debug (USE_STMT (use_p)))
{
controlled_uses = IPA_UNDESCRIBED_USE;
break;
}
}
else
controlled_uses++;
......
2014-01-08 Jakub Jelinek <jakub@redhat.com>
PR ipa/59722
* gcc.dg/pr59722.c: New test.
2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR middle-end/57748
......
/* PR ipa/59722 */
/* { dg-do compile } */
/* { dg-options "-O2 -fcompare-debug" } */
extern void abrt (const char *, int) __attribute__((noreturn));
void baz (int *, int *);
static inline int
bar (void)
{
return 1;
}
static inline void
foo (int *x, int y (void))
{
while (1)
{
int a = 0;
if (*x)
{
baz (x, &a);
while (a && !y ())
;
break;
}
abrt ("", 1);
}
}
void
test (int x)
{
foo (&x, bar);
foo (&x, bar);
}
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