GCC Wikia
Advertisement

このページを編集する際は,編集に関する方針に従ってください.[]

概要[]

引数[]

  • const char *cmsgid
  • ...

実装[]

2815 /* Report inconsistency between the assembler template and the operands.
2816    In an `asm', it's the user's fault; otherwise, the compiler's fault.  */
2817 
2818 void
2819 output_operand_lossage (const char *cmsgid, ...)
2820 {
2821   char *fmt_string;
2822   char *new_message;
2823   const char *pfx_str;
2824   va_list ap;
2825 
2826   va_start (ap, cmsgid);
2827 
2828   pfx_str = this_is_asm_operands ? _("invalid 'asm': ") : "output_operand: ";
2829   asprintf (&fmt_string, "%s%s", pfx_str, _(cmsgid));
2830   vasprintf (&new_message, fmt_string, ap);
2831 
2832   if (this_is_asm_operands)
2833     error_for_asm (this_is_asm_operands, "%s", new_message);
2834   else
2835     internal_error ("%s", new_message);
2836 
2837   free (fmt_string);
2838   free (new_message);
2839   va_end (ap);
2840 }



リンク元

Advertisement