Hi,
in a realtime system, this kind of behaviour can be caused by a lot of
things and it's not at all clear that it's the compiler. If you are
possitive it's the compiler I would suggest that you file an upstream
bug-repport as describe in:

  /usr/share/doc/gcc-4.3/README.Bugs

On Sat, Jul 19, 2008 at 9:03 AM, Jasen Betts <[EMAIL PROTECTED]> wrote:
> Package: gcc-avr
> Version: 1:4.3.0-2
> Severity: important
> File: /usr/bin/avr-gcc
>
>
> I put a small piece of code that does uint8_t division (modulo (%)
> operator actually) in a function and called it from an isr
> this worked fine until I started making heavy use of modulo and division
> in the main part of the program - suddenly the main part stops
> working....
>
> moving the modulo operation into the ISR caused the bug to go away.
>
> -- System Information:
> Debian Release: lenny/sid
>  APT prefers testing
>  APT policy: (500, 'testing'), (500, 'stable')
> Architecture: i386 (i686)
>
> Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
> Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
>
> Versions of packages gcc-avr depends on:
> ii  binutils-avr              2.18-3         Binary utilities supporting 
> Atmel'
> ii  libc6                     2.7-10         GNU C Library: Shared libraries
> ii  libgmp3c2                 2:4.2.2+dfsg-3 Multiprecision arithmetic library
> ii  libmpfr1ldbl              2.3.1.dfsg.1-2 multiple precision floating-point
>
> gcc-avr recommends no packages.
>
> -- no debconf information
>
>
>



-- 
Håkan Ardö



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to