diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-20 09:04:29 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-20 09:04:29 +0000 |
commit | 0b588b3db3adf5649afe41a0f259db4336348a7d (patch) | |
tree | 515f742381261a9f1914dd130189f03c2c946f1f /gcc/genpreds.c | |
parent | d2ec9d3b1c37c0e0b9c28d83a9caf108243743ca (diff) | |
download | gcc-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.c | 5 |
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); |