public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
* Using g++ and -m32 option on x86_64 broken
@ 2015-07-01  1:39 Jeffrey Walton
  2015-07-01  8:29 ` Corinna Vinschen
  0 siblings, 1 reply; 4+ messages in thread
From: Jeffrey Walton @ 2015-07-01  1:39 UTC (permalink / raw)
  To: cygwin-patches

Cygwin's GCC responds to the -m32 option, but it causes a compile error:

   expected unqualified-id before ‘__int128’
       inline __int128

If the project does not support the -m32 option, then it should be
removes so that using it causes a compile error.

Below is the changed needed to get through the compile with -m32:

$ diff /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/x86_64-pc-cygwin/bits/c++config.h
/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/x86_64-pc-cygwin/bits/c++config.h.bu
1306,1308c1306
< #ifndef __CYGWIN32__      /* -m32 used on x86_64 */
< # define _GLIBCXX_USE_INT128 1
< #endif
---
> #define _GLIBCXX_USE_INT128 1

************

And this project really needs a bug tracker...

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-01 12:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-01  1:39 Using g++ and -m32 option on x86_64 broken Jeffrey Walton
2015-07-01  8:29 ` Corinna Vinschen
2015-07-01 10:59   ` Jeffrey Walton
2015-07-01 12:27     ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).