summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2006-12-06 18:08:51 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2006-12-06 18:08:51 +0000
commit9430e4a9f2fce8b320791543db932fbdb69ea6ca (patch)
tree0ceb54c605df5fbee22e0d49667d902521bf8778 /include
parent7e8bc5b6ff166e0201ea467c7a61452dfefeb2e8 (diff)
downloadppe42-gcc-9430e4a9f2fce8b320791543db932fbdb69ea6ca.tar.gz
ppe42-gcc-9430e4a9f2fce8b320791543db932fbdb69ea6ca.zip
* ansidecl.h (ATTRIBUTE_PACKED): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119587 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/ansidecl.h6
2 files changed, 10 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 017d3fd30b5..572f45ad771 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2006-12-06 Nick Clifton <nickc@redhat.com>
+
+ * ansidecl.h (ATTRIBUTE_PACKED): Define.
+
2006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
J"orn Rennecke <joern.rennecke@st.com>
diff --git a/include/ansidecl.h b/include/ansidecl.h
index a1a765d63f3..16adc47a1bf 100644
--- a/include/ansidecl.h
+++ b/include/ansidecl.h
@@ -361,6 +361,12 @@ So instead we use the macro below and test it against specific values. */
# endif /* GNUC >= 3.0 */
#endif /* ATTRIBUTE_ALIGNED_ALIGNOF */
+/* Useful for structures whose layout must much some binary specification
+ regardless of the alignment and padding qualities of the compiler. */
+#ifndef ATTRIBUTE_PACKED
+# define ATTRIBUTE_PACKED __attribute__ ((packed))
+#endif
+
/* We use __extension__ in some places to suppress -pedantic warnings
about GCC extensions. This feature didn't work properly before
gcc 2.8. */
OpenPOWER on IntegriCloud