Commit 3b664bd1 by Jan-Benedict Glaw Committed by Ian Lance Taylor

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
parent d8f8ca80
2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* genpreds.c: (needs_variable): Fix parentheses at variable name
detection.
(write_tm_constrs_h): Indent generated code.
2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
* doc/extend.texi (Function Attributes): Add documentation * doc/extend.texi (Function Attributes): Add documentation
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- prototype declarations for operand predicates (tm-preds.h) - prototype declarations for operand predicates (tm-preds.h)
- function definitions of operand predicates, if defined new-style - function definitions of operand predicates, if defined new-style
(insn-preds.c) (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. Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -234,7 +234,7 @@ needs_variable (rtx exp, const char *var) ...@@ -234,7 +234,7 @@ needs_variable (rtx exp, const char *var)
if (q != p && (ISALNUM (q[-1]) || q[-1] == '_')) if (q != p && (ISALNUM (q[-1]) || q[-1] == '_'))
return false; return false;
q += strlen (var); q += strlen (var);
if (ISALNUM (q[0] || q[0] == '_')) if (ISALNUM (q[0]) || q[0] == '_')
return false; return false;
} }
return true; return true;
...@@ -1103,7 +1103,7 @@ write_tm_constrs_h (void) ...@@ -1103,7 +1103,7 @@ write_tm_constrs_h (void)
"{\n", c->c_name, "{\n", c->c_name,
needs_op ? "op" : "ARG_UNUSED (op)"); needs_op ? "op" : "ARG_UNUSED (op)");
if (needs_mode) if (needs_mode)
puts ("enum machine_mode mode = GET_MODE (op);"); puts (" enum machine_mode mode = GET_MODE (op);");
if (needs_ival) if (needs_ival)
puts (" HOST_WIDE_INT ival = 0;"); puts (" HOST_WIDE_INT ival = 0;");
if (needs_hval) if (needs_hval)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment