summaryrefslogtreecommitdiff
path: root/binutils/stabs.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-10-02 17:10:01 +0000
committerNick Clifton <nickc@redhat.com>2008-10-02 17:10:01 +0000
commit4da8e8c4848ac4ec259b2ea8660384dcba0976ca (patch)
treef19ff360f87862af3ebb7bb51cdf16dc07732d3f /binutils/stabs.c
parent397c7131da7625fd4b312e440b44faca99d8adaa (diff)
downloadbinutils-redhat-4da8e8c4848ac4ec259b2ea8660384dcba0976ca.tar.gz
PR 6934
* stabs.c (parse_stab_string): Parse and ignore =Y<name> strings generated by the SUNPro C++ compiler.
Diffstat (limited to 'binutils/stabs.c')
-rw-r--r--binutils/stabs.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/binutils/stabs.c b/binutils/stabs.c
index c2c7c3a2f5..069751bc75 100644
--- a/binutils/stabs.c
+++ b/binutils/stabs.c
@@ -1105,6 +1105,26 @@ parse_stab_string (void *dhandle, struct stab_handle *info, int stabtype,
return FALSE;
break;
+ case 'Y':
+ /* SUNPro C++ Namespace =Yn0. */
+ /* Skip the namespace mapping, as it is not used now. */
+ if (*(++p) == 'n' && *(++p) == '0')
+ {
+ /* =Yn0name; */
+ while (*p != ';')
+ ++p;
+ ++p;
+ return TRUE;
+ }
+ /* TODO SUNPro C++ support:
+ Support default arguments after F,P parameters
+ Ya = Anonymous unions
+ YM,YD = Pointers to class members
+ YT,YI = Templates
+ YR = Run-time type information (RTTI) */
+
+ /* Fall through. */
+
default:
bad_stab (string);
return FALSE;