From: JonY <10walls@gmail.com>
To: Alexandre Oliva <oliva@adacore.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: introduce --enable-mingw-full32 to default to --large-address-aware
Date: Sun, 07 Oct 2018 08:03:00 -0000 [thread overview]
Message-ID: <90219030-29ad-815c-22e2-5e03398e414e@gmail.com> (raw)
In-Reply-To: <orzhvtnnk2.fsf@lxoliva.fsfla.org>
[-- Attachment #1.1: Type: text/plain, Size: 1989 bytes --]
On 10/05/2018 02:18 AM, Alexandre Oliva wrote:
> Add a configure knob for mingw32 and 64 toolchains to default passing
> --large-address-aware to the linker, when creating 32-bit binaries.
> -Wl,--disable-large-address-aware can still reverse its effects.
>
> I've tested this with cross i686-pc-mingw32-gcc and
> x86_64-w64-mingw64-gcc (is this the usual triplet name?), observing the
> flags passed by gcc to the linker when asked to create an executable
> program or a dynamic library, in 32- or, with the latter compiler, in
> 64-bit mode.
>
>
> I wonder if it makes any sense to extend/rename the configure flag to
> apply to cygwin as well, though it should default to enabled for that
> platform.
>
> I also wonder if it makes sense, at this point, for mingw to default to
> --large-address-aware (I guess not, but it doesn't hurt to ask, does it?
> :-)
>
> Yet another idea that comes to mind is to introduce gcc flags, say
> -m32full and -m31, to imply -m32 and also pass either
> --large-address-aware or --disable-large-address-aware, respectively, to
> the linker.
>
> I suppose it might also make sense to approach this issue from the
> linker, rather than from GCC, enabling its default to be configured.
> Would that be preferred? I thought tweaking GCC would be better, for
> the flag would be visible with -v, both the one passed to the linker and
> the one passed to GCC configure. It wouldn't be quite as visible as a
> linker configuration knob.
>
>
> Given all this, is this patch below ok to install, or should I make
> changes. I've included the configure and config.in changes because
> they're small enough.
>
> Below this first patch, I enclose another patch for cygming.h.
>
They're both OK as far as I can see. I just don't like the configure
name implying all 32bit pointers are used by userspace. Perhaps just
--enable-large-address-aware?
Be sure to also update the documentation as Joseph says.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2018-10-07 0:11 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-05 6:48 Alexandre Oliva
2018-10-05 16:40 ` Joseph Myers
2018-10-09 6:38 ` Alexandre Oliva
2018-10-09 11:31 ` JonY
2018-10-10 4:58 ` Alexandre Oliva
2018-10-10 5:20 ` JonY
2018-10-10 8:00 ` Alexandre Oliva
2018-10-11 0:18 ` JonY
2018-10-11 7:46 ` NightStrike
2018-10-11 11:32 ` JonY
2018-10-12 6:28 ` Alexandre Oliva
2018-10-12 11:27 ` JonY
[not found] ` <ork1lxspuw.fsf@lxoliva.fsfla.org>
2018-11-01 10:48 ` JonY
2018-11-07 11:59 ` Alexandre Oliva
2018-11-07 12:50 ` JonY
2018-11-08 9:45 ` Alexandre Oliva
2018-11-08 15:39 ` JonY
2018-11-09 10:49 ` Alexandre Oliva
2018-11-09 12:22 ` JonY
2018-10-07 8:03 ` JonY [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=90219030-29ad-815c-22e2-5e03398e414e@gmail.com \
--to=10walls@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=oliva@adacore.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).