public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <richard.guenther@gmail.com>
To: Rainer Orth <ro@cebitec.uni-bielefeld.de>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] libffi: Use #define instead of .macro in src/x86/win64.S [PR102874]
Date: Mon, 15 Nov 2021 10:21:57 +0100	[thread overview]
Message-ID: <CAFiYyc3QP1KHWA72TSpACY9pnri+Bux-4WXmw6+JmYRCNUaKtg@mail.gmail.com> (raw)
In-Reply-To: <ydda6i56apj.fsf@CeBiTec.Uni-Bielefeld.DE>

On Mon, Nov 15, 2021 at 10:16 AM Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:
>
> The libffi 3.4.2 import badly broke Solaris/x86 bootstrap with the native
> assembler:
>
> Assembler:
>         "/vol/gcc/src/hg/master/local/libffi/src/x86/win64.S", line 88 :
> Illegal mnemonic
>         Near line: ".macro epilogue"
>         "/vol/gcc/src/hg/master/local/libffi/src/x86/win64.S", line 88 : Syntax
> error
>         Near line: ".macro epilogue"
>         "/vol/gcc/src/hg/master/local/libffi/src/x86/win64.S", line 95 :
> Illegal mnemonic
>         Near line: ".endm"
>         "/vol/gcc/src/hg/master/local/libffi/src/x86/win64.S", line 95 : Syntax
> error
>         Near line: ".endm"
>         "/vol/gcc/src/hg/master/local/libffi/src/x86/win64.S", line 100 :
> Illegal mnemonic
>         Near line: " epilogue"
>         "/vol/gcc/src/hg/master/local/libffi/src/x86/win64.S", line 100 :
> Syntax error
>         Near line: "epilogue"
>
> Solaris as doesn't support .macro/.endm.
>
> Fixed by using #define instead of the unportable .macro.
>
> Tested on i386-pc-solaris2.11 and x86_64-pc-linux-gnu.
>
> The bug has been reported upstream
> (https://github.com/libffi/libffi/issues/665); a corresponding pull
> request is also pending (https://github.com/libffi/libffi/pull/669).
> Both have been ignored so far.
>
> Ok for master?

OK.

>         Rainer
>
> --
> -----------------------------------------------------------------------------
> Rainer Orth, Center for Biotechnology, Bielefeld University
>
>
> 2021-10-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
>
>         libffi:
>         PR libffi/102874
>         * src/x86/win64.S (epilogue): Use #define instead of .macro.
>

      reply	other threads:[~2021-11-15  9:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-15  9:15 Rainer Orth
2021-11-15  9:21 ` Richard Biener [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=CAFiYyc3QP1KHWA72TSpACY9pnri+Bux-4WXmw6+JmYRCNUaKtg@mail.gmail.com \
    --to=richard.guenther@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=ro@cebitec.uni-bielefeld.de \
    /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).