* gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.

Fix for pr12402 (c/h from toshiba).
This commit is contained in:
Jeff Law 1997-07-02 17:57:56 +00:00
parent b709b16fdc
commit ae19b07bf8
2 changed files with 20 additions and 3 deletions

View File

@ -1,4 +1,14 @@
start-sanitize-r5900
Wed Jul 2 11:54:10 1997 Jeffrey A Law (law@cygnus.com)
* gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.
Wed Jun 4 10:43:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
* interp.c (decode_coproc): Implement MTC0 N, CAUSE.
(SignalException): For BreakPoints ignore any mode bits and just
save the PC.
(SignalException): Always set the CAUSE register.
Tue Jun 3 05:00:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
* interp.c (SignalException): Clear the simDELAYSLOT flag when an
@ -6,6 +16,7 @@ Tue Jun 3 05:00:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
* interp.c: Implement the ERET and mt/f sr instructions.
start-sanitize-r5900
Mon Jun 2 23:28:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
* gencode.c (build_instruction): For paddu, extract unsigned

View File

@ -117,10 +117,16 @@
#define FEATURE_WARN_R31 (1 << 28) /* 0 = nothing; 1 = generate warnings if r31 used dangerously */
#define FEATURE_WARN_RESULT (1 << 29) /* 0 = nothing; 1 = generate warnings when undefined results may occur */
/* We used to enable FEATURE_WARN_ZERO, but it is perfectly legitimate to
have the zero register as a destination -- the zero register just doesn't
actually change. */
/* start-sanitize-r5900 */
/* The 5900 madd instructions for example use this feature. */
/* end-sanitize-r5900 */
#if 1
#define FEATURE_WARNINGS (FEATURE_WARN_STALL | FEATURE_WARN_LOHI | FEATURE_WARN_ZERO | FEATURE_WARN_R31)
#define FEATURE_WARNINGS (FEATURE_WARN_STALL | FEATURE_WARN_LOHI | FEATURE_WARN_R31)
#else
#define FEATURE_WARNINGS (FEATURE_WARN_STALL | FEATURE_WARN_LOHI | FEATURE_WARN_ZERO | FEATURE_WARN_R31 | FEATURE_WARN_RESULT)
#define FEATURE_WARNINGS (FEATURE_WARN_STALL | FEATURE_WARN_LOHI | FEATURE_WARN_R31 | FEATURE_WARN_RESULT)
#endif
/* FEATURE_WARN_STALL */