aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-02-14 17:36:00 +0100
committerJakub Jelinek <jakub@redhat.com>2020-02-14 17:36:00 +0100
commit519a33f954fd71cb8b74053e168e23a1cb00d30b (patch)
tree219e1ea1d630741772019ad3bacd0fbfe168aa21 /gcc/rtlanal.c
parent515dd04260c6049110d7624eaf1b276929dcd9af (diff)
downloadgcc-519a33f954fd71cb8b74053e168e23a1cb00d30b.zip
gcc-519a33f954fd71cb8b74053e168e23a1cb00d30b.tar.gz
gcc-519a33f954fd71cb8b74053e168e23a1cb00d30b.tar.bz2
c++: Fix thinko in enum_min_precision [PR61414]
When backporting the PR61414 fix to 8.4, I've noticed that the caching of prec is actually broken, as it would fail to actually store the computed precision into the hash_map's value and so next time we'd think the enum needs 0 bits. 2020-02-14 Jakub Jelinek <jakub@redhat.com> PR c++/61414 * class.c (enum_min_precision): Change prec type from int to int &. * g++.dg/cpp0x/enum39.C: New test.
Diffstat (limited to 'gcc/rtlanal.c')
0 files changed, 0 insertions, 0 deletions