aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/doc/extend.texi11
2 files changed, 19 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 41d4405..6c5fa70 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-11 Eric Christopher <echristo@apple.com>
+
+ PR 27542
+ * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
+ pragma.
+
2006-06-11 Roger Sayle <roger@eyesopen.com>
PR target/27858
@@ -105,11 +111,11 @@
2006-06-07 Andrew MacLeod <amacleod@redhat.com>
PR middle-end/27793
- * tree-dfa.c (referenced_vars_dup_list): New. List of duplicate
+ * tree-dfa.c (referenced_vars_dup_list): New. List of duplicate
referenced_variables with matching DECL_UID's.
(find_referenced_vars): Make sure duplicate list is empty to start.
(referenced_var_p): Remove.
- (referenced_var_check_and_insert): Renamed from referenced_var_insert.
+ (referenced_var_check_and_insert): Renamed from referenced_var_insert.
Check if var is in the list, and add if needed. Update the duplicate
list if a different var is in the list with the same DECL_UID.
(add_referenced_var): Call routine to check and insert.
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