aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-12-14 20:59:00 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2009-12-14 20:59:00 +0100
commitc4900c10379d08d27f01437daae07b26730a2f56 (patch)
tree9a17c344011ba8df5458bbb3fc386572abc49371
parent1f6a2cafda37b95419b1fac61fd3216516bd1a5f (diff)
downloadgcc-c4900c10379d08d27f01437daae07b26730a2f56.zip
gcc-c4900c10379d08d27f01437daae07b26730a2f56.tar.gz
gcc-c4900c10379d08d27f01437daae07b26730a2f56.tar.bz2
re PR bootstrap/42369 (Revision 155217 failed to bootstrap)
PR bootstrap/42369 * config/i386/i386.c (ix86_expand_special_args_builtin): Avoid using switch with CODE_FOR_lwp_lwp* cases. From-SVN: r155237
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/i386/i386.c19
2 files changed, 12 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index badfe80..467a8a2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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).
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 9b739a6..281bd41 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -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
{