This is the mail archive of the gcc-help@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] |
On Tue, May 13, 2008 at 9:13 PM, Nick Spence <nick.spence@freescale.com> wrote:addr = 0; for (i = 0; i < 16; i++) *(addr++) = 0;
I got a conditional jump by replacing your initialization of addr with:
asm("" : "=g" (addr) : "0" (0));
That should make the NULL-ness of addr invisible to GCC.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |