From 3b664bd1dab8cf90edd168913e8bf50bb262343a Mon Sep 17 00:00:00 2001 From: Jan-Benedict Glaw Date: Fri, 6 Mar 2009 19:13:04 +0000 Subject: [PATCH] genpreds.c: (needs_variable): Fix parentheses at variable name detection. * genpreds.c: (needs_variable): Fix parentheses at variable name detection. (write_tm_constrs_h): Indent generated code. From-SVN: r144679 --- gcc/ChangeLog | 6 ++++++ gcc/genpreds.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e6a3ba7104dc..da4033309ed3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-03-06 Jan-Benedict Glaw + + * genpreds.c: (needs_variable): Fix parentheses at variable name + detection. + (write_tm_constrs_h): Indent generated code. + 2009-03-06 Ramana Radhakrishnan * doc/extend.texi (Function Attributes): Add documentation diff --git a/gcc/genpreds.c b/gcc/genpreds.c index e0fb3f42e520..a1232e9573f0 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) -- 2.47.2