Fix ICE in ODR enum streaming [PR95548]
authorJan Hubicka <jh@suse.cz>
Sat, 6 Jun 2020 20:19:46 +0000 (22:19 +0200)
committerJan Hubicka <jh@suse.cz>
Sat, 6 Jun 2020 20:19:46 +0000 (22:19 +0200)
commiteca7a60bd24ebd91addd785e420a06d8f5086634
tree457114e586504a54a8c5cd4e1355745682fe024a
parent1ca05dead046d88c4bd9e7b8f3129269a5c5eea4
Fix ICE in ODR enum streaming [PR95548]

gcc/ChangeLog:

2020-06-06  Jan Hubicka  <hubicka@ucw.cz>

PR lto/95548
* ipa-devirt.c (struct odr_enum_val): Turn values to wide_int.
(ipa_odr_summary_write): Update streaming.
(ipa_odr_read_section): Update streaming.

gcc/testsuite/ChangeLog:

2020-06-06  Jan Hubicka  <hubicka@ucw.cz>

* g++.dg/torture/pr95548.C: New test.
gcc/ipa-devirt.c
gcc/testsuite/g++.dg/torture/pr95548.C [new file with mode: 0644]