r242093 - /branches/ARM/sve-branch/gcc/rtlanal.c

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Fri Nov 11 16:58:00 GMT 2016


Author: rsandifo
Date: Fri Nov 11 16:58:15 2016
New Revision: 242093

URL: https://gcc.gnu.org/viewcvs?rev=242093&root=gcc&view=rev
Log:
Fix handling of unknown sizes in rtx_addr_can_trap_p

If the size passed in to rtx_addr_can_trap_p was zero, the frame
handling would get the size from the mode instead.  However, this
too can be zero if the mode is BLKmode, i.e. if we have a BLKmode
memory reference with no MEM_SIZE (which should be rare these days).
This meant that the conditions for a 4-byte access at offset X were
stricter than those for an access of unknown size at offset X.

This patch checks whether the size is still zero, as the
SYMBOL_REF handling does.

Modified:
    branches/ARM/sve-branch/gcc/rtlanal.c



More information about the Gcc-cvs mailing list