This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Handle Solaris 8/9 x86 as rep syntax


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]