cleanup patch for tree-profiling branch

Kenneth Zadeck zadeck@naturalbridge.com
Wed Dec 8 03:31:00 GMT 2004


This patch fixes three problems:

1) I had Volatile asms allowed in pure and constant functions.
2) I had allowed loops to be in pure functions.
3) We were failing gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-2.c because it 
	expects const function detection at -O1. (I changed it to -O2)

tested on i686 suse

======================gcc/Changelog.profiling

 2004-12-07  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>
    * ipa-static-vars-anal.c (get_asm_expr_operands): keep any function
        with volatile asm from being marked const or pure.
    (static_execute): turn off pure if the function contains backedges.


======================gcc/testsuite/Changelog.profiling

2004-12-07  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>
    * gcc.dg/tree-ssa/ssa-dce-2.c: Changed to -O2 since analysis for
    const functions no longer done at -O1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cleanup.patch
Type: text/x-patch
Size: 1987 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20041208/c1c2cfa4/attachment.bin>


More information about the Gcc-patches mailing list