diff options
author | oldham <oldham@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-17 22:57:36 +0000 |
---|---|---|
committer | oldham <oldham@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-17 22:57:36 +0000 |
commit | 1ae99fd2ee05f745f0351cf7557aa3614c258139 (patch) | |
tree | 8e673516a70c6ad3f4b09c6d517098650325f1c1 /gcc/dbxout.c | |
parent | e7a1c95ca0c5e499a16b20dab623f81988ba2424 (diff) | |
download | gcc-1ae99fd2ee05f745f0351cf7557aa3614c258139.tar.gz |
2001-05-17 Jeffrey Oldham <oldham@codesourcery.com>
* dbxout.c (dbxout_symbol_location): For CONCAT, skip types not
COMPLEX_TYPE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42231 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index d057c581dc8..97d6151ac00 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -2148,7 +2148,15 @@ dbxout_symbol_location (decl, type, suffix, home) } else if (GET_CODE (home) == CONCAT) { - tree subtype = TREE_TYPE (type); + tree subtype; + + /* If TYPE is not a COMPLEX_TYPE (it might be a RECORD_TYPE, + for example), then there is no easy way to figure out + what SUBTYPE should be. So, we give up. */ + if (TREE_CODE (type) != COMPLEX_TYPE) + return 0; + + subtype = TREE_TYPE (type); /* If the variable's storage is in two parts, output each as a separate stab with a modified name. */ |