Amend fix for PR middle-end/105874
commit90129d39ca0fc1d2ac9cf960379feccea878bd90
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 1 Jul 2022 07:59:05 +0000 (1 09:59 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 1 Jul 2022 08:01:12 +0000 (1 10:01 +0200)
tree11357ee909e3f0475a950ff83664a8336a7c120c
parent51debf7f857dddfb4dd2493867d2648041e7d8de
Amend fix for PR middle-end/105874

The original fix is very likely too big a hammer.

gcc/
PR middle-end/105874
* expr.cc (expand_expr_real_1) <normal_inner_ref>: Force
EXPAND_MEMORY for the expansion of the inner reference only
in the usual cases where a memory reference is required.
gcc/expr.cc