]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config.gcc
re PR target/36079 (cld instruction is not emitted anymore.)
authorUros Bizjak <uros@gcc.gnu.org>
Fri, 23 May 2008 07:53:16 +0000 (09:53 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 23 May 2008 07:53:16 +0000 (09:53 +0200)
commit922e3e33b211d1f01056457b093c8196aff40333
tree40050495f1a2d014b7c9ed11be27fad5038f05a0
parent71995c2c69bc2484ca571b29cf376acd860c2f88
re PR target/36079 (cld instruction is not emitted anymore.)

PR target/36079
* configure.ac: Handle --enable-cld.
* configure: Regenerated.
* config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
* config/i386/i386.h (struct machine_function): Add needs_cld field.
(ix86_current_function_needs_cld): New define.
* config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
(cld): New isns pattern.
(strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
* config/i386/i386.opt (mcld): New option.
* config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
TARGET_CLD and ix86_current_function_needs_cld.
(override_options): Use -mcld by default for 32-bit code if
USE_IX86_CLD.

* doc/install.texi (Options specification): Document --enable-cld.
* doc/invoke.texi (Machine Dependent Options)
        [i386 and x86-64 Options]: Add -mcld option.
        (Intel 386 and AMD x86-64 Options): Document -mcld option.

From-SVN: r135792
gcc/ChangeLog
gcc/config.gcc
gcc/config/i386/i386.c
gcc/config/i386/i386.h
gcc/config/i386/i386.md
gcc/config/i386/i386.opt
gcc/configure
gcc/configure.ac
gcc/doc/install.texi
gcc/doc/invoke.texi