Commit 3b1552c1 by Richard Henderson Committed by Richard Henderson

genemit.c (main): Include "target.h" in insn-emit.c.

        * genemit.c (main): Include "target.h" in insn-emit.c.
        * Makefile.in (insn-emit.o): Depend on TARGET_H.
        * config/sh/sync.md (atomic_test_and_set): Reference
        targetm.atomic_test_and_set_trueval instead of
        TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.

From-SVN: r184964
parent aa96f3d8
2012-03-05 Richard Henderson <rth@redhat.com>
* genemit.c (main): Include "target.h" in insn-emit.c.
* Makefile.in (insn-emit.o): Depend on TARGET_H.
* config/sh/sync.md (atomic_test_and_set): Reference
targetm.atomic_test_and_set_trueval instead of
TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com> 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
* config/epiphany/epiphany.c (epiphany_function_value_regno_p): * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
......
...@@ -3495,8 +3495,8 @@ insn-automata.o : insn-automata.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ ...@@ -3495,8 +3495,8 @@ insn-automata.o : insn-automata.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
insn-emit.o : insn-emit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ insn-emit.o : insn-emit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
$(RTL_H) $(TM_P_H) $(FUNCTION_H) $(EXPR_H) $(OPTABS_H) \ $(RTL_H) $(TM_P_H) $(FUNCTION_H) $(EXPR_H) $(OPTABS_H) \
dfp.h $(FLAGS_H) output.h insn-config.h hard-reg-set.h $(RECOG_H) \ dfp.h $(FLAGS_H) output.h insn-config.h hard-reg-set.h $(RECOG_H) \
$(RESOURCE_H) reload.h $(DIAGNOSTIC_CORE_H) $(REGS_H) tm-constrs.h $(GGC_H) \ $(RESOURCE_H) reload.h $(DIAGNOSTIC_CORE_H) $(REGS_H) tm-constrs.h \
$(BASIC_BLOCK_H) $(INTEGRATE_H) $(GGC_H) $(BASIC_BLOCK_H) $(INTEGRATE_H) $(TARGET_H)
insn-enums.o : insn-enums.c $(CONFIG_H) $(SYSTEM_H) insn-constants.h insn-enums.o : insn-enums.c $(CONFIG_H) $(SYSTEM_H) insn-constants.h
insn-extract.o : insn-extract.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ insn-extract.o : insn-extract.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
$(TM_H) $(RTL_H) $(DIAGNOSTIC_CORE_H) insn-config.h $(RECOG_H) $(TM_H) $(RTL_H) $(DIAGNOSTIC_CORE_H) insn-config.h $(RECOG_H)
......
...@@ -417,9 +417,10 @@ ...@@ -417,9 +417,10 @@
emit_insn (gen_tasb (addr)); emit_insn (gen_tasb (addr));
else else
{ {
rtx val = force_reg (QImode, rtx val;
gen_int_mode (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL,
QImode)); val = gen_int_mode (targetm.atomic_test_and_set_trueval, QImode);
val = force_reg (QImode, val);
emit_insn (gen_atomic_test_and_set_soft (addr, val)); emit_insn (gen_atomic_test_and_set_soft (addr, val));
} }
......
...@@ -812,7 +812,8 @@ from the machine description file `md'. */\n\n"); ...@@ -812,7 +812,8 @@ from the machine description file `md'. */\n\n");
printf ("#include \"tm-constrs.h\"\n"); printf ("#include \"tm-constrs.h\"\n");
printf ("#include \"ggc.h\"\n"); printf ("#include \"ggc.h\"\n");
printf ("#include \"basic-block.h\"\n"); printf ("#include \"basic-block.h\"\n");
printf ("#include \"integrate.h\"\n\n"); printf ("#include \"integrate.h\"\n");
printf ("#include \"target.h\"\n\n");
printf ("#define FAIL return (end_sequence (), _val)\n"); printf ("#define FAIL return (end_sequence (), _val)\n");
printf ("#define DONE return (_val = get_insns (), end_sequence (), _val)\n\n"); printf ("#define DONE return (_val = get_insns (), end_sequence (), _val)\n\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment