summaryrefslogtreecommitdiffstats
path: root/gcc/config/pa
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/pa')
-rw-r--r--gcc/config/pa/pa.h2
-rw-r--r--gcc/config/pa/pa.md3
2 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index a127c84673d..6af722a1b57 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -1652,7 +1652,7 @@ extern struct rtx_def *hppa_legitimize_address ();
&& TREE_READONLY (DECL) && ! TREE_SIDE_EFFECTS (DECL) \
&& (! DECL_INITIAL (DECL) || ! reloc_needed (DECL_INITIAL (DECL))) \
&& !flag_pic) \
- || (*tree_code_type[(int) TREE_CODE (DECL)] == 'c' \
+ || (TREE_CODE_CLASS (TREE_CODE (DECL)) == 'c' \
&& !(TREE_CODE (DECL) == STRING_CST && flag_writable_strings)))
#define FUNCTION_NAME_P(NAME) \
diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md
index 0ed6cbd2d0e..704cd7ad865 100644
--- a/gcc/config/pa/pa.md
+++ b/gcc/config/pa/pa.md
@@ -3371,7 +3371,8 @@
""
"
{
- if (! (ior_operand (operands[2]) || register_operand (operands[2])))
+ if (! (ior_operand (operands[2], SImode)
+ || register_operand (operands[2], SImode)))
operands[2] = force_reg (SImode, operands[2]);
}")
OpenPOWER on IntegriCloud