0b7b471011
Pre-work of new style of architecture extension test macros, we need the list used in `config/riscv/riscv-c.c`, so those struct/class declaration must move to header file rather than local C file. gcc/ChangeLog * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION): Move to riscv-subset.h. (struct riscv_subset_t): Ditto. (class riscv_subset_list): Ditto. * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move from riscv-common.c. (struct riscv_subset_t): Ditto. (class riscv_subset_list): Ditto. * config/riscv/t-riscv ($(common_out_file)): Add file dependency.
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
riscv-builtins.o: $(srcdir)/config/riscv/riscv-builtins.c $(CONFIG_H) \
|
|
$(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(TREE_H) $(RECOG_H) langhooks.h \
|
|
$(DIAGNOSTIC_CORE_H) $(OPTABS_H) $(srcdir)/config/riscv/riscv-ftypes.def \
|
|
$(srcdir)/config/riscv/riscv-modes.def
|
|
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
$(srcdir)/config/riscv/riscv-builtins.c
|
|
|
|
riscv-sr.o: $(srcdir)/config/riscv/riscv-sr.c $(CONFIG_H) \
|
|
$(SYSTEM_H)
|
|
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
$(srcdir)/config/riscv/riscv-sr.c
|
|
|
|
riscv-c.o: $(srcdir)/config/riscv/riscv-c.c $(CONFIG_H) $(SYSTEM_H) \
|
|
coretypes.h $(TM_H) $(TREE_H) output.h $(C_COMMON_H) $(TARGET_H)
|
|
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
|
$(srcdir)/config/riscv/riscv-c.c
|
|
|
|
riscv-d.o: $(srcdir)/config/riscv/riscv-d.c
|
|
$(COMPILE) $<
|
|
$(POSTCOMPILE)
|
|
|
|
riscv-shorten-memrefs.o: $(srcdir)/config/riscv/riscv-shorten-memrefs.c
|
|
$(COMPILE) $<
|
|
$(POSTCOMPILE)
|
|
|
|
PASSES_EXTRA += $(srcdir)/config/riscv/riscv-passes.def
|
|
|
|
$(common_out_file): $(srcdir)/config/riscv/riscv-cores.def \
|
|
$(srcdir)/config/riscv/riscv-protos.h \
|
|
$(srcdir)/config/riscv/riscv-subset.h
|