------- Comment #3 from gcc at jme dot de  2008-10-07 23:29 -------
Hi Joseph,

because the the problem occurs only with the compiler switch -O.
And the problem occurs not if I place a "printf("xx")" between
the two statements "if" and "for". Therefore, I thought it was a
more target independend optimization problem.

But now I'd checked this behaviour with i386 Linux 
(after installing g++ with "apt-get install g++")
-> "gcc-Version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)"
and it works correct there.

I'll post the bug report to the AVR32 Linux site.

Sorry about wasting your time. This was my 1st bug post.
Next time I'll compare the behaviour on my Linux PC before posting.

Thanx,
    Joe.(In reply to comment #1)
> Subject: Re:   New: Segmentation Fault Exception with -O and
>  signed array index
> 
> On Mon, 6 Oct 2008, gcc at jme dot de wrote:
> 
> > The following code produces a segmentation fault when compiled with -O.
> > Environment is GCC V4.2.2 (also tested with 4.1.2) on AVR32 Linux target.
> 
> FSF GCC does not currently support AVR32, so you need to report this bug 
> to whoever you got your modified compiler with that support from.  The bug 
> reporting instructions at <http://gcc.gnu.org/bugs.html> say:
> 
>   What we do not want
> 
> ...
> 
>      * Bugs in releases or snapshots of GCC not issued by the GNU
>        Project. Report them to whoever provided you with the release
> 

(In reply to comment #1)
> Subject: Re:   New: Segmentation Fault Exception with -O and
>  signed array index
> 
> On Mon, 6 Oct 2008, gcc at jme dot de wrote:
> 
> > The following code produces a segmentation fault when compiled with -O.
> > Environment is GCC V4.2.2 (also tested with 4.1.2) on AVR32 Linux target.
> 
> FSF GCC does not currently support AVR32, so you need to report this bug 
> to whoever you got your modified compiler with that support from.  The bug 
> reporting instructions at <http://gcc.gnu.org/bugs.html> say:
> 
>   What we do not want
> 
> ...
> 
>      * Bugs in releases or snapshots of GCC not issued by the GNU
>        Project. Report them to whoever provided you with the release
> 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37745

Reply via email to