This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/54943] ARM - EABI - varargs floating point issue
- From: "selvaraj.santhosh at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 Oct 2012 11:41:00 +0000
- Subject: [Bug target/54943] ARM - EABI - varargs floating point issue
- Auto-submitted: auto-generated
- References: <bug-54943-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54943
--- Comment #2 from Santhosh Kumar Selvaraj <selvaraj.santhosh at gmail dot com> 2012-10-17 11:41:00 UTC ---
int main()
{
float floatValue = 100.0;
char buffer[32];
sprintf (buffer, 32, "%f", floatValue);
printf ("The string is : %s\n", buffer);
return 0;
}
Result:
The string is : 100 (arm-elf) -> GCC less than V3.0
The string is : 5.333 (arm-eabi) -> GCC 4.7.1