aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-07-05 20:27:19 +0000
committerRichard Stallman <rms@gnu.org>1992-07-05 20:27:19 +0000
commitd26ab7561c3a5cb388ff40292fafcc5832526ece (patch)
treefc0c5d72acfde1a4145de1e69434e4e42bd25eae /gcc
parent04077c530d2a43a9a16710dca096a14a2d8b9a8c (diff)
downloadgcc-d26ab7561c3a5cb388ff40292fafcc5832526ece.zip
gcc-d26ab7561c3a5cb388ff40292fafcc5832526ece.tar.gz
gcc-d26ab7561c3a5cb388ff40292fafcc5832526ece.tar.bz2
*** empty log message ***
From-SVN: r1444
Diffstat (limited to 'gcc')
-rw-r--r--gcc/dbxout.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 8da5ef9..1a7026d 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -704,7 +704,9 @@ dbxout_type_methods (type)
type_identifier_length = IDENTIFIER_LENGTH (type_encoding);
- if (TREE_VEC_ELT (methods, 0) != NULL_TREE)
+ if (TREE_CODE (methods) == FUNCTION_DECL)
+ fndecl = methods;
+ else if (TREE_VEC_ELT (methods, 0) != NULL_TREE)
fndecl = TREE_VEC_ELT (methods, 0);
else
fndecl = TREE_VEC_ELT (methods, 1);