aboutsummaryrefslogtreecommitdiff
path: root/gcc/langhooks.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-09-09 03:35:31 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-09-09 03:35:31 +0000
commit9649812aae971f307ade9756b14a1c961fbc8905 (patch)
tree08059530952c2e25ede239ac8522a8acb81e71ee /gcc/langhooks.c
parent11bf0eb0c73c713a4093fb456839c7dee7b8a722 (diff)
downloadgcc-9649812aae971f307ade9756b14a1c961fbc8905.zip
gcc-9649812aae971f307ade9756b14a1c961fbc8905.tar.gz
gcc-9649812aae971f307ade9756b14a1c961fbc8905.tar.bz2
langhooks-def.h (lhd_register_builtin_type): New function.
* langhooks-def.h (lhd_register_builtin_type): New function. (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro. (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update. * langhooks.h (lang_hooks_for_types): Add register_builtin_type. * langhooks.c (lhd_register_builtin_type): New function. * c-common.h (c_register_builtin_type): Declare. * c-common.c (c_register_builtin_type): New function. * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to c_register_builtin_type. * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg, __float80, and __float128 macros. * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg, __float80, and __float128 types. * cp-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to c_register_builtin_type. * gcc.dg/ia64-types1.c: New test. * gcc.dg/ia64-types2.c: Likewise. From-SVN: r71227
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r--gcc/langhooks.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c
index 622e062..7a003bb 100644
--- a/gcc/langhooks.c
+++ b/gcc/langhooks.c
@@ -208,6 +208,13 @@ lhd_type_promotes_to (tree type ATTRIBUTE_UNUSED)
abort ();
}
+/* Registration of machine- or os-specific builtin types. */
+void
+lhd_register_builtin_type (tree type ATTRIBUTE_UNUSED,
+ const char* name ATTRIBUTE_UNUSED)
+{
+}
+
/* Invalid use of an incomplete type. */
void
lhd_incomplete_type_error (tree value ATTRIBUTE_UNUSED, tree type)