This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Strange shifting behaviour
- From: corey taylor <corey dot taylor at gmail dot com>
- To: John Yates <jyates at netezza dot com>
- Cc: Eljay Love-Jensen <eljay at adobe dot com>, Ulf Magnusson <ulfalizer at gmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Wed, 13 Jul 2005 14:01:00 -0500
- Subject: Re: Strange shifting behaviour
- References: <F0CD2E5262214F44959AD6AF34ADA66E01D13106@mail2.netezza.com>
- Reply-to: corey taylor <corey dot taylor at gmail dot com>
> Are you going to issue a warning on every shift operation
> for which you cannot prove that the shift count is within
> the "defined behavior" range?
Well no, or you could and simply have it implement "up to" the defined
behavior range.
However, Ulf's example seems to show that a shift never happens
(although I'd like to see the code generated and cannot generate my
own at this time (hurricane issues had me take down gcc/g++ dev
machines). A more severe warning at least is called for here.
corey