[Bug testsuite/37326] [4.4 Regression] gcc.dg/tree-ssa/ssa-store-ccp-3.c scan-tree-dump-times optimized "conststaticvariable" 1

sje at cup dot hp dot com gcc-bugzilla@gcc.gnu.org
Mon Nov 17 22:59:00 GMT 2008



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



More information about the Gcc-bugs mailing list