From bp at ten15.org Tue Jan 4 06:24:28 2005 From: bp at ten15.org (Boris Popov) Date: Mon, 3 Jan 2005 21:24:28 -0800 (PST) Subject: cvs commit: tendra/src/installers Makefile.inc tendra/src/installers/80x86 Makefile.inc tendra/src/installers/80x86/common localflags.c localflags.h messages_8.h msgarch.cat trans.c tendra/src/installers/80x86/sco assembler.c installer.h ... Message-ID: <200501040524.j045OSh3002472@spill.ten15.org> bp 2005/01/03 21:24:28 PST Modified files: src/installers Makefile.inc src/installers/80x86 Makefile.inc src/installers/80x86/common localflags.c localflags.h messages_8.h trans.c src/installers/80x86/sco assembler.c installer.h src/installers/common/construct flags.c flags.h inl_norm.c inl_norm.h installglob.c installglob.h src/installers/common/reader readglob.c readglob.h Added files: src/installers/80x86/common msgarch.cat Log: Switch x86 installer to the argparse engine. Revision Changes Path 1.2 +1 -0 tendra/src/installers/80x86/Makefile.inc 1.7 +1 -1 tendra/src/installers/80x86/common/localflags.c 1.7 +1 -1 tendra/src/installers/80x86/common/localflags.h 1.7 +0 -2 tendra/src/installers/80x86/common/messages_8.h 1.1 +238 -0 tendra/src/installers/80x86/common/msgarch.cat (new) 1.11 +276 -216 tendra/src/installers/80x86/common/trans.c 1.7 +1 -1 tendra/src/installers/80x86/sco/assembler.c 1.8 +1 -1 tendra/src/installers/80x86/sco/installer.h 1.6 +1 -1 tendra/src/installers/Makefile.inc 1.7 +5 -5 tendra/src/installers/common/construct/flags.c 1.7 +5 -5 tendra/src/installers/common/construct/flags.h 1.9 +1 -1 tendra/src/installers/common/construct/inl_norm.c 1.6 +1 -0 tendra/src/installers/common/construct/inl_norm.h 1.7 +4 -4 tendra/src/installers/common/construct/installglob.c 1.7 +4 -4 tendra/src/installers/common/construct/installglob.h 1.7 +1 -1 tendra/src/installers/common/reader/readglob.c 1.7 +1 -1 tendra/src/installers/common/reader/readglob.h From bp at ten15.org Tue Jan 4 08:13:10 2005 From: bp at ten15.org (Boris Popov) Date: Mon, 3 Jan 2005 23:13:10 -0800 (PST) Subject: cvs commit: tendra/src/installers/80x86/common assembler.h c_arith_type.c codec.h coder.c coder.h codermacs.h cproc.c cproc.h dw2_extra.c dw2_extra.h evaluate.c evaluate.h expmacs.h exptypes.h fbase.h glopt.c glopt.h inlinechoice.c instr.c instr.h instr386.c ... Message-ID: <200501040713.j047DAw0009962@spill.ten15.org> bp 2005/01/03 23:13:10 PST Modified files: src/installers/80x86/common assembler.h c_arith_type.c codec.h coder.c coder.h codermacs.h cproc.c cproc.h dw2_extra.c dw2_extra.h evaluate.c evaluate.h expmacs.h exptypes.h fbase.h glopt.c glopt.h inlinechoice.c instr.c instr.h instr386.c instr386.h instrmacs.h is_worth.c localflags.c localflags.h localtypes.h machine_toks.c messages_8.h operand.c operand.h out.c out.h overlap.c overlap.h reg_record.c reg_record.h scan2.c scan2.h spec.c spec_tok.c szs_als.h target_v.h trans.c translate.c tv_callees.c tv_callees.h weights.c weights.h Log: Cleanup: Remove trailing whitespaces, remove useless comments, remove "extern" keyword in functions prototypes, improve style of some comments, improve style of some structures declarations, separate declarations of functions and data. Revision Changes Path 1.8 +36 -38 tendra/src/installers/80x86/common/assembler.h 1.7 +1 -6 tendra/src/installers/80x86/common/c_arith_type.c 1.7 +11 -14 tendra/src/installers/80x86/common/codec.h 1.11 +24 -24 tendra/src/installers/80x86/common/coder.c 1.9 +10 -11 tendra/src/installers/80x86/common/coder.h 1.7 +5 -9 tendra/src/installers/80x86/common/codermacs.h 1.12 +1 -1 tendra/src/installers/80x86/common/cproc.c 1.7 +8 -11 tendra/src/installers/80x86/common/cproc.h 1.7 +12 -12 tendra/src/installers/80x86/common/dw2_extra.c 1.7 +25 -25 tendra/src/installers/80x86/common/dw2_extra.h 1.7 +40 -45 tendra/src/installers/80x86/common/evaluate.c 1.7 +6 -9 tendra/src/installers/80x86/common/evaluate.h 1.7 +7 -12 tendra/src/installers/80x86/common/expmacs.h 1.7 +27 -30 tendra/src/installers/80x86/common/exptypes.h 1.7 +5 -9 tendra/src/installers/80x86/common/fbase.h 1.7 +12 -17 tendra/src/installers/80x86/common/glopt.c 1.7 +6 -9 tendra/src/installers/80x86/common/glopt.h 1.8 +39 -46 tendra/src/installers/80x86/common/inlinechoice.c 1.9 +58 -70 tendra/src/installers/80x86/common/instr.c 1.7 +66 -68 tendra/src/installers/80x86/common/instr.h 1.17 +373 -383 tendra/src/installers/80x86/common/instr386.c 1.7 +113 -117 tendra/src/installers/80x86/common/instr386.h 1.7 +5 -8 tendra/src/installers/80x86/common/instrmacs.h 1.7 +5 -9 tendra/src/installers/80x86/common/is_worth.c 1.8 +0 -3 tendra/src/installers/80x86/common/localflags.c 1.8 +5 -9 tendra/src/installers/80x86/common/localflags.h 1.7 +47 -48 tendra/src/installers/80x86/common/localtypes.h 1.7 +1 -5 tendra/src/installers/80x86/common/machine_toks.c 1.8 +5 -8 tendra/src/installers/80x86/common/messages_8.h 1.7 +45 -61 tendra/src/installers/80x86/common/operand.c 1.7 +14 -16 tendra/src/installers/80x86/common/operand.h 1.7 +7 -14 tendra/src/installers/80x86/common/out.c 1.8 +14 -15 tendra/src/installers/80x86/common/out.h 1.7 +6 -10 tendra/src/installers/80x86/common/overlap.c 1.7 +6 -9 tendra/src/installers/80x86/common/overlap.h 1.7 +11 -15 tendra/src/installers/80x86/common/reg_record.c 1.7 +12 -15 tendra/src/installers/80x86/common/reg_record.h 1.11 +38 -45 tendra/src/installers/80x86/common/scan2.c 1.7 +7 -10 tendra/src/installers/80x86/common/scan2.h 1.7 +11 -19 tendra/src/installers/80x86/common/spec.c 1.9 +19 -23 tendra/src/installers/80x86/common/spec_tok.c 1.7 +5 -9 tendra/src/installers/80x86/common/szs_als.h 1.7 +5 -7 tendra/src/installers/80x86/common/target_v.h 1.12 +1 -5 tendra/src/installers/80x86/common/trans.c 1.9 +7 -7 tendra/src/installers/80x86/common/translate.c 1.7 +8 -13 tendra/src/installers/80x86/common/tv_callees.c 1.7 +2 -5 tendra/src/installers/80x86/common/tv_callees.h 1.7 +15 -19 tendra/src/installers/80x86/common/weights.c 1.7 +10 -13 tendra/src/installers/80x86/common/weights.h From bp at ten15.org Tue Jan 4 11:46:49 2005 From: bp at ten15.org (Boris Popov) Date: Tue, 4 Jan 2005 02:46:49 -0800 (PST) Subject: cvs commit: tendra/src/installers/80x86/common coder.c evaluate.c instr.c instr386.c messages_8.h msgarch.cat operand.c out.c trans.c Message-ID: <200501041046.j04AknOT021428@spill.ten15.org> bp 2005/01/04 02:46:48 PST Modified files: src/installers/80x86/common coder.c evaluate.c instr.c instr386.c messages_8.h msgarch.cat operand.c out.c trans.c Log: Eliminate large portion of messages_8.h. Strings left will gone in the near future. Revision Changes Path 1.12 +7 -6 tendra/src/installers/80x86/common/coder.c 1.8 +2 -1 tendra/src/installers/80x86/common/evaluate.c 1.10 +8 -8 tendra/src/installers/80x86/common/instr.c 1.18 +15 -10 tendra/src/installers/80x86/common/instr386.c 1.9 +0 -22 tendra/src/installers/80x86/common/messages_8.h 1.2 +78 -0 tendra/src/installers/80x86/common/msgarch.cat 1.8 +32 -51 tendra/src/installers/80x86/common/operand.c 1.8 +16 -25 tendra/src/installers/80x86/common/out.c 1.13 +4 -8 tendra/src/installers/80x86/common/trans.c From bp at ten15.org Sun Jan 16 16:20:22 2005 From: bp at ten15.org (Boris Popov) Date: Sun, 16 Jan 2005 07:20:22 -0800 (PST) Subject: cvs commit: tendra/src/utilities/sid main.c Message-ID: <200501161520.j0GFKMrI019773@spill.ten15.org> bp 2005/01/16 07:20:22 PST Modified files: src/utilities/sid main.c Log: Fix input file name and line number reporting in some cases. Revision Changes Path 1.15 +12 -4 tendra/src/utilities/sid/main.c From stefanf at ten15.org Wed Jan 19 23:44:47 2005 From: stefanf at ten15.org (Stefan Farfeleder) Date: Wed, 19 Jan 2005 14:44:47 -0800 (PST) Subject: cvs commit: tendra/src/lib/env/common Makefile Message-ID: <200501192244.j0JMilt9027099@spill.ten15.org> stefanf 2005/01/19 14:44:47 PST Modified files: src/lib/env/common Makefile Log: Remove slipped-in entry for CVS/. Revision Changes Path 1.2 +1 -1 tendra/src/lib/env/common/Makefile From stefanf at ten15.org Fri Jan 21 22:44:17 2005 From: stefanf at ten15.org (Stefan Farfeleder) Date: Fri, 21 Jan 2005 13:44:17 -0800 (PST) Subject: cvs commit: tendra/src/lib/machines/freebsd/5/80x86/startup ansi.h system.h tendra/src/lib/machines/freebsd/5/alpha/startup ansi.h system.h Message-ID: <200501212144.j0LLiH0K004408@spill.ten15.org> stefanf 2005/01/21 13:44:17 PST Modified files: src/lib/machines/freebsd/5/80x86/startup ansi.h system.h src/lib/machines/freebsd/5/alpha/startup ansi.h system.h Log: Define away the macro __aligned() for FreeBSD >= 5.0. This fixes compilation errors caused by structs in system headers. The downside is that code depending on the alignment of structs using __aligned() will be translated wrongly until TenDRA supports something equivalent. Revision Changes Path 1.4 +5 -0 tendra/src/lib/machines/freebsd/5/80x86/startup/ansi.h 1.4 +6 -1 tendra/src/lib/machines/freebsd/5/80x86/startup/system.h 1.5 +5 -0 tendra/src/lib/machines/freebsd/5/alpha/startup/ansi.h 1.5 +5 -0 tendra/src/lib/machines/freebsd/5/alpha/startup/system.h From stefanf at ten15.org Sat Jan 29 11:41:32 2005 From: stefanf at ten15.org (Stefan Farfeleder) Date: Sat, 29 Jan 2005 02:41:32 -0800 (PST) Subject: cvs commit: tendra/src/producers/common/construct initialise.c Message-ID: <200501291041.j0TAfW1N001904@spill.ten15.org> stefanf 2005/01/29 02:41:31 PST Modified files: src/producers/common/construct initialise.c Log: Move the check if an initialiser list tries to initialise a flexible array member to the right place. Previously it always triggered if a struct with a flexible array member was initialised, even for valid code like struct { int a; int b[]; } c = { 42 }. Revision Changes Path 1.13 +5 -6 tendra/src/producers/common/construct/initialise.c From stefanf at ten15.org Sat Jan 29 12:08:29 2005 From: stefanf at ten15.org (Stefan Farfeleder) Date: Sat, 29 Jan 2005 03:08:29 -0800 (PST) Subject: cvs commit: tendra/src/producers/common/construct allocate.c Message-ID: <200501291108.j0TB8TGA010602@spill.ten15.org> stefanf 2005/01/29 03:08:29 PST Modified files: src/producers/common/construct allocate.c Log: Back out revision 1.8. It was a special case to return the offset to the last member if the sizeof operator is applied to a struct with a flexible array member. The initial C99 standard required this behaviour, but in the meantime Technical Corrigendum 2 weakened this requirement by allowing additional padding at the end of the struct, now sizeof yields a value equal to or greater than the offset to the flexible array member. This also solves the "open issue" I mentioned in the initial flexible-array-member commit. Additionally, sizeof(struct-with-flexible-array-member) now yields the same value as with GCC. Revision Changes Path 1.9 +1 -12 tendra/src/producers/common/construct/allocate.c From stefanf at ten15.org Sat Jan 29 17:51:23 2005 From: stefanf at ten15.org (Stefan Farfeleder) Date: Sat, 29 Jan 2005 08:51:23 -0800 (PST) Subject: cvs commit: tendra/src/utilities/calculus code.c Message-ID: <200501291651.j0TGpNt5037953@spill.ten15.org> stefanf 2005/01/29 08:51:23 PST Modified files: src/utilities/calculus code.c Log: Use the `u' suffix for unsigned constants in the calculus output rather than the annoyingly verbose `((unsigned) constant)'. Checked by: md5 Revision Changes Path 1.8 +24 -25 tendra/src/utilities/calculus/code.c From stefanf at ten15.org Sat Jan 29 18:20:28 2005 From: stefanf at ten15.org (Stefan Farfeleder) Date: Sat, 29 Jan 2005 09:20:28 -0800 (PST) Subject: cvs commit: tendra/src/utilities/calculus assert_def.h calculus.h cmd_ops.h type_ops.h Message-ID: <200501291720.j0THKSRk046381@spill.ten15.org> stefanf 2005/01/29 09:20:28 PST Modified files: src/utilities/calculus assert_def.h calculus.h cmd_ops.h type_ops.h Log: Regenerate with a fresh calculus. Revision Changes Path 1.4 +1 -1 tendra/src/utilities/calculus/assert_def.h 1.4 +197 -197 tendra/src/utilities/calculus/calculus.h 1.4 +46 -46 tendra/src/utilities/calculus/cmd_ops.h 1.4 +130 -130 tendra/src/utilities/calculus/type_ops.h From stefanf at ten15.org Sat Jan 29 20:24:50 2005 From: stefanf at ten15.org (Stefan Farfeleder) Date: Sat, 29 Jan 2005 11:24:50 -0800 (PST) Subject: cvs commit: tendra/src/utilities/calculus code.c Message-ID: <200501291924.j0TJOsTf068419@spill.ten15.org> stefanf 2005/01/29 11:24:50 PST Modified files: src/utilities/calculus code.c Log: Stop generating code for !__STDC__, the `u' suffix is fine for all purposes. Revision Changes Path 1.9 +1 -11 tendra/src/utilities/calculus/code.c From stefanf at ten15.org Sat Jan 29 21:57:23 2005 From: stefanf at ten15.org (Stefan Farfeleder) Date: Sat, 29 Jan 2005 12:57:23 -0800 (PST) Subject: cvs commit: tendra/src/producers/common/construct basetype.c Message-ID: <200501292057.j0TKvNr8077312@spill.ten15.org> stefanf 2005/01/29 12:57:23 PST Modified files: src/producers/common/construct basetype.c Log: Allow bit-fields with type _Bool. There is still work to be done because the producer thinks that _Bool's width is 1 and fails for bit-fields with a bigger width. Revision Changes Path 1.11 +2 -2 tendra/src/producers/common/construct/basetype.c From stefanf at ten15.org Sat Jan 29 22:15:26 2005 From: stefanf at ten15.org (Stefan Farfeleder) Date: Sat, 29 Jan 2005 13:15:26 -0800 (PST) Subject: cvs commit: tendra/src/producers/common/construct basetype.c Message-ID: <200501292115.j0TLFQ4V085577@spill.ten15.org> stefanf 2005/01/29 13:15:26 PST Modified files: src/producers/common/construct basetype.c Log: Don't complain that the signedness of bit-fields with type bool/_Bool is implementation-defined, that's not true. Revision Changes Path 1.12 +5 -0 tendra/src/producers/common/construct/basetype.c From stefanf at ten15.org Sat Jan 29 23:20:10 2005 From: stefanf at ten15.org (Stefan Farfeleder) Date: Sat, 29 Jan 2005 14:20:10 -0800 (PST) Subject: cvs commit: tendra/src/lib/startup/Modes Xc99 Message-ID: <200501292220.j0TMKA4Q089467@spill.ten15.org> stefanf 2005/01/29 14:20:10 PST Modified files: src/lib/startup/Modes Xc99 Log: Also forbid implicit int in K&R-style function parameters. Revision Changes Path 1.19 +2 -0 tendra/src/lib/startup/Modes/Xc99 From stefanf at ten15.org Sat Jan 29 23:57:40 2005 From: stefanf at ten15.org (Stefan Farfeleder) Date: Sat, 29 Jan 2005 14:57:40 -0800 (PST) Subject: cvs commit: tendra/src/producers/c/syntax syntax.act Message-ID: <200501292257.j0TMveeb094627@spill.ten15.org> stefanf 2005/01/29 14:57:40 PST Modified files: src/producers/c/syntax syntax.act Log: Allow multiple occurrences of the function specifier `inline'. Revision Changes Path 1.12 +2 -1 tendra/src/producers/c/syntax/syntax.act