diff options
author | Richard Biener <rguenther@suse.de> | 2013-02-20 09:04:29 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2013-02-20 09:04:29 +0000 |
commit | 71a86758d55e6e250c1886567311575276a59566 (patch) | |
tree | 515f742381261a9f1914dd130189f03c2c946f1f /gcc/genpreds.c | |
parent | 79836a12e3349fb81b1e184ac87080dc880d09af (diff) | |
download | gcc-71a86758d55e6e250c1886567311575276a59566.zip gcc-71a86758d55e6e250c1886567311575276a59566.tar.gz gcc-71a86758d55e6e250c1886567311575276a59566.tar.bz2 |
genpreds.c (write_lookup_constraint): Do not compare first letter of the constraint again.
2013-02-20 Richard Biener <rguenther@suse.de>
* genpreds.c (write_lookup_constraint): Do not compare first
letter of the constraint again.
From-SVN: r196167
Diffstat (limited to 'gcc/genpreds.c')
-rw-r--r-- | gcc/genpreds.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/genpreds.c b/gcc/genpreds.c index 09fc87b..98488e3 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); |