Re: [RFC] Replace complain() with complaint()

Kevin Buettner
2002-12-13T20:38:29Z

On Dec 13, 3:21pm, Andrew Cagney wrote:

> > - complain (&anon_block_end_complaint, BLOCK_END (block), BLOCK_START (block));
> > + complaint (&symfile_complaints,
> > + "block end address 0x%lx less than block start address 0x%lx (patched it)",
> > + BLOCK_END (block), BLOCK_START (block));
>
> Hmm, I don't think that is right. It should have attacted a -Wformat
> warning as block start/end are core-addrs. From memory though, a native
> i386 build has CORE_ADDR as a long which might explain why you don't see
> the warning.
>
> Puzzled.

Yeah, I did a native i386 build. I just rebuilt that file. No warning.

I'll try a cross build for a 64-bit target...

Kevin