Bug#675759: avr-libc/pgmspace.h is not ANSI compliant
Hello Hakan Thank you for the fast response. I filed this bug report on Savannah. This is #36581. I don't know, how to link this bug report with the bug report on Savannah. Please create the link. Best regards Bernhard Am 03.06.2012 10:22, schrieb Hakan Ardo: > Hi, > thanx for the report. This does not seem to be debian specific so > please consider reporting it upstream aswell: > > http://savannah.nongnu.org/bugs/?group=avr-libc > -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#675759: avr-libc/pgmspace.h is not ANSI compliant
Hi, thanx for the report. This does not seem to be debian specific so please consider reporting it upstream aswell: http://savannah.nongnu.org/bugs/?group=avr-libc On Sun, Jun 3, 2012 at 10:02 AM, Bernhard wrote: > Package: avr-libc > Version: 1.8.0-2 > Severity: normal > > Hello, > > the header file pgmspace.h uses the inline-attribute. > This attribute is not part of ANSI C. > > My programs are compiled with the option -ansi. > Here is a minimal test program: > >> #include >> #include >> >> int main (void) >> { >> while (1); >> return (0); >> } > > Please compile this with: > $ avr-gcc -mmcu=atmega644p -ansi > > Compilation aborts because of the non-ansi include attribute in pgmspace.h > > In GCC manual: > there is the predefined macro __STRICT_ANSI__ available, if parameter > -ansi is used. > Please don't use the inline-attribute in case of __STRICT_ANSI__. > > In avr-libc manual: > it is described, that this library has to be an ansi-c library. > This is described in chapter 1.2. > > If you need more informations, please let me know. > > Best regards > Bernhard > > -- Håkan Ardö -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#675759: avr-libc/pgmspace.h is not ANSI compliant
Package: avr-libc Version: 1.8.0-2 Severity: normal Hello, the header file pgmspace.h uses the inline-attribute. This attribute is not part of ANSI C. My programs are compiled with the option -ansi. Here is a minimal test program: > #include > #include > > int main (void) > { > while (1); > return (0); > } Please compile this with: $ avr-gcc -mmcu=atmega644p -ansi Compilation aborts because of the non-ansi include attribute in pgmspace.h In GCC manual: there is the predefined macro __STRICT_ANSI__ available, if parameter -ansi is used. Please don't use the inline-attribute in case of __STRICT_ANSI__. In avr-libc manual: it is described, that this library has to be an ansi-c library. This is described in chapter 1.2. If you need more informations, please let me know. Best regards Bernhard -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org