Re: [commit: ghc] master: UNREG: PprC: add support for of W16 literals (Ticket #15237) (01c9d95)

Hi Sergei, thanks for your swift response! I did: ``` $ mips64-wrsmllib64-linux-gcc -E -dM - wrote:
On Fri, 15 Jun 2018 10:49:41 +0200 Gabor Greif
wrote: Thanks for fixing this!
I am in the process of building an unregisterised MIPS64 cross-compiler and just noticed this warning running by:
HC [stage 1] libraries/base/dist-install/build/GHC/Show.p_o /tmp/ghc414_0/ghc_7.hc: In function '_c53i':
/tmp/ghc414_0/ghc_7.hc:1483:17: error: warning: integer constant is so large that it is unsigned _s4Lo = (_s4Ld+-9223372036854775808) + (_s4Lg + _s4L9); ^ | 1483 | _s4Lo = (_s4Ld+-9223372036854775808) + (_s4Lg + _s4L9); | ^
Not sure whether I should be worried (there seem to be others of this kind) or a simple change in the datatype (int -> unsigned) could silence this.
The overflow looks fishy. -9223372036854775808 is 0x8000000000000000. What ABI your mips64 targets to? 64 or n32? I'd like to reproduce it locally.
Simplest way to check for ABI (mine is N32): $ mips64-unknown-linux-gnu-gcc -E -dM -
--
Sergei
participants (1)
-
Gabor Greif