This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: possible bug in gcc/final.c, strange warning
- To: schmid at ltoi dot iap dot physik dot tu-darmstadt dot de, wilson at cygnus dot com
- Subject: Re: possible bug in gcc/final.c, strange warning
- From: Michael Meissner <meissner at cygnus dot com>
- Date: Tue, 28 Apr 1998 07:00:16 -0400
- Cc: egcs-bugs at cygnus dot com, jfc at mit dot edu
| final.c: In function `split_double':
| final.c:3685: warning: left shift count is negative
|
| This due to John Carr's recent changes.
|
| The code is actually OK, because the shift is protected by an if statement,
| and hence we will never execute a negative shift. The compiler doesn't
| know this though, and gives us an annoying warning. It would be nice if
| the code could be rewritten to avoid this problem.
I noticed this yesterday while doing the system.h change, and checked in a
fix.
Mon Apr 27 08:55:23 1998 Michael Meissner <meissner@cygnus.com>
* system.h (abort): If abort is not defined, and neither is
USE_SYSTEM_ABORT, redefine abort to call fprintf and exit,
reporting the line and filename of the error.
* .gdbinit: Add breakpoints on exit and fancy_abort.
* final.c (split_double): Avoid a compiler warning if
BITS_PER_WORD is less than or equal to HOST_BIT_PER_WIDE_INT.