From: Paolo Bonzini <bonzini@gnu.org>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: DJ Delorie <dj@redhat.com>, Alexandre Oliva <aoliva@redhat.com>,
gcc-patches@gcc.gnu.org, Ralf.Wildenhues@gmx.de
Subject: Re: PING: PATCH: PR other/49325: Incorrect target HAVE_INITFINI_ARRAY check
Date: Sat, 18 Jun 2011 14:21:00 -0000 [thread overview]
Message-ID: <BANLkTikMLbGYDzMuNn=Em8TBn+znSca+Rw@mail.gmail.com> (raw)
In-Reply-To: <BANLkTikYm3wx169vFToEWVHRek4Yz6c1Fg@mail.gmail.com>
On Sat, Jun 18, 2011 at 01:24, H.J. Lu <hjl.tools@gmail.com> wrote:
>> Why are you not changing the gcc_AC_ macro and instead introducing
>> duplicate code? Perhaps the right solution is to add a final argument
>> to the AC_RUN_IFELSE macro (don't know, I should be on holiday and
>> hence I do not have the source code at hand :)); in any case this is
>> _not_ how you add tests that work for cross compilation.
>
> This target test needs run-time check. I don't know how to properly
> check it for cross compilation and I don't feel comfortable to change
> AC_RUN_IFELSE.
>
> Here is the updated patch to fix gcc_AC_INITFINI_ARRAY instead.
Better. However, the test needs to be $build = $target && $build =
$host. Should be okay with that change, but please repost.
It is also better to change the cross compilation results (the new
"else" branch and the final argument to AC_RUN_IFELSE) to "guessing
no".
Paolo
next prev parent reply other threads:[~2011-06-18 13:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-14 22:39 H.J. Lu
2011-06-17 10:55 ` Paolo Bonzini
2011-06-18 0:18 ` H.J. Lu
2011-06-18 14:21 ` Paolo Bonzini [this message]
2011-06-18 15:12 ` H.J. Lu
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='BANLkTikMLbGYDzMuNn=Em8TBn+znSca+Rw@mail.gmail.com' \
--to=bonzini@gnu.org \
--cc=Ralf.Wildenhues@gmx.de \
--cc=aoliva@redhat.com \
--cc=dj@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=hjl.tools@gmail.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).