From: Richard Sandiford Date: Wed, 21 May 2025 09:01:30 +0000 (+0100) Subject: genemit: Remove purported handling of location_ts X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efbc8de515c71c27e881d425f8325e39f7b4f328;p=thirdparty%2Fgcc.git genemit: Remove purported handling of location_ts gen_exp had code to handle the 'L' operand format. But this format is specifically for location_ts, which are only used in RTX_INSNs. Those should never occur in this context, where the input is always an md file rather than an __RTL function. Any hard-coded raw location value would be meaningless anyway. It seemed safer to turn this into an error rather than a gcc_unreachable. gcc/ * genemit.cc (generator::gen_exp): Raise an error if we see an 'L' operand. --- diff --git a/gcc/genemit.cc b/gcc/genemit.cc index 0529b916455..9923cf078b9 100644 --- a/gcc/genemit.cc +++ b/gcc/genemit.cc @@ -270,7 +270,8 @@ generator::gen_exp (rtx x) break; case 'L': - fprintf (file, "%llu", (unsigned long long) XLOC (x, i)); + fatal_at (info.loc, "'%s' rtxes are not supported in this context", + GET_RTX_NAME (code)); break; case 'r':