diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-06 19:13:04 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-06 19:13:04 +0000 |
commit | 6d92fc03fe1a91bba58981f664a94488ad83f8ef (patch) | |
tree | 3d785b75e4af524317c31773cf8dfdc287deedf2 /gcc/genpreds.c | |
parent | 1fe1c6f5f74a57def9a9bbaeb417850d7ab6dcb4 (diff) | |
download | gcc-6d92fc03fe1a91bba58981f664a94488ad83f8ef.tar.gz |
* genpreds.c: (needs_variable): Fix parentheses at variable name
detection.
(write_tm_constrs_h): Indent generated code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144679 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genpreds.c')
-rw-r--r-- | gcc/genpreds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/genpreds.c b/gcc/genpreds.c index e0fb3f42e52..a1232e9573f 100644 --- a/gcc/genpreds.c +++ b/gcc/genpreds.c @@ -2,7 +2,7 @@ - prototype declarations for operand predicates (tm-preds.h) - function definitions of operand predicates, if defined new-style (insn-preds.c) - Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007, 2008 + Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc. This file is part of GCC. @@ -234,7 +234,7 @@ needs_variable (rtx exp, const char *var) if (q != p && (ISALNUM (q[-1]) || q[-1] == '_')) return false; q += strlen (var); - if (ISALNUM (q[0] || q[0] == '_')) + if (ISALNUM (q[0]) || q[0] == '_') return false; } return true; @@ -1103,7 +1103,7 @@ write_tm_constrs_h (void) "{\n", c->c_name, needs_op ? "op" : "ARG_UNUSED (op)"); if (needs_mode) - puts ("enum machine_mode mode = GET_MODE (op);"); + puts (" enum machine_mode mode = GET_MODE (op);"); if (needs_ival) puts (" HOST_WIDE_INT ival = 0;"); if (needs_hval) |