This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: [PATCH][GOLD] Use PRIx64 to fix compile on 64-bit.


On Mon, 30 Nov 2009, Lei Zhang wrote:

> Hi,
> 
> This fixed bug 10949.

You can't use macros such as PRIx64 in concatenation inside _(); the 
string extracted for translation needs to appear as a host-independent 
string constant (concatentation is OK, as long as none of the parts come 
from macros).

This may mean gold_error needs to take host-independent formats and 
translate them to host-dependent ones before using system printf on them 
(for example, using %I64x with system printf for MinGW hosts).

-- 
Joseph S. Myers
joseph@codesourcery.com


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