avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] [bugs #11396] Large number jumps to hyperspace


From: Wojtek Kaniewski
Subject: Re: [avr-libc-dev] [bugs #11396] Large number jumps to hyperspace
Date: Sun, 26 Dec 2004 12:11:33 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20040913 Thunderbird/0.8 Mnenhy/0.6.0.104

Joerg Wunsch wrote:
 uint16_t baud=9600
 uint16_t reg=16000000/(16*baud) - 1;

makes an atmega16 jump to some spurious place and crash.  Using
avr-libc 1.0.5 avr-gcc (GCC) 3.4.3 GNU avr-ld version 2.15

Anyway, as this code cannot `jump' at all (nothing is really
executed), do you perhaps have a complete compilable example where
this can be reproduced?

what about __udivmodsi4? it's rather obvious that variable `baud' is just an example and in the real code it's not constant. (but yes, it still looks like a GCC bug.)

regards,
wojtek




reply via email to

[Prev in Thread] Current Thread [Next in Thread]