This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

(C++) tweak to cp_build_qualified_type_real


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]