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

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

[avr-libc-commit] [2294] bug #36581: avr-libc: pgmspace.h is not ANSI co


From: Joerg Wunsch
Subject: [avr-libc-commit] [2294] bug #36581: avr-libc: pgmspace.h is not ANSI compliant
Date: Sun, 03 Jun 2012 20:08:31 +0000

Revision: 2294
          http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2294
Author:   joerg_wunsch
Date:     2012-06-03 20:08:31 +0000 (Sun, 03 Jun 2012)
Log Message:
-----------
bug #36581: avr-libc: pgmspace.h is not ANSI compliant
* include/avr/pgmspace.h (strlen_P): use __inline__ rather
than inline to be independent from the compiler's standard
level option

Ticket Links:
------------
    http://savannah.gnu.org/bugs/?36581

Modified Paths:
--------------
    trunk/avr-libc/ChangeLog
    trunk/avr-libc/NEWS
    trunk/avr-libc/include/avr/pgmspace.h

Modified: trunk/avr-libc/ChangeLog
===================================================================
--- trunk/avr-libc/ChangeLog    2012-05-22 15:16:53 UTC (rev 2293)
+++ trunk/avr-libc/ChangeLog    2012-06-03 20:08:31 UTC (rev 2294)
@@ -1,3 +1,10 @@
+2012-06-03  Joerg Wunsch <address@hidden>
+
+       bug #36581: avr-libc: pgmspace.h is not ANSI compliant
+       * include/avr/pgmspace.h (strlen_P): use __inline__ rather
+       than inline to be independent from the compiler's standard
+       level option
+
 2012-05-16  Joerg Wunsch <address@hidden>
 
        bug #31267: misleading header iom128rfa1.h

Modified: trunk/avr-libc/NEWS
===================================================================
--- trunk/avr-libc/NEWS 2012-05-22 15:16:53 UTC (rev 2293)
+++ trunk/avr-libc/NEWS 2012-06-03 20:08:31 UTC (rev 2294)
@@ -7,6 +7,7 @@
   [#35226] Online-documentation broken - [...]
   [#35398] assert doesn't work unless stdlib.h is also included
   [#36454] string.h: Error for long long in C90
+  [#36581] avr-libc: pgmspace.h is not ANSI compliant
 
 * New devices supported:
 

Modified: trunk/avr-libc/include/avr/pgmspace.h
===================================================================
--- trunk/avr-libc/include/avr/pgmspace.h       2012-05-22 15:16:53 UTC (rev 
2293)
+++ trunk/avr-libc/include/avr/pgmspace.h       2012-06-03 20:08:31 UTC (rev 
2294)
@@ -1081,8 +1081,8 @@
 extern int memcmp_PF(const void *, uint_farptr_t, size_t) __ATTR_PURE__;
 
 
-__attribute__((__always_inline__)) static inline size_t strlen_P(const char * 
s);
-static inline size_t strlen_P(const char *s) {
+__attribute__((__always_inline__)) static __inline__ size_t strlen_P(const 
char * s);
+static __inline__ size_t strlen_P(const char *s) {
   return __builtin_constant_p(__builtin_strlen(s))
      ? __builtin_strlen(s) : __strlen_P(s);
 } 




reply via email to

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