]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/config/pa/pa.cc
hppa: Fix complaint about non-delegitimized UNSPEC UNSPEC_TP
[gcc.git] / gcc / config / pa / pa.cc
index 129289f8e624f065fdcadbbc482b9d1680257060..5ab9eff4b5e78d3b619694a138d503cc51312fce 100644 (file)
@@ -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
This page took 0.032946 seconds and 5 git commands to generate.