diff options
author | Richard Henderson <rth@redhat.com> | 2009-11-20 15:51:52 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2009-11-20 15:51:52 -0800 |
commit | fe40daa0c3c7fa6be97fa4b1e2185c78c9f3e09a (patch) | |
tree | 2d75ea9c893310d1f59925e218d85aa20adf29d8 /gcc/config/i386/t-i386 | |
parent | 497d383424c5d3c54d15d7fe6f3c4a2a1db128b4 (diff) | |
download | gcc-fe40daa0c3c7fa6be97fa4b1e2185c78c9f3e09a.zip gcc-fe40daa0c3c7fa6be97fa4b1e2185c78c9f3e09a.tar.gz gcc-fe40daa0c3c7fa6be97fa4b1e2185c78c9f3e09a.tar.bz2 |
i386-builtin-types.awk: New file.
* config/i386/i386-builtin-types.awk: New file.
* config/i386/i386-builtin-types.def: New file.
* config/i386/t-i386: Use them to build i386-builtin-types.inc.
* config/i386/i386.c: Include it.
(ix86_builtin_type_tab, ix86_get_builtin_type): New.
(ix86_builtin_func_type_tab, ix86_get_builtin_func_type): New.
(struct builtin_isa): Remove GTY marker. Replace tree type with
ix86_builtin_func_type; add set_and_not_built_p.
(def_builtin): Change type parameter to tcode; use
ix86_get_builtin_func_type; update all callers. Accept zero mask
to mean the builtin is unconditionally available.
(ix86_add_new_builtins): Use set_and_not_built_p instead of type
being set to NULL.
(enum ix86_special_builtin_type, enum ix86_builtin_type): Remove.
Update some users to rationalized enumeration codes from new include.
(enum multi_arg_type): Remove. Replace all enumeration values
with defines to new ix86_builtin_func_type.
(ix86_init_mmx_sse_builtins): Don't build any types here. Defer
all type resolution to def_builtin.
(ix86_init_builtin_types): Split out from ...
(ix86_init_builtins): ... here. Use ix86_get_builtin_func_type.
From-SVN: r154388
Diffstat (limited to 'gcc/config/i386/t-i386')
-rw-r--r-- | gcc/config/i386/t-i386 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/config/i386/t-i386 b/gcc/config/i386/t-i386 index 087c474..87a25fb 100644 --- a/gcc/config/i386/t-i386 +++ b/gcc/config/i386/t-i386 @@ -22,7 +22,8 @@ i386.o: $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ $(INSN_ATTR_H) $(FLAGS_H) $(C_COMMON_H) except.h $(FUNCTION_H) \ $(RECOG_H) $(EXPR_H) $(OPTABS_H) toplev.h $(BASIC_BLOCK_H) \ $(GGC_H) $(TARGET_H) $(TARGET_DEF_H) langhooks.h $(CGRAPH_H) \ - $(TREE_GIMPLE_H) $(DWARF2_H) $(DF_H) tm-constrs.h $(PARAMS_H) + $(TREE_GIMPLE_H) $(DWARF2_H) $(DF_H) tm-constrs.h $(PARAMS_H) \ + i386-builtin-types.inc i386-c.o: $(srcdir)/config/i386/i386-c.c \ $(srcdir)/config/i386/i386-protos.h $(CONFIG_H) $(SYSTEM_H) coretypes.h \ @@ -30,3 +31,11 @@ i386-c.o: $(srcdir)/config/i386/i386-c.c \ $(TARGET_H) $(TARGET_DEF_H) $(CPPLIB_H) $(C_PRAGMA_H) $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ $(srcdir)/config/i386/i386-c.c + + +i386-builtin-types.inc: s-i386-bt ; @true +s-i386-bt: $(srcdir)/config/i386/i386-builtin-types.awk \ + $(srcdir)/config/i386/i386-builtin-types.def + $(AWK) -f $^ > tmp-bt.inc + $(SHELL) $(srcdir)/../move-if-change tmp-bt.inc i386-builtin-types.inc + $(STAMP) $@ |