m3-sys/m3cc/gcc-apple/gcc/c-decl.c
/* Add the type qualifier QUAL to the declaration specifiers SPECS,
   returning SPECS.  */
Add the type qualifier QUAL to the declaration specifiers SPECS,
returning SPECS.
Add the type qualifier QUAL to the declaration specifiers SPECS returning SPECS .
struct c_declspecs *
declspecs_add_qual (struct c_declspecs *specs, tree qual)
{
  enum rid i;
  bool dupe = false;
  specs->non_sc_seen_p = true;
  specs->declspecs_seen_p = true;
  gcc_assert (TREE_CODE (qual) == IDENTIFIER_NODE
	      && C_IS_RESERVED_WORD (qual));
  i = C_RID_CODE (qual);
  switch (i)
    {
    case RID_CONST:
      dupe = specs->const_p;
      specs->const_p = true;
      break;
    case RID_VOLATILE:
      dupe = specs->volatile_p;
      specs->volatile_p = true;
      break;
    case RID_RESTRICT:
      dupe = specs->restrict_p;
      specs->restrict_p = true;
      break;
    default:
      gcc_unreachable ();
    }
  if (dupe && pedantic && !flag_isoc99)
    pedwarn ("duplicate %qE", qual);
  return specs;
}
struct c_declspecs * declspecs_add_qual ( struct c_declspecs * specs , tree qual ) { enum rid i ; bool dupe = false ; specs -> non_sc_seen_p = true ; specs -> declspecs_seen_p = true ; gcc_assert ( TREE_CODE ( qual ) == IDENTIFIER_NODE && C_IS_RESERVED_WORD ( qual ) ) ; i = C_RID_CODE ( qual ) ; switch ( i ) { case RID_CONST : dupe = specs -> const_p ; specs -> const_p = true ; break ; case RID_VOLATILE : dupe = specs -> volatile_p ; specs -> volatile_p = true ; break ; case RID_RESTRICT : dupe = specs -> restrict_p ; specs -> restrict_p = true ; break ; default : gcc_unreachable ( ) ; } if ( dupe && pedantic && ! flag_isoc99 ) pedwarn ( " " , qual ) ; return specs ; }
Add the type qualifier QUAL to the declaration specifiers SPECS,
returning SPECS.
Add the type qualifier QUAL to the declaration specifiers SPECS returning SPECS .