From: Richard Kenner Date: Thu, 7 Oct 1993 01:46:49 +0000 (-0400) Subject: (asm_fprintf): Add cases for 'w' and 'l'. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7be2640ddbc65bfc504351af589d0ba84e50d4f4;p=gcc.git (asm_fprintf): Add cases for 'w' and 'l'. From-SVN: r5653 --- diff --git a/gcc/final.c b/gcc/final.c index 7541c1802b0..5958ead9087 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -2675,6 +2675,27 @@ asm_fprintf (va_alist) fprintf (file, buf, va_arg (argptr, int)); break; + case 'w': + /* This is a prefix to the 'd', 'i', 'u', 'x', 'p', and 'X' cases, + but we do not check for those cases. It means that the value + is a HOST_WIDE_INT, which may be either `int' or `long'. */ + +#if HOST_BITS_PER_WIDE_INT != HOST_BITS_PER_INT + *q++ = 'l'; +#endif + + *q++ = *p++; + *q = 0; + fprintf (file, buf, va_arg (argptr, HOST_WIDE_INT)); + break; + + case 'l': + *q++ = c; + *q++ = *p++; + *q = 0; + fprintf (file, buf, va_arg (argptr, long)); + break; + case 'e': case 'f': case 'g':