diff mbox series

[alpha] : Fix bootstrap failure due to -Wtautological-compare warning

Message ID CAFULd4by_VC9c-y20ZyJj3CBPiihZakVK9HMMeecHS7SuZzERg@mail.gmail.com
State New
Headers show
Series [alpha] : Fix bootstrap failure due to -Wtautological-compare warning | expand

Commit Message

Uros Bizjak Sept. 8, 2017, 2:24 p.m. UTC
The alpha bootstrap currently fails due to always true condition
warning in a dead code.

Patch removes the unneeded code.

2017-09-08  Uros Bizjak  <ubizjak@gmail.com>

    * config/alpha/alpha.c (alpha_print_operand) <case 'S'>: Remove.

Bootstrapped and regression tested on alphaev68-linux-gnu.

Committed to mainline SVN.

Uros.
diff mbox series

Patch

Index: config/alpha/alpha.c
===================================================================
--- config/alpha/alpha.c	(revision 251898)
+++ config/alpha/alpha.c	(working copy)
@@ -5294,17 +5294,6 @@  alpha_print_operand (FILE *file, rtx x, int code)
       fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (x) / 8);
       break;
 
-    case 'S':
-      /* Same, except compute (64 - c) / 8 */
-
-      if (!CONST_INT_P (x)
-	  && (unsigned HOST_WIDE_INT) INTVAL (x) >= 64
-	  && (INTVAL (x) & 7) != 8)
-	output_operand_lossage ("invalid %%s value");
-
-      fprintf (file, HOST_WIDE_INT_PRINT_DEC, (64 - INTVAL (x)) / 8);
-      break;
-
     case 'C': case 'D': case 'c': case 'd':
       /* Write out comparison name.  */
       {