https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96348
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So one thing is Windows is LLP64IL32 target while x86_64 Linux is LP64 target. So if you are comparing windows to Linux and use long type, you might be getting the major difference there. There might be other things difference between the two too.