]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR debug/78191 (ICE in calc_die_sizes)
authorJakub Jelinek <jakub@redhat.com>
Fri, 18 Nov 2016 21:55:46 +0000 (22:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 18 Nov 2016 21:55:46 +0000 (22:55 +0100)
commit33305b74b7b050a1a220c2d4d50fbb9ddccb7c58
tree5c140f9e911058b1c868e64be2ecd1936faacb35
parent57d7fe867cfc59db8481dfe0f8646f029889ef3f
re PR debug/78191 (ICE in calc_die_sizes)

* dwarf2out.c (size_of_discr_list): Fix typo in function comment.

PR debug/78191
* dwarf2out.c (abbrev_opt_base_type_end): New variable.
(die_abbrev_cmp): Sort dies with die_abbrev smaller than
abbrev_opt_base_type_end only by increasing die_abbrev, before
any other dies.
(optimize_abbrev_table): Don't change abbrev numbers of
base types and CU or optimize implicit consts in them if
calc_base_type_die_sizes has been called during build_abbrev_table.
(calc_base_type_die_sizes): If abbrev_opt_start, set
abbrev_opt_base_type_end to one plus largest base type's
die_abbrev.

From-SVN: r242606
gcc/ChangeLog
gcc/dwarf2out.c