Patchwork Fix PR rtl-optimization/42461

login
register
mail settings
Submitter Eric Botcazou
Date June 11, 2010, 8:49 p.m.
Message ID <201006112249.05200.ebotcazou@adacore.com>
Download mbox | patch
Permalink /patch/55368/
State New
Headers show

Comments

Eric Botcazou - June 11, 2010, 8:49 p.m.
> 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.

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));