diff options
author | Mark Mitchell <mark@codesourcery.com> | 2003-09-17 20:52:41 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2003-09-17 20:52:41 +0000 |
commit | 47aa0df47504bd7a24c0e5e3110e927233e4a96d (patch) | |
tree | b548787b45299cc7b303a1196b1877191302b679 /gcc/langhooks.h | |
parent | 43892f8cea65404797f538f37a500ca62bf672c0 (diff) | |
download | gcc-47aa0df47504bd7a24c0e5e3110e927233e4a96d.zip gcc-47aa0df47504bd7a24c0e5e3110e927233e4a96d.tar.gz gcc-47aa0df47504bd7a24c0e5e3110e927233e4a96d.tar.bz2 |
re PR debug/12066 (g++ generates stabs for "char *" that gdb cannot read)
PR debug/12066
* dbxout.c (dbxout_init): Use a langhook to find builtin types.
* langhooks-def.h (lhd_return_null_tree_v): New function.
(LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
(LANG_HOOKS_DECLS): Add it to the intializer.
* langhooks.c (lhd_return_null_tree_v): New function.
* langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
PR debug/12066
* cp-lang.c (LANG_HOOKS_BUILTIN_TYPE_DECLS): Define.
* cp-tree.h (cxx_builtin_type_decls): Declare.
* decl.c (builtin_type_decls): New variables.
(cxx_builtin_type_decls): New function.
(record_builtin_type): Add to builtin_type_decls.
From-SVN: r71478
Diffstat (limited to 'gcc/langhooks.h')
-rw-r--r-- | gcc/langhooks.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/langhooks.h b/gcc/langhooks.h index 195446c..4887f6d 100644 --- a/gcc/langhooks.h +++ b/gcc/langhooks.h @@ -189,6 +189,9 @@ struct lang_hooks_for_decls /* Returns the chain of decls so far in the current scope level. */ tree (*getdecls) (void); + /* Returns a chain of TYPE_DECLs for built-in types. */ + tree (*builtin_type_decls) (void); + /* Returns true when we should warn for an unused global DECL. We will already have checked that it has static binding. */ bool (*warn_unused_global) (tree); |