From patchwork Fri Jun 11 20:49:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix PR rtl-optimization/42461 Date: Fri, 11 Jun 2010 10:49:04 -0000 From: Eric Botcazou X-Patchwork-Id: 55368 Message-Id: <201006112249.05200.ebotcazou@adacore.com> To: gcc-patches@gcc.gnu.org > 2010-06-07 Eric Botcazou > > * gcc.dg/pr42461.c: New test. As reported by H.J., the call to the pure function isn't optimized out at -O on IA-64, -O2 is required for reasons exposed in the audit trail. Applied on the mainline. 2010-06-11 Eric Botcazou * gcc.dg/pr42461.c: Compile at -O2 instead of -O. Index: gcc.dg/pr42461.c =================================================================== --- gcc.dg/pr42461.c (revision 160591) +++ gcc.dg/pr42461.c (working copy) @@ -2,7 +2,7 @@ /* Reported by Patrick Pelissier */ /* { dg-do link } */ -/* { dg-options "-O" } */ +/* { dg-options "-O2" } */ extern int link_failure (int) __attribute__ ((pure));