[980307]: Warning patches #2/5 - enumeration value not handled...

Manfred Hollstein manfred@s-direktnet.de
Sun Mar 8 10:20:00 GMT 1998


This small patch kills 616 `enumeration value `???' not handled in switch'
warnings.

gcc/ChangeLog:

Sun Mar  8 17:06:02 1998  Manfred Hollstein  <manfred@s-direktnet.de>

	* i386.md (andsi): Add default case in enumeration switch.
	(iorsi3): Likewise.
	(iorhi3): Likewise.
	(xorsi3): Likewise.

	* cse.c (rtx_cost): Add default case in enumeration switch.


gcc/cp/ChangeLog:

	* call.c (default_parm_conversions): Remove prototype definition.
	(build_method_call): Remove unused variable result.
	(build_over_call): Add default case in enumeration switch.

diff -rcp -x CVS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-980307.orig/gcc/config/i386/i386.md egcs-980307/gcc/config/i386/i386.md
*** egcs-980307.orig/gcc/config/i386/i386.md	Tue Mar  3 07:35:26 1998
--- egcs-980307/gcc/config/i386/i386.md	Sun Mar  8 11:17:22 1998
*************** word_zero_and_operation:
*** 3797,3802 ****
--- 3797,3805 ----
  	  operands[0] = adj_offsettable_operand (operands[0], 2);
  	  goto word_zero_and_operation;
  	}
+ 
+     default:
+       break;
      }
  
    return AS2 (and%L0,%2,%0);
*************** byte_or_operation:
*** 3995,4000 ****
--- 3998,4006 ----
  	  operands[0] = adj_offsettable_operand (operands[0], 3);
  	  goto byte_or_operation;
  	}
+ 
+     default:
+       break;
      }
  
    return AS2 (or%L0,%2,%0);
*************** byte_or_operation:
*** 4058,4063 ****
--- 4064,4072 ----
  
  	  goto byte_or_operation;
  	}
+ 
+     default:
+       break;
      }
  
    if (REG_P (operands[0])
*************** byte_xor_operation:
*** 4168,4173 ****
--- 4177,4185 ----
  	  operands[0] = adj_offsettable_operand (operands[0], 3);
  	  goto byte_xor_operation;
  	}
+ 
+     default:
+       break;
      }
  
    return AS2 (xor%L0,%2,%0);
diff -rcp -x CVS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-980307.orig/gcc/cp/call.c egcs-980307/gcc/cp/call.c
*** egcs-980307.orig/gcc/cp/call.c	Thu Mar  5 09:20:42 1998
--- egcs-980307/gcc/cp/call.c	Sun Mar  8 12:12:06 1998
*************** build_over_call (fn, convs, args, flags)
*** 3341,3346 ****
--- 3340,3347 ----
  	if (converted_args == 0)
  	  return integer_zero_node;
  	return build_unary_op (ABS_EXPR, TREE_VALUE (converted_args), 0);
+       default:
+         break;
        }
  
    fn = build_call (fn, TREE_TYPE (TREE_TYPE (TREE_TYPE (fn))), converted_args);
diff -rcp -x CVS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-980307.orig/gcc/cse.c egcs-980307/gcc/cse.c
*** egcs-980307.orig/gcc/cse.c	Sun Mar  1 16:09:59 1998
--- egcs-980307/gcc/cse.c	Sun Mar  8 11:40:30 1998
*************** rtx_cost (x, outer_code)
*** 751,756 ****
--- 751,759 ----
        RTX_COSTS (x, code, outer_code);
  #endif 
        CONST_COSTS (x, code, outer_code);
+ 
+     default:
+       break;
      }
  
    /* Sum the costs of the sub-rtx's, plus cost of this operation,



More information about the Gcc-bugs mailing list