aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorEric Christopher <echristo@gcc.gnu.org>2006-06-12 06:44:23 +0000
committerEric Christopher <echristo@gcc.gnu.org>2006-06-12 06:44:23 +0000
commit6bb7beac5f921b203fa212fdf94df2381d10f0c7 (patch)
treef9f2fc14a28b2f414956eecd61dc9e7fa23c5286 /gcc/doc
parent4119019bd756f9c97cbb0a0133371cf0cdd7f436 (diff)
downloadgcc-6bb7beac5f921b203fa212fdf94df2381d10f0c7.zip
gcc-6bb7beac5f921b203fa212fdf94df2381d10f0c7.tar.gz
gcc-6bb7beac5f921b203fa212fdf94df2381d10f0c7.tar.bz2
re PR target/27542 (the ms_struct pragma is not documented)
2006-06-11 Eric Christopher <echristo@apple.com> PR 27542 * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct pragma. From-SVN: r114561
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/extend.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 47b1fce..f029ca2 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -9672,6 +9672,17 @@ multiple @code{#pragma pack(@var{n})} instances and finalized by a single
@code{#pragma pack(pop)}.
@end enumerate
+Some targets, e.g. i386 and powerpc, support the @code{ms_struct}
+@code{#pragma} which lays out a structure as the documented
+@code{__attribute__ ((ms_struct))}.
+@enumerate
+@item @code{#pragma ms_struct on} turns on the layout for structures
+declared.
+@item @code{#pragma ms_struct off} turns off the layout for structures
+declared.
+@item @code{#pragma ms_struct reset} goes back to the default layout.
+@end enumerate
+
@node Weak Pragmas
@subsection Weak Pragmas