]> gcc.gnu.org Git - gcc.git/commit
re PR middle-end/78201 (ICE in tree_to_shwi, at tree.h:4037 (seen both on ARM32 an...
authorJakub Jelinek <jakub@redhat.com>
Thu, 17 Nov 2016 17:09:13 +0000 (18:09 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 17 Nov 2016 17:09:13 +0000 (18:09 +0100)
commit5fe353c893256a75c057a49af66fc4838fe82d7d
treed7ff133f39787e3034fdff6f690b143432da0ba3
parent86a21121ace5a75de9d57b4b9bd691388e0367bc
re PR middle-end/78201 (ICE in tree_to_shwi, at tree.h:4037 (seen both on ARM32 an AArch64))

PR middle-end/78201
* varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
Don't test decl != NULL.  Don't look at DECL_SIZE, but DECL_SIZE_UNIT
instead, return false if it is NULL, or doesn't fit into uhwi, or
is larger or equal to targetm.max_anchor_offset.

* g++.dg/opt/pr78201.C: New test.

From-SVN: r242555
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr78201.C [new file with mode: 0644]
gcc/varasm.c
This page took 0.05675 seconds and 5 git commands to generate.