PR27283 gas for alpha fails to build with gcc 11
authorAlan Modra <amodra@gmail.com>
Sun, 31 Jan 2021 01:32:54 +0000 (12:02 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 1 Feb 2021 08:05:33 +0000 (18:35 +1030)
PR 27283
* config/tc-alpha.c (insert_operand): Delete dead code.

gas/ChangeLog
gas/config/tc-alpha.c

index b3eb7db8cf95ff8bcfbe343968113d5c9cec0267..c6af91d3ec182d6544e36f0ed2785f8063e0e8e4 100644 (file)
@@ -1,3 +1,8 @@
+2021-02-01  Alan Modra  <amodra@gmail.com>
+
+       PR 27283
+       * config/tc-alpha.c (insert_operand): Delete dead code.
+
 2021-01-26  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR gas/27243
index 030ba21b523dbbface7dc218043f073420ad36d6..6225f37f6e1827209951bbf17346f50634bd3064 100644 (file)
@@ -1973,7 +1973,7 @@ insert_operand (unsigned insn,
                const char *file,
                unsigned line)
 {
-  if (operand->bits != 32 && !(operand->flags & AXP_OPERAND_NOOVERFLOW))
+  if (!(operand->flags & AXP_OPERAND_NOOVERFLOW))
     {
       offsetT min, max;