summaryrefslogtreecommitdiff
path: root/gcc/genpreds.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2013-02-20 09:04:29 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2013-02-20 09:04:29 +0000
commit0b588b3db3adf5649afe41a0f259db4336348a7d (patch)
tree515f742381261a9f1914dd130189f03c2c946f1f /gcc/genpreds.c
parentd2ec9d3b1c37c0e0b9c28d83a9caf108243743ca (diff)
downloadgcc-0b588b3db3adf5649afe41a0f259db4336348a7d.tar.gz
2013-02-20 Richard Biener <rguenther@suse.de>
* genpreds.c (write_lookup_constraint): Do not compare first letter of the constraint again. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196167 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genpreds.c')
-rw-r--r--gcc/genpreds.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/genpreds.c b/gcc/genpreds.c
index 09fc87b3dd1..98488e30b8b 100644
--- a/gcc/genpreds.c
+++ b/gcc/genpreds.c
@@ -945,9 +945,10 @@ write_lookup_constraint (void)
{
do
{
- printf (" if (!strncmp (str, \"%s\", %lu))\n"
+ printf (" if (!strncmp (str + 1, \"%s\", %lu))\n"
" return CONSTRAINT_%s;\n",
- c->name, (unsigned long int) c->namelen, c->c_name);
+ c->name + 1, (unsigned long int) c->namelen - 1,
+ c->c_name);
c = c->next_this_letter;
}
while (c);