* .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 16 Nov 2008 12:55:47 +0000 (12:55 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 16 Nov 2008 12:55:47 +0000 (12:55 +0000)
* 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
ChangeLog
doc/sdccman.lyx

index 2701a226a2f023fc61ffea3ec329da44c8681cad..766d70806b3f339ade3040409afe64f941a0c7c2 100644 (file)
--- a/.version
+++ b/.version
@@ -1 +1 @@
-2.8.4
+2.8.5
index 59e0f40b66578bb48a222988a0ee4a6e8a71b7c7..c86d3fdc69bbf174f32e8d4f4cc8628001ac43b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-16 Borut Razem <borut.razem AT siol.net>
+
+       * .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 <borut.razem AT siol.net>
 
        * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
index 1811370b7cf8e4a05348a5e9bf0b4be507fd4c82..56e55148978a39b0b0eb580975561bec031b2c40 100644 (file)
@@ -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