#3336: Following gcc behaviour with regards to calling conventions on x86_64
--------------------------------------------+-------------------------------
Reporter: JeffersonHeard | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.3
Severity: normal | Resolution:
Keywords: calling convention, stdcall | Difficulty: Unknown
Testcase: | Os: Linux
Architecture: x86_64 (amd64) |
--------------------------------------------+-------------------------------
Changes (by igloo):
* difficulty: => Unknown
Old description:
> http://blogs.msdn.com/freik/archive/2005/03/17/398200.aspx
>
> Right now, if anything other than ccall is given to ghc on x86_64
> architectures, ghc errors out with the complaint that the calling
> convention is not supported on this architecture. gcc on the other hand,
> handles this situation gracefully, ignoring the calling convention
> attribute. My thought is that ghc should do this as well.
>
> Currently, I get this:
>
> TerraHS/TerraLib/TePoint.hs:121:0:
> calling convention not supported on this architecture: stdcall
> When checking declaration:
> foreign import stdcall unsafe "static &c_tepoint_setobjectid"
> tepoint_setobjectid
> :: TePointPtr -> CString -> IO ()
>
> I think I should instead get a warning saying that the calling convention
> is being ignored.
New description:
http://blogs.msdn.com/freik/archive/2005/03/17/398200.aspx
Right now, if anything other than ccall is given to ghc on x86_64
architectures, ghc errors out with the complaint that the calling
convention is not supported on this architecture. gcc on the other hand,
handles this situation gracefully, ignoring the calling convention
attribute. My thought is that ghc should do this as well.
Currently, I get this:
{{{
TerraHS/TerraLib/TePoint.hs:121:0:
calling convention not supported on this architecture: stdcall
When checking declaration:
foreign import stdcall unsafe "static &c_tepoint_setobjectid"
tepoint_setobjectid
:: TePointPtr -> CString -> IO ()
}}}
I think I should instead get a warning saying that the calling convention
is being ignored.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3336#comment:1>
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