On 14/10/2011 17:48, Ben Gamari wrote:
On Fri, 14 Oct 2011 09:51:40 +0100, Simon Marlow<[email protected]>  wrote:
On 13/10/2011 19:30, Ben Gamari wrote:
While compiling the master branch on my ARM machine, I ran into the
following error. It seems that the Alloc.hs defines functions named
free, malloc, and realloc, which then clash with the built-in
functions of the same name. Any ideas what to do here? Thanks.

You might try adding malloc/realloc/free to the list of symbols in
compiler/cmm/CLabel.hs, math_funs.

Would a patch to this effect be accepted? It seems that the C backend
really should just work out of the box with so common a
compiler. Perhaps math_funcs should be renamed to builtin_funs?

I think if we just add those functions to the table unconditionally, it may break the C backend on certain other platforms or perhaps other versions of gcc. I agree it should work out of the box, but we did not need this change in the past, so why is it necessary now?

We need to identify exactly where this change is necessary. Perhaps it is a recent change in gcc? If so, we need to know which version.

Cheers,
        Simon

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to