diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-13 09:31:13 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-18 11:12:37 -0600 |
commit | 95751990e40d88986205ba3c0719b8afd3da0e7e (patch) | |
tree | c86d95b731283e22d64c857817a060a089f33b93 /gdb/f-lang.c | |
parent | 8a17bdd9ccc26a7a0a2a208a9b870512b2490324 (diff) | |
download | gdb-95751990e40d88986205ba3c0719b8afd3da0e7e.zip gdb-95751990e40d88986205ba3c0719b8afd3da0e7e.tar.gz gdb-95751990e40d88986205ba3c0719b8afd3da0e7e.tar.bz2 |
Reuse existing builtin types
This changes a few spots to reuse the existing builting "void" type,
rather than construct a new one.
Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/f-lang.c')
-rw-r--r-- | gdb/f-lang.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/f-lang.c b/gdb/f-lang.c index 0d7863e..e1eb475 100644 --- a/gdb/f-lang.c +++ b/gdb/f-lang.c @@ -1725,8 +1725,7 @@ build_fortran_types (struct gdbarch *gdbarch) { struct builtin_f_type *builtin_f_type = new struct builtin_f_type; - builtin_f_type->builtin_void - = arch_type (gdbarch, TYPE_CODE_VOID, TARGET_CHAR_BIT, "void"); + builtin_f_type->builtin_void = builtin_type (gdbarch)->builtin_void; builtin_f_type->builtin_character = arch_type (gdbarch, TYPE_CODE_CHAR, TARGET_CHAR_BIT, "character"); |