OSDN Git Service

* genpreds.c (write_insn_extra_address_constraint): Argument `c'
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Mar 2006 16:09:52 +0000 (16:09 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Mar 2006 16:09:52 +0000 (16:09 +0000)
is operand of switch, not str[0].

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112225 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/genpreds.c

index 68487e9..9e31001 100644 (file)
@@ -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
index e31e64d..425e725 100644 (file)
@@ -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)