2007-09-06 H.J. Lu <hongjiu.lu@intel.com>

* i386-gen.c (table): New.
	(process_i386_opcodes): Report errno when faied to open
	i386-opc.tbl.  Output opcodes to table.  Close i386-opc.tbl
	before return.
	(process_i386_registers): Report errno when faied to open
	i386-reg.tbl.  Output opcodes to table.  Close i386-reg.tbl
	before return.
	(main): Open i386-tbl.h for output.

	* Makefile.am ($(srcdir)/i386-tbl.h): Remove " > $@".
	* Makefile.in: Regenerated.
This commit is contained in:
H.J. Lu
2007-09-06 21:31:55 +00:00
parent f0027ce269
commit 34edb9ad07
4 changed files with 56 additions and 27 deletions

View File

@ -1127,7 +1127,7 @@ i386-gen: i386-gen.o
i386-gen.o: i386-gen.c i386-opc.h
$(srcdir)/i386-tbl.h: @MAINT@ i386-gen i386-opc.tbl i386-reg.tbl
./i386-gen --srcdir $(srcdir) > $@
./i386-gen --srcdir $(srcdir)
ia64-gen: ia64-gen.o
$(LINK) ia64-gen.o $(LIBIBERTY)