This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Strange shifting behaviour
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: John Yates <jyates at netezza dot com>, corey taylor <corey dot taylor at gmail dot com>
- Cc: Ulf Magnusson <ulfalizer at gmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Wed, 13 Jul 2005 14:02:32 -0500
- Subject: RE: Strange shifting behaviour
- References: <F0CD2E5262214F44959AD6AF34ADA66E01D13106@mail2.netezza.com>
Hi John,
>It depends on whether you want acknowledge the impression that your compiler makes on users who are not language lawyers.
It's not a GCC issue. The behavior is undefined by the C and C++ standards.
In my opinion, I prefer that the compiler-at-compiler-time didn't perform the "format my hard drive" as the compiler specific undefined behavior that may occur during the executable run of my own program.
But that's just me. YMMV.
Sincerely,
--Eljay