Date: Thu, 26 Jul 2018 14:34:59 +0800 From: Julian Elischer <julian@freebsd.org> To: Dimitry Andric <dim@FreeBSD.org>, Yuri Pankov <yuripv@yuripv.net> Cc: freebsd-current <freebsd-current@freebsd.org> Subject: Re: gcc/clang interoperability problem with a custom "samba" build in recent -current. Message-ID: <2c5d8af1-f703-e33b-2b71-905dc8fe0908@freebsd.org> In-Reply-To: <0a54cb6e-f528-df63-57f2-6caa3d76ff6c@freebsd.org> References: <abe47622-ba13-7c3f-9ddd-51c9fd3c40cd@freebsd.org> <bd0ad5d1-76ce-28b0-3813-4c11a82cd27d@freebsd.org> <c77253cd-3fca-a3a6-2f98-73ecb8c656bc@yuripv.net> <3dd60a0d-7a5e-e9f0-3018-d09b5b8ac389@yuripv.net> <F5832A14-009D-4FD2-BCE7-D07F96165041@FreeBSD.org> <0a54cb6e-f528-df63-57f2-6caa3d76ff6c@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 25/7/18 12:40 am, Julian Elischer wrote: > On 22/7/18 4:32 am, Dimitry Andric wrote: >> On 21 Jul 2018, at 21:11, Yuri Pankov <yuripv@yuripv.net> wrote: >>> Yuri Pankov wrote: >>>> Julian Elischer wrote: >> ... >>>>>> anyone know if there is a clang equivalent of -Wp, -E,-lang-asm? >>>> In later GCC versions the cpp's -lang-asm seems to be deprecated in >>>> favor of -x assembler-with-cpp as it conflicts with -l option. >>>> Could you try changing the -Wp,-E,-lang-asm to >>>> -Wp,-E,-xassembler-with-cpp? I did this but if failed.. I had to reread this email a few times to think of replacing the whole -Wp,-E,-lang-asm with just -xassembler-with-cpp! >>> Just tried it myself, and if you indeed mean the >>> third_party/aesni-intel/aesni-intel_asm.c, the following seems to >>> work for me: >>> >>> clang -xassembler-with-cpp -c >>> third_party/aesni-intel/aesni-intel_asm.c >> Yes, that is exactly what I suggested to Julian on IRC. The point is >> that the ".c" extension is misleading, it should more likely be a ".S" >> extension. But maybe this source file is used for multiple purposes. >> >> Note that -x assembler-with-cpp should also work fine for gcc. Ah.. the trick is to remove the -Wp,-E as well... >> >> -Dimitry >> > thanks > > I tried that but the version of the file we have has several lines > that caused problems... > > a lot of the assembler has assembler comments (starting with '#') > which clang complained about and died.. > > it also had #.align 4 > > which I HOPE is just a commented out line.. > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2c5d8af1-f703-e33b-2b71-905dc8fe0908>