aboutsummaryrefslogtreecommitdiff
path: root/gcc/target-def.h
diff options
context:
space:
mode:
authorNeil Booth <neil@gcc.gnu.org>2001-06-27 17:40:01 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-06-27 17:40:01 +0000
commita8b997e8c4a0e1fb517f2d270f3ca3a990b01c24 (patch)
tree9ea54e7b8ab4394ac7a5e06af31cbddec5e92922 /gcc/target-def.h
parent42526146aa67410f50c45ed38953bb6c233e325f (diff)
downloadgcc-a8b997e8c4a0e1fb517f2d270f3ca3a990b01c24.zip
gcc-a8b997e8c4a0e1fb517f2d270f3ca3a990b01c24.tar.gz
gcc-a8b997e8c4a0e1fb517f2d270f3ca3a990b01c24.tar.bz2
system.h (TARGET_ESC): Move to ...
* system.h (TARGET_ESC): Move to ... * defaults.h (TARGET_ESC): ... here. * target-def.h (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Default to a no-op handler. * tree.c (default_valid_attribute_p): New. (valid_machine_attribute): Handlers can not be NULL. * tree.h (default_valid_attribute_p): New. * doc/tm.texi: Document TARGET_ESC. * cp/decl2.c (import_export_class): Update. From-SVN: r43615
Diffstat (limited to 'gcc/target-def.h')
-rw-r--r--gcc/target-def.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/target-def.h b/gcc/target-def.h
index 1af66c3..78fd30f 100644
--- a/gcc/target-def.h
+++ b/gcc/target-def.h
@@ -20,13 +20,16 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
what you give them. Help stamp out software-hoarding! */
/* See target.h for a desciption of what this file contains and how to
- use it. */
+ use it.
-/* Both in tree.c. */
+ We want to have non-NULL default definitions of all hook functions,
+ even if they do nothing. */
+
+/* All in tree.c. */
#define TARGET_MERGE_DECL_ATTRIBUTES merge_decl_attributes
#define TARGET_MERGE_TYPE_ATTRIBUTES merge_type_attributes
-#define TARGET_VALID_DECL_ATTRIBUTE 0
-#define TARGET_VALID_TYPE_ATTRIBUTE 0
+#define TARGET_VALID_DECL_ATTRIBUTE default_valid_attribute_p
+#define TARGET_VALID_TYPE_ATTRIBUTE default_valid_attribute_p
/* The whole shebang. */
#define TARGET_INITIALIZER \