This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Handle Solaris 8/9 x86 as rep syntax
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 10 May 2010 15:41:12 +0200
- Subject: Re: Handle Solaris 8/9 x86 as rep syntax
- References: <AANLkTimOl1FLAEZW1h-8l2513MJk0NjwDCxy7jq7RDH6@mail.gmail.com>
Uros Bizjak <ubizjak@gmail.com> writes:
>> During a recent 4.4 bootstrap on Solaris 9/x86 with Sun as, I noticed
>> that this version of the assembler cannot deal with rep <insn>, but
>> requires rep; <insn> instead. gas can handle both forms, and both
>> i386.c and xmmintrin.h already use the latter, so this seems obvious.
>
> "rep" with a semicolon will disable following warning from gas:
>
> empty.s: Assembler messages:
> empty.s:9: Error: expecting string instruction after `rep'
>
> While it is OK for "rep; nop" and "rep; ret" to disable the warning,
> it is OK for string instructions.
If this is a real problem, I could instead add a configure test for rep
<insn> vs. rep; <insn> support and e.g. define ASM_REP to "rep" or
"rep;" depending on the result. Would that be ok for you?
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University