From: Trevor Saunders <[email protected]>

Hi,

this fixes building libgcc for arm-linux-gnueabi since it includes tm.h
in target code and apparently doesn't declare rtx_code_label. tested I
can build all default target libraries fora cross to arm-linux-gnueabi
with this, committed.

Trev

gcc/ChangeLog:

        * config/arm/arm.h (thumb_call_via_label): Move inside the
        !GENERATOR_FILE && !USED_FOR_TARGET block.
---
 gcc/config/arm/arm.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h
index 0cb394e810d..5406b127f36 100644
--- a/gcc/config/arm/arm.h
+++ b/gcc/config/arm/arm.h
@@ -1598,14 +1598,14 @@ typedef struct GTY(()) machine_function
   int pacspval_needed;
 }
 machine_function;
-#endif
-
-#define ARM_Q_BIT_READ (arm_q_bit_access ())
-#define ARM_GE_BITS_READ (arm_ge_bits_access ())
 
 /* As in the machine_function, a global set of call-via labels, for code
    that is in text_section.  */
 extern GTY(()) rtx_code_label *thumb_call_via_label[14];
+#endif
+
+#define ARM_Q_BIT_READ (arm_q_bit_access ())
+#define ARM_GE_BITS_READ (arm_ge_bits_access ())
 
 /* The number of potential ways of assigning to a co-processor.  */
 #define ARM_NUM_COPROC_SLOTS 1
-- 
2.53.0

Reply via email to