r172785 - in /trunk: gcc/ChangeLog gcc/ada/Chan...

meyering@gcc.gnu.org meyering@gcc.gnu.org
Wed Apr 20 18:19:00 GMT 2011


Author: meyering
Date: Wed Apr 20 18:19:03 2011
New Revision: 172785

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172785
Log:
remove useless if-before-free tests

Change "if (E) free (E);" to "free (E);" everywhere except in the
libgo/, intl/, zlib/ and classpath/ directories.
Also transform equivalent variants like
"if (E != NULL) free (E);" and allow an extra cast on the
argument to free.  Otherwise, the tested and freed "E"
expressions must be identical, modulo white space.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/libsupc++/del_opnt.cc

Changes in other areas also in this revision:
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/initialize.c
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-format.c
    trunk/gcc/calls.c
    trunk/gcc/cfgcleanup.c
    trunk/gcc/collect2.c
    trunk/gcc/config/i386/i386.c
    trunk/gcc/config/mcore/mcore.c
    trunk/gcc/coverage.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/tree.c
    trunk/gcc/cse.c
    trunk/gcc/cselib.c
    trunk/gcc/df-core.c
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/expr.c
    trunk/gcc/fortran/gfortranspec.c
    trunk/gcc/fortran/interface.c
    trunk/gcc/fortran/trans-openmp.c
    trunk/gcc/function.c
    trunk/gcc/gcc.c
    trunk/gcc/gcov.c
    trunk/gcc/gensupport.c
    trunk/gcc/graphite-clast-to-gimple.c
    trunk/gcc/graphite-sese-to-poly.c
    trunk/gcc/haifa-sched.c
    trunk/gcc/ipa-prop.c
    trunk/gcc/ipa-pure-const.c
    trunk/gcc/ipa-reference.c
    trunk/gcc/ira-costs.c
    trunk/gcc/ira.c
    trunk/gcc/java/ChangeLog
    trunk/gcc/java/jcf-parse.c
    trunk/gcc/matrix-reorg.c
    trunk/gcc/prefix.c
    trunk/gcc/profile.c
    trunk/gcc/reload1.c
    trunk/gcc/sched-deps.c
    trunk/gcc/sel-sched-ir.c
    trunk/gcc/sese.c
    trunk/gcc/tree-data-ref.c
    trunk/gcc/tree-eh.c
    trunk/gcc/tree-ssa-coalesce.c
    trunk/gcc/tree-ssa-live.c
    trunk/gcc/tree-ssa-loop-ivopts.c
    trunk/gcc/tree-ssa-pre.c
    trunk/libcpp/ChangeLog
    trunk/libcpp/files.c
    trunk/libcpp/init.c
    trunk/libcpp/macro.c
    trunk/libcpp/pch.c
    trunk/libdecnumber/ChangeLog
    trunk/libdecnumber/decNumber.c
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/intrinsics/move_alloc.c
    trunk/libgfortran/io/fbuf.c
    trunk/libgfortran/io/format.c
    trunk/libgfortran/io/open.c
    trunk/libgfortran/io/unit.c
    trunk/libgfortran/io/unix.c
    trunk/libiberty/ChangeLog
    trunk/libiberty/cp-demint.c
    trunk/libiberty/cplus-dem.c
    trunk/libiberty/pex-common.c
    trunk/libiberty/pex-msdos.c
    trunk/libiberty/pex-win32.c
    trunk/libiberty/regex.c
    trunk/libiberty/spaces.c
    trunk/lto-plugin/ChangeLog
    trunk/lto-plugin/lto-plugin.c



More information about the Libstdc++-cvs mailing list