]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/hooks.c
target.h (gcc_target): Add cannot_force_const_mem.
authorRichard Henderson <rth@redhat.com>
Mon, 9 Dec 2002 23:54:01 +0000 (15:54 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 9 Dec 2002 23:54:01 +0000 (15:54 -0800)
commit3a04ff6433538b4cec71fe681ded309db4d91cab
tree57341f6e2c1ac600113f5797665b9c84f0d000d3
parenta9a4005fca1d4a58133419bc33c89a62fe534cbb
target.h (gcc_target): Add cannot_force_const_mem.

        * target.h (gcc_target): Add cannot_force_const_mem.
        * target-def.h (TARGET_CANNOT_FORCE_CONST_MEM): New.
        (TARGET_INITIALIZER): Add it.
        * varasm.c (force_const_mem): Fail if cannot_force_const_mem.
        * expr.c (emit_move_insn): Be prepared for force_const_mem to fail.
        * reload1.c (reload): Likewise.
        * hooks.c (hook_bool_rtx_false): New.
        * hooks.h: Declare it.

        * config/i386/i386.c (ix86_cannot_force_const_mem): New.
        (TARGET_CANNOT_FORCE_CONST_MEM): New.
        (ix86_expand_move): Remove de-const-pooling hack.

* gcc.dg/tls/opt-4.c: New.

From-SVN: r59971
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/expr.c
gcc/hooks.c
gcc/hooks.h
gcc/reload1.c
gcc/target-def.h
gcc/target.h
gcc/testsuite/gcc.dg/tls/opt-4.c [new file with mode: 0644]
gcc/varasm.c