(C++) tweak to cp_build_qualified_type_real
Jason Merrill
jason@cygnus.com
Wed Aug 25 19:18:00 GMT 1999
1999-08-25 Jason Merrill <jason@yorick.cygnus.com>
* tree.c (cp_build_qualified_type_real): If we're asking for the
same quals we already have, just return.
Index: tree.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/tree.c,v
retrieving revision 1.136
diff -c -p -r1.136 tree.c
*** tree.c 1999/08/20 22:07:22 1.136
--- tree.c 1999/08/26 02:17:45
*************** cp_build_qualified_type_real (type, type
*** 508,514 ****
if (type == error_mark_node)
return type;
!
/* A restrict-qualified pointer type must be a pointer (or reference)
to object or incomplete type. */
if ((type_quals & TYPE_QUAL_RESTRICT)
--- 508,517 ----
if (type == error_mark_node)
return type;
!
! if (type_quals == TYPE_QUALS (type))
! return type;
!
/* A restrict-qualified pointer type must be a pointer (or reference)
to object or incomplete type. */
if ((type_quals & TYPE_QUAL_RESTRICT)
More information about the Gcc-patches
mailing list