diff mbox

Fix PR rtl-optimization/42461

Message ID 201006112249.05200.ebotcazou@adacore.com
State New
Headers show

Commit Message

Eric Botcazou June 11, 2010, 8:49 p.m. UTC
> 2010-06-07  Eric Botcazou  <ebotcazou@adacore.com>
>
> 	* 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  <ebotcazou@adacore.com>

        * gcc.dg/pr42461.c: Compile at -O2 instead of -O.
diff mbox

Patch

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 <patrick.pelissier@gmail.com> */
 
 /* { dg-do link } */
-/* { dg-options "-O" } */
+/* { dg-options "-O2" } */
 
 extern int link_failure (int) __attribute__ ((pure));