This is the mail archive of the gcc@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] |
| Other format: | [Raw text] | |
Afternoon all. Here's something that's piqued my curiosity; it's probably
owing to some language-lawyerly issue, but it isn't obvious to me. This is
on gcc-3.3.3, (cygwin variant, but that's probably not relevant):
-------------------------<snip!>------------------------- dk@mace /test/shift-test> cat foo.c
unsigned int bar (unsigned int baz) { unsigned int quux;
quux = baz >> 32;
return quux;
}
Why isn't the shift operation optimised away and replaced with const_int
0?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |