summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2006-03-20 16:09:52 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2006-03-20 11:09:52 -0500
commit7a22dbec36019060c01d68ea8703e2a11d4d2247 (patch)
treea369b53ee309d12e84fa37898ceaa31c34975908
parent2286285206a59191d6e9b954902241d174af3631 (diff)
downloadgcc-7a22dbec36019060c01d68ea8703e2a11d4d2247.tar.gz
genpreds.c (write_insn_extra_address_constraint): Argument `c' is operand of switch, not str[0].
* genpreds.c (write_insn_extra_address_constraint): Argument `c' is operand of switch, not str[0]. From-SVN: r112225
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/genpreds.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 68487e94a4b..9e31001c0c5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-20 David Edelsohn <edelsohn@gnu.org>
+
+ * genpreds.c (write_insn_extra_address_constraint): Argument `c'
+ is operand of switch, not str[0].
+
2006-03-20 Alan Modra <amodra@bigpond.net.au>
* config/rs6000/rs6000.c (rs6000_handle_option): Use
diff --git a/gcc/genpreds.c b/gcc/genpreds.c
index e31e64db842..425e7253f09 100644
--- a/gcc/genpreds.c
+++ b/gcc/genpreds.c
@@ -1088,7 +1088,7 @@ write_insn_extra_address_constraint (void)
puts ("bool\n"
"insn_extra_address_constraint (enum constraint_num c)\n"
"{\n"
- " switch (str[0])\n"
+ " switch (c)\n"
" {");
FOR_ALL_CONSTRAINTS (c)