From patchwork Fri Jun 11 20:49:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 55368 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 335B1B7D83 for ; Sat, 12 Jun 2010 06:52:44 +1000 (EST) Received: (qmail 18444 invoked by alias); 11 Jun 2010 20:52:42 -0000 Received: (qmail 18435 invoked by uid 22791); 11 Jun 2010 20:52:42 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Jun 2010 20:52:35 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id C36C5CB024F for ; Fri, 11 Jun 2010 22:52:40 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kHKtw8qYOmjK for ; Fri, 11 Jun 2010 22:52:40 +0200 (CEST) Received: from [192.168.1.2] (91-163-143-224.rev.libertysurf.net [91.163.143.224]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id B4904CB0232 for ; Fri, 11 Jun 2010 22:52:39 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: Re: Fix PR rtl-optimization/42461 Date: Fri, 11 Jun 2010 22:49:04 +0200 User-Agent: KMail/1.9.9 References: <201006072302.04043.ebotcazou@adacore.com> In-Reply-To: <201006072302.04043.ebotcazou@adacore.com> MIME-Version: 1.0 Message-Id: <201006112249.05200.ebotcazou@adacore.com> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list 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));