OSDN Git Service

PR bootstrap/42369
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Dec 2009 19:59:00 +0000 (19:59 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Dec 2009 19:59:00 +0000 (19:59 +0000)
* config/i386/i386.c (ix86_expand_special_args_builtin): Avoid
using switch with CODE_FOR_lwp_lwp* cases.

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

gcc/ChangeLog
gcc/config/i386/i386.c

index badfe80..467a8a2 100644 (file)
@@ -1,5 +1,9 @@
 2009-12-14  Jakub Jelinek  <jakub@redhat.com>
 
+       PR bootstrap/42369
+       * config/i386/i386.c (ix86_expand_special_args_builtin): Avoid
+       using switch with CODE_FOR_lwp_lwp* cases.
+
        * config/i386/i386-builtin-types.def (PVOID_FTYPE_VOID): Use
        DEF_FUNCTION_TYPE (PVOID) instead of DEF_FUNCTION_TYPE (PVOID, VOID).
 
index 9b739a6..281bd41 100644 (file)
@@ -23836,19 +23836,16 @@ ix86_expand_special_args_builtin (const struct builtin_description *d,
       if (last_arg_constant && (i + 1) == nargs)
        {
          if (!match)
-           switch (icode)
-             {
-             case CODE_FOR_lwp_lwpvalsi3:
-             case CODE_FOR_lwp_lwpvaldi3:
-             case CODE_FOR_lwp_lwpinssi3:
-             case CODE_FOR_lwp_lwpinsdi3:
+           {
+             if (icode == CODE_FOR_lwp_lwpvalsi3
+                 || icode == CODE_FOR_lwp_lwpinssi3
+                 || icode == CODE_FOR_lwp_lwpvaldi3
+                 || icode == CODE_FOR_lwp_lwpinsdi3)
                error ("the last argument must be a 32-bit immediate");
-               return const0_rtx;
-
-             default:
+             else
                error ("the last argument must be an 8-bit immediate");
-               return const0_rtx;
-             }
+             return const0_rtx;
+           }
        }
       else
        {