http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46676

           Summary: ix86_option_override_internal i18n problems
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: js...@gcc.gnu.org
            Blocks: 40883
            Target: i?86-*-* x86_64-*-*


ix86_option_override_internal contains code

  /* Set up prefix/suffix so the error messages refer to either the command
     line argument, or the attribute(target).  */
  if (main_args_p)
    {
      prefix = "-m";
      suffix = "";
      sw = "switch";
    }
  else
    {
      prefix = "option(\"";
      suffix = "\")";
      sw = "attribute";
    }

and later diagnostics inserting sw - the word "switch" or "attribute" - with
%s.  This should use separate diagnostic strings for the two cases instead. 
(Also, the attribute is "target" not "option".)

Reply via email to