OSDN Git Service

cp:
[pf3gnuchains/gcc-fork.git] / gcc / cp / lex.c
index c0b7968..6074fef 100644 (file)
@@ -349,7 +349,7 @@ cxx_init (void)
   cxx_init_decl_processing ();
 
   /* Create the built-in __null node.  It is important that this is
-     not shared. */
+     not shared.  */
   null_node = make_node (INTEGER_CST);
   TREE_TYPE (null_node) = c_common_type_for_size (POINTER_SIZE, 0);
 
@@ -616,8 +616,8 @@ unqualified_fn_lookup_error (tree name)
          static bool hint;
          if (!hint)
            {
-             error ("(if you use `-fpermissive', G++ will accept your code, "
-                    "but allowing the use of an undeclared name is "
+             error ("(if you use %<-fpermissive%>, G++ will accept your "
+                    "code, but allowing the use of an undeclared name is "
                     "deprecated)");
              hint = true;
            }
@@ -796,20 +796,3 @@ make_aggr_type (enum tree_code code)
 
   return t;
 }
-
-/* Return the type-qualifier corresponding to the identifier given by
-   RID.  */
-
-int
-cp_type_qual_from_rid (tree rid)
-{
-  if (rid == ridpointers[(int) RID_CONST])
-    return TYPE_QUAL_CONST;
-  else if (rid == ridpointers[(int) RID_VOLATILE])
-    return TYPE_QUAL_VOLATILE;
-  else if (rid == ridpointers[(int) RID_RESTRICT])
-    return TYPE_QUAL_RESTRICT;
-
-  gcc_unreachable ();
-  return TYPE_UNQUALIFIED;
-}