+2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
+       uses with type::is_prototyped.
+
 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
 
        * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
 
        }
     }
   else if (!printed_any
-          && (TYPE_PROTOTYPED (type) || language == language_cplus))
+          && (type->is_prototyped () || language == language_cplus))
     fprintf_filtered (stream, "void");
 
   fprintf_filtered (stream, ")");
 
   int i;
   gcc_type result, return_type;
   struct gcc_type_array array;
-  int is_varargs = TYPE_VARARGS (type) || !TYPE_PROTOTYPED (type);
+  int is_varargs = TYPE_VARARGS (type) || !type->is_prototyped ();
 
   struct type *target_type = TYPE_TARGET_TYPE (type);
 
 
        if (passed_a_ptr)
          fprintf_filtered (stream, ") ");
        fprintf_filtered (stream, "(");
-       if (nfields == 0 && TYPE_PROTOTYPED (type))
+       if (nfields == 0 && type->is_prototyped ())
          f_print_type (builtin_f_type (get_type_arch (type))->builtin_void,
                        "", stream, -1, 0, 0);
        else
 
     {
       puts_filtered (" TYPE_TARGET_STUB");
     }
-  if (TYPE_PROTOTYPED (type))
+  if (type->is_prototyped ())
     {
       puts_filtered (" TYPE_PROTOTYPED");
     }
 
 
 #define TYPE_ENDIANITY_NOT_DEFAULT(t) (TYPE_MAIN_TYPE (t)->flag_endianity_not_default)
 
-/* * This is a function type which appears to have a prototype.  We
-   need this for function calls in order to tell us if it's necessary
-   to coerce the args, or to just do the standard conversions.  This
-   is used with a short field.  */
-
-#define TYPE_PROTOTYPED(t)     ((t)->is_prototyped ())
-
 /* * FIXME drow/2002-06-03:  Only used for methods, but applies as well
    to functions.  */
 
     this->main_type->m_flag_target_stub = target_is_stub;
   }
 
+  /* This is a function type which appears to have a prototype.  We
+     need this for function calls in order to tell us if it's necessary
+     to coerce the args, or to just do the standard conversions.  This
+     is used with a short field.  */
+
   bool is_prototyped () const
   {
     return this->main_type->m_flag_prototyped;
 
          prototyped = 1;
        }
       else if (i < ftype->num_fields ())
-       prototyped = TYPE_PROTOTYPED (ftype);
+       prototyped = ftype->is_prototyped ();
       else
        prototyped = 0;
 
 
                    {
                      int p_arg_size = 4;
 
-                     if (TYPE_PROTOTYPED (func_type)
+                     if (func_type->is_prototyped ()
                          && i < func_type->num_fields ())
                        {
                          struct type *p_arg_type =