From: John David Anglin Date: Sun, 17 Mar 2024 16:38:48 +0000 (+0000) Subject: hppa: Fix complaint about non-delegitimized UNSPEC UNSPEC_TP X-Git-Tag: basepoints/gcc-15~631 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8064107535328717aeb78418edf778559cd5c3ac;p=thirdparty%2Fgcc.git hppa: Fix complaint about non-delegitimized UNSPEC UNSPEC_TP 2024-03-17 John David Anglin gcc/ChangeLog: * config/pa/pa.cc (pa_delegitimize_address): Delegitimize UNSPEC_TP. --- diff --git a/gcc/config/pa/pa.cc b/gcc/config/pa/pa.cc index 129289f8e624..5ab9eff4b5e7 100644 --- a/gcc/config/pa/pa.cc +++ b/gcc/config/pa/pa.cc @@ -10707,7 +10707,13 @@ pa_trampoline_adjust_address (rtx addr) static rtx pa_delegitimize_address (rtx orig_x) { - rtx x = delegitimize_mem_from_attrs (orig_x); + rtx x; + + if (GET_CODE (orig_x) == UNSPEC + && XINT (orig_x, 1) == UNSPEC_TP) + orig_x = XVECEXP (orig_x, 0, 0); + + x = delegitimize_mem_from_attrs (orig_x); if (GET_CODE (x) == LO_SUM && GET_CODE (XEXP (x, 1)) == UNSPEC