This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32448] [3.3 / 3.4 / 4.1 / 4.2 / 4.3 Regression] abs / printf bug
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jun 2007 19:51:49 -0000
- Subject: [Bug c/32448] [3.3 / 3.4 / 4.1 / 4.2 / 4.3 Regression] abs / printf bug
- References: <bug-32448-13830@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #17 from ubizjak at gmail dot com 2007-06-23 19:51 -------
(In reply to comment #15)
> and here is the incorrect output:
Here is the correct input:
--cut here--
#include <stdio.h>
int abs(int);
double fabs(double);
int main()
{
printf("%i %f %i %i\n", abs(1234.5678), fabs(1234.5678),
abs((int)1234.5678), abs((int)(1234.5678)));
return 0;
}
--cut here--
OK, have fun, I'll stop wasting electrons here...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32448