From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Blandy To: Don Howard Cc: Subject: Re: [RFA] stabsread and const/volatile vars Date: Thu, 02 Aug 2001 10:43:00 -0000 Message-id: References: X-SW-Source: 2001-08/msg00040.html You tried this out on the test suite, right? Did you get a bunch of new xpasses? Don Howard writes: > > > [Credit to Jim Blandy for walking me through this.] > > 2001-08-01 Don Howard > > * stabsread.c (read_type): Add support for const and volatile > modifiers. > > > > Index: stabsread.c > =================================================================== > RCS file: /cvs/src/src/gdb/stabsread.c,v > retrieving revision 1.14 > diff -p -u -w -r1.14 stabsread.c > --- stabsread.c 2001/08/01 18:39:23 1.14 > +++ stabsread.c 2001/08/02 05:18:40 > @@ -2586,7 +2586,7 @@ again: > if (type_descriptor == 'c' && !os9k_stabs) > return error_type (pp, objfile); > type = read_type (pp, objfile); > - /* FIXME! For now, we ignore const and volatile qualifiers. */ > + type = make_cv_type (1, TYPE_VOLATILE (type), type, 0); > break; > > case 'B': /* Volatile qual on some type (Sun) */ > @@ -2596,7 +2596,7 @@ again: > if (type_descriptor == 'i' && !os9k_stabs) > return error_type (pp, objfile); > type = read_type (pp, objfile); > - /* FIXME! For now, we ignore const and volatile qualifiers. */ > + type = make_cv_type (TYPE_CONST (type), 1, type, 0); > break; > > case '@': > > > -- > -Don > dhoward@redhat.com > gdb engineering > > >