#3336: Following gcc behaviour with regards to calling conventions on x86_64
----------------------------------------+-----------------------------------
Reporter:  JeffersonHeard               |          Owner:                
    Type:  bug                          |         Status:  new           
Priority:  normal                       |      Component:  Compiler      
 Version:  6.10.3                       |       Severity:  normal        
Keywords:  calling convention, stdcall  |       Testcase:                
      Os:  Linux                        |   Architecture:  x86_64 (amd64)
----------------------------------------+-----------------------------------
 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>
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

Reply via email to