This is the mail archive of the gcc-bugs@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]

Re: ARM targetted gcc hangs


This problem has been reported before.  A description and analysis is available
at:

http://gcc.gnu.org/ml/gcc-bugs/1999-06/msg00853.html

It is still a problem in all ARM versions including gcc 2.95.2 and the current
arm-thumb branch in CVS.  I haven't tried the main line, but I can't imagine it
will be any different.  BTW, if anyone is interested I keep a record of known
ARM related compiler bugs at:

http://www.netwinder.org/~scottb/notes/Compiler-Notes-all.html

Scott

Paul Clifford wrote:
> 
> The following program, when compiled with -O1 or greater, causes an ARM
> targetted gcc to hang without producing any output:
> 
> void main()
> {
>   unsigned long u;
>   u = 1;
>   u += u; u += u; u += u; u += u; u += u; u += u; u += u; u += u;
>   u += u; u += u; u += u; u += u; u += u; u += u; u += u; u += u;
>   u += u; u += u; u += u; u += u; u += u; u += u; u += u; u += u;
>   u += u; u += u; u += u; u += u; u += u; u += u; u += u; u += u;
>   if (!u) _exit(0);
>   _exit(1);
> }
> 

-- 
Scott Bambrough - Software Engineer
REBEL.COM    http://www.rebel.com
NetWinder    http://www.netwinder.org

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]