#3904: Bug in shipped gcc makes profiling lose resolution
-----------------------------+----------------------------------------------
Reporter: augustss | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 6.12.1
Keywords: | Difficulty:
Os: Windows | Testcase:
Architecture: x86 | Failure: None/Unknown
-----------------------------+----------------------------------------------
Comment(by igloo):
With this C file:
{{{
#include <stdio.h>
int main(void)
{
printf("A %lld\n", (long long int)(20));
printf("B %lld\n", (long long int)(50));
printf("C %lld %lld\n",
(long long int)(20),
(long long int)(50));
printf("D %lld %lld %lld %lld %lld %lld %lld %lld\n",
(long long int)(10),
(long long int)(20),
(long long int)(30),
(long long int)(40),
(long long int)(50),
(long long int)(60),
(long long int)(70),
(long long int)(80));
printf("E %lld %lld\n",
(long long int)(-1),
(long long int)(50));
return 0;
}
}}}
Expected:
{{{
A 20
B 50
C 20 50
D 10 20 30 40 50 60 70 80
E -1 50
}}}
With the mingw gcc:
{{{
A 20
B 50
C 20 0
D 10 0 20 0 30 0 40 0
E -1 -1
}}}
with both gcc 3.4.5 and gcc 4.4.0.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3904#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs