This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: possible bug in gcc/final.c, strange warning


| 	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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]