This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: ARM targetted gcc hangs
- To: Paul Clifford <paul at plasma dot demon dot co dot uk>
- Subject: Re: ARM targetted gcc hangs
- From: Scott Bambrough <scottb at netwinder dot org>
- Date: Fri, 03 Mar 2000 14:14:19 -0500
- CC: egcs-bugs at egcs dot cygnus dot com
- Organization: Rebel.com
- References: <38C0092B.F5E6AABA@plasma.demon.co.uk>
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