https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120019

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Rainer Orth from comment #0)
> Between 20250428 and 20250429, Solaris/x86 bootstrap with the native as got
> broken compiling libgcc:
> 
> /var/gcc/regression/master/11.4-gcc/build/./gcc/xgcc
> -B/var/gcc/regression/master/11.4-gcc/build/./gcc/
> -B/vol/gcc/i386-pc-solaris2.11/bin/ 
> -B/vol/gcc/i386-pc-solaris2.11/lib/amd64/ -isystem
> /vol/gcc/i386-pc-solaris2.11/include -isystem
> /vol/gcc/i386-pc-solaris2.11/sys-include   -fno-checking -g -O2 -m64 -O2  -g
> -O2 -DIN_GCC   -W -Wall -Wno-error=narrowing -Wwrite-strings -Wcast-qual
> -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
> -isystem ./include  -fpic -g -DIN_LIBGCC2 -fbuilding-libgcc
> -fno-stack-protector  -fpic -I. -I. -I../../.././gcc
> -I/vol/gcc/src/hg/master/local/libgcc
> -I/vol/gcc/src/hg/master/local/libgcc/.
> -I/vol/gcc/src/hg/master/local/libgcc/../gcc
> -I/vol/gcc/src/hg/master/local/libgcc/../include  -DHAVE_CC_TLS   -o
> unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -c
> /vol/gcc/src/hg/master/local/libgcc/unwind-dw2.c -fvisibility=hidden
> -DHIDE_EXPORTS
> 
> Assembler: unwind-dw2.c
>         "/var/tmp//ccaYKMya.s", line 210 : Invalid instruction argument
>         Near line: "    rep movsq       (%rsi), (%rdi)"
>         "/var/tmp//ccaYKMya.s", line 11414 : Invalid instruction argument
>         Near line: "    rep movsl       (%rsi), (%rdi)"
> 
> and similarly for the 32-bit libgcc.
> 
> While as can deal with the previous syntax (rep movsl), it apparently doesn't
> grok the new form.
> 
> Bootstrap is fine when using gas, though.

Please detect support during configure time and create an operand modifier that
will output "gs " or "fs " for non-default address spaces. Then output e.g.
"%^%x1rep  movsq" for "gs rep movsq" when assembler doesn't support new form.

Reply via email to