varasm.c (compare_constant): Compare type size of STRING_CSTs.
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 13 Sep 2018 21:43:16 +0000 (21:43 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 13 Sep 2018 21:43:16 +0000 (15:43 -0600)
commit5ec9f8cff333bbe9ef6b3767bfcc334961927a03
tree0bc6a7c631c48975d524bc8e12bae897b2bae1e9
parent4a426e366eccf4a8806175a18be5a13da66e0983
varasm.c (compare_constant): Compare type size of STRING_CSTs.

* varasm.c (compare_constant): Compare type size of STRING_CSTs.
(get_constant_size): Don't make STRING_CSTs larger than they are.
(check_string_literal): New check function for STRING_CSTs.
(output_constant): Use it.

From-SVN: r264292
gcc/ChangeLog
gcc/varasm.c