+2016-08-18 Alan Modra <amodra@gmail.com>
+
+ PR rtl-optimization/72771
+ * reload.c (find_reloads): Don't assume that a subreg mem is OK
+ when find_reloads_toplev returns address_reloaded==-1.
+ (alternative_allows_const_pool_ref): Update comment.
+
2015-08-17 Alan Hayward <alan.hayward@arm.com>
PR tree-optimization/71752
there will be no reload needed at all. */
if (plus == NULL_RTX
&& subreg == NULL_RTX
- && alternative_allows_const_pool_ref (this_address_reloaded == 0
+ && alternative_allows_const_pool_ref (this_address_reloaded != 1
? substed_operand[i]
: NULL,
recog_data.constraints[i],
/* Return true if alternative number ALTNUM in constraint-string
CONSTRAINT is guaranteed to accept a reloaded constant-pool reference.
- MEM gives the reference if it didn't need any reloads, otherwise it
- is null. */
+ MEM gives the reference if its address hasn't been fully reloaded,
+ otherwise it is NULL. */
static bool
alternative_allows_const_pool_ref (rtx mem ATTRIBUTE_UNUSED,