From fa68768199c0625d5313c50277834f73dc1651cd Mon Sep 17 00:00:00 2001 From: borutr Date: Sun, 16 Nov 2008 12:55:47 +0000 Subject: [PATCH] * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5 * doc/sdccman.lyx: documented fixed unnamed bit-field initialization git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5271 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- .version | 2 +- ChangeLog | 5 +++ doc/sdccman.lyx | 90 +++++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 94 insertions(+), 3 deletions(-) diff --git a/.version b/.version index 2701a226..766d7080 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -2.8.4 +2.8.5 diff --git a/ChangeLog b/ChangeLog index 59e0f40b..c86d3fdc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-16 Borut Razem + + * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5 + * doc/sdccman.lyx: documented fixed unnamed bit-field initialization + 2008-11-15 Borut Razem * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c, diff --git a/doc/sdccman.lyx b/doc/sdccman.lyx index 1811370b..56e55148 100644 --- a/doc/sdccman.lyx +++ b/doc/sdccman.lyx @@ -104,7 +104,7 @@ SDCC Compiler User Guide \begin_layout Date \size normal -SDCC 2.8.4 +SDCC 2.8.5 \size footnotesize \newline @@ -1176,6 +1176,93 @@ libc/stdio/vfprintf.c and device/lib/pic16/libc/stdio/printf_tiny.c and recompil g the library. \end_layout +\begin_layout Itemize +in versions older then 2.8.5 the unnamed bitfield structure members participated + in initialization, which is not conforming with ISO/IEC 9899:1999 standard + (see section Section 6.7.8 Initialization, clause 9) +\newline + +\newline +Old behaviour, before + version 2.8.5: +\family typewriter + +\newline +\InsetSpace ~ +\InsetSpace ~ +struct { +\newline +\InsetSpace ~ +\InsetSpace ~ +\InsetSpace ~ +\InsetSpace ~ +int a : 2; +\newline +\InsetSpace ~ +\InsetSpace ~ +\InsetSpace ~ +\InsetSpace ~ +char\InsetSpace ~ + : 2; +\newline +\InsetSpace ~ +\InsetSpace ~ +\InsetSpace ~ +\InsetSpace ~ +int b : 2; +\newline +\InsetSpace ~ +\InsetSpace ~ +} s = {1, 2, 3}; +\family default + +\newline + +\family typewriter +/* s.a = 1, s.b = 3 */ +\family default + +\newline + +\newline +New behaviour: +\family typewriter + +\newline +\InsetSpace ~ +\InsetSpace ~ +struct { +\newline +\InsetSpace ~ +\InsetSpace ~ +\InsetSpace ~ +\InsetSpace ~ +int a : 2; +\newline +\InsetSpace ~ +\InsetSpace ~ +\InsetSpace ~ +\InsetSpace ~ +char\InsetSpace ~ + : 2; +\newline +\InsetSpace ~ +\InsetSpace ~ +\InsetSpace ~ +\InsetSpace ~ +int b : 2; +\newline +\InsetSpace ~ +\InsetSpace ~ +} s = {1, 2}; +\family default + +\newline + +\family typewriter +/* s.a = 1, s.b = 2 */ +\end_layout + \begin_layout Section System Requirements \end_layout @@ -26360,7 +26447,6 @@ status collapsed \begin_layout Standard -\family typewriter \backslash -- 2.30.2