This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Make p and q referenced in gcc.dg/ipa/ipa-pta-11.c
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 9 May 2010 15:09:02 +0200 (CEST)
- Subject: [PATCH] Make p and q referenced in gcc.dg/ipa/ipa-pta-11.c
Committed.
2010-05-09 Richard Guenther <rguenther@suse.de>
* gcc.dg/ipa/ipa-pta-11.c: Make p and q referenced.
Index: gcc/testsuite/gcc.dg/ipa/ipa-pta-11.c
===================================================================
*** gcc/testsuite/gcc.dg/ipa/ipa-pta-11.c (revision 159196)
--- gcc/testsuite/gcc.dg/ipa/ipa-pta-11.c (working copy)
*************** int l;
*** 21,26 ****
--- 21,29 ----
int *s = &l;
/* { dg-final { scan-ipa-dump "s = { ESCAPED NONLOCAL l }" "pta" } } */
+ /* Make p and q referenced so they do not get optimized out. */
+ int foo() { return &p < &q; }
+
int main()
{
return 0;