From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: =?utf-8?Q?GNAT=C2=A0bug?= on =?utf-8?Q?macOS=C2=A0Sierra?= ? Date: Tue, 22 Nov 2016 08:28:29 +0000 Organization: A noiseless patient Spider Message-ID: References: <74942b3a-7f47-482f-b119-05349f0d6b2f@googlegroups.com> <8548f5e9-2eee-4d8c-80c6-1dbfc43ccb5b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="4e928ce413950dbdb17c78f0e6a3b769"; logging-data="16419"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TEsCc1wyicL79abX8XOMOaCnv2236I5Y=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cancel-Lock: sha1:NuwvT6XGgxlfK+ROLanBNg2I1tY= sha1:T03k/bQwNUKbbzyk9xC2G0ZP7kY= Xref: news.eternal-september.org comp.lang.ada:32408 Date: 2016-11-22T08:28:29+00:00 List-Id: Vincent writes: > I made some further trials with compilers. I seems that > - Gnat GPL 2016 works fine > - Gnat FSF 6.1.0 has a problem with the file mp_x86_64bits.ads or > mpfr-floats.adb > > /var/folders/xb/4bm5gdr13k373gg8pbn_wsxw0000gp/T//ccdi0L0B.s:8932:suffix > or operands invalid for `movq' > /var/folders/xb/4bm5gdr13k373gg8pbn_wsxw0000gp/T//ccdi0L0B.s:8954:suffix > or operands invalid for `movq' The assembly source produced for mp_x86_64bits.ads is only about 10 lines long, so I don't understand this one. Compiling mpfr-floats.adb with FSF GCC 6.1.0 and gnatmake -c-u -f mpfr-floats.adb -cargs -S the first few of the complaints in your original posting are lines of the form movq %xmm0, %rax movq %rax, %xmm0 which (after some googling) look legal to me, and are accepted by the assembler. What do you get? Are you using the right assembler? I have $ which as /usr/bin/as $ as --version Apple LLVM version 8.0.0 (clang-800.0.42.1) Target: x86_64-apple-darwin16.1.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin