aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-modref.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-10-11 16:06:03 +0200
committerRichard Biener <rguenther@suse.de>2021-10-11 16:20:19 +0200
commit09a0affdb0598a54835ac4bb0dd6b54122c12916 (patch)
treed2ee960aa768dae7aebeea68d2dac57dd1880141 /gcc/ipa-modref.c
parenta40970cf043553f0ca09a3b7be1c5a949623d915 (diff)
downloadgcc-09a0affdb0598a54835ac4bb0dd6b54122c12916.zip
gcc-09a0affdb0598a54835ac4bb0dd6b54122c12916.tar.gz
gcc-09a0affdb0598a54835ac4bb0dd6b54122c12916.tar.bz2
middle-end/101480 - overloaded global new/delete
The following fixes the issue of ignoring side-effects on memory from overloaded global new/delete operators by not marking them as effectively 'const' apart from other explicitely specified side-effects. This will cause FAIL: g++.dg/warn/Warray-bounds-16.C -std=gnu++1? (test for excess errors) because we now no longer statically see the initialization loop never executes because the call to operator new can now clobber 'a.m'. This seems to be an issue with the warning code and/or ranger so I'm leaving this FAIL to be addressed as followup. 2021-10-11 Richard Biener <rguenther@suse.de> PR middle-end/101480 * gimple.c (gimple_call_fnspec): Do not mark operator new/delete as const. * g++.dg/torture/pr10148.C: New testcase.
Diffstat (limited to 'gcc/ipa-modref.c')
0 files changed, 0 insertions, 0 deletions