Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » AVR-GCC
  • » [avr-gcc-list] [Bug target/35634] New: [avr] result of char promotion comes out of CHAR_MIN/MAX [RSS Feed]

#1 March 20, 2008 09:42:05

Rolf E.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] [Bug target/35634] New: [avr] result of char promotion comes out of CHAR_MIN/MAX


Dave N6NZ schrieb:Dmitry K. wrote:Now I can not understand, why the Standart permits
'undefined behavior' with ordinary overflow,Well, checking for integer overflow can cause a lot of code to begenerated on some architectures. That becomes both a space andperformance issue. In general, the C standard favors fast and smallover tightly defined results.You might like Ada :)
Just kidding.Due to the poor code that gcc generates for detecting overflow (on allplatforms), overflow detection is swithced off by default in gcc-Ada.You really have to insist and know about the -gnato option to get astandard conforming Ada compiler.For not getting completely off topic on the avr-gcc mailing list let mepoint out that integer overflow is signaled by an exception in Ada andexceptions are not (yet) supported in AVR-Ada.Rolf


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#2 March 22, 2008 08:51:03

Joerg W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] [Bug target/35634] New: [avr] result of char promotion comes out of CHAR_MIN/MAX


Rolf Ebert <> wrote:

> For not getting completely off topic on the avr-gcc mailing list ...

I wouldn't consider that off-topic. After all, AVR-Ada is part of GCC
(the GNU compiler collection).

--
cheers, J"org .-.-. --... ...-- -.. . DL8DTLhttp://www.sax.de/~joerg/NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

  • Root
  • » AVR-GCC
  • » [avr-gcc-list] [Bug target/35634] New: [avr] result of char promotion comes out of CHAR_MIN/MAX [RSS Feed]

Board footer

Moderator control

Enjoy the 16th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support