aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorJeffrey Oldham <oldham@codesourcery.com>2001-05-17 22:57:36 +0000
committerJeffrey D. Oldham <oldham@gcc.gnu.org>2001-05-17 22:57:36 +0000
commit02db7776c71440167bee513f6f0df74a43bd8176 (patch)
tree8e673516a70c6ad3f4b09c6d517098650325f1c1 /gcc/dbxout.c
parente8dc2763f141a7554c3e8b8a04055d50c52601ea (diff)
downloadgcc-02db7776c71440167bee513f6f0df74a43bd8176.zip
gcc-02db7776c71440167bee513f6f0df74a43bd8176.tar.gz
gcc-02db7776c71440167bee513f6f0df74a43bd8176.tar.bz2
dbxout.c (dbxout_symbol_location): For CONCAT, skip types not COMPLEX_TYPE.
2001-05-17 Jeffrey Oldham <oldham@codesourcery.com> * dbxout.c (dbxout_symbol_location): For CONCAT, skip types not COMPLEX_TYPE. From-SVN: r42231
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index d057c58..97d6151 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. */