This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFT] PR19154: New AVR bit extraction patter
- From: Andrew Hutchinson <andrewhutchinson at cox dot net>
- To: Paul Schlie <schlie at comcast dot net>
- Cc: Roger Sayle <roger at eyesopen dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 14 Mar 2005 20:04:25 -0500
- Subject: Re: [RFT] PR19154: New AVR bit extraction patter
- References: <BE5B0749.972F%schlie@comcast.net>
I'm testing Rogers patch usig Paul's code.
Mind gone blank -what are the "C" default promotion rules as used by
gcc when extending an "UNSIGNED char" into a calculation whose result
will be signed int?
like:
unsigned char c;
int i = (c&8) !=0;