aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2022-04-11 14:50:14 -0400
committerJason Merrill <jason@redhat.com>2022-04-11 23:57:42 -0400
commit0899b22d9329c1e8fc12d6f0deee0f87dcc0163a (patch)
tree88d977d162577f8d8d05987acafed587faac8a25 /gcc/builtins.cc
parent4195fced8a13422db94e179404588d9d887a036a (diff)
downloadgcc-0899b22d9329c1e8fc12d6f0deee0f87dcc0163a.zip
gcc-0899b22d9329c1e8fc12d6f0deee0f87dcc0163a.tar.gz
gcc-0899b22d9329c1e8fc12d6f0deee0f87dcc0163a.tar.bz2
c++: rodata and defaulted ctor [PR104142]
Trivial initialization shouldn't bump a variable out of .rodata; if the result of build_aggr_init is an empty STATEMENT_LIST, throw it away. PR c++/104142 gcc/cp/ChangeLog: * decl.cc (check_initializer): Check TREE_SIDE_EFFECTS. gcc/testsuite/ChangeLog: * g++.dg/opt/const7.C: New test.
Diffstat (limited to 'gcc/builtins.cc')
0 files changed, 0 insertions, 0 deletions