aboutsummaryrefslogtreecommitdiff
path: root/gcc/target-def.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gcc.gnu.org>2006-04-27 22:53:23 +0000
committerEric Christopher <echristo@gcc.gnu.org>2006-04-27 22:53:23 +0000
commit16d6f9946152f1d5deb56e2b816566f892c4cc76 (patch)
tree7544c1d5db81412c38f591c7b266ee7291942b52 /gcc/target-def.h
parent6f3d6562d8c6a82bf0ecf25651f35c556b4991ec (diff)
downloadgcc-16d6f9946152f1d5deb56e2b816566f892c4cc76.zip
gcc-16d6f9946152f1d5deb56e2b816566f892c4cc76.tar.gz
gcc-16d6f9946152f1d5deb56e2b816566f892c4cc76.tar.bz2
target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket with #ifndef/#endif.
2006-04-27 Eric Christopher <echristo@apple.com> * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket with #ifndef/#endif. * config/darwin-c.c (darwin_ms_struct): New. (darwin_pragma_ms_struct): Ditto. (darwin_set_default_type_attributes): Ditto. * config/darwin-protos.h (darwin_pragma_ms_struct): Declare. * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Register ms_struct pragma. * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare. (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto. * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call darwin_set_default_type_attributes if TARGET_MACHO. 2006-04-27 Eric Christopher <echristo@apple.com> * gcc.dg/pragma-ms_struct.c: New. From-SVN: r113327
Diffstat (limited to 'gcc/target-def.h')
-rw-r--r--gcc/target-def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/target-def.h b/gcc/target-def.h
index 3fd22f4..b1630a6 100644
--- a/gcc/target-def.h
+++ b/gcc/target-def.h
@@ -411,7 +411,9 @@ Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#define TARGET_USE_ANCHORS_FOR_SYMBOL_P default_use_anchors_for_symbol_p
#define TARGET_FUNCTION_OK_FOR_SIBCALL hook_bool_tree_tree_false
#define TARGET_COMP_TYPE_ATTRIBUTES hook_int_tree_tree_1
+#ifndef TARGET_SET_DEFAULT_TYPE_ATTRIBUTES
#define TARGET_SET_DEFAULT_TYPE_ATTRIBUTES hook_void_tree
+#endif
#define TARGET_INSERT_ATTRIBUTES hook_void_tree_treeptr
#define TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P hook_bool_tree_false
#define TARGET_MS_BITFIELD_LAYOUT_P hook_bool_tree_false