summaryrefslogtreecommitdiff
path: root/gcc/config/sh/symbian.c
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-03 09:36:50 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-03 09:36:50 +0000
commitcbb16986f685670f15333296e13a57de9b607243 (patch)
tree345765caae66bec5e7ba10b783743411dbd7d2e1 /gcc/config/sh/symbian.c
parentcb94f03c1eb4f19cc153ed2525e402bf58dc3cc2 (diff)
downloadgcc-cbb16986f685670f15333296e13a57de9b607243.tar.gz
2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
* config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and JUMP_TABLE_DATA_P where applicable. * config/sh/sh.c: Ditto. * config/sh/sh.h: Ditto. * config/sh/sh.md: Ditto. * config/sh/symbian.c: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148119 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sh/symbian.c')
-rw-r--r--gcc/config/sh/symbian.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/sh/symbian.c b/gcc/config/sh/symbian.c
index f32adf9717f..b4dbc3fb3c2 100644
--- a/gcc/config/sh/symbian.c
+++ b/gcc/config/sh/symbian.c
@@ -217,7 +217,7 @@ sh_symbian_mark_dllexport (tree decl)
tree idp;
rtlname = XEXP (DECL_RTL (decl), 0);
- if (GET_CODE (rtlname) == MEM)
+ if (MEM_P (rtlname))
rtlname = XEXP (rtlname, 0);
gcc_assert (GET_CODE (rtlname) == SYMBOL_REF);
oldname = XSTR (rtlname, 0);
@@ -262,7 +262,7 @@ sh_symbian_mark_dllimport (tree decl)
rtx newrtl;
rtlname = XEXP (DECL_RTL (decl), 0);
- if (GET_CODE (rtlname) == MEM)
+ if (MEM_P (rtlname))
rtlname = XEXP (rtlname, 0);
gcc_assert (GET_CODE (rtlname) == SYMBOL_REF);
oldname = XSTR (rtlname, 0);
@@ -312,8 +312,8 @@ sh_symbian_encode_section_info (tree decl, rtx rtl, int first)
else if ( (TREE_CODE (decl) == FUNCTION_DECL
|| TREE_CODE (decl) == VAR_DECL)
&& DECL_RTL (decl) != NULL_RTX
- && GET_CODE (DECL_RTL (decl)) == MEM
- && GET_CODE (XEXP (DECL_RTL (decl), 0)) == MEM
+ && MEM_P (DECL_RTL (decl))
+ && MEM_P (XEXP (DECL_RTL (decl), 0))
&& GET_CODE (XEXP (XEXP (DECL_RTL (decl), 0), 0)) == SYMBOL_REF
&& sh_symbian_dllimport_name_p (XSTR (XEXP (XEXP (DECL_RTL (decl), 0), 0), 0)))
{