From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32574 invoked by alias); 17 Nov 2008 22:59:37 -0000 Received: (qmail 18245 invoked by uid 48); 17 Nov 2008 22:58:16 -0000 Date: Mon, 17 Nov 2008 22:59:00 -0000 Message-ID: <20081117225816.18244.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug testsuite/37326] [4.4 Regression] gcc.dg/tree-ssa/ssa-store-ccp-3.c scan-tree-dump-times optimized "conststaticvariable" 1 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sje at cup dot hp dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-11/txt/msg01438.txt.bz2 ------- Comment #2 from sje at cup dot hp dot com 2008-11-17 22:58 ------- hppa64 is setting __PIC__ because it sets flag_pic and generates PIC code by default but it sets flag_pic to 2 in override_options after we have already checked its value in decode_options and used its value to set flag_shlib. The optimization in this test is determined by flag_shlib. We need to either set flag_shlib in override_options when we set flag_pic (making hppa64 a true PIC platform) or not set flag_pic for PA64 even though it is generating PIC code or xfail the test. IA64 HP-UX does not set flag_pic even though the code is PIC, that is why it does not fail. Setting flag_shlib could make some code slower by preventing inlining so as to allow functions to be overridden which you have to do if the code is in a shared library. David, do you have a prefered fix? -- sje at cup dot hp dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sje at cup dot hp dot com Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2008-11-17 22:58:16 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37326