https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102441
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Perhaps we need something like:
--- gcc/var-tracking.c.jj 2021-05-04 21:02:24.196799586 +0200
+++ gcc/var-tracking.c 2021-09-24 19:23:16.420154828 +0200
@@ -6133,7 +6133,9 @@ add_stores (rtx loc, const_rtx expr, voi
{
if (preserve)
preserve_value (v);
- return;
+ mo.type = MO_CLOBBER;
+ mo.u.loc = loc;
+ goto log_and_return;
}
nloc = replace_expr_with_values (oloc);
but am not 100% sure if that is the right thing to do in all cases.