This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Support for %d$c format specifier in diagnostics.c


Neil Booth wrote:
> 
> Ishikawa wrote:-
> 
> > As I dive through the code, I think I found a bug in
> > the original code.
> >
> > Original BUG (?) found.
> >  Near line 517 of diagnostic.c , "u" ought to be "o"';
> >        case 'o':
> >           if (wide)
> >             output_formatted_scalar
> >               (buffer, "%" HOST_WIDE_INT_PRINT "o",
> >                va_arg (*text->args_ptr, unsigned HOST_WIDE_INT));
> >           else
> >             output_integer_with_precision
> > Here --->      (buffer, *text->args_ptr, precision, unsigned, "u");
> >         break;
> 
> This looks software generated.  What generated this?
> 

Do you mean the original code? I have no idea.

I simply cut  & paste the code off from diagnostic.c and
added my comment as in above if you refer to my post.
[That wet grey thing in my skull so to speak :-) ]

Happy Hacking,

Ishikawa, Chiaki


-- 
int main(void){int j=2003;/*(c)2003 cishikawa. */
char t[] ="<CI> @abcdefghijklmnopqrstuvwxyz.,\n\"";
char *i ="g>qtCIuqivb,gCwe\np@.ietCIuqi\"tqkvv is>dnamz";
while(*i)((j+=strchr(t,*i++)-(int)t),(j%=sizeof t-1),
(putchar(t[j])));return 0;}/* under GPL */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]