* 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
+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,
\begin_layout Date
\size normal
-SDCC 2.8.4
+SDCC 2.8.5
\size footnotesize
\newline
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
\begin_layout Standard
-\family typewriter
\backslash