* Re: RFA: don't print `const' qualifier for ref types
@ 2001-04-24 12:28 David Taylor
2001-04-24 17:44 ` Jim Blandy
0 siblings, 1 reply; 3+ messages in thread
From: David Taylor @ 2001-04-24 12:28 UTC (permalink / raw)
To: Jim Blandy; +Cc: gdb-patches
From: Jim Blandy <jimb@zwingli.cygnus.com>
Date: Tue, 24 Apr 2001 12:47:35 -0500 (EST)
See the comments in the patched code for details.
2001-04-13 Jim Blandy <jimb@redhat.com>
* c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
qualifier on C++ references; all references are innately const.
Approved.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RFA: don't print `const' qualifier for ref types
2001-04-24 12:28 RFA: don't print `const' qualifier for ref types David Taylor
@ 2001-04-24 17:44 ` Jim Blandy
0 siblings, 0 replies; 3+ messages in thread
From: Jim Blandy @ 2001-04-24 17:44 UTC (permalink / raw)
To: David Taylor; +Cc: gdb-patches
David Taylor <taylor@candd.org> writes:
>
> From: Jim Blandy <jimb@zwingli.cygnus.com>
> Date: Tue, 24 Apr 2001 12:47:35 -0500 (EST)
>
> See the comments in the patched code for details.
>
> 2001-04-13 Jim Blandy <jimb@redhat.com>
>
> * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
> qualifier on C++ references; all references are innately const.
>
> Approved.
Committed.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RFA: don't print `const' qualifier for ref types
@ 2001-04-24 10:46 Jim Blandy
0 siblings, 0 replies; 3+ messages in thread
From: Jim Blandy @ 2001-04-24 10:46 UTC (permalink / raw)
To: gdb-patches
See the comments in the patched code for details.
2001-04-13 Jim Blandy <jimb@redhat.com>
* c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
qualifier on C++ references; all references are innately const.
Index: gdb/c-typeprint.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/c-typeprint.c,v
retrieving revision 2.45.30.2
diff -c -r2.45.30.2 c-typeprint.c
*** gdb/c-typeprint.c 2001/03/26 18:23:19 2.45.30.2
--- gdb/c-typeprint.c 2001/04/14 08:21:03
***************
*** 296,302 ****
{
int flag = 0;
! if (TYPE_CONST (type))
{
if (need_pre_space)
fprintf_filtered (stream, " ");
--- 296,306 ----
{
int flag = 0;
! /* We don't print `const' qualifiers for references --- since all
! operators affect the thing referenced, not the reference itself,
! every reference is `const'. */
! if (TYPE_CONST (type)
! && TYPE_CODE (type) != TYPE_CODE_REF)
{
if (need_pre_space)
fprintf_filtered (stream, " ");
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-04-24 17:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-24 12:28 RFA: don't print `const' qualifier for ref types David Taylor
2001-04-24 17:44 ` Jim Blandy
-- strict thread matches above, loose matches on Subject: below --
2001-04-24 10:46 Jim Blandy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox