[GHC] #10926: wrong signature of atomic builtins
GHC
ghc-devs at haskell.org
Fri Oct 2 12:10:46 UTC 2015
#10926: wrong signature of atomic builtins
--------------------------------+----------------------------------------
Reporter: schwab | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.2
Keywords: | Operating System: Linux
Architecture: aarch64 | Type of failure: Building GHC failed
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): |
--------------------------------+----------------------------------------
{{{
"inplace/bin/ghc-stage1" -hisuf hi -osuf o -hcsuf hc -static -O -H64m
-optc-fno-builtin -this-package-key ghcpr_8TmvWUcS1U1IKHT0levwg3 -hide-
all-packages -i -ilibraries/ghc-prim/. -ilibraries/ghc-prim/dist-
install/build -ilibraries/ghc-prim/dist-install/build/autogen -Ilibraries
/ghc-prim/dist-install/build -Ilibraries/ghc-prim/dist-
install/build/autogen -Ilibraries/ghc-prim/. -optP-include
-optPlibraries/ghc-prim/dist-install/build/autogen/cabal_macros.h
-package-key rts -this-package-key ghc-prim -XHaskell2010 -O -no-user-
package-db -rtsopts -odir libraries/ghc-prim/dist-install/build
-hidir libraries/ghc-prim/dist-install/build -stubdir libraries/ghc-prim
/dist-install/build -dynamic-too -c libraries/ghc-prim/dist-
install/build/GHC/PrimopWrappers.hs -o libraries/ghc-prim/dist-
install/build/GHC/PrimopWrappers.o -dyno libraries/ghc-prim/dist-
install/build/GHC/PrimopWrappers.dyn_o
/tmp/ghc1492_0/ghc_1.hc: In function
'ghczmprim_GHCziPrimopWrappers_fetchXorIntArrayzh_entry':
/tmp/ghc1492_0/ghc_1.hc:2844:25:
warning: passing argument 1 of 'hs_atomic_xor64' makes pointer from
integer without a cast [-Wint-conversion]
_c1Ho = hs_atomic_xor64((*Sp) + (((Sp[1]) << 0x3UL) + 0x10UL),
Sp[2]);
^
In file included from
/home/abuild/rpmbuild/BUILD/ghc-7.10.2/includes/Stg.h:273:0:
0,
from /tmp/ghc1492_0/ghc_1.hc:3:
/home/abuild/rpmbuild/BUILD/ghc-7.10.2/includes/stg/Prim.h:41:11:
note: expected 'volatile StgWord64 * {aka volatile long unsigned int
*}' but argument is of type 'long unsigned int'
StgWord64 hs_atomic_xor64(volatile StgWord64 *x, StgWord64 val);
^
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10926>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list