bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/9874] Error while compiling gas/tc-ia64.c as a cross-tool


From: wilson at codesourcery dot com
Subject: [Bug gas/9874] Error while compiling gas/tc-ia64.c as a cross-tool
Date: 23 Feb 2009 18:19:22 -0000

------- Additional Comments From wilson at codesourcery dot com  2009-02-23 
18:19 -------
Subject: Re:  Error while compiling gas/tc-ia64.c as a cross-tool

hjl dot tools at gmail dot com wrote:
> I can't reproduce it. That is why I want to see the command line used
> to compile tc-ia64.c. Also please show the output of "gcc -v".

He is using Ubuntu.  Ubuntu hard wires on some extra gcc format checking 
options.  The line in question is
    as_bad_where (fix->fx_file, fix->fx_line, err);

This will generate a gcc warning if you use -Wformat-nonliteral, which 
is apparently on by default in Ubuntu.  I saw someone else mention this 
recently, though I don't remember the details.

This could be fixed by changing the line to be instead
     as_bad_where (fix->fx_file, fix->fx_line, "%s", err);

Jim




-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9874

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]