PR tree-optimization/19633 * tree-flow.h (struct ptr_info_def): Add field 'pt_null'. * tree-ssa-alias.c (init_alias_info): Initialize. (merge_pointed_to_info): Set. (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer. (dump_points_to_info_for): Show value of pt_null. (struct count_ptr_d): Declare. (find_ptr_dereference): Remove. (ptr_is_dereferenced_by): Remove. (count_ptr_derefs): New local function. (count_uses_and_derefs): New local function. (compute_points_to_and_addr_escape): Call it. If the number of dereferences is greater than zero, mark the pointer as dereferenced. If there are fewer dereferences than uses of the pointer, the pointer's value escapes. testsuite/ChangeLog PR tree-optimization/19633 * testsuite/gcc.dg/pr19633-1.c: New test. * testsuite/gcc.dg/pr19633.c: Tweak to make pointer point to NULL or a symbol. From-SVN: r94558
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
ada | Loading commit data... | |
config | Loading commit data... | |
cp | Loading commit data... | |
doc | Loading commit data... | |
fortran | Loading commit data... | |
ginclude | Loading commit data... | |
java | Loading commit data... | |
objc | Loading commit data... | |
po | Loading commit data... | |
testsuite | Loading commit data... | |
treelang | Loading commit data... | |
.cvsignore | Loading commit data... | |
ABOUT-GCC-NLS | Loading commit data... | |
COPYING | Loading commit data... | |
COPYING.LIB | Loading commit data... | |
ChangeLog | Loading commit data... | |
ChangeLog.0 | Loading commit data... | |
ChangeLog.1 | Loading commit data... | |
ChangeLog.10 | Loading commit data... | |
ChangeLog.11 | Loading commit data... | |
ChangeLog.12 | Loading commit data... | |
ChangeLog.2 | Loading commit data... | |
ChangeLog.3 | Loading commit data... | |
ChangeLog.4 | Loading commit data... | |
ChangeLog.5 | Loading commit data... | |
ChangeLog.6 | Loading commit data... | |
ChangeLog.7 | Loading commit data... | |
ChangeLog.8 | Loading commit data... | |
ChangeLog.9 | Loading commit data... | |
ChangeLog.lib | Loading commit data... | |
ChangeLog.tree-ssa | Loading commit data... | |
FSFChangeLog | Loading commit data... | |
FSFChangeLog.10 | Loading commit data... | |
FSFChangeLog.11 | Loading commit data... | |
LANGUAGES | Loading commit data... | |
Makefile.in | Loading commit data... | |
ONEWS | Loading commit data... | |
README.Portability | Loading commit data... | |
SERVICE | Loading commit data... | |
aclocal.m4 | Loading commit data... | |
alias.c | Loading commit data... | |
alias.h | Loading commit data... | |
alloc-pool.c | Loading commit data... | |
alloc-pool.h | Loading commit data... | |
attribs.c | Loading commit data... | |
basic-block.h | Loading commit data... | |
bb-reorder.c | Loading commit data... | |
bitmap.c | Loading commit data... | |
bitmap.h | Loading commit data... | |
bt-load.c | Loading commit data... | |
builtin-attrs.def | Loading commit data... | |
builtin-types.def | Loading commit data... | |
builtins.c | Loading commit data... | |
builtins.def | Loading commit data... | |
c-aux-info.c | Loading commit data... | |
c-common.c | Loading commit data... | |
c-common.def | Loading commit data... | |
c-common.h | Loading commit data... | |
c-config-lang.in | Loading commit data... | |
c-convert.c | Loading commit data... | |
c-cppbuiltin.c | Loading commit data... | |
c-decl.c | Loading commit data... | |
c-dump.c | Loading commit data... | |
c-errors.c | Loading commit data... | |
c-format.c | Loading commit data... | |
c-format.h | Loading commit data... | |
c-gimplify.c | Loading commit data... | |
c-incpath.c | Loading commit data... | |
c-incpath.h | Loading commit data... | |
c-lang.c | Loading commit data... | |
c-lex.c | Loading commit data... | |
c-objc-common.c | Loading commit data... | |
c-objc-common.h | Loading commit data... | |
c-opts.c | Loading commit data... | |
c-parse.in | Loading commit data... | |
c-pch.c | Loading commit data... | |
c-ppoutput.c | Loading commit data... | |
c-pragma.c | Loading commit data... | |
c-pragma.h | Loading commit data... | |
c-pretty-print.c | Loading commit data... | |
c-pretty-print.h | Loading commit data... | |
c-semantics.c | Loading commit data... | |
c-tree.h | Loading commit data... | |
c-typeck.c | Loading commit data... | |
c.opt | Loading commit data... | |
caller-save.c | Loading commit data... | |
calls.c | Loading commit data... | |
cfg.c | Loading commit data... | |
cfganal.c | Loading commit data... | |
cfgbuild.c | Loading commit data... | |
cfgcleanup.c | Loading commit data... | |
cfgexpand.c | Loading commit data... | |
cfghooks.c | Loading commit data... | |
cfghooks.h | Loading commit data... | |
cfglayout.c | Loading commit data... | |
cfglayout.h | Loading commit data... | |
cfgloop.c | Loading commit data... | |
cfgloop.h | Loading commit data... | |
cfgloopanal.c | Loading commit data... | |
cfgloopmanip.c | Loading commit data... | |
cfgrtl.c | Loading commit data... | |
cgraph.c | Loading commit data... | |
cgraph.h | Loading commit data... | |
cgraphunit.c | Loading commit data... | |
collect2.c | Loading commit data... | |
collect2.h | Loading commit data... | |
combine.c | Loading commit data... | |
common.opt | Loading commit data... | |
conditions.h | Loading commit data... | |
config.build | Loading commit data... | |
config.gcc | Loading commit data... | |
config.host | Loading commit data... | |
config.in | Loading commit data... | |
configure | Loading commit data... | |
configure.ac | Loading commit data... | |
conflict.c | Loading commit data... | |
convert.c | Loading commit data... | |
convert.h | Loading commit data... | |
coretypes.h | Loading commit data... | |
coverage.c | Loading commit data... | |
coverage.h | Loading commit data... | |
cppdefault.c | Loading commit data... | |
cppdefault.h | Loading commit data... | |
cppspec.c | Loading commit data... | |
crtstuff.c | Loading commit data... | |
cse.c | Loading commit data... | |
cselib.c | Loading commit data... | |
cselib.h | Loading commit data... | |
cstamp-h.in | Loading commit data... | |
dbxout.c | Loading commit data... | |
dbxout.h | Loading commit data... | |
ddg.c | Loading commit data... | |
ddg.h | Loading commit data... | |
debug.c | Loading commit data... | |
debug.h | Loading commit data... | |
defaults.h | Loading commit data... | |
df.c | Loading commit data... | |
df.h | Loading commit data... | |
diagnostic.c | Loading commit data... | |
diagnostic.def | Loading commit data... | |
diagnostic.h | Loading commit data... | |
dojump.c | Loading commit data... | |
dominance.c | Loading commit data... | |
domwalk.c | Loading commit data... | |
domwalk.h | Loading commit data... | |
dummy-conditions.c | Loading commit data... | |
dwarf.h | Loading commit data... | |
dwarf2.h | Loading commit data... | |
dwarf2asm.c | Loading commit data... | |
dwarf2asm.h | Loading commit data... | |
dwarf2out.c | Loading commit data... | |
dwarf2out.h | Loading commit data... | |
emit-rtl.c | Loading commit data... | |
emit-rtl.h | Loading commit data... | |
errors.c | Loading commit data... | |
errors.h | Loading commit data... | |
et-forest.c | Loading commit data... | |
et-forest.h | Loading commit data... | |
except.c | Loading commit data... | |
except.h | Loading commit data... | |
explow.c | Loading commit data... | |
expmed.c | Loading commit data... | |
expr.c | Loading commit data... | |
expr.h | Loading commit data... | |
final.c | Loading commit data... | |
fix-header.c | Loading commit data... | |
fixproto | Loading commit data... | |
flags.h | Loading commit data... | |
flow.c | Loading commit data... | |
fold-const.c | Loading commit data... | |
fp-test.c | Loading commit data... | |
function.c | Loading commit data... | |
function.h | Loading commit data... | |
gbl-ctors.h | Loading commit data... | |
gcc.c | Loading commit data... | |
gcc.h | Loading commit data... | |
gccbug.in | Loading commit data... | |
gccspec.c | Loading commit data... | |
gcov-dump.c | Loading commit data... | |
gcov-io.c | Loading commit data... | |
gcov-io.h | Loading commit data... | |
gcov-iov.c | Loading commit data... | |
gcov.c | Loading commit data... | |
gcse.c | Loading commit data... | |
gdbinit.in | Loading commit data... | |
gen-protos.c | Loading commit data... | |
genattr.c | Loading commit data... | |
genattrtab.c | Loading commit data... | |
genattrtab.h | Loading commit data... | |
genautomata.c | Loading commit data... | |
gencheck.c | Loading commit data... | |
gencodes.c | Loading commit data... | |
genconditions.c | Loading commit data... | |
genconfig.c | Loading commit data... | |
genconstants.c | Loading commit data... | |
genemit.c | Loading commit data... | |
genextract.c | Loading commit data... | |
genflags.c | Loading commit data... | |
gengenrtl.c | Loading commit data... | |
gengtype-lex.l | Loading commit data... | |
gengtype-yacc.y | Loading commit data... | |
gengtype.c | Loading commit data... | |
gengtype.h | Loading commit data... | |
genmddeps.c | Loading commit data... | |
genmodes.c | Loading commit data... | |
genmultilib | Loading commit data... | |
genopinit.c | Loading commit data... | |
genoutput.c | Loading commit data... | |
genpeep.c | Loading commit data... | |
genpreds.c | Loading commit data... | |
genrecog.c | Loading commit data... | |
gensupport.c | Loading commit data... | |
gensupport.h | Loading commit data... | |
ggc-common.c | Loading commit data... | |
ggc-none.c | Loading commit data... | |
ggc-page.c | Loading commit data... | |
ggc-zone.c | Loading commit data... | |
ggc.h | Loading commit data... | |
gimple-low.c | Loading commit data... | |
gimplify.c | Loading commit data... | |
glimits.h | Loading commit data... | |
global.c | Loading commit data... | |
gmon.c | Loading commit data... | |
graph.c | Loading commit data... | |
graph.h | Loading commit data... | |
gstab.h | Loading commit data... | |
gsyms.h | Loading commit data... | |
gsyslimits.h | Loading commit data... | |
gthr-aix.h | Loading commit data... | |
gthr-dce.h | Loading commit data... | |
gthr-gnat.c | Loading commit data... | |
gthr-gnat.h | Loading commit data... | |
gthr-lynx.h | Loading commit data... | |
gthr-nks.h | Loading commit data... | |
gthr-posix.c | Loading commit data... | |
gthr-posix.h | Loading commit data... | |
gthr-posix95.h | Loading commit data... | |
gthr-rtems.h | Loading commit data... | |
gthr-single.h | Loading commit data... | |
gthr-solaris.h | Loading commit data... | |
gthr-tpf.h | Loading commit data... | |
gthr-vxworks.h | Loading commit data... | |
gthr-win32.h | Loading commit data... | |
gthr.h | Loading commit data... | |
haifa-sched.c | Loading commit data... | |
hard-reg-set.h | Loading commit data... | |
hooks.c | Loading commit data... | |
hooks.h | Loading commit data... | |
host-default.c | Loading commit data... | |
hosthooks-def.h | Loading commit data... | |
hosthooks.h | Loading commit data... | |
hwint.h | Loading commit data... | |
ifcvt.c | Loading commit data... | |
input.h | Loading commit data... | |
insn-addr.h | Loading commit data... | |
insn-notes.def | Loading commit data... | |
integrate.c | Loading commit data... | |
integrate.h | Loading commit data... | |
intl.c | Loading commit data... | |
intl.h | Loading commit data... | |
jump.c | Loading commit data... | |
lambda-code.c | Loading commit data... | |
lambda-mat.c | Loading commit data... | |
lambda-trans.c | Loading commit data... | |
lambda.h | Loading commit data... | |
langhooks-def.h | Loading commit data... | |
langhooks.c | Loading commit data... | |
langhooks.h | Loading commit data... | |
lcm.c | Loading commit data... | |
libada-mk.in | Loading commit data... | |
libfuncs.h | Loading commit data... | |
libgcc-std.ver | Loading commit data... | |
libgcc2.c | Loading commit data... | |
libgcc2.h | Loading commit data... | |
libgcov.c | Loading commit data... | |
limitx.h | Loading commit data... | |
limity.h | Loading commit data... | |
lists.c | Loading commit data... | |
local-alloc.c | Loading commit data... | |
longlong.h | Loading commit data... | |
loop-doloop.c | Loading commit data... | |
loop-init.c | Loading commit data... | |
loop-invariant.c | Loading commit data... | |
loop-iv.c | Loading commit data... | |
loop-unroll.c | Loading commit data... | |
loop-unswitch.c | Loading commit data... | |
loop.c | Loading commit data... | |
machmode.def | Loading commit data... | |
machmode.h | Loading commit data... | |
main.c | Loading commit data... | |
mips-tdump.c | Loading commit data... | |
mips-tfile.c | Loading commit data... | |
mkconfig.sh | Loading commit data... | |
mklibgcc.in | Loading commit data... | |
mkmap-flat.awk | Loading commit data... | |
mkmap-symver.awk | Loading commit data... | |
mode-classes.def | Loading commit data... | |
modulo-sched.c | Loading commit data... | |
opt-functions.awk | Loading commit data... | |
opt-gather.awk | Loading commit data... | |
optabs.c | Loading commit data... | |
optabs.h | Loading commit data... | |
optc-gen.awk | Loading commit data... | |
opth-gen.awk | Loading commit data... | |
opts.c | Loading commit data... | |
opts.h | Loading commit data... | |
output.h | Loading commit data... | |
params.c | Loading commit data... | |
params.def | Loading commit data... | |
params.h | Loading commit data... | |
passes.c | Loading commit data... | |
pointer-set.c | Loading commit data... | |
pointer-set.h | Loading commit data... | |
postreload-gcse.c | Loading commit data... | |
postreload.c | Loading commit data... | |
predict.c | Loading commit data... | |
predict.def | Loading commit data... | |
predict.h | Loading commit data... | |
prefix.c | Loading commit data... | |
prefix.h | Loading commit data... | |
pretty-print.c | Loading commit data... | |
pretty-print.h | Loading commit data... | |
print-rtl.c | Loading commit data... | |
print-tree.c | Loading commit data... | |
profile.c | Loading commit data... | |
protoize.c | Loading commit data... | |
read-rtl.c | Loading commit data... | |
real.c | Loading commit data... | |
real.h | Loading commit data... | |
recog.c | Loading commit data... | |
recog.h | Loading commit data... | |
reg-notes.def | Loading commit data... | |
reg-stack.c | Loading commit data... | |
regclass.c | Loading commit data... | |
regmove.c | Loading commit data... | |
regrename.c | Loading commit data... | |
regs.h | Loading commit data... | |
reload.c | Loading commit data... | |
reload.h | Loading commit data... | |
reload1.c | Loading commit data... | |
reorg.c | Loading commit data... | |
resource.c | Loading commit data... | |
resource.h | Loading commit data... | |
rtl-error.c | Loading commit data... | |
rtl-profile.c | Loading commit data... | |
rtl.c | Loading commit data... | |
rtl.def | Loading commit data... | |
rtl.h | Loading commit data... | |
rtlanal.c | Loading commit data... | |
rtlhooks-def.h | Loading commit data... | |
rtlhooks.c | Loading commit data... | |
sbitmap.c | Loading commit data... | |
sbitmap.h | Loading commit data... | |
scan-decls.c | Loading commit data... | |
scan-types.sh | Loading commit data... | |
scan.c | Loading commit data... | |
scan.h | Loading commit data... | |
sched-deps.c | Loading commit data... | |
sched-ebb.c | Loading commit data... | |
sched-int.h | Loading commit data... | |
sched-rgn.c | Loading commit data... | |
sched-vis.c | Loading commit data... | |
sdbout.c | Loading commit data... | |
sdbout.h | Loading commit data... | |
simplify-rtx.c | Loading commit data... | |
sort-protos | Loading commit data... | |
sreal.c | Loading commit data... | |
sreal.h | Loading commit data... | |
stab.def | Loading commit data... | |
statistics.h | Loading commit data... | |
stmt.c | Loading commit data... | |
stor-layout.c | Loading commit data... | |
stringpool.c | Loading commit data... | |
stub-objc.c | Loading commit data... | |
sys-protos.h | Loading commit data... | |
sys-types.h | Loading commit data... | |
system.h | Loading commit data... | |
target-def.h | Loading commit data... | |
target.h | Loading commit data... | |
targhooks.c | Loading commit data... | |
targhooks.h | Loading commit data... | |
timevar.c | Loading commit data... | |
timevar.def | Loading commit data... | |
timevar.h | Loading commit data... | |
tlink.c | Loading commit data... | |
toplev.c | Loading commit data... | |
toplev.h | Loading commit data... | |
tracer.c | Loading commit data... | |
tree-browser.c | Loading commit data... | |
tree-browser.def | Loading commit data... | |
tree-cfg.c | Loading commit data... | |
tree-chrec.c | Loading commit data... | |
tree-chrec.h | Loading commit data... | |
tree-complex.c | Loading commit data... | |
tree-data-ref.c | Loading commit data... | |
tree-data-ref.h | Loading commit data... | |
tree-dfa.c | Loading commit data... | |
tree-dump.c | Loading commit data... | |
tree-dump.h | Loading commit data... | |
tree-eh.c | Loading commit data... | |
tree-flow-inline.h | Loading commit data... | |
tree-flow.h | Loading commit data... | |
tree-gimple.c | Loading commit data... | |
tree-gimple.h | Loading commit data... | |
tree-if-conv.c | Loading commit data... | |
tree-inline.c | Loading commit data... | |
tree-inline.h | Loading commit data... | |
tree-into-ssa.c | Loading commit data... | |
tree-iterator.c | Loading commit data... | |
tree-iterator.h | Loading commit data... | |
tree-loop-linear.c | Loading commit data... | |
tree-mudflap.c | Loading commit data... | |
tree-mudflap.h | Loading commit data... | |
tree-nested.c | Loading commit data... | |
tree-nomudflap.c | Loading commit data... | |
tree-nrv.c | Loading commit data... | |
tree-optimize.c | Loading commit data... | |
tree-outof-ssa.c | Loading commit data... | |
tree-pass.h | Loading commit data... | |
tree-phinodes.c | Loading commit data... | |
tree-pretty-print.c | Loading commit data... | |
tree-profile.c | Loading commit data... | |
tree-scalar-evolution.c | Loading commit data... | |
tree-scalar-evolution.h | Loading commit data... | |
tree-sra.c | Loading commit data... | |
tree-ssa-alias.c | Loading commit data... | |
tree-ssa-ccp.c | Loading commit data... | |
tree-ssa-copy.c | Loading commit data... | |
tree-ssa-copyrename.c | Loading commit data... | |
tree-ssa-dce.c | Loading commit data... | |
tree-ssa-dom.c | Loading commit data... | |
tree-ssa-dse.c | Loading commit data... | |
tree-ssa-forwprop.c | Loading commit data... | |
tree-ssa-live.c | Loading commit data... | |
tree-ssa-live.h | Loading commit data... | |
tree-ssa-loop-ch.c | Loading commit data... | |
tree-ssa-loop-im.c | Loading commit data... | |
tree-ssa-loop-ivcanon.c | Loading commit data... | |
tree-ssa-loop-ivopts.c | Loading commit data... | |
tree-ssa-loop-manip.c | Loading commit data... | |
tree-ssa-loop-niter.c | Loading commit data... | |
tree-ssa-loop-unswitch.c | Loading commit data... | |
tree-ssa-loop.c | Loading commit data... | |
tree-ssa-operands.c | Loading commit data... | |
tree-ssa-operands.h | Loading commit data... | |
tree-ssa-phiopt.c | Loading commit data... | |
tree-ssa-pre.c | Loading commit data... | |
tree-ssa-propagate.c | Loading commit data... | |
tree-ssa-propagate.h | Loading commit data... | |
tree-ssa-threadupdate.c | Loading commit data... | |
tree-ssa.c | Loading commit data... | |
tree-ssanames.c | Loading commit data... | |
tree-tailcall.c | Loading commit data... | |
tree-vectorizer.c | Loading commit data... | |
tree-vectorizer.h | Loading commit data... | |
tree-vn.c | Loading commit data... | |
tree.c | Loading commit data... | |
tree.def | Loading commit data... | |
tree.h | Loading commit data... | |
tsystem.h | Loading commit data... | |
typeclass.h | Loading commit data... | |
unwind-c.c | Loading commit data... | |
unwind-compat.c | Loading commit data... | |
unwind-compat.h | Loading commit data... | |
unwind-dw2-fde-compat.c | Loading commit data... | |
unwind-dw2-fde-darwin.c | Loading commit data... | |
unwind-dw2-fde-glibc.c | Loading commit data... | |
unwind-dw2-fde.c | Loading commit data... | |
unwind-dw2-fde.h | Loading commit data... | |
unwind-dw2.c | Loading commit data... | |
unwind-dw2.h | Loading commit data... | |
unwind-pe.h | Loading commit data... | |
unwind-sjlj.c | Loading commit data... | |
unwind.h | Loading commit data... | |
unwind.inc | Loading commit data... | |
value-prof.c | Loading commit data... | |
value-prof.h | Loading commit data... | |
var-tracking.c | Loading commit data... | |
varasm.c | Loading commit data... | |
varray.c | Loading commit data... | |
varray.h | Loading commit data... | |
vec.c | Loading commit data... | |
vec.h | Loading commit data... | |
version.c | Loading commit data... | |
version.h | Loading commit data... | |
vmsdbg.h | Loading commit data... | |
vmsdbgout.c | Loading commit data... | |
web.c | Loading commit data... | |
xcoff.h | Loading commit data... | |
xcoffout.c | Loading commit data... | |
xcoffout.h | Loading commit data... |