This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in GCC
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: "Jarek Pelczar" <jarekp3 at wp dot pl>
- Cc: <bug-gcc at gnu dot org>
- Date: Fri, 7 Feb 2003 11:46:18 +0100
- Subject: Re: Bug in GCC
- References: <000b01c2ce91$f22a3f70$8bd84dd5@domehboj416vqm>
> #define TASK_MEMORY_START 0x1000000
> #define MAX_TASK_MEMORY (512<<12) /* Max 512MB */
>
> TASK_MEMORY_BEGIN=TASK_MEMORY_START;
>
> for(i=TASK_MEMORY_BEGIN;i<MAX_TASK_MEMORY;i+=1024,p+=1024)
> {
> *p=0x1BADB002;
> if((*p)!=0x1BADB002) break;
> }
This loop can be reduced to:
i = TASK_MEMORY_BEGIN;
hence the resulting assembly code.
--
Eric Botcazou