dwarfout.c (INSN_LABEL_FMT): Remove.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2000-11-07  Richard Henderson  <rth@redhat.com>
2
3         * dwarfout.c (INSN_LABEL_FMT): Remove.
4         (output_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
5         (dwarfout_label): Remove.
6         * dwarfout.h: Remove it's prototype.
7         * dwarf2out.c (INSN_LABEL_FMT): Remove.
8         (gen_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
9         (dwarf2out_label): Remove.
10         * dwarf2out.h: Remove it's prototype.
11         * final.c (final_scan_insn): Don't call dwarf[2]out_label.
12
13 2000-11-07  Richard Henderson  <rth@redhat.com>
14
15         * config/ia64/fde-glibc.c (find_fde_for_dso): Do a binary
16         search on the unwind region section.
17
18         * config/ia64/ia64.md (movbi): Add r/r alternative.
19         (cmovdi_internal_astep): Describe all combinations of register
20         classes for sources & destinations; remove matching constraints.
21         (cmovdi_internal): Likewise.
22
23         * gcc.c (default_compilers) [@cpp-output]: Add -fpreprocessed.
24
25 2000-11-07  Richard Henderson  <rth@redhat.com>
26
27         * c-lang.c (start_cdtor, finish_cdtor): New functions.
28         (finish_file): Use them in building constructor/destructor functions.
29
30         * config/alpha/alpha.h (HAS_INIT_SECTION, LD_INIT_SWITCH, 
31         LD_FINI_SWITCH): Move ...
32         * config/alpha/osf.h: ... here.
33         * config/alpha/alpha-interix.h: Don't undef them.
34
35 2000-11-07  Jeffrey Oldham  <oldham@oz.codesourcery.com>
36
37         * config/mips/t-iris6 (FPBIT): New.  Added so that __unorddf2 is
38         included in libgcc.a.
39         (DPBIT): Likewise.
40         (dp-bit.c): Likewise.
41         (fp-bit.c): Likewise.
42
43 2000-11-07  Nick Clifton  <nickc@redhat.com>
44
45         * config/m88k/m88k.h (GLOBAL_ASM_OP): Add missing tab.
46         (INTERNAL_ASM_OP): Add missing tab.
47
48 2000-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
49
50         * alias.c (init_alias_analysis), calls.c (expand_call,
51         emit_library_call_value_1), combine.c (init_reg_last_arrays),
52         cse.c (new_basic_block), dbxout.c (dbxout_type), diagnostic.c
53         (init_output_buffer, set_diagnostic_context), dwarf2out.c
54         (equate_decl_number_to_die, build_abbrev_table), emit-rtl.c
55         (init_emit_once), fold-const.c (mul_double, div_and_round_double),
56         function.c (assign_parms), gcse.c (compute_can_copy,
57         alloc_gcse_mem, alloc_reg_set_mem, record_one_set,
58         compute_hash_table, compute_set_hash_table,
59         compute_expr_hash_table), genattrtab.c (optimize_attrs), global.c
60         (global_alloc, global_conflicts), haifa-sched.c (compute_trg_info,
61         clear_units, schedule_block), integrate.c (initialize_for_inline,
62         expand_inline_function), jump.c (thread_jumps), local-alloc.c
63         (local_alloc), loop.c (combine_movables, count_loop_regs_set,
64         load_mems_and_recount_loop_regs_set), print-tree.c (debug_tree),
65         regclass.c (init_reg_sets, init_reg_sets_1, regclass,
66         record_reg_classes, allocate_reg_info), reload.c
67         (get_secondary_mem, remove_address_replacements, find_reloads),
68         reload1.c (reload, set_initial_label_offsets, finish_spills,
69         reload_as_needed, choose_reload_regs_init,
70         reload_cse_simplify_operands), reorg.c (dbr_schedule), sbitmap.c
71         (sbitmap_zero), simplify-rtx.c (simplify_plus_minus), ssa.c
72         (rename_registers), stmt.c (expand_end_case), unroll.c
73         (unroll_loop), varray.c (varray_grow), objc/objc-act.c: Use memset
74         () instead of bzero ().
75
76 2000-11-07  Neil Booth  <neilb@earthling.net>
77
78        * cp/lang-specs.h: Fix -save-temps specs under USE_CPPLIB.
79
80 2000-11-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
81
82         * c-common.c (combine_strings): Only warn about long strings for C.
83
84 Tue Nov  7 19:44:30 2000  J"orn Rennecke <amylaar@redhat.com>
85
86         * combine.c (distribute_notes): Fix typo in last change.
87
88 2000-11-07  Geoff Keating  <geoffk@redhat.com>
89
90         * config/rs6000/rs6000.md (movdi_internal32+1): Use
91         operand_subreg_force rather than gen_rtx_SUBREG.
92         (movdi_internal32+2): Likewise.
93
94 2000-11-07  Philip Blundell  <philb@gnu.org>
95
96         * configure.in (arm*-*-linuxaout*): Obsolete, deleted.
97         * config/arm/linux-aout.h: Likewise.
98         * configure: Regenerate.
99
100 2000-11-07  Philipp Thomas  <pthomas@suse.de>
101
102         * ABOUT-GCC-NLS: Remove the patch for gettext as it has been
103         accepted my the gettext maintainer.
104
105 2000-11-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
106
107         * builtins.c (expand_builtin_strpbrk): New function.
108         (expand_builtin): Handle BUILT_IN_STRPBRK.
109
110         * builtins.def (BUILT_IN_STRPBRK): New entry.
111
112         * c-common.c (c_common_nodes_and_builtins): Declare builtin
113         strpbrk.
114
115 2000-11-07  David O'Brien  <obrien@dragon.nuxi.com>
116
117         * config/alpha/freebsd.h: New file -- FreeBSD/alpha architecture file.
118         * POTFILES.in: Add config/alpha/freebsd.h
119         * configure.in: Add alpha*-freebsd support.
120         * configure: Regenerate.
121
122 2000-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
123
124         * tree.c (build_common_tree_nodes_2): Make va_list_type_node be a
125         copy of ptr_type_node rather than ptr_type_node itself.
126
127 Tue Nov  7 06:29:24 2000  J"orn Rennecke <amylaar@redhat.com>
128
129         * combine.c (recog_for_combine): Allocate uninitialized vector with
130         rtvec_alloc.
131         * recog.c (apply_change_group): Likewise.
132
133 Tue Nov  7 06:24:02 2000  J"orn Rennecke <amylaar@redhat.com>
134
135         * flow.c (verify_local_live_at_start): Back out last change.
136         * combine.c (distribute_notes): When parts of a hard reg are
137         neither set nor referenced in PLACE, search backwards for a
138         place to put a REG_UNUSED note; if none found, ask for flow
139         info refresh.
140
141 Mon Nov  6 20:08:13 2000  J"orn Rennecke <amylaar@redhat.com>
142
143         * reload1.c (eliminate_regs_in_insn): Allow a set to be a PARALLEL
144         with (clobber (match_scratch...)).
145
146 2000-11-06  Neil Booth  <neilb@earthling.net>
147
148         * c-lex.c (init_c_lex): If cpp_start_read fails, exit with
149         error status.
150
151 2000-11-06  Neil Booth  <neilb@earthling.net>
152
153         * tradcpp.c (special_symbol): Assign an null string rather
154         than writing to an unallocated buffer.
155
156 2000-11-06  Neil Booth  <neilb@earthling.net>
157
158         * cpplex.c (_cpp_equiv_tokens): Check arg_no in the
159         CPP_MACRO_ARG case.
160
161 2000-11-06  Neil Booth  <neilb@earthling.net>
162
163         * c-lex.c (c_lex): Replace tok.val.aux with tok.val.c or
164         tok.val.arg_no as appropriate.
165         * cppexp.c (lex): Similarly.
166         * cpplex.c (_cpp_lex_token, cpp_spell_token, cpp_output_token,
167         cpp_equiv_tokens, cpp_can_paste, cpp_avoid_paste): Similarly.
168         * cppmacro.c (stringify_arg, replace_args, lex_expansion_token,
169         cpp_macro_definition): Similarly.
170         * cpplib.h (struct cpp_token): Replace aux with c and arg_no.
171
172 2000-11-06  Jakub Jelinek  <jakub@redhat.com>
173
174         * config/sparc/sparc.md (adddi3): If operands[2] is 4096 and
175         operands[1] is constant, calculate the sum and generate movdi.
176         (addsi3): Similarly.  Use SImode in call to arith_4096_operand.
177         (subsi3): Use SImode in call to arith_4096_operand.
178
179 2000-11-06  Jakub Jelinek  <jakub@redhat.com>
180
181         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): On sparc64 we need to
182         adjust %o1, not %o0 if the return type is large structure.
183
184 2000-11-06  Jakub Jelinek  <jakub@redhat.com>
185
186         * config/sparc/sparc.md (smulsi3_highpart_v8plus, ashldi3_v8plus+1,
187         update_return, flush, flushdi, ffssi2, ffsdi2): Fix output formatting.
188
189 Sat Sep 23 19:10:20 2000  Denis Chertykov  <denisc@overta.ru> & Marek Michalkiewicz  <marekm@linux.org.pl>
190
191         * expmed.c (expand_divmod): For signed divide by 2, prefer
192         a branch and fewer shifts if branches are very cheap.
193
194 2000-11-05  Joseph S. Myers  <jsm28@cam.ac.uk>
195
196         * Makefile.in: Remove all targets related to building
197         distributions and diffs, or INSTALL.
198         * INSTALL, install1.texi: Remove.
199         * configure.in: Remove mention of distdir.
200         * configure: Regenerate.
201         * objc/Make-lang.in: Remove mention of distdir.
202
203 2000-11-04  Neil Booth  <neilb@earthling.net>
204
205         * cpp.texi: Update for _Pragma.
206
207 2000-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
208
209         * gcc.texi (Contributing): Update URL for projects web page.
210
211 2000-11-04  Neil Booth  <neilb@earthling.net>
212
213         * cpplex.c (parse_string): Don't allow multiline strings in
214         #include family directives.
215
216 2000-11-04  Neil Booth  <neilb@earthling.net>
217
218         * cpplib.c (do_line): Only warn pedantically if not reading
219         preprocessed input.
220
221 2000-11-04  Alexandre Oliva  <aoliva@redhat.com>
222
223         * calls.c (emit_call_1) [sibcall_pop]: Use n_popped instead of
224         RETURN_POPS_ARGS().
225
226 2000-11-03  Zack Weinberg  <zack@wolery.stanford.edu>
227
228         * builtins.c (expand_builtin_strlen): Remove unused mode
229         argument.
230         * gcc.c (process_command): Remove unused variable.
231         * fold-const.c: Include expr.h.
232         * recog.c: Include reload.h.
233         * Makefile.in (recog.o, fold-const.o): Update deps.
234
235 2000-11-02  Geoffrey Keating  <geoffk@cygnus.com>
236
237         * fixinc/gnu-regex.c: Change 'CYGNUS LOCAL' to 'EGCS LOCAL'.
238
239 Fri Nov  3 13:41:04 2000  Mark P Mitchell  <mark@codesourcery.com>
240
241         * config/mips/iris6.h (SUBTARGET_CC1_SPEC): Remove -static
242         handling.
243         (STARTFILE_SPEC): Likewise.
244         (LINK_SPEC): Likewise.
245
246 2000-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
247
248         * Makefile.in (fold-const.o): Depend on $(GGC_H), not ggc.h.
249         (toplev.o): Likewise for $(LOOP_H)/loop.h and $(REGS_H)/regs.h.
250         (simplify-rtx.o): Likewise for $(GGC_H)/ggc.h.
251
252 2000-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
253
254         * c-decl.c (duplicate_decls, copy_lang_decl), dwarfout.c
255         (dwarfout_line), gcc.c (main, save_string), tree.c (init_obstacks,
256         perm_calloc, get_identifier, maybe_get_identifier,
257         real_value_from_int_cst, simple_cst_equal), varasm.c
258         (assemble_name, assemble_real, immed_real_const_1,
259         compare_constant_1, decode_rtx_const, output_constant_pool): Use
260         strrchr () instead of rindex ().  Use memcmp () instead of bcmp
261         ().  Use memcpy () instead of bcopy ().  Use memset () instead of
262         bzero ().
263
264 2000-11-03  Nathan Sidwell  <nathan@codesourcery.com>
265
266         * cppfiles.c (open_file): If already read, then don't reopen.
267         Immediately close an empty file.
268
269 2000-11-01  Bernd Schmidt  <bernds@redhat.co.uk>
270
271         * expr.h (fold_builtin): Move declaration...
272         * tree.h (fold_builtin): ... here.
273
274 Fri Nov  3 05:41:07 2000  J"orn Rennecke <amylaar@redhat.com>
275
276         * flow.c (verify_local_live_at_start): Allow hard regs to die.
277
278 2000-11-02  Neil Booth  <neilb@earthling.net>
279
280 config:
281         * a29k/a29k.h, a29k/unix.h, a29k/vx29k.h,
282         alpha/alpha-interix.h, alpha/alpha.h, alpha/linux.h,
283         alpha/openbsd.h, alpha/osf.h, alpha/vms.h, alpha/vxworks.h,
284         alpha/win-nt.h, arc/arc.h, arm/arm.h, arm/conix-elf.h,
285         arm/linux-aout.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
286         arm/riscix1-1.h, arm/semiaof.h, arm/unknown-elf-oabi.h, arm/vxarm.h,
287         c4x/rtems.h, clipper/clix.h, convex/convex.h, d30v/d30v.h,
288         elxsi/elxsi.h, fr30/fr30.h, h8300/h8300.h, i370/linux.h, i370/mvs.h,
289         i370/oe.h, i386/386bsd.h, i386/aix386ng.h, i386/beos-elf.h,
290         i386/bsd386.h, i386/crtdll.h, i386/cygwin.h, i386/dgux.h,
291         i386/djgpp-rtems.h, i386/djgpp.h, i386/freebsd-aout.h, i386/freebsd.h,
292         i386/gnu.h, i386/i386-interix.h, i386/i386.h, i386/linux-aout.h,
293         i386/linux-oldld.h, i386/linux.h, i386/lynx-ng.h, i386/lynx.h,
294         i386/mach.h, i386/mingw32.h, i386/moss.h, i386/netbsd.h,
295         i386/netware.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
296         i386/osfelf.h, i386/osfrose.h, i386/ptx4-i.h, i386/rtems.h,
297         i386/rtemself.h, i386/sco.h, i386/sco4.h, i386/sco4dbx.h, i386/sco5.h,
298         i386/scodbx.h, i386/sequent.h, i386/sol2.h, i386/sun.h, i386/sysv3.h,
299         i386/sysv4.h, i386/uwin.h, i386/vsta.h, i386/vxi386.h, i386/win-nt.h,
300         i386/win32.h, i860/fx2800.h, i860/i860.h, i860/mach.h, i860/sysv3.h,
301         i860/sysv4.h, i960/i960.h, i960/rtems.h, i960/vx960-coff.h,
302         ia64/ia64.h, ia64/linux.h, m32r/m32r.h, m68k/3b1.h, m68k/3b1g.h,
303         m68k/a-ux.h, m68k/altos3068.h, m68k/amix.h, m68k/apollo68.h,
304         m68k/crds.h, m68k/ctix.h, m68k/dpx2.h, m68k/hp2bsd.h, m68k/hp320.h,
305         m68k/hp3bsd.h, m68k/hp3bsd44.h, m68k/isi.h, m68k/linux-aout.h,
306         m68k/linux.h, m68k/lynx-ng.h, m68k/lynx.h, m68k/m68kemb.h,
307         m68k/m68kv4.h, m68k/mot3300.h, m68k/netbsd.h, m68k/news.h,
308         m68k/next.h, m68k/openbsd.h, m68k/pbb.h, m68k/plexus.h, m68k/rtems.h,
309         m68k/rtemself.h, m68k/sun2.h, m68k/sun3.h, m68k/sun3mach.h,
310         m68k/tower-as.h, m68k/tower.h, m68k/vxm68k.h, m88k/dgux.h,
311         m88k/dolph.h, m88k/luna.h, m88k/m88k-aout.h, m88k/m88k-coff.h,
312         m88k/openbsd.h, m88k/sysv3.h, m88k/sysv4.h, mips/bsd-4.h,
313         mips/bsd-5.h, mips/dec-bsd.h, mips/dec-osf1.h, mips/gnu.h,
314         mips/iris3.h, mips/iris5.h, mips/iris6.h, mips/linux.h, mips/mips.h,
315         mips/netbsd.h, mips/news4.h, mips/news5.h, mips/nws3250v4.h,
316         mips/openbsd.h, mips/osfrose.h, mips/rtems64.h, mips/sni-svr4.h,
317         mips/svr3-4.h, mips/svr3-5.h, mips/svr4-4.h, mips/svr4-5.h,
318         mips/ultrix.h, ns32k/encore.h, ns32k/merlin.h, ns32k/netbsd.h,
319         ns32k/ns32k.h, ns32k/pc532-mach.h, ns32k/pc532.h, ns32k/sequent.h,
320         ns32k/tek6000.h, ns32k/tek6100.h, ns32k/tek6200.h, pa/pa-hiux.h,
321         pa/pa-hpux.h, pa/pa-hpux7.h, pa/pa-linux.h, pa/pa-osf.h,
322         pa/pa-pro-end.h, pa/pa.h, pa/rtems.h, pj/linux.h, pj/pj.h,
323         romp/romp.h, rs6000/aix.h, rs6000/aix31.h, rs6000/aix41.h,
324         rs6000/aix43.h, rs6000/beos.h, rs6000/eabi.h, rs6000/eabisim.h,
325         rs6000/linux.h, rs6000/lynx.h, rs6000/mach.h, rs6000/rtems.h,
326         rs6000/sysv4.h, rs6000/vxppc.h, sh/elf.h, sh/linux.h, sh/rtems.h,
327         sh/rtemself.h, sh/sh.h, sparc/aout.h, sparc/elf.h, sparc/linux-aout.h,
328         sparc/linux.h, sparc/linux64.h, sparc/lite.h, sparc/litecoff.h,
329         sparc/liteelf.h, sparc/lynx-ng.h, sparc/lynx.h, sparc/netbsd.h,
330         sparc/openbsd.h, sparc/pbd.h, sparc/rtems.h, sparc/rtemself.h,
331         sparc/sol2-sld-64.h, sparc/sol2.h, sparc/sp64-aout.h,
332         sparc/sp64-elf.h, sparc/sp86x-aout.h, sparc/sp86x-elf.h,
333         sparc/sparc.h, sparc/sysv4.h, sparc/vxsim.h, sparc/vxsparc.h,
334         v850/rtems.h, vax/netbsd.h, vax/openbsd.h, vax/ultrix.h, vax/vax.h,
335         vax/vaxv.h, vax/vms.h, we32k/we32k.h
336         
337         Replace -A() with -A=, the new assertion syntax.
338
339 Thu Nov  2 21:52:35 2000  J"orn Rennecke <amylaar@redhat.com>
340
341         * combine.c (distribute_notes): Use rtx_equal_p to check elim_i2 /
342         elim_i1.
343         In REG_DEAD handling: When handling parts of multi-hard-reg hard
344         registers, increment the loop counter by the size of the parts;
345         use recursion to handle individual parts.
346
347 2000-11-02  Neil Booth  <neilb@earthling.net>
348
349         * configure.in: Make integrated CPP the default.
350         * configure: Regenerate.
351
352 Thu Nov  2 19:20:12 2000  J"orn Rennecke <amylaar@redhat.com>
353
354         * reload.c (find_equiv_reg): Test all hard registers for membership
355         in the requested class.
356
357 2000-11-02  Joseph S. Myers  <jsm28@cam.ac.uk>
358
359         * collect2.c (main, write_c_file_stat), gcc.c (translate_options,
360         process_command, main), gcov.c (open_files, output_data), tlink.c
361         (frob_extension, scan_linker_output), toplev.c
362         (file_name_nondirectory): Use strchr () and strrchr () instead of
363         index () and rindex ().
364
365 2000-11-02  Joseph S. Myers  <jsm28@cam.ac.uk>
366
367         * c-common.c (get_flag_spec, check_format_info_main,
368         check_format_types): Use strchr () instead of index ().  Compare
369         against error_mark_node instead of comparing the TREE_CODE against
370         ERROR_MARK.
371
372 2000-11-02  Zack Weinberg <zackw@Stanford.EDU>
373
374         Integrated CPP.
375           
376         * c-lex.c (init_c_lex): Update cpp_start_read call.
377         (cb_ident): Update for new callback prototype.
378         (cb_def_pragma): Update for new cpp_get_token prototype.
379         (c_lex): Similarly.  Use cpp_get_line.
380           
381         * c-parse.in (finish_parse): Update for new cpp_finish
382         prototype.
383           
384         * cp/lex.c (finish_parse): Similarly.
385
386 2000-11-01  Geoff Keating  <geoffk@cygnus.com>
387
388         * machmode.def: Add V16QImode.
389
390 2000-11-01  Richard Henderson  <rth@redhat.com>
391
392         * dwarf2out.c (loc_descriptor_from_tree): Check for null result
393         from rtl_for_decl_location.
394         (add_location_or_const_value_attribute): Likewise.
395
396 2000-11-01  Neil Booth  <neilb@earthling.net>
397
398         * cpplib.c (run_directive): Use correct line number for output
399         of _Pragma.  Remember any in-progress directive. 
400   
401         * gcc.dg/cpp/vararg2.c, gcc.dg/cpp/_Pragm1.c: New tests.
402
403 2000-11-01  Richard Henderson  <rth@redhat.com>
404
405         * stmt.c (expand_start_null_loop): Set continue_label.
406
407 2000-11-01  Bernd Schmidt  <bernds@redhat.co.uk>
408
409         * builtins.c (fold_builtin_constant_p, fold_builtin): New functions.
410         (expand_builtin_constant_p): Move parts of the code into
411         fold_builtin_constant_p.
412         (expand_builtin_strlen): Move parts of the code into fold_builtin.
413         * expr.h (fold_builtin): Declare.
414         * fold-const.c (fold): Handle builtin calls.
415
416         * c-typeck.c (build_function_call): Call fold on the CALL_EXPR.
417
418 2000-11-01  Richard Henderson  <rth@redhat.com>
419
420         * stmt.c (expand_start_null_loop): New.
421         (expand_end_null_loop): New.    
422         * c-semantics.c (genrtl_do_stmt): Use them.
423         * tree.h: Declare them.
424
425 2000-11-01  Richard Henderson  <rth@redhat.com>
426
427         * cppmain.c (scan_buffer): Don't avoid paste for assembly.
428
429 2000-11-01  Neil Booth  <neilb@earthling.net>
430
431         * c-parse.in (_yylex): Remove CPP_BACKSLASH case.
432         * cp/spew.c: Similarly.
433         * cpplex.c (_cpp_lex_token): Backslashes are now CPP_OTHER.
434         * cppmacro.c (stringify_arg): Similarly.
435         * cpplib.h (CPP_BACKSLASH): Delete.
436
437 2000-10-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
438
439         * builtins.c (expand_builtin_strstr): New function.
440         (expand_builtin): Handle BUILT_IN_STRSTR and BUILT_IN_STRCHR.
441
442         * builtins.def (BUILT_IN_STRSTR, BUILT_IN_STRCHR): New entries.
443
444         * c-common.c (c_common_nodes_and_builtins): Declare builtin strstr
445         and builtin strchr.
446
447 2000-10-31  Richard Henderson  <rth@redhat.com>
448
449         * config/i386/i386.c (fcmov_comparison_operator): Check for
450         CCFPmode or CCFPUmode instead of CCmode.
451         (ix86_expand_fp_movcc): Call ix86_expand_setcc for most
452         unordered operations as well.
453
454 2000-10-31  Richard Henderson  <rth@redhat.com>
455
456         * c-semantics.c (genrtl_do_stmt): Use integer_zerop instead
457         of integer_zero_node.
458
459 2000-10-31  Richard Henderson  <rth@redhat.com>
460
461         * c-semantics.c (genrtl_do_stmt): Special case do/while(0).
462
463 2000-10-31  Nick Clifton  <nickc@redhat.com>
464
465         * config/arm/unknown-elf.h (UNIQUE_SECTION_P): Do not allow
466         -fdata-sections to override the section attribute of a DECL.
467
468 2000-10-31  Chris Demetriou  <cgd@sibyte.com>
469
470         * libgcc2.c (__shtab): Remove __shtab variable.
471         * libgcc-std.ver (GCC_3.0): Remove __shtab from symbol list.
472         * Makefile.in (LIB2FUNCS): Remove _shtab from list of library
473         members.
474
475 2000-10-31  Jim Wilson  <wilson@redhat.com>
476
477         * defaults.h (ASM_OUTPUT_DEBUG_LABEL): New.
478         * tm.texi (ASM_OUTPUT_DEBUG_LABEL): Document.
479         * dwarf2out.c (dwarf2out_begin_block): Use ASM_OUTPUT_DEBUG_LABEL
480         instead of ASM_OUTPUT_INTERNAL_LABEL.
481         (dwarf2out_end_block, dwarf2out_label): Likewise.
482         * final.c (final_scan_insn, case NOTE_INSN_DELETED_LABEL): Likewise
483         * config/ia64/ia64.h (ASM_OUTPUT_DEBUG_LABEL): Define.
484         
485 2000-10-31  Richard Henderson  <rth@redhat.com>
486
487         * dwarf2out.c (struct dw_loc_descr_struct): Add dw_loc_addr.
488         (size_of_locs): Set it.
489         (output_loc_operands): Use it to compute branch displacement.
490         (int_loc_descriptor): New.
491         (mem_loc_descriptor): Dereference memory in the proper size.
492         Use DW_OP_plus_uconst when possible.  Use int_loc_descriptor.
493         (loc_descriptor_from_tree): New.
494         (rtl_for_decl_location): Break out from ...
495         (add_location_or_const_value_attribute): ... here.
496         (add_bound_info): Use loc_descriptor_from_tree.
497
498 2000-10-31  Neil Booth  <neilb@earthling.net>
499
500         * cpp.texi: Update for new command line assertion syntax.
501         * cpplib.c (cpp_define): Simplify a bit.
502         (cpp_assert, cpp_unassert): Use handle_assertion.
503         (handle_assertion): New function; accept new command line
504         syntax with '='.
505         * testsuite/gcc.dg/cpp/assert3.c: New tests.
506
507 2000-10-31  Neil Booth  <neilb@earthling.net>
508
509         * cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if
510         undefined.  Remove #ifdef check.
511         * config/i386/sol2.h, config/rs6000/sol2.h, config/sparc/sol2.h:
512         Define STDC_0_IN_SYSTEM_HEADERS to 1.
513
514 2000-10-31  Jan Hubicka  <jh@suse.cz>
515             Jakub Jelinek  <jakub@redhat.com>
516
517         * config/i386/i386.h: Clarify CCNOmode description in comment.
518         (EXTRA_CC_MODES): Remove CCRCmode.
519         * config/i386/i386.c (ix86_comparison_operator): Remove CCRCmode.
520         (put_condition_code, ix86_match_ccmode): Likewise.
521         (ix86_cc_mode): Likewise.  Fix comment.
522         (ix86_expand_strlensi_unroll_1): *rc patterns are gone.
523         * config/i386/i386.md: Add unspec 12 description.
524         (adddi3 split): Use unspec 12 instead of CCRCmode.
525         (addsi3_carry_rc): Remove.
526         (addsi3_cc, addqi3_cc): New patterns.
527         (addsi_3): Swap operands, match CCZmode.
528         (addsi_4): Rewritten.
529         (addsi_5): Renamed from addsi_6.
530         (addsi_6): Removed.
531         (addhi_3): Swap operands, match CCZmode.
532         (addhi_4): Rewritten.
533         (addhi_5): Renamed from addhi_6.
534         (addhi_6): Removed.
535         (addqi_3): Swap operands, match CCZmode.
536         (addqi_4): Rewritten.
537         (addqi_5): Renamed from addqi_6.  Use =q constraint for clobber.
538         (subsi3_carry_rc): Removed.
539         (iorqi_3): Use =q constraint for clobber.
540         (xorqi_cc_2): Likewise.
541         (negdi2_1 split): Don't use CCRCmode, use ltu instead of gtu.
542         (x86_movsicc_0_m1_rc): Removed.
543         (cmp?i peepholes): Remove neg.  Use CCGCmode instead of CCRCmode.
544
545 2000-10-31  Joseph S. Myers  <jsm28@cam.ac.uk>
546
547         * c-typeck.c (build_unary_op): If pedantic, pedwarn for increment
548         and decrement of complex types.
549
550 2000-10-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
551
552         * builtins.c (expand_builtin_fputs): When deleting NOP calls to
553         builtin fputs, ensure we still evaluate the stream in case it
554         has side-effects.
555
556 2000-10-31  Jakub Jelinek  <jakub@redhat.com>
557
558         * expr.c (do_store_flag): Pass operand_mode instead of GET_MODE (op0)
559         to expand_shift.
560
561 Tue Oct 31 15:33:27 2000  J"orn Rennecke <amylaar@redhat.com>
562
563         * sh-protos.h (reg_no_subreg_operand, emit_fpscr_use): Don't declare.
564         (fp_extended_operand, emit_fpscr_use): Likewise.
565         * sh.c (reg_no_subreg_operand, fp_extended_operand): Delete functions.
566         (fpul_operand): New function.
567         * sh.h (PREDICATE_CODES): Remove reg_no_subreg_operand and
568         fp_extended_operand.  Add fpul_operand.
569         * sh.md (mulsf3, mulsf3_i4): Use fp_arith_reg_operand for "f" operands.
570         (mulsf3_ie, macsf3, cmpgtsf_t, cmpeqsf_t, ieee_ccmpeqsf_t): Likewise.
571         (cmpgtsf_t_i4, cmpeqsf_t_i4, ieee_ccmpeqsf_t_4, negsf2): Likewise.
572         (negsf2_i, sqrtsf2, sqrtsf2_i, abssf2, abssf2_i, adddf3): Likewise.
573         (adddf3_i, subdf3, subdf3_i, muldf3, muldf3_i, divdf3): Likewise.
574         (divdf3_i): Likewise.
575         (floatsisf2): Likewise.  Use fpul_operand for 'y' operand.
576         (floatsisf2_i4, floatsisf2_ie, fix_truncsfsi2): Likewise.
577         (fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i): Likewise.
578         (fix_truncdfsi2, fix_truncdfsi2_i, extendsfdf2): Likewise.
579         (extendsfdf2_i4, truncdfsf2, truncdfsf2_i4): Likewise.
580
581 2000-10-31  Bernd Schmidt  <bernds@redhat.co.uk>
582
583         * config/i386/i386.c (ix86_init_builtins): Correct return type
584         building v4hi_ftype_v4hi_int_int tree node.
585         (ix86_expand_builtin): Use correct operand numbers 0 and 1.
586         Copy operand 0 into a Pmode register, don't generate a MEM rtx.
587
588         * config/i386/i386.md (sse_movntdi): Use mmx register constraint
589         for operand 1.
590         (mmx__uavgv8qi3): Correct insn mnemonic.
591         (mmx_psadbw): Correct insn mnemonic.  Use V8QI mode for operands 1 and 2.
592         (mmx_punpckhwd): Correct insn mnemonic.
593         (mmx_punpckhdq): Likewise.
594         (mmx_punpcklwd): Likewise.
595         (mmx_punpckldq): Likewise.
596         (prefetch): Use immediare_operand and 'n' constraint for operand 1.
597         Renumber case labels to match the _mm_prefetch constants defined in
598         xmmintrin.h.
599
600         * recog.c (split_all_insns): Don't try to call cleanup_subreg_operands
601         if the splitter didn't emit new insns.
602         Make sure we call cleanup_subreg_operands even when splitting the last
603         insn in a basic block.
604
605         * invoke.texi (Debugging Options): Describe -do.
606         * toplev.c (enum_dump_file_index): New entry DFI_postreload.
607         (dump_file): Likewise.
608         (rest_of_compilation): Split .greg dump into .greg and .postreload.
609
610 2000-10-30  Neil Booth  <neilb@earthling.net>
611
612         * cppfiles.c (stack_include_file): Check for stacked contexts
613         here.
614         * cpphash.h (_cpp_do__Pragma): New prototype.
615         * cppinit.c (cpp_reader_init): Add _Pragma keyword to hash table.
616
617         * cpplex.c (skip_escaped_newlines): Only process trigraphs and
618         escaped newlines if !(buffer->from_stage3).
619         (_cpp_lex_token): Warn about missing newlines iff
620         !buffer->from_stage3.
621
622         * cpplib.c (get__Pragma_string, destringize,
623         _cpp_do__Pragma): New functions.
624         (run_directive): Set output_line for _Pragma to avoid line
625         markers in output.  Set from_stage3 and prevent macro expansion
626         for _Pragma and command-line options.  Check buffer exhaustion.
627         (cpp_push_buffer): Don't check for stacked macro contexts, as
628         this is perfectly legitimate for _Pragma.  Move the check to
629         stack_include_file instead. Set from_stage3 iff buffer is
630         preprocessed input.
631
632         * cpplib.h (struct cpp_buffer): Make warned_cplusplus_comments
633         unsigned. New boolean from_stage3.
634         (struct spec_nodes): Add n__Pragma.
635
636         * cppmacro.c (enter_macro_context): Flip sense of return value.
637         (_cpp_get_token): Handle _Pragma operator.
638
639 2000-10-30  Phil Edwards  <pme@sources.redhat.com>
640
641         * gcc.texi:  The C++ standard isn't "draft" anymore.
642
643 2000-10-30  Mark Mitchell  <mark@codesourcery.com>
644
645         * cppmacro.c (builtin_macro): Use NT_VOID, not T_VOID.
646
647 2000-10-29  Neil Booth  <neilb@earthling.net>
648
649         * cpplib.c (skip_rest_of_line):  Use _cpp_get_token.
650
651 2000-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
652
653         * toplev.c, flags.h, fold-const.c, real.c, rtl.c,
654         fixinc/inclhack.def: Change comments mentioning C9X to refer to
655         C99 instead.
656
657         * invoke.texi: Document that -V will only work for very similar
658         versions of driver and compiler.
659
660 2000-10-29  Neil Booth  <neilb@earthling.net>
661
662         * cppmacro.c (_cpp_create_definition): Optimize the case of
663         a macro defined to itself.
664
665 2000-10-29  Neil Booth  <neilb@earthling.net>
666
667         * cpplex.c (save_comment): Don't store new lines in C++ comments.
668
669 2000-10-29  Michael Hayes  <mhayes@redhat.com>
670
671         * integrate.c (copy_insn_list): Copy the unchanging flag for calls.
672
673 2000-10-28  Geoffrey Keating  <geoffk@cygnus.com>
674
675         * cpphash.c (cpp_forall_identifiers): Add context variable
676         for callback routine.
677         * cppmain.c (dump_macro): Update to match cpp_forall_identifiers
678         change.
679         (main): Call cpp_forall_identifiers with null context.
680         * cpplib.h (cpp_forall_identifiers): Update prototype.
681
682         * cppmain.c: Make `parse_in' and `print' static.
683
684 2000-10-28  Alan Modra <alan@linuxcare.com.au>
685
686         * c-decl.c (finish_function): Clear c_function_name_declared_p.
687
688 2000-10-28  Richard Henderson  <rth@redhat.com>
689
690         * regrename.c (scan_rtx_address): Frob action, not class,
691         when trying to disable optimization.
692
693 2000-10-28  Mark Mitchell  <mark@codesourcery.com>
694
695         * c-semantics.c (make_rtl_for_local_static): Don't clobber
696         DECL_ASSEMBLER_NAME.
697
698 2000-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
699
700         * configure.in: Determine and substitute gcc_version_full.
701         * configure: Regenerate.
702         * gccbug.in: Use it to give full version.  Don't allow
703         confidential PRs.
704
705 2000-10-28  Richard Henderson  <rth@redhat.com>
706
707         * recog.c (split_all_insns): Run cleanup_subreg_operands
708         after reload.
709
710         * regrename.c (regrename_optimize): Verify that all registers of
711         a multiple register mode are available.
712         (scan_rtx_address): Accept the mode of the address; all callers
713         changed.
714
715         * cpplib.c (run_directive): Fix prototype.
716
717 2000-10-28  Bernd Schmidt  <bernds@redhat.co.uk>
718
719         * reload.c (find_reloads): Distinguish "wins" so that we know whether
720         a given operand won because of a matching constraint or not; then use
721         that information to compute goal_alternative_matched properly.
722         * reload1.c (choose_reload_regs): Never set reload_override_in for an
723         optional reload.
724
725         * config/ia64/ia64.h (RTX_COSTS): A few more entries, and a more
726         accurate value for MULT.
727         * config/ia64/ia64.c (ia64_print_operand): Require probability to be
728         2% or > 98% before using static branch prediction bits.
729
730 2000-10-28  Neil Booth  <neilb@earthling.net>
731
732         New macro expander.
733         
734         * cpplib.c (struct answer): New.
735         (struct if_stack): Use cpp_lexer_pos rather than line and col.
736         Rename cmacro mi_cmacro.
737         (struct directive, KANDR, STDC89, EXTENSION, COND, IF_COND, INCL,
738         IN_I): New directive and flags.
739         (skip_rest_of_line, check_eol, run_directive, glue_header_name,
740         parse_answer, parse_assertion, find_answer): New functions.
741         (parse_ifdef, detect_if_not_defined, validate_else): Remove.
742         (lex_macro_node): New function to replace parse_ifdef and
743         get_define_node.
744
745         (_cpp_handle_directive): New function, combines _cpp_check_directive
746         and _cpp_check_linemarker.
747
748         (do_define, do_undef, parse_include, do_include, do_import,
749         do_include_next, read_line_number, do_line, do_ident, do_pragma,
750         do_pragma_once, do_pragma_poison, do_pragma_dependency):
751         Update for new token getting interface.
752
753         (do_ifdef, do_ifndef, do_if, do_else, do_endif, push_conditional)
754         : Update for new multiple-include optimisation technique.
755         (do_elif): Don't forget to invalidate controlling macros.
756
757         (unwind_if_stack, cpp_defined, cpp_push_buffer, cpp_pop_buffer): Update.
758         (parse_assertion, parse_answer, find_answer, _cpp_test_assertion):
759         Functions to handle assertions with the new token interface.
760         (do_assert, do_unassert): Use them.
761
762         (cpp_define, _cpp_define_builtin, cpp_undef, cpp_assert, cpp_unassert):
763         Use run_directive.
764
765         (_cpp_init_stacks): Register directive names.  Don't register special
766         nodes.
767
768         * cpperror.c (print_containing_files, _cpp_begin_message): Update to
769         new position recording regime.
770         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
771         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
772         cpp_pedwarn_with_file_and_line): Update for _cpp_begin_message changes.
773         (cpp_type2name): Move to cpplex.c.
774
775         * cppexp.c (parse_charconst): spec_nodes is no longer a pointer.
776         (parse_defined): Update to handle new multiple include optimisation
777         method.  Remove poisoned identifier warning.
778         (parse_assertion, TYPE_NAME): Delete.
779         (lex): Update for multiple include optimisation, removal of
780         CPP_DEFINED, to use _cpp_test_assertion for assertions and
781         cpp_token_as_text.
782         (_cpp_parse_expr): Update for MI optimisation, and to use op_as_text.
783         (op_as_text): New function, to wrap cpp_token_as_text.
784
785         * cppfiles.c (stack_include_file, _cpp_pop_file_buffer):
786         Update for MI optimisation.
787         (_cpp_execute_include): Take a token rather than 3 arguments.  Fix
788         segfault on diagnostic.
789         (_cpp_compare_file_date): Take a token rather than 3 args.
790         (cpp_read_file): Work correctly for zero-length files.
791
792         * cpphash.c (_cpp_init_macros, _cpp_cleanup_macros): Rename
793         _cpp_init_hashtable and _cpp_cleanup_hashtable.
794         (cpp_lookup): Place identifiers at front of identifier pool
795         for _cpp_lookup_with_hash.
796         (_cpp_lookup_with_hash): Require identifiers to be at the front of
797         the identifier pool.  Commit the memory if not already in the
798         hash table.
799
800         * cppinit.c (cpp_reader_init): Move cpp_init_completed test to top.
801         Initialise various members of cpp_reader, memory pools, and the
802         special nodes.
803         (cpp_printer_init): Delete.
804         (cpp_cleanup): Update.
805         (struct builtin, builtin_array, initialize_builtins): Update for new
806         hashnode definition and builtin handling.
807         (cpp_start_read, cpp_finish): Don't take or initialise a
808         printer.  Update.
809
810         * cpplib.h (cpp_printer, cpp_toklist, CPP_DEFINED, BOL,
811         PASTED, VAR_ARGS, BEG_OF_FILE, IN_DIRECTIVE, KNOWN_DIRECTIVE,
812         T_VOID, T_SPECLINE, T_DATE, T_FILE, T_BASE_FILE, T_INCLUDE_LEVEL,
813         T_TIME, T_STDC, T_OPERATOR, T_POISON, T_MACRO, T_ASSERTION): Delete.
814         (struct cpp_pool, struct cpp_macro, struct cpp_lexer_pos,
815         struct cpp_lookahead, CPP_DHASH, enum mi_state, enum mi_ind,
816         NO_EXPAND, VARARGS_FIRST, struct cpp_token_with_pos,
817         struct toklist, struct cpp_context, struct specnodes,
818         TOKEN_LOOKAHEAD, TOKEN_BUFFSIZE, NODE_OPERATOR, NODE_POISONED,
819         NODE_BUILTIN, NODE_DIAGNOSTIC, NT_VOID, NT_MACRO, NT_ASSERTION,
820         enum builtin_type, cpp_can_paste): New.
821         (struct cpp_token): Delete line and col members.
822         (struct cpp_buffer): New member output_lineno.
823         (struct lexer_state): Delete indented, in_lex_line, seen_dot.
824         Add va_args_ok, poisoned_ok, prevent_expansion, parsing_args.
825         (struct cpp_reader): New members lexer_pos, macro_pos, directive_pos,
826         ident_pool, temp_string_pool, macro_pool, argument_pool, string_pool,
827         base_context, context, directive, mi_state, mi_if_not_defined,
828         mi_lexed, mi_cmacro, mi_ind_cmacro, la_read, la_write, la_unused,
829         mlstring_pos, macro_buffer, macro_buffer_len.
830         Delete members mls_line, mls_column, token_list, potential_control_macro,
831         temp_tokens, temp_cap, temp_alloced, temp_used, first_directive_token,
832         context_cap, cur_context, no_expand_level, paste_level, contexts, args,
833         save_parameter_spellings, need_newline, .
834         Change type of date, time and spec_nodes members.
835         Change prototypes for include and ident callbacks.
836         (struct cpp_hashnode): Change type of name.  Remove union members
837         expansion and code.  Add members macro, operator and builtin.
838
839         (cpp_token_len, cpp_token_as_text, cpp_spell_token, cpp_start_read,
840         cpp_finish, cpp_avoid_paste, cpp_get_token, cpp_get_line,
841         cpp_get_output_line, cpp_macro_definition, cpp_start_lookahead,
842         cpp_stop_lookahead): New prototypes.
843         (cpp_printer_init, cpp_dump_definition): Delete prototypes.
844
845         (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr, ufputs):
846         Move from cpphash.h.
847
848         * cpphash.h (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr,
849         ufputs): Move to cpplib.h.
850         (enum spell_type, struct token_spelling, _cpp_token_spellings, TOKEN_SPELL,
851         TOKEN_NAME, struct answer, FREE_ANSWER, KANDR, STDC89, EXTENSION,
852         COND, EXPAND, INCL, COMMENTS, IN_I, struct directive, directive_handler,
853         struct spec_nodes, _cpp_digraph_spellings, _cpp_free_temp_tokens,
854         _cpp_init_input_buffer, _cpp_grow_token_buffer, _cpp_init_toklist,
855         _cpp_clear_toklist, _cpp_expand_token_space, _cpp_expand_name_space,
856         _cpp_equiv_tokens, _cpp_equiv_toklists, _cpp_process_directive,
857         _cpp_run_directive, _cpp_get_line, _cpp_get_raw_token, _cpp_glue_header_name,
858         _cpp_can_paste, _cpp_check_directive, _cpp_check_linemarker,
859         _cpp_parse_assertion, _cpp_find_answer): Delete.
860         (VALID_SIGN, ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE, POOL_SIZE,
861         POOL_USED, POOL_COMMIT, struct cpp_chunk, _cpp_lex_token, _cpp_init_pool,
862         _cpp_free_pool, _cpp_pool_reserve, _cpp_pool_alloc, _cpp_next_chunk,
863         _cpp_lock_pool, _cpp_unlock_pool, _cpp_test_assertion,
864         _cpp_handle_directive, DSC): New.
865         (struct include_file): New member defined.
866
867         (DO_NOT_REREAD, _cpp_begin_message, _cpp_execute_include,
868         _cpp_compare_file_date): Update.
869         (_cpp_pop_context, _cpp_get_token, _cpp_free_lookaheads, _cpp_push_token): New.
870         (_cpp_init_macros, _cpp_cleanup_macros): Rename to _cpp_init_hashtable,
871         _cpp_cleanup_hashtable.
872
873         * Makefile.in: Remove cppoutput.c.
874         
875         * cppoutput.c: Delete
876
877         * fixheader.c (read_scan_file): Update for new cpp_get_token
878         prototype.
879         (recognized_function): New argument LINE.
880
881         * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
882         new cpp_get_token prototype.
883
884         * scan.h (recognized_function): Update prototype.
885
886         * po/POTFILES.in: Remove cppoutput.c.
887         
888 2000-10-27  Mark Mitchell  <mark@codesourcery.com>
889
890         * c-typeck.c (check_init_type_bitfields): Remove.
891         (constructor_incremental): Likewise.
892         (struct constructor_stack): Remove incremental bit.
893         (struct initializer_stack): Likewise.
894         (start_init): Don't play with constructor_incremental.
895         (finish_init): Likewise.
896         (really_start_incremental_init): Likewise.
897         (push_init_level): Likewise.
898         (pop_init_level): Likewise.
899         (output_init_level): Likewise.
900         (output_pending_init_elements): Likewise.
901
902 2000-10-21  Mike Coleman  <mcoleman2@kc.rr.com>
903
904         * c-pragma.c (handle_pragma_pack): Initialize align to -1.
905         Improve error messages.  Correct parsing of 
906         #pragma pack(pop [,id]).  Do not check the user-supplied
907         alignment if we're popping.
908
909         * gcc.dg/pack-test-1.c: New test case.
910         * gcc.dg/pack-test-2.c: New test case.
911         * gcc.dg/pack-test-1.h: New file.
912
913 2000-10-27  Neil Booth  <neilb@earthling.net>
914
915         * cpp.texi: Update.
916
917 2000-10-27  Kelley Cook <kelley.cook@home.com>
918
919         * invoke.texi: Document -mintel-syntax
920
921 2000-10-27  Richard Henderson  <rth@redhat.com>
922
923         * invoke.texi: Document -frename-registers.  Add it to -O3.
924         * toplev.c (rest_of_compilation): Run regrename before ifcvt2.
925         (enum dump_file_index, dump_file): Update order.
926         (main): Set flag_rename_registers at -O3.
927
928 2000-10-27  Richard Henderson  <rth@redhat.com>
929
930         * config/alpha/alpha.h (enum reg_class): Add PV_REG.
931         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
932         (REG_CLASS_FROM_LETTER): Assign it to 'c'.
933         * config/alpha/alpha.md (call_osf_1): Use it.
934         (call_value_osf_1): Likewise.
935
936         * config/ia64/ia64.c: Revert 10-23 patch.
937         (ia64_hard_regno_rename_ok): New.
938         * config/ia64/ia64-protos.h: Declare it.
939         * config/ia64/ia64.h (HARD_REGNO_RENAME_OK): Use it.
940
941 2000-10-27  Bernd Schmidt  <bernds@redhat.co.uk>
942             Richard Henderson  <rth@redhat.com>
943
944         * regrename.c: Rewrite to handle multi-register modes and
945         cond_exec instructions.
946         * Makefile.in (regrename.o): Update dependancies.
947         * recog.h (struct operand_alternative): Add is_address.
948         * recog.c (preprocess_constraints) [case 'p']: Set it.
949
950 2000-10-27  Zack Weinberg  <zack@wolery.stanford.edu>
951
952         * configure.in: If not NO_MINUS_C_MINUS_O, substitute
953         OUTPUT_OPTION with '-o $@'.  Make zlibdir, zlibinc relative to
954         top level.  Kill oldstyle_subdirs.  Do not include
955         $srcdir/$s/Makefile.in in all_lang_makefiles, but do include
956         $outputs.  Do not run configure.lang from config.status.
957         Rearrange warning-flag logic to correspond to what the
958         makefile wants.  Put special vax stage1 options in
959         @stage1_flags@ not @stage1_warn_cflags@.  Don't do anything
960         with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
961         (--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
962         switch is given, nothing otherwise.
963         * configure.lang: Delete.
964
965         * Makefile.in: Expunge all traces of extra_c_objs,
966         extra_cxx_objs, and extra_cpp_objs.  Set MAYBE_CPPLIB from
967         @maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS.  Set
968         warning options via a three level scheme so that -pedantic and
969         -Wtraditional are not used for non-C front ends: LOOSE_WARN,
970         STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
971         WARN_CFLAGS.  Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
972         Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
973         Set OUTPUT_OPTION, ZLIB, ZLIBINC.  Do not set P,
974         LANG_FLAGS_TO_PASS.  Add OUTPUT_OPTION to all object-file
975         generation rules.  Wrap all rules that change the current
976         directory in parentheses; pmake doesn't spawn a new shell for
977         each command.  Expunge all references to $(P).  When one
978         command depends on another and they're run all at once, use &&
979         to separate them, not ;.  Add libgcc_s$(SHLIB_EXT) to files
980         deleted on make clean.  Force OUTPUT_OPTION='-o $@' in stage2
981         and beyond.
982
983         * objc/Make-lang.in: Wrap all rules that change the current
984         directory in parentheses.  Expunge all references to $(P).
985         When one command depends on another and they're run all at
986         once, use && to separate them, not ;.  Add OUTPUT_OPTION to
987         all object-file generation rules.  Delete obsolete variables.
988         * objc/Makefile.in: Delete.
989
990 2000-10-27  Jakub Jelinek  <jakub@redhat.com>
991
992         * calls.c (expand_call): If sibcall_failure is set during pass 1,
993         clear tail_call_insns as well.
994
995 2000-10-27  Nick Clifton  <nickc@redhat.com>
996
997         * config/arm/arm-protos.h (arm_function_ok_for_sibcall): Add
998         prototype.
999
1000 2000-10-26  Richard Henderson  <rth@redhat.com>
1001
1002         * calls.c (expand_call): Supress sibcall if we have a
1003         BLKmode return in registers.
1004
1005 2000-10-26  Bernd Schmidt  <bernds@redhat.co.uk>
1006
1007         * ia64.h (PREFERRED_RELOAD_CLASS): Force floating point constants
1008         into memory.
1009
1010 2000-10-26  Nathan Sidwell  <nathan@codesourcery.com>
1011
1012         * tree.c (make_node, case 't'): Set alignment to that of
1013         char_type_node.
1014         * expr.c (move_by_pieces_ninsns): Abort if some length remains.
1015
1016 2000-10-25  Mark Mitchell  <mark@codesourcery.com>
1017
1018         * Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
1019         * configure.in (enable-libstdcxx-v3): Arrange to have
1020         HAVE_LIBSTDCXX_V3 substituted into the output files.
1021
1022 2000-10-25  Richard Henderson  <rth@redhat.com>
1023
1024         * recog.c (constrain_operands): Initialize which_alternative
1025         before no alternatives early exit.
1026
1027         * cse.c (find_comparison_args): Check that we can reverse a
1028         comparison if needed before accepting the substitution.
1029
1030         * reload.c (find_reloads_address_part): Kill rtx obstack hackery.
1031
1032         * simplify-rtx.c (simplify_relational_operation): Sign extend
1033         low words before sign extending to high words.
1034
1035 2000-10-25  Nick Clifton  <nickc@redhat.com>
1036
1037         * config/mcore/mcore.c: Include config.h before system.h.
1038
1039 2000-10-25  Ray Essick  <essick@ddna.labs.mot.com>
1040
1041         * config/mcore/mcore.md (return): Force function epilogue to
1042         always be generated to work around epilogue suppression bug in
1043         M*Core backend.
1044
1045 2000-10-25  Joseph S. Myers  <jsm28@cam.ac.uk>
1046
1047         * c-decl.c (grokdeclarator): Move warning for qualified void
1048         return types with -pedantic to when the function type is
1049         constructed.  At -W, warn in general for qualified function return
1050         types, except for volatile void.
1051         * invoke.texi: Document this new warning at -W.
1052
1053 2000-10-25  Neil Booth  <neilb@earthling.net>
1054
1055         * cpp.texi: Update with implementation-defined behavior and
1056         internal limits.
1057
1058 2000-10-25  Jakub Jelinek  <jakub@redhat.com>
1059
1060         * stor-layout.c (layout_type): If TYPE_ALIAS_SET was already set on the
1061         incomplete type force it into alias set 0.
1062
1063 Wed Oct 25 01:02:44 EDT 2000  John Wehle  (john@feith.com)
1064
1065         * alias.c: Include basic-block.h.
1066         (loop_p): New function.
1067         (mark_constant_function): Use it.
1068         * Makefile.in (alias.o): Update dependencies.
1069
1070 2000-10-24  Aldy Hernandez  <aldyh@redhat.com>
1071
1072         * config/mn10300/mn10300.c (secondary_reload_class): Treat pseudos
1073         like memory.
1074
1075 2000-10-24  Jim Wilson  <wilson@cygnus.com>
1076
1077         * expmed.c (store_bit_field): Move integer pun code down after
1078         code that calls emit_move_insn for entire register move.
1079         * stor-layout.c (compute_record_mode): Revert Mar 25, Aug 18, and
1080         Oct 20 changes.  Only store mode in TYPE_MODE if RECORD_TYPE.
1081
1082 2000-10-24  Richard Henderson  <rth@cygnus.com>
1083
1084         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Don't consider pic
1085         register stable if PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
1086
1087 2000-10-24  Aldy Hernandez  <aldyh@redhat.com>
1088
1089         * gcse.c (cprop_insn): do not propagate constants into jump_insn
1090         for machines with CC0 more than once.
1091
1092 2000-10-24  Richard Henderson <rth@cygnus.com>, Aldy <aldyh@cygnus.com>
1093
1094         * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS): Treat
1095         pseudos just like memory.
1096
1097 2000-10-24  Alexandre Oliva  <aoliva@redhat.com>
1098
1099         * combine.c (distribute_notes): Discard REG_LIBCALL and REG_RETVAL
1100         when deleting libcall sequence collapsed to a single instruction.
1101
1102 2000-10-24  Andrew Haley  <aph@cygnus.co.uk>
1103
1104         * expr.c (do_store_flag): Don't crash if either side of a
1105         comparison is error_mark_node.
1106
1107 2000-10-24  Jakub Jelinek  <jakub@redhat.com>
1108
1109         * sibcall.c (purge_mem_unchanging_flag): New function.
1110         (optimize_sibling_and_tail_recursive_calls): Call it.
1111
1112 2000-10-24  Philipp Thomas  <pthomas@suse.de>
1113
1114         * Makefile.in (check-po): New target for doing checks in the po
1115         subdir if all languages configured.
1116         (CHECK_TARGETS): Add @CHECK_PO@, replaced with check-po via
1117         configure if NLS is enabled.
1118         * configure.in: If NLS is enabled, substitute CHECK_PO by check-po,
1119         otherwise leave empty.
1120         * configure: Regenerate.
1121
1122 2000-10-23  Diego Novillo  <dnovillo@cygnus.com>
1123
1124         * i386.c (print_operand): Handle new 'A' formatting code.
1125         387 opcodes need suffixes even with -mintel-syntax.
1126         Check for explicit size override (codes 'b', 'w' and 'k').
1127         (print_operand_address): Check if register prefix is needed when
1128         emitting `ds' segment override.
1129         * i386.h: Add comment about new 'A' formatting code.
1130         * i386.md (jump and call patterns): Emit absolute references using %A.
1131
1132 2000-10-23  Richard Henderson  <rth@cygnus.com>
1133
1134         * config/ia64/ia64.c (ia64_expand_prologue): Mark extra
1135         output registers as fixed.
1136         (ia64_function_epilogue): Undo output fixation.
1137
1138 2000-10-23  Richard Henderson  <rth@cygnus.com>
1139
1140         * config/alpha/alpha.md: Add names for all unnamed insns; use
1141         define_insn_and_split in some obvious places.
1142         (lda): Remove.
1143         (zero_extendqihi2): Use an expander w/ nonimmediate_operand for BWX.
1144         (zero_extendqisi2, zero_extendqidi2): Likewise.
1145         (zero_extendhisi2, zero_extendhidi2): Likewise.
1146         (abs splitters): Fix match_scratch operand number.
1147         (bcc_reverse): Swap pc & label instead of non-canonical compare.
1148
1149 2000-10-23  Jim Wilson  <wilson@cygnus.com>
1150
1151         * ia64.c (ia64_print_operand, case 'r'): Correct comment.  Handle
1152         CONST_INT.
1153         * ia64.md (cmpsi_adjusted): Use %r3.
1154         (cmpdi_adjusted): Likewise.
1155
1156 2000-10-23  Diego Novillo  <dnovillo@cygnus.com>
1157
1158         * config/i386/att.h (ASM_FILE_START): Define.
1159
1160 2000-10-23  Diego Novillo  <dnovillo@cygnus.com>
1161
1162         * config/i386/linux.h (ASM_FILE_START): Define.
1163
1164 Wed Oct 18 11:16:40 2000  Donald Lindsay  <dlindsay@cygnus.com>
1165
1166         * gcc/configure.in: m68k-coff tm_file should not have libgloss.h,
1167         since this (only) drags in a crt0.o reference that the .ld files
1168         also introduce.
1169
1170 2000-10-23  Geoff Keating  <geoffk@cygnus.com>
1171
1172         * reload1.c (reload_reg_reaches_end_p): A RELOAD_OTHER can
1173         overwrite the value in a RELOAD_FOR_INPUT and other kinds of
1174         reloads just like an RELOAD_FOR_OUTPUT would.
1175
1176         * local-alloc.c (update_equiv_regs): Add an abort().  When
1177         deleting or moving insns, update reg_equiv[regno].init_insns.
1178
1179 2000-10-23  Mark Mitchell  <mark@codesourcery.com>
1180
1181         * c-tree.texi: Improve documentation for IF_STMTs and related
1182         conditional statements.
1183
1184 2000-10-22  Mark Mitchell  <mark@codesourcery.com>
1185
1186         * expr.c (do_preexpand_calls): Remove.
1187         (same_from_p): Don't use CALL_EXPR_RTL.
1188         (expand_expr): Don't call preexpand_calls, or use CALL_EXPR_RTL.
1189         (preexpand_calls): Remove.
1190         * tree.c (first_rtl_op): Remove CALL_EXPR case.
1191         (unsave_expr_1): Likewise.
1192         * tree.def (CALL_EXPR): Give it only two slots.
1193         * tree.h (CALL_EXPR_RTL): Remove.
1194
1195 2000-10-21  Chandrakala Chavva   <cchavva@redhat.com>
1196
1197         * libgcc-std.ver (__addvsi3, __addvdi3,  __subvsi3, __subvdi3,
1198         __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
1199         New functions.
1200
1201 2000-10-22  Alexandre Oliva  <aoliva@redhat.com>
1202
1203         * calls.c (combine_pending_stack_adjustment_and_call): Don't
1204         adjust stack when unadjusted_alignment ends up as zero.
1205
1206 2000-10-22  Joseph S. Myers  <jsm28@cam.ac.uk>
1207
1208         * fixinc/genfixes: Remove EGCS reference.
1209         * install.texi: Remove EGCS reference.
1210         * INSTALL: Regenerate.
1211
1212 2000-10-22  Mark Mitchell  <mark@codesourcery.com>
1213
1214         * tree.h (TYPE_IS_SIZETYPE): Add more documentation.
1215
1216 2000-10-21  Joseph S. Myers  <jsm28@cam.ac.uk>
1217
1218         * diagnostic.c: Remove EGCS reference in comment.
1219
1220 Sat Oct 21 08:24:25 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1221
1222         * loop.c (strength_reduce): Fix error in last change.
1223
1224 2000-10-20  David Edelsohn  <edelsohn@gnu.org>
1225
1226         * Makefile.in (SHLIB_NM_FLAGS): New.
1227         (libgcc.mk): Pass it.
1228         * mklibgcc.in (libgcc.map): Use it.
1229
1230         * rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_LIBS,
1231         SHLIB_MKMAP, SHLIB_MAPFILES, SHLIB_NM_FLAGS): New.
1232
1233 2000-10-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1234
1235         * mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.
1236
1237         * sparc.c (load_pic_register): Delete unused varaible.
1238
1239         * libgcc2.c (__addvsi3): Delete unused variable.
1240
1241         * libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
1242         __subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
1243         __negvdi2): Prototype.
1244
1245         * ssa.c (apply_delayed_renames): Avoid undefined operation.
1246
1247         * toplev.c (display_target_options): Make static to match
1248         prototype.  Delete empty declaration.
1249
1250 2000-10-20  Tom Tromey  <tromey@cygnus.com>
1251
1252         * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
1253         * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
1254
1255 Fri Oct 20 17:05:49 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1256
1257         * expr.c (expand_expr, case SAVE_EXPR): Set RTX_UNCHANGING_P on
1258         returned MEM.
1259         (expand_expr_unaligned, case ARRAY_REF): Check that index is
1260         a constant before comparing it; use tree_low_cst.
1261         * tree.c (save_expr): Set TREE_READONLY.
1262         (substitute_expr): Return inside of NON_LVALUE_EXPR.
1263         (build, build1): Set TREE_READONLY if all operands are.
1264         (build_index_type): If upper bound is a negative number, lower
1265         bound is zero and sizetype is unsigned, use upper bound of one and
1266         lower of zero.
1267
1268 2000-10-20  David Edelsohn  <edelsohn@gnu.org>
1269
1270         * gcc.c (process_command, main): Use "because" instead of
1271         "since" in error messages.
1272
1273 Fri Oct 20 13:33:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1274
1275         * stor-layout.c (compute_record_mode): Use tree_low_cst.
1276         Don't use mode of field for record unless sizes are the same.
1277         (layout_type, case ARRAY_TYPE): Remove special bounds handling
1278         previously added for Ada; also change to using host_integerp
1279         and tree_low_cst.
1280
1281         * loop.c (strength_reduce): Show when new register made for
1282         giv is known to be a pointer and its aligment if so and known.
1283         (loop_dump_aux): Show VERBOSE parameter unused.
1284
1285         * gcse.c (set_hash_table_size): Now unsigned.
1286         * sdbout.c (template_name_p): Add "const" to avoid warnings.
1287         (sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
1288         (sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
1289         (sdbout_end_epilogue): Remove variable NAME.
1290         * system.h (getopt): Add default definition.
1291         * config/alpha/alpha.c (print_operand): Don't continue processing
1292         after issuing error.
1293         (summarize_insn): Avoid use of UL in constant.
1294
1295         * function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
1296
1297         * fold-const.c (force_fit_type): Unsigned values can overflow
1298         if they are sizetype.
1299         (int_const_binop): Don't use cache if overflows.
1300
1301 2000-10-20  Richard Henderson  <rth@cygnus.com>
1302
1303         * function.c (locate_and_pad_parm): Zero alignment_pad.
1304
1305         * regrename.c (rr_replace_reg): Rewrite to use recog_data to
1306         perform substitutions, and apply_change_group to see if it worked.
1307
1308 Fri Oct 20 13:33:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1309
1310         * dwarf2out.c (add_bound_info): Also ignore COND_EXPR.
1311
1312         * combine.c (struct undo): Change int to unsigned int.
1313         (do_SUBST_INT): Args are unsigned int.
1314         (make_extraction, force_to_mode): Use proper type when forming mask.
1315         (make_field_assignment): Likewise.
1316
1317 2000-10-20  Joseph S. Myers  <jsm28@cam.ac.uk>
1318
1319         * c-common.c (check_format_info_recurse): Extract string constant
1320         initializers from non-volatile constant arrays and check them as
1321         formats.
1322         * c-typeck.c (decl_constant_value): Don't check pedantic or check
1323         for DECL_MODE (decl) != BLKmode.
1324         (decl_constant_value_for_broken_optimization): New function which
1325         includes these checks.
1326         (default_conversion, convert_for_assignment, digest_init): Use
1327         decl_constant_value_for_broken_optimization instead of
1328         decl_constant_value.
1329
1330 2000-10-20  Mark Mitchell  <mark@codesourcery.com>
1331
1332         * tree.h (DECL_ALIGN_UNIT): New macro.
1333
1334 2000-10-14  Marek Michalkiewicz  <marekm@linux.org.pl>
1335
1336         * config/avr/avr-protos.h (avr_output_bld): New.
1337         (out_shift_with_cnt): Add t_len argument.
1338         * config/avr/avr.c (avr_num_arg_regs): Remove -mpack-args.
1339         (output_movqi, output_movhi, output_movsisf): Optimize loading
1340         any constant with exactly one bit set to NO_LD_REGS.
1341         (out_shift_with_cnt): Optimize output code for size or speed,
1342         depending on optimize_size.  Handle small shift counts as well
1343         (if not hand-optimized in ?sh??i3_out).  Shifts can be done
1344         with or without a scratch register, with help of __tmp_reg__
1345         or __zero_reg__ if necessary.  Add T_LEN argument to pass the
1346         length of TEMPLATE in words, return total insn length in *LEN.
1347         (ashlqi3_out, ashrqi3_out, lshrqi3_out): Change all calls to
1348         out_shift_with_cnt to work with the above change.
1349         (ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out, lshrhi3_out,
1350         lshrsi3_out): Likewise.  Optimize more known shift count cases.
1351         Remove cases already well optimized in out_shift_with_cnt.
1352         (avr_output_bld): New function.
1353         * config/avr/avr.h (MASK_PACK_ARGS, TARGET_PACK_ARGS): Remove.
1354         (TARGET_SWITCHES): Remove -mpack-args backward compatibility.
1355         * config/avr/avr.md (*reload_inqi, *reload_inhi, *reload_insi):
1356         Add reload_completed to insn condition - only for peepholes.
1357         (ashlqi3, ashrqi3, lshrqi3): Correct insn length for shift counts
1358         in a register or memory.
1359         (ashlhi3, ashlsi3, ashrhi3, ashrsi3, lshrhi3, lshrsi3): Likewise.
1360         Do not require a scratch register.
1361         (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
1362         *lshrhi3_const, *lshrsi3_const): New insns and matching peepholes.
1363         Optimize shifts by known count using a scratch register, but only
1364         if one is still available after register allocation.
1365
1366 2000-10-20  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
1367
1368         * t-vax: New file.  Don't build modules from libgcc1.c.
1369
1370 Fri Oct 20 00:57:00 EDT 2000  John Wehle  (john@feith.com)
1371
1372         * alias.c: (mark_constant_function): Don't check pure functions.
1373         Initialize and end alias analysis.
1374         (nonlocal_mentioned_p): Rename from nonlocal_reference_p.
1375         Don't make a special exception for recursion.  Handle
1376         UNSPEC_VOLATILE.  Don't assume ASM_OPERANDS is non-local
1377         unless it's volatile.
1378
1379         * local-alloc.c (equivalence): New structure.
1380         (reg_equiv): Define.
1381         (contains_replace_regs): Remove array and use
1382         field in reg_equiv.
1383         (memref_referenced_p): Likewise.
1384         (no_equiv): Likewise.
1385         (update_equiv_regs): Likewise.
1386
1387         (equiv_init_varies_p,
1388         equiv_init_movable_p): New functions.
1389         (update_equiv_regs): Use them.  Use rtx_varies_p
1390         instead of function_invariant_p.  Process insns
1391         from end to beginning.  Allow a REG_EQUIV insn
1392         within the same loop as a use to be moved, also
1393         allow it to be moved out of a loop.  Update
1394         REG_DEAD notes when substituting into an insn.
1395
1396 2000-10-19  Jim Wilson  <wilson@cygnus.com>
1397
1398         * c-decl.c (start_decl): Check for error_mark_node type before using
1399         COMPLETE_TYPE_P.
1400         (finish_decl): Likewise.  Don't give an error if decl type is
1401         already error_mark_node.
1402
1403         * haifa-sched.c (compute_trg_info): Add explanatory comments.
1404         New local update_blocks.  Use update_blocks to remove duplicates
1405         when computing update blocks.  Check for bblst_table overflow.
1406         (schedule_block): Add explanatory comment.  Reduce bblst_size by
1407         factor of 2.
1408         * config/ia64/ia64.md (movdi_symbolic): Document loss of REG_LABEL
1409         notes.
1410
1411 2000-10-19  Chandrakala Chavva   <cchavva@redhat.com>
1412
1413         * libgcc2.c (_mulvsi3): Change variables u and v to a and b.
1414
1415 2000-10-19  Chandrakala Chavva   <cchavva@redhat.com>
1416
1417         * expmed.c: Minor corrections in comments.
1418         * invoke.texi: Added desciption for the new option -ftrapv.
1419
1420 2000-10-19  Chandrakala Chavva   <cchavva@redhat.com>
1421
1422         * libgcc2.c: Added the missing #endif.
1423
1424 Thu Oct 19 14:25:11 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1425
1426         * i386.h (CONST_OK_FOR_LETTER): Re-add 'N'; document.
1427
1428 2000-10-18  Chandrakala Chavva  <cchavva@redhat.com>
1429
1430         * expmed.c (expand_mult): Don't do synth_mult optimization for -ftrapv.
1431         Use smulv_optab for -ftrapv.
1432         (expand_mult_highpart): Use unsigned multiply.
1433         (expand_divmod): Special-case division by -1.
1434         For EXACT_DIV_EXPR, do right shift first, then the multiply.
1435         For complex divide, use abs with unsigned result.
1436         * expr.c (force_operand): Use unsigned multiply.
1437         (expand_expr): Use overflow-trapping optabs for signed types if
1438         flag_trapv.
1439         If flag_trapv, don't generate a recursive call with EXPAND_SUM
1440         if the type is signed and the original call wasn't EXPAND_SUM or
1441         EXPAND_INITIALIZER.
1442         * expr.h (addv_optab, subv_optab, smulv_optab, sdivv_optab): Declare.
1443         (negv_optab, absv_optab): Declare.
1444         * flags.h (flag_trapv): Declare.
1445         * genopinit.c (optabs): Add entries for addv_optab, subv_optab,
1446         smulv_optab, sdivv_optab, negv_optab and absv_optab.
1447         (gen_insn): Interpret '$P' as requiring an integer mode,
1448         including partial integer modes.
1449         * loop.c (emit_iv_add_mult): Use unsigned expand_mult_add.
1450         (product_cheap_p): Use unsigned expand_mult.
1451         * optabs.c (addv_optab, subv_optab, smulv_optab, sdivv_optab): Define.
1452         (negv_optab, absv_optab): Define.
1453         (expand_binop): Use overflow-trapping optabs for signed types if
1454         flag_trapv.
1455         Handle negv_optab libe neg_optab.
1456         (expand_abs): Take result_unsignedp argument instead of unsignedp one.
1457         Use overflow-trapping optabs for signed result if flag_trapv.
1458         (expand_complex_abs): Use overflow-trapping optabs for signed types if
1459         flag_trapv.
1460         Don't open-code complex absolute-value operation for flag_trapv.
1461         (init_optabs): Initialize addv_optab, subv_optab, smulv_optab,
1462         sdivv_optab, negv_optab and absv_optab.
1463         * toplev.c (flag_trapv): Define.
1464         (lang_independent_options f_options): Include flag_trapv.
1465         * tree.h (TYPE_TRAP_SIGNED): Define.
1466         * libgcc2.c (__addvsi3, __addvdi3, __subvsi3,__subvsi3, __subvdi3,
1467         __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
1468         New functions.
1469         * Makefile.in: add _absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3
1470         _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2.
1471
1472 2000-10-18  Geoffrey Keating  <geoffk@cygnus.com>
1473             David V. Henkel-Wallace  <gumby@cygnus.com>
1474
1475         * config/i386/t-netware: Bring in from the Red Hat tree.
1476         * config/i386/netware.h: Likewise.
1477         * config/netware.h: Likewise.
1478         * config/rs6000/netware.h: Delete.
1479         * configure.in: Add i[34567]86-*-netware.
1480         * configure: Hand-edit to match configure.in change.
1481
1482 2000-10-18  Mark Mitchell  <mark@codesourcery.com>
1483
1484         * c-common.h (flag_no_builtin): Declare.
1485         (flag_no_nonansi_builtin): Likewise.
1486         (c_common_nodes_and_builtins): Change prototype.
1487         * c-common.c (flag_no_builtin): New variable.
1488         (flag_no_nonansi_builtin): Likewise.
1489         (c_common_nodes_and_builtins): Remove parameters.  Adjust
1490         accordingly.
1491         * c-decl.c (flag_no_builtin): Remove.
1492         (flag_no_nonansi_builtin): Likewise.
1493         (init_decl_processing): Adjust call to
1494         c_common_nodes_and_builtins.
1495
1496 2000-10-18  Marc Espie <espie@openbsd.org>
1497
1498         * tm.texi (LIBGCC_SPEC): Synch with reality.
1499
1500 2000-10-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1501
1502         * c-common.c (check_format_types): Check for writing through a
1503         NULL pointer argument.
1504
1505 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
1506
1507         * tm.texi (Exception Region Output): Document
1508         DWARF_CIE_DATA_ALIGNMENT.
1509         * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Wrap definition in
1510         #ifndef.
1511         [ENABLE_CHECKING] (reg_save): Abort if offset is not a multiple of
1512         DWARF_CIE_DATA_ALIGNMENT.
1513
1514 2000-10-18  Michael Hayes  <mhayes@cygnus.com>
1515
1516         * basic-block.h (struct loop): Delete fields pre_header_root
1517         and pre_header_trace and replace with pre_header_edges
1518         and num_pre_header_edges.
1519         * flow.c (flow_loop_dump): Dump pre_header_edges.
1520         (flow_loops_free): Free pre_header_edges.
1521         (flow_loop_pre_header_scan): Calculate pre_header_edges.
1522
1523 2000-10-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1524
1525         * contrib.texi: Update references to steering committee members
1526         and Jeff Law's entry.
1527
1528 2000-10-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1529
1530         * c-common.c (CPLUSPLUS_STD_VER, C_STD_VER, C_STD_NAME): Define.
1531         (maybe_read_dollar_number, check_format_info_main): Use them for
1532         pedantic warning messages.
1533
1534 2000-10-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1535
1536         * c-common.c (check_format_info_main): Minor cleanup: move
1537         variables into inner scopes; initialize declarations where
1538         appropriate; don't hardcode "scanf" name on warning for zero
1539         width.
1540
1541 2000-10-17  Mark Mitchell  <mark@codesourcery.com>
1542
1543         * c-common.c (back_end_hook): New variable.
1544         * c-common.h (back_end_hook): Declare it.
1545         * c-lang.c (finish_file): Use it.
1546
1547         * emit-rtl.c (init_emit_once): Initialize the const_int_htab
1548         earlier.
1549
1550 2000-10-18  Jan Hubicka  <jh@suse.cz>
1551
1552         * i386.c (ix86_comparison_operator, put_condition_code,
1553         ix86_match_ccmode, ix86_cc_mode): Handle CCRCmode.
1554         (ix86_expand_strlensi_unroll_1): Use CCRCmode.
1555         * i386.h (EXTRA_CC_MODES): Add CCRCmode.
1556         * i386.md (adddi and negdi splitter): Use CCRCmode.
1557         (add?i_3, add?i_4, add?i_5): Use CCRCmode; swap operands
1558         (subsi3_carry): add '*'
1559         (addsi3_carry_rc, subsi3_carry_rc, x86_movsicc_0_m1_rc): New.
1560         (cmp to add peep2): Use CCRCmode; swap operands.
1561
1562 2000-10-18  Kazu Hirata  <kazu@hxi.com>
1563
1564         * h8300.c: Fix a comment typo.
1565         (round_frame_size): New.
1566         (compute_saved_regs): Likewise.
1567         (push): Likewise.
1568         (pop): Likewise.
1569         (push_order): Remove.
1570         (pop_order): Likewise.
1571         (function_prologue): Rearrange code for readability.
1572         (function_epilogue): Likewise.
1573
1574         * config/h8300/h8300.md: Remove an unnecessary sign_extend
1575         expander that is used when not optimizing.  Output a tab after
1576         each assembly insns.
1577
1578         * reorg.c: Fix formatting.
1579
1580 2000-10-17  Joern Rennecke <amylaar@redhat.co.uk>
1581
1582         * reload1.c (move2add_note_store): Check for simple
1583         auto-inc in destination.
1584
1585 2000-10-17  Michael Chastain  <chastain@redhat.com>
1586
1587         * config/i386/i386-aout.h: define INT_ASM_OP.
1588
1589 Tue Oct 17 20:11:08 2000  Alan Modra <alan@linuxcare.com.au>
1590
1591         * pa.c (print_operand): Handle case 'c' for .vtable_inherit
1592
1593 Tue Oct 17 20:05:51 2000  Martin Buchholz <martin@xemacs.org>
1594
1595         * i370.md: Fix spelling typo.
1596
1597 2000-10-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1598
1599         * function.c (locate_and_pad_parm): Don't align stack unconditionally.
1600         Fixes execute/20001017-1.c on powerpc-linux-gnu.
1601
1602         * expr.c (store_constructor): Apply MEM_ALIAS_SET to MEMs only.
1603         * rs6000/rs6000.c (rs6000_hash_constant): Use X0INT to access a
1604         LABEL_REF.
1605
1606         * rs6000/rs6000.h (NO_DOLLAR_IN_LABEL, DOLLARS_IN_IDENTIFIERS,
1607         ENCODE_SECTION_INFO, ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Move from
1608         here...
1609         * rs6000/aix.h: ...to here.
1610         * rs6000/linux.h (ASM_APP_ON, ASM_APP_OFF): Define to Linux-style.
1611
1612 2000-10-17  Jakub Jelinek  <jakub@redhat.com>
1613
1614         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.
1615
1616         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Always use call, make
1617         sure linker can relax even the delay slot mov %g1,%o7, fix output
1618         formating.
1619
1620 2000-10-17  Kazu Hirata  <kazu@hxi.com>
1621
1622         * config/h8300/h8300.md: Remove an unnecessary zero_extend
1623         expander that is used when not optimizing.  Output a tab after
1624         each assembly insns.
1625
1626 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
1627
1628         * gcc.c: New options --target-help.
1629         (process_command): Added code to parse this new option.
1630         * toplev.c (display_target_options): New function to support the
1631         above new option.
1632         * cppinit.c (new_pending_directive) : New option OPT_target__help.
1633         (cpp_handle_option): Support this new option.
1634         * invoke.texi: Added notes about --target-help option.
1635
1636 2000-10-17  Graham Stott  <grahams@redhat.com>
1637
1638         * config/i386/i386.md (testqi_1): Add missing operand prefix
1639         for operand 0.
1640         * config/i386/i386-protos.h: Add missing prototype.
1641
1642 2000-10-17  Diego Novillo  <dnovillo@cygnus.com>
1643
1644         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Symbol
1645         _GLOBAL_OFFSET_TABLE should not have a $ prefix when
1646         using -mintel-syntax.
1647
1648 2000-10-17  Joseph S. Myers  <jsm28@cam.ac.uk>
1649
1650         * c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
1651         (format_types): Use it for printf.
1652         (maybe_read_dollar_number): Add parameter for the kind of format
1653         involved.  Warn for multiple use for arguments if this is
1654         inappropriate for the kind of format involved.
1655         (check_format_info_main): Update calls to maybe_read_dollar_number.
1656
1657 2000-10-17  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
1658
1659         * inclhack.def (hpux_maxint): Also apply fix to values.h.
1660         * fixincl.x: Rebuilt.
1661
1662 2000-10-17  Alexandre Oliva  <aoliva@redhat.com>
1663
1664         * genrecog.c (write_switch): Return the first condition that needs a
1665         label.
1666
1667 2000-10-17  Bernd Schmidt  <bernds@redhat.co.uk>
1668
1669         * c-tree.h (warn_sequence_point): Move declaration to...
1670         * c-common.h (warn_sequence_point): ... here.
1671         * c-decl.c (warn_sequence_point): Move definition to...
1672         * c-common.c (warn_sequence_point): ... here.
1673         (struct reverse_tree): New.
1674         (reverse_list, reverse_max_depth): New static variables.
1675         (build_reverse_tree, common_ancestor, modify_ok
1676         verify_sequence_points): New functions.
1677         (c_expand_expr_stmt): Call verify_sequence_points if -Wsequence-point.
1678         * c-typeck.c (check_modify_expr): Delete.
1679         (build_modify_expr): Don't call it.
1680
1681 2000-10-17  Joseph S. Myers  <jsm28@cam.ac.uk>
1682
1683         * c-common.h (warn_missing_format_attribute): New variable.
1684         * c-decl.c (warn_missing_format_attribute): New variable.
1685         (c_decode_option): Decode -Wmissing-format-attribute and
1686         -Wno-missing-format-attribute.
1687         * c-common.c (check_function_format): If
1688         -Wmissing-format-attribute, give a warning where a vprintf or
1689         vscanf function is called by a function without its own printf or
1690         scanf attribute.
1691         * toplev.c (documented_lang_options): Add
1692         -Wmissing-format-attribute.
1693         * invoke.texi: Document -Wmissing-format-attribute.
1694
1695 2000-10-17  Marc Espie <espie@openbsd.org>
1696
1697         * invoke.texi (-shared): Insist on requiring code generation flags
1698         to be used along with -shared, and document the subtle failure that
1699         may occur otherwise.
1700
1701 2000-10-16  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
1702
1703         * pa.md (return_internal): Move `use' after `return'.
1704
1705 2000-10-16 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
1706
1707         * machmode.def: Correct comment.
1708
1709 2000-10-16  Rodney Brown  <RodneyBrown@mynd.com>
1710
1711         * print-rtl.c (print_rtx_head): Constify.
1712         * rtl.h (print_rtx_head): Similarly.
1713
1714         * config/pa/pa/pa-protos.h (output_64bit_and, output_64bit_ior):
1715         Constify char * return value.
1716         * config/pa/pa/pa.c
1717         (output_64bit_and, output_64bit_ior): Constify char * return value.
1718         (pa_can_combine_p): Make static.
1719         (function_arg): Decorate unused `named' argument. Fix comment typo.
1720         (function_arg_partial_nregs): Decorate unused `named' argument.
1721
1722 2000-10-16  Joseph S. Myers  <jsm28@cam.ac.uk>
1723
1724         * c-common.c (format_check_results): New structure.
1725         (finish_dollar_format_checking): Adjust to take a
1726         format_check_results * parameter.
1727         (check_format_info, check_format_info_recurse,
1728         check_format_info_main): Split check_format_info into three
1729         functions, the main checking going in check_format_info_main.
1730         Recurse when any reduction of the format string argument towards a
1731         string literal is done; go down both branches of a conditional
1732         expression.  Don't warn for extra format arguments or empty format
1733         strings if they only occur in some branches of a conditional
1734         expression.
1735
1736 2000-10-16  Kazu Hirata  <kazu@hxi.com>
1737
1738         * config/h8300/h8300.c: Remove obstack.  Include ggc.h.
1739
1740 2000-10-16  Jakub Jelinek  <jakub@redhat.com>
1741
1742         * rtlanal.c (may_trap_p): Check operand modes of COMPARE.
1743
1744 2000-10-15  Diego Novillo  <dnovillo@cygnus.com>
1745
1746         * i386.md (*movsi_or): Switch operand order for intel syntax.
1747
1748 2000-10-14  Joseph S. Myers  <jsm28@cam.ac.uk>
1749
1750         * PROBLEMS: Remove.
1751
1752         * gcc.texi (Contributing): Update.
1753
1754 2000-10-13  Diego Novillo  <dnovillo@cygnus.com>
1755
1756         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Output final jump using
1757         appropriate assembler dialect.
1758
1759 2000-10-13  Alexandre Oliva  <aoliva@redhat.com>
1760
1761         * c-common.c (c_expand_builtin): PARAMS-ize prototype.
1762
1763 2000-10-12  Marek Michalkiewicz  <marekm@linux.org.pl>
1764
1765         * config/avr/avr.c (output_movhi, output_movsisf): Fix loading
1766         constants 1 and 2 to NO_LD_REGS.
1767
1768 2000-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1769
1770         * Makefile.in (c-parse.c, tradcif.c): Create atomically.
1771
1772         * objc/Make-lang.in (objc-parse.c): Likewise.
1773
1774 2000-10-13  Richard Earnshaw <rearnsha@arm.com>
1775
1776         * arm.c: Include obstack.h
1777         (minipool_obstack, minipool_startobj): Define.
1778         (arm_add_gc_roots): Initialize them.
1779         (create_fix_barrier): Use our new obstack.
1780         (push_minipool_barrier, push_minipool_fix): Likewise.
1781         (arm_reorg): Release obstack memory.
1782
1783 2000-10-13  Jakub Jelinek  <jakub@redhat.com>
1784
1785         * config/sparc/sparc.md (nonlocal_goto_receiver): Remove.
1786         (prologue, exception_receiver, builtin_setjmp_receiver): New
1787         patterns.
1788         * config/sparc/sparc.h (FINALIZE_PIC): Remove.
1789         * config/sparc/sparc-protos.h (finalize_pic): Remove.
1790         (load_pic_register): New prototype.
1791         * config/sparc/sparc.c (pic_setup_code): Remove.
1792         (finalize_pic): Rename to...
1793         (load_pic_register): ...this function.
1794         Don't look for nonlocal_goto_receivers and emit pic setup code
1795         directly.  Don't check current_function_uses_pic_offset_table.
1796
1797 2000-10-13  Richard Earnshaw <rearnsha@arm.com>
1798
1799         * tree.h (struct obstack): Declare.
1800
1801 2000-10-12  Mark Mitchell  <mark@codesourcery.com>
1802
1803         Remove obstacks.
1804         * Makefile.in (ggc-callbacks.o): Remove target.
1805         (flow.o): Depend on GGC_H.
1806         * alias.c (init_alias_analysis):
1807         Remove ggc_p conditionals.
1808         (end_alias_analysis): Likewise.
1809         * basic-block.h (init_flow): New function.
1810         (allocate_reg_life_data): Declare.
1811         * bb-reorder.c  (function_obstack): Replace with ...
1812         (flow_obstack): ... new variable.
1813         (fixup_reorder_chain): Use it.
1814         * c-decl.c (ggc_p): Remove.
1815         (caller-save.c): Don't call oballoc/obfree.
1816         * combine.c (struct
1817         undobuf): Remove storage.
1818         (try_combine): Don't call oballoc.
1819         (undo_all): Don't call obfree.
1820         * cse.c (insert): Use xmalloc, not
1821         oballoc.
1822         (cse_main): Adjust accordingly.
1823         * dwarf2out.c (save_rtx): Remove
1824         obstack code.
1825         (dwarf2out_init): Remove ggc_p conditionals.
1826         * emit-rtl.c (rtl_obstack): Remove.
1827         (gen_rtx_CONST_INT): Remove ggc_p conditionals.
1828         (make_insn_raw): Likewise.
1829         (emit_insn_before): Likewise.
1830         (emit_insn_after): Likewise.
1831         (emit_insn): Likewise.
1832         (gen_sequence): Likewise.
1833         (copy_insn_1): Remove handling of `b' RTL components.
1834         (init_emit_once): Remove ggc_p conditionals.
1835         * except.c (create_rethrow_ref): Don't fool with obstacks.
1836         (add_partial_entry): Likewise.
1837         (call_get_eh_context): Likewise.
1838         (begin_protect_partials): Likewise.
1839         (protect_with_terminate): Likewise.
1840         * explow.c
1841         (plus_constant_wide): Likewise.
1842         * expr.c (init_expr_once):
1843         Likewise.
1844         (emit_block_move): Likewise.
1845         (clear_storage): Likewise.
1846         (expand_expr): Likewise.
1847         * flow.c (function_obstack): Remove.
1848         (flow_obstack): New variable.
1849         (flow_firstobj): Likewise.
1850         (create_base_block): Use the flow_obstack.
1851         (split_block): Likewise.
1852         (split_edge): Likewise.
1853         (calculate_global_regs_live): Likewise.
1854         (allocate_bb_life_data): Make it static.  Likewiwse.
1855         (init_flow): New function.
1856         (size_int_type_wide): Remove ggc_p conditionals.
1857         * function.c
1858         (push_function_context_to): Don't call save_tree_status.
1859         (pop_function_context_from): Or restore_tree_status.
1860         (assign_stack_local_1): Don't call push_obstacks.
1861         (find_fixup_replacement): Use xmalloc.
1862         (fixup_var_refs_insns): Free the storage.
1863         (insns_for_mem_walk): Don't mess with obstacks.
1864         (instantiate_decls): Likewise.
1865         (trampoline_address): Likewise.
1866         (expand_function_end): Likewise.
1867         * function.h (sturct function):
1868         Remove obstack-related variables.
1869         (save_tree_status): Don't declare.
1870         (restore_tree_status): Likewise.
1871         * gcse.c (compute_can_copy):
1872         Don't call oballoc/obfree.
1873         * genattrtab.c (operate_exp): Remove
1874         ggc_p conditionals.
1875         (simplify_cond): Likewise.
1876         (simplify_test_exp): Don't mess with obstacks.
1877         (optimize_attrs): Likewise.
1878         * gengenrtl.c (gendef): Don't include
1879         ggc_p conditionals.
1880         * ggc-callbacks.c (ggc_p): Remove.
1881         * ggc-none.c (ggc_p): Remove.
1882         * ggc.h (ggc_p): Don't declare.
1883         * integrate.c (save_for_inline): Don't mess with obstacks.
1884         (integrate_decl_tree): Likewise.
1885         (output_inline_function): Likewise.
1886         * lists.c
1887         (init_EXPR_INSN_LIST_cache): Likewise.
1888         * loop.c (temp_obstack):
1889         Remove.
1890         (rtl_obstack): Likewise.
1891         (init_loop): Don't mess with obstacks.
1892         (reg_address_cost): Free BIVs and GIVs.
1893         (check_insns_for_bivs): Use xmalloc, not oballoc.
1894         (find_mem_givs): Likewise.
1895         (record_biv): Likewise.
1896         (general_induction_var): Likewise.
1897         (product_cheap_p): Likewse.
1898         * optabs.c (init_one_libfunc): Remove
1899         ggc_p conditional.
1900         * print-tree.c (debug_tree): Don't use
1901         oballoc/obfree.
1902         (print_node): Likewise.
1903         * profile.c (output_func_start_profiler):
1904         Remove call to temporary_allocation.
1905         * reload1.c
1906         (eliminate_regs_in_insn): Don't mess with obstacks.
1907         * resource.c
1908         (mark_target_live_regs): Use xmalloc.
1909         (free_resource_info): Free the memory.
1910         * rtl.c (rtl_obstack):
1911         Remove.
1912         (rtvec_alloc): Don't mess with obstacks.
1913         (rtx_alloc): Likewise.
1914         (rtx_free): Remove.
1915         (copy_rtx): Don't handle `b' cases.
1916         (read_rtx): Use a local rtl_obstack.
1917         * rtl.h (oballoc): Remove.
1918         (obfree): Likewise.
1919         (pop_obstacks): Likewise.
1920         (push_obstacks): Likewise.
1921         (allocate_bb_life_data): Likewise.
1922         (allocate_reg_life_data): Likewise.
1923         (rtx_free): Likewise.
1924         * sdbout.c (sdbout_queue_anonymous_type):
1925         Use tree_cons, not saveable_tree_cons.
1926         * simplify-rtx.c
1927         (cselib_init): Don't mess with obstacks.
1928         * stmt.c
1929         (mark_block_nesting): Mark the label_chain.
1930         (epxand_label): Use ggc_alloc, not oballoc.
1931         (clear_last_expr): Don't mess with obstacks.
1932         (expand_decl_cleanup): Likewise.
1933         (expand_dcc_cleanup): Likewise.
1934         (expand_dhc_cleanup): Likewise.
1935         (expand_anon_union_decl): Likewise.
1936         (add_case_node): Use xmalloc, not oballoc.
1937         (free_case_nodes): New function.
1938         (expand_end_case): Call it.
1939         * stor-layout.c (layout_type): Don't
1940         mess with obstacks.
1941         (layout_type): Likewise.
1942         * toplev.c (wrapup_global_declarations):
1943         Likewise.
1944         (compile_file): Remove ggc_p conditionals.
1945         (rest_of_compilation): Call init_flow.  Remove ggc_p conditionals.
1946         (decode_f_option): Remove ggc_p conditionals.
1947         * tree.c
1948         (function_maybepermanent_obstack): Remove.
1949         (maybepermanent_obstack): Likewise.
1950         (function_obstack): Likewise.
1951         (tmeporary_obstack): Likewise.
1952         (momentary_obstack): Likewise.
1953         (temp_decl_obstack): Likewise.
1954         (saveable_obstack): Likewise.
1955         (rtl_obstack): Likewise.
1956         (current_obstack): Likewise.
1957         (expression_obstack): Likewise.
1958         (struct obstack_stack): Likewise.
1959         (obstack_stack): Likewise.
1960         (obstack_stack_obstack): Likewise.
1961         (maybepermanent_firstobj): Likewise.
1962         (temporary_firstobj): Likewise.
1963         (momentary_firstobj): Likewise.
1964         (temp_decl_firstobj): Likewise.
1965         (momentary_function_firstobj): Likewise.
1966         (all_types_permanent): Likewise.
1967         (struct momentary_level): Likewise.
1968         (momentary_stack): Likewise.
1969         (init_obstacks): Remove initialization of removed obstacks.
1970         (save_tree_status): Remove.
1971         (restore_tree_status): Likewise.
1972         (temporary_allocation): Liekwise.
1973         (end_temporary_allocation): Liekwise.
1974         (resume_temporary_allocation): Likewise.
1975         (saveable_allocation): Likewise.
1976         (push_obstacks): Likewise.
1977         (push_obstacks_nochange): Likewise.
1978         (pop_obstacks): Likewise.
1979         (allocation_temporary_p): Likewise.
1980         (permanent_allocation): Likewise.
1981         (preserve_data): Likewise.
1982         (preserve_initializer): Likewise.
1983         (rtl_in_current_obstack): Likewise.
1984         (rtl_in_saveable_obstack): Likewise.
1985         (oballoc): Likewise.
1986         (obfree): Likewise.
1987         (savealloc): Likewise.
1988         (expralloc): Likewise.
1989         (print_obstack_name): Likewise.
1990         (debug_obstack): Likewise.
1991         (object_permanent_p): Likewise.
1992         (push_momentary): Likewise.
1993         (perserve_momentary): Likewise.
1994         (clear_momentary): Likewise.
1995         (pop_momentary): Likewise.
1996         (pop_momentary_nofree): Likewise.
1997         (suspend_momentary): Likewise.
1998         (resume_momentary): Likewise.
1999         (make_node): Don't set TREE_PERMANENT.
2000         (copy_node): Remove ggc_p conditionals.  Don't set TYPE_OBSTACK.
2001         Don't set TREE_PERMANENT.
2002         (get_identifier): Remove ggc_p conditionals.
2003         (build_string): Likewise.
2004         (make_tree_vec): Likewise.
2005         (build_decl_list): Remove.
2006         (build_expr_list): Likewise.
2007         (tree_cons): Remove ggc_p conditionals.
2008         (decl_tree_cons): Remove.
2009         (expr_tree_cons): Likewise.
2010         (perm_tree_cons): Likewise.
2011         (temp_tree_cons): Likewise.
2012         (saveable_tree_cons): Likewise.
2013         (build1): Remove ggc_p conditionals.
2014         (build_parse_node): Likewise.
2015         (build_type_attribute_variant): Don't mess with obstacks.
2016         (build_type_copy): Likewise.
2017         (type_hash_canon): Likewise.
2018         (build_pointer_type): Likewise.
2019         (build_reference_type): Likewise.
2020         (build_index_type): Likewise.
2021         (build_range_type): Likewise.
2022         (dump_tree_statistics): Don't print obstack information.
2023         * tree.h
2024         (struct tree_common): Remove permanent_flag.
2025         (TREE_PERMANENT): Remove.
2026         (TREE_SET_PERMANENT): Likewise.
2027         (TYPE_OBSTACK): Likewise.
2028         (struct tree_type): Remove obstack.
2029         (oballoc): Remove.
2030         (savealloc): Likewise.
2031         (build_decl_list): Likewise.
2032         (build_expr_list): Likewise.
2033         (perm_tree_cons): Likewise.
2034         (temp_tree_cons): Likewise.
2035         (saveable_tree_cons): Likewise.
2036         (decl_tree_cons): Likewise.
2037         (expr_tree_cons): Likewise.
2038         (suspend_momentary): Likewise.
2039         (allocation_temporary_p): Likewise.
2040         (resume_momentary): Likewise.
2041         (push_obstacks_nochange): Likewise.
2042         (permanent_allocation): Likewise.
2043         (push_momentary): Likewise.
2044         (clear_momentary): Likewise.
2045         (pop_momentary): Likewise.
2046         (end_temporary_allocation): Likewise.
2047         (pop_obstacks): Likewise.
2048         (push_obstacks): Likewise.
2049         (pop_momentary_nofree): LIkewise.
2050         (preserve_momentary): Likewise.
2051         (saveable_allocation): Likewise.
2052         (temporary_allocation): Likewise.
2053         (resume_temporary_allocation): Likewise.
2054         (perserve_initializer): Likewise.
2055         (debug_obstack): Likewise.
2056         (rtl_in_current_obstack): Likewise.
2057         (rtl_in_saveable_obstack): Likewise.
2058         (obfree): Likewise.
2059         * varasm.c (current_obstack): Remove.
2060         (saveable_obstack): Remove.
2061         (rtl_obstack): Remove.
2062         (immed_double_const): Don't mess with obstacks.
2063         (immed_real_cons): Likewise.
2064         (output_constant_def): Likewise.
2065         (init_varasm_status): Use xcalloc.
2066         (mark_pool_constant): Mark the pool constant itself.
2067         (free_varasm_status): Free memory.
2068         (decode_rtx_const): Call bzero directly, rather than expanding it
2069         inline.
2070         (record_rtx_const): Don't mess with obstacks.
2071         (force_const_mem): Likewise.
2072         * config/arm/arm.c (arm_encode_call_attribute): Remove ggc_p
2073         conditionals.
2074         (aof_pic_entry): Likewise.
2075         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2076         * config/m32r/m32r.c (m32r_encode_section_info): Likewise.
2077         * config/pa/pa.c (saveable_obstack): Remove.
2078         (rtl_obstack): Likewise.
2079         (current_obstack): Likewise.
2080         (output_call): Don't mess with obstacks.
2081         (hppa_encode_label): Remove ggc_p conditionals.
2082         * config/romp/romp.c (get_symref): Don't mess with obstacks.
2083         * config/rs6000/rs6000.c (output_toc): Remove ggc_p conditional.
2084         (rs6000_encode_section_info): Likewise.
2085         * config/sh/sh.c (get_fpscr_rtx): Likewise.
2086
2087 Thu Oct 12 16:02:31 MET DST 2000 Jan Hubicka  <jh@suse.cz>
2088
2089         * i386.md (adddi3, subdi3 splitters): Update for new pattern.
2090         (addsi3_cc, addqi3_cc, subsi3_cc): Remove
2091         (addsi3_carry): Canonicalize.
2092         (addqi_5): Remove '*'.
2093         (sbb pattern): Canonicalize.
2094
2095         * i386.md (cmp to inc/add peep2): New.
2096
2097 2000-10-12  Richard Earnshaw  <rearnsha@arm.com>
2098
2099         * bb-reorder.c (reorder_basic_blocks): Allocate an aux block for
2100         the exit block.
2101
2102 2000-10-12  Joseph S. Myers  <jsm28@cam.ac.uk>
2103
2104         * gcc.texi: Merge in contents of README.TRAD and TESTS.FLUNK.
2105         * README.TRAD, TESTS.FLUNK: Remove.
2106
2107 2000-10-12  Joseph S. Myers  <jsm28@cam.ac.uk>
2108
2109         * c-common.c (decl_attributes): Don't allow strftime formats with
2110         first_arg_num nonzero.
2111         (check_format_info): Set wanted_type and wanted_type_name to zero
2112         before they are possibly assigned and used.
2113
2114 2000-10-12  Joseph S. Myers  <jsm28@cam.ac.uk>
2115
2116         * c-common.c (scanf_flag_specs): Add flags ' and I.
2117         (strftime_flag_pairs): Disallow any pair of the _, - and 0 flags,
2118         or the ^ and # flags together.
2119         (scan_char_table): Handle the ' and I flags.
2120         (format_types): Add ' and I flags for scanf.
2121
2122 2000-10-12  Joseph S. Myers  <jsm28@cam.ac.uk>
2123
2124         * c-common.c (print_char_table): Use the unpromoted type for
2125         lengths "h" and "hh" with conversions dioxXu.
2126         (check_format_types): Apply the default argument promotions where
2127         the wanted type is not a pointer target.
2128
2129 2000-10-11  Michael Meeks  <mmeeks@gnu.org>
2130             Joseph S. Myers  <jsm28@cam.ac.uk>
2131
2132         * c-typeck.c (check_modify_expr): New function.
2133         (build_modify_expr): Call it if warn_sequence_point.
2134         * c-decl.c (warn_sequence_point): New variable.
2135         (c_decode_option): Handle -Wsequence-point and
2136         -Wno-sequence-point.  Enable -Wsequence-point as part of -Wall.
2137         * c-tree.h (warn_sequence_point): Declare.
2138         * invoke.texi (-Wsequence-point): Document.
2139         * toplev.c (documented_lang_options): Add -Wsequence-point and
2140         -Wno-sequence-point.
2141         Original work by Michael Meeks, 16 Jun 1998.
2142
2143 Wed Oct 11 06:15:41 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2144
2145         * tree.c (get_narrower): Don't look at precision of field if
2146         not laid out yet.
2147
2148 Tue Oct 10 23:14:33 2000  Denis Chertykov  <denisc@overta.ru>
2149
2150         * config/avr/avr.c (valid_machine_decl_attribute): Allow `extern'
2151         declaration for data with "progmem" attribute.
2152
2153 2000-10-09  Marek Michalkiewicz  <marekm@linux.org.pl>
2154
2155         * config/avr/avr.c (out_shift_with_cnt): Use AS2 macro.
2156         Correct insn length if shift count is a memory operand.
2157         * config/avr/avr.md: New define_peephole2 to use *reload_inqi.
2158         (*iorhi3_clobber): Change lo8 to hi8.
2159         (zero_extendhisi2): Change %B0 to %A1.
2160         (ashlhi3, ashrhi3): Correct insn length.
2161         (andhi3, abssf2, extendqisi2, extendhisi2): Change "cc"
2162         from "clobber" to "set_n" in some alternatives.
2163
2164 2000-10-10  Jakub Jelinek  <jakub@redhat.com>
2165
2166         * reload1.c (calculate_needs_all_insns): If deleting an instruction,
2167         remove its insn_chain structure as well.
2168
2169 2000-10-09  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
2170
2171         * dbxout.c (dbxout_source_line): Remove extra tab.
2172
2173 2000-10-09  Hans-Peter Nilsson  <hp@bitrange.com>
2174
2175         * config/elfos.h (UNIQUE_SECTION): Apply STRIP_NAME_ENCODING on name.
2176
2177 2000-10-09  Richard Henderson  <rth@cygnus.com>
2178
2179         * Makefile.in (LANG_LIB2FUNCS): Remove.
2180         (LIB2FUNCS): Remove _pure.
2181         (LIB2ADD): Remove LANG_LIB2FUNCS.
2182         (stage_a): Don't set LANG_LIB2FUNCS.
2183         * libgcc2.c (__terminate): Mark noreturn.
2184         (__pure_virtual): Remove.
2185         * mklibgcc.in: Remove LIB2ADD .txt processing.
2186
2187 2000-10-09  Richard Earnshaw  <rearnsha@arm.com>
2188
2189         * arm.md (push_multi): Revert unintended change.
2190
2191 2000-10-09  Richard Earnshaw  <rearnsha@arm.com>
2192
2193         * arm.c: Miscellaneous white space and comment clean-ups.  No
2194         functional change.
2195         * arm.md: Likewise.
2196
2197 2000-10-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2198
2199         * c-common.c (c_expand_builtin_printf): Set the TREE_TYPE of a new
2200         STRING_CST by calling combine_strings.
2201
2202 2000-10-09  Richard Earnshaw  <rearnsha@arm.com>
2203
2204         * arm.c (thumb_expand_movstrqi): Rewrite to support SSA form.
2205         (thumb_output_move_mem_multiple): Support new insn format.
2206         * arm.md (movmem12b): Use SSA compatible format.
2207         (movmem8b): Likewise.
2208
2209 2000-10-09  Richard Earnshaw  <rearnsha@arm.com>
2210
2211         * arm.md (predicable): New attribute, default to "no".
2212         (all patterns): Mark as predicable if appropriate.
2213         (conditional execution splits): Split using predication format.
2214         (define_cond_exec): Define.
2215         * arm.c (arm_print_operand): handle insn predicate.
2216
2217 2000-10-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2218
2219         * README.NS32K: Remove file.
2220
2221 2000-10-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2222
2223         * README-bugs: Remove file.
2224
2225 2000-10-08  Philipp Thomas  <pthomas@suse.de>
2226         * aclocal.m4 (AM_GNU_GETTEXT): Fix non portable use of == operator
2227         for test.
2228         * configure: Rebuilt.
2229
2230 2000-10-08  Philipp Thomas  <pthomas@suse.de>
2231         * aclocal.m4 (AM_WITH_NLS): When not using included gettext,
2232         disable catalog building if no suitable program was found.
2233         Move warning message from here
2234         (AM_GNU_GETTEXT): To here.
2235         * configure: Rebuilt.
2236
2237 2000-10-08  Philipp Thomas  <pthomas@suse.de>
2238         * aclocal.m4 (GCC_PATH_PROG): New. Like AC_PATH_PROG but uses
2239         different cache variables.
2240         (GCC_PATH_PROG_WITH_TEST): New. Like AM_PATH_PROG_WITH_TEST but
2241         uses different cache variables.
2242         (AM_WITH_NLS): Use GCC_PATH_PROG and GCC_PATH_PROG_WITH_TEST.
2243         * configure: Regenerated.
2244
2245 2000-10-08  Richard Henderson  <rth@cygnus.com>
2246
2247         * Makefile.in (libgcc.mk): Pass SHLIB_EXT, not SHLIB_LIBS.
2248         * configure.in (sparc*-*-solaris*): Use t-slibgcc{,-sld}.
2249         * mklibgcc.in: Consider SHLIB_LINK the entire shlib build command.
2250         Use SHLIB_EXT.
2251
2252         * config/t-linux (SHLIB_EXT): New.
2253         (SHLIB_LINK): Use the entire build command, with substitutions.
2254         (SHLIB_LIBS): Remove.
2255         * config/alpha/t-osf4: Likewise.
2256         * config/mips/t-iris6: Likewise.
2257         * config/sparc/t-sol2: Likewise, but move shlib stuff...
2258         * config/sparc/t-slibgcc-sld: ...here.
2259         * config/sparc/t-slibgcc: New file.
2260
2261 2000-10-08  Joseph S. Myers  <jsm28@cam.ac.uk>
2262
2263         * tm.texi (INTMAX_TYPE, UINTMAX_TYPE): Define.
2264         * c-common.h (enum c_tree_index): Add CTI_INTMAX_TYPE and
2265         CTI_UINTMAX_TYPE.
2266         (intmax_type_node, uintmax_type_node): Define.
2267         * c-common.c (decl_attributes): If pedantic, warn if `mode'
2268         attributes create a type wider than intmax_t.
2269         (T_IM, T_UIM): Define properly.
2270         * c-decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
2271         defined.
2272         (init_decl_processing): Initialize intmax_type_node and
2273         uintmax_type_node.
2274         * c-lex.c (lex_number): When pedantic and warning for integer
2275         constants that are too large, in C99 mode warn for those that have
2276         a type wider than long long.
2277
2278 2000-10-08  Joseph S. Myers  <jsm28@cam.ac.uk>
2279
2280         * c-common.c (FMT_FLAG_ARG_CONVERT, FMT_FLAG_SCANF_A_KLUDGE,
2281         FMT_FLAG_FANCY_PERCENT_OK): Define.
2282         (format_char_info): Add flag "4" to comment.
2283         (format_flag_spec, format_flag_pair): New structures.
2284         (format_kind_info): Add additional fields to control format
2285         checking.
2286         (printf_flag_specs, printf_flag_pairs, scanf_flag_specs,
2287         scanf_flag_pairs, strftime_flag_specs, strftime_flag_pairs): New
2288         arrays.
2289         (time_char_table): Use "4" flag to handle %Ey.
2290         (format_types): Add entries for new fields.
2291         (get_flag_spec): New function.
2292         (check_format_info): Increase size of flag_chars[] to 256.
2293         Control format checking using the new fields of a format_kind_info
2294         and the new tables; remove all conditionals on printf_format_type,
2295         scanf_format_type or strftime_format_type.  Handle all details of
2296         bad combinations of flags (including width, precision and strftime
2297         modifiers) through data rather than ad hoc code.  Handle all
2298         details of standard versions in which flags appeared through
2299         data.  Use the "4" flag.
2300
2301 2000-10-07  Will Cohen  <wcohen@redhat.com>, Kazu Hirata  <kazu@hxi.com>
2302
2303         * config/h8300/h8300.md: Remove the memory alternative and correct
2304         the insn lengths in the templates for sign extention and zero
2305         extention.
2306
2307 2000-10-07  Richard Henderson  <rth@cygnus.com>
2308
2309         * calls.c (expand_call): Disallow sibcalls to noreturn functions.
2310         * flow.c (make_edges): Revert last change.
2311
2312         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Don't test
2313         TREE_THIS_VOLATILE.
2314         * config/pa/pa.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
2315
2316 2000-10-06  David O'Brien  <obrien@dragon.nuxi.com>
2317
2318         * config/alpha/elf.h: Standardize the formatting.
2319
2320 2000-10-06  David O'Brien  <obrien@FreeBSD.org>
2321
2322         * config/alpha/elf.h: Protect the ASM_OUTPUT_IDENT definition with an
2323         #undef.
2324
2325 2000-10-06  Richard Henderson  <rth@cygnus.com>
2326
2327         * function.c (diddle_return_value): Examine
2328         current_function_return_rtx instead of the DECL_RESULT.
2329         (expand_function_end): Handle reloading DECL_RESULT from memory
2330         into a hard register.  Query promote_mode for sign of mismatched
2331         modes.
2332
2333 2000-10-06  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
2334
2335         * haifa-sched.c (schedule_insns): Fix typo in freeing
2336         forward_dependency_cache.
2337
2338 2000-10-06  Alexandre Oliva  <aoliva@redhat.com>
2339
2340         * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): Add
2341         `TARGET_SH2' as a condition.
2342
2343 2000-10-06  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
2344
2345         * haifa-sched.c (anti_dependency_cache, output_dependency_cache,
2346         forward_dependency_cache): New variables.
2347         (add_dependence, remove_dependence): Use anti_dependency_cache and
2348         output_dependency_cache.
2349         (compute_block_forward_dependences): Use forward_dependency_cache.
2350         (schedule_insns): Allocate and free memory for anti/output/forward
2351         dependencies caches.
2352
2353 2000-10-06  Alexandre Oliva  <aoliva@redhat.com>
2354
2355         * config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
2356         `! TARGET_SH1'.  Reindent.
2357
2358 2000-10-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2359
2360         * builtins.c (is_valid_printf_arglist, expand_builtin_printf):
2361         Move functions from here ...
2362
2363         * c-common.c (is_valid_printf_arglist, c_expand_builtin_printf):
2364         ... to here.
2365         (c_expand_builtin): New function.
2366         (init_function_format_info): Don't set `check_function_format_ptr'.
2367         (c_common_nodes_and_builtins): Set built_in_class type for
2368         printf/__builtin_printf to BUILT_IN_FRONTEND.
2369         (c_expand_expr): Handle CALL_EXPRs that are front-end builtins.
2370
2371         * c-common.h (build_function_call): Declare.
2372
2373         * expr.c (expand_expr): Pass builtins with class BUILT_IN_FRONTEND
2374         to `lang_expand_expr' rather than `expand_builtin'.
2375
2376         * tree.c (check_function_format_ptr): Delete.
2377
2378         * tree.h (check_function_format_ptr): Likewise.
2379
2380 2000-10-06  Hans-Peter Nilsson  <hp@bitrange.com>
2381
2382         * dwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or
2383         DW_OP_bregx when cfa->reg > 31.
2384
2385         * frame-dwarf2.c (decode_stack_op) [case DW_OP_regx]: Add missing
2386         break.
2387
2388 2000-10-05  Richard Henderson  <rth@cygnus.com>
2389
2390         * c-decl.c (warn_missing_noreturn): Remove.
2391         (c_expand_body): Don't set or check can_reach_end.
2392         * c-tree.h (warn_missing_noreturn): Move ...
2393         * flags.h: ... here.
2394         (can_reach_end): Remove.
2395         * flow.c (check_function_return_warnings): New.
2396         (make_edges): No edge to exit for noreturn sibcalls.
2397         * function.c (expand_function_end): Save the return value
2398         clobber instruction.
2399         (mark_function_status): Mark it.
2400         * function.h (struct function): Add x_clobber_return_insn.
2401         * jump.c (can_reach_end): Remove.
2402         (calculate_can_reach_end): Remove.
2403         (jump_optimize_1): Don't call it.
2404         * output.h (check_function_return_warnings): Declare.
2405         * toplev.c (warn_missing_noreturn): Move from c-decl.c
2406         (rest_of_compilation): Call check_function_return_warnings.
2407
2408 2000-10-05  Richard Henderson  <rth@cygnus.com>
2409
2410         * Makefile.in (NM_FOR_TARGET): New.
2411         (libgcc.mk): Pass SHLIB_MKMAP, SHLIB_MAPFILES.
2412         (libgcc.a, stmp-multilib): Pass NM_FOR_TARGET.
2413         * mklibgcc.in: If SHLIB_MKMAP, build libgcc.map.  Depend the
2414         shared library build on that and EXTRA_MULTILIB_PARTS.
2415         * mkmap-flat.awk: New file.
2416         * mkmap-symver.awk: New file.
2417         * libgcc-std.ver: New file.
2418         * config/libgcc-glibc.ver: New file.
2419         * config/ia64/libgcc-ia64.ver: New file.
2420         * config/t-linux (SHLIB_MKMAP, SHLIB_MAPFILES): New.
2421         (SHLIB_LINK): Add --version-script.
2422         * config/ia64/t-ia64 (SHLIB_MAPFILES): Add libgcc-ia64.ver.
2423         * config/mips/t-iris6 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
2424         * config/sparc/t-sol2 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
2425         (SHLIB_LINK): Add -M.
2426
2427 2000-10-05  Richard Henderson  <rth@cygnus.com>
2428
2429         * Makefile.in (LIB2FUNCS): Add _clz.
2430         * libgcc2.c (__ffsdi2): Use count_trailing_zeros.
2431         (__clz_tab): Put in its own unit, non-static.
2432         * libgcc2.h: Always include longlong.h.
2433
2434         * longlong.h [alpha] (count_leading_zeros): Use cmpbge with
2435         a zero instead of -1.
2436         (count_trailing_zeros): Likewise.
2437
2438 2000-10-05  Richard Henderson  <rth@cygnus.com>
2439
2440         * config/alpha/alpha.c (alpha_emit_setcc): Don't swap GT tests
2441         when second op1 is const0_rtx.  Validate op0 as a register.
2442         * config/alpha/alpha.md (setcc_internal): Don't allow constants
2443         in the first argument of the compare.
2444         (setcc_swapped_internal): Likewise.
2445         (setne_internal): Likewise.
2446
2447 2000-10-05  Geoff Keating  <geoffk@cygnus.com>
2448
2449         * tree.c (tree_size): New function split out of copy_node.
2450         (make_node): Remove obstack handling.  Use tree_size.
2451         (copy_node): Use tree_size.
2452         * tree.h: Prototype tree_size.
2453
2454 2000-10-05  Richard Henderson  <rth@cygnus.com>
2455
2456         * diagnostic.c (output_format): Add missing break.
2457
2458 2000-10-05  Jim Wilson  <wilson@cygnus.com>
2459
2460         * function.c (fixup_var_refs_1, case SET): When gen_move_insn returns a
2461         SEQUENCE, call emit_insn_before, copy PATTERN and REG_NOTES of last
2462         sequence insn to INSN, and delete last sequence insn.
2463
2464 2000-10-05  Phil Edwards  <pme@gcc.gnu.org>
2465
2466         * gcc.c (main): Include generated configargs.h header
2467         and use arguments in '-v' output.
2468
2469 Thu Oct  5 16:16:57 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2470
2471         * gcc.c: Move data on prefixes forward in file and reorganize.
2472         (md_exec_prefix, md_startfile_prefix, md_startfile_prefix_1):
2473         Always define, but make null if no value.
2474         (static_specs): Add "md_exec_prefix", "md_startfile_prefix",
2475         and "md_startfile_prefix_1".
2476         (main): Check whether md_exec_prefix and the others are the
2477         null string rather than whether the macro is defined.
2478
2479 Thu Oct  5 19:04:18 2000  J"orn Rennecke <amylaar@redhat.co.uk>
2480
2481         * (convert_move): Use zero_extendpsisi2 to do an unsigned extension
2482         from PSImode to SImode.
2483
2484 2000-10-05  Jakub Jelinek  <jakub@redhat.com>
2485
2486         * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETICS]: Fix conversion
2487         from float to integral mode with HOST_BITS_PER_WIDE_INT 64.
2488         * dwarf2out.c (add_const_value_attribute): Divide by 4, not
2489         sizeof(long).
2490
2491 Thu Oct  5 09:31:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2492
2493         * fold-const.c (fold, case MINUS_EXPR, case EQ_EXPR): Perform
2494         negation in proper type.a
2495
2496 2000-10-04  Richard Henderson  <rth@cygnus.com>
2497
2498         * configure.in (enable-shared): New.
2499         * Makefile.in (LIBGCC_DEPS): Depend on EXTRA_PARTS as well.
2500         (libgcc.mk): Pass SHLIB_LINK, SHLIB_LIBS, SHLIB_MULTILIB to mklibgcc.
2501         * mklibgcc.in: Use them to link shared a libgcc.
2502         * config/t-linux (SHLIB_LINK, SHLIB_LIBS): New.
2503         * config/alpha/t-ieee (SHLIB_MULTILIB): New.
2504         * config/mips/t-iris6 (SHLIB_LINK, SHLIB_LIBS): New.
2505         * config/sparc/t-sol2 (SHLIB_LINK, SHLIB_LIBS): New.
2506
2507         * configure.in (alpha-osf*): Use t-osf and x-osf.
2508         * config/alpha/t-osf: New file.
2509         * config/alpha/t-osf4: New file.
2510         * config/alpha/x-osf: New file.
2511         * config/alpha/x-alpha: Remove file.
2512
2513 2000-10-04  Will Cohen  <wcohen@redhat.com>
2514
2515         * c-typeck.c (process_init_element): Added warning for zero-length
2516         array.
2517
2518         * extend.texi (Zero Length): State that static initializers for
2519         zero-length arrays are not allowed.
2520
2521 Mon Oct  2 14:50:14 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2522
2523         * rtlanal.c (single_set_1): Do not require USE and CLOBBERs
2524         to come last.
2525
2526 2000-10-03  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
2527
2528         * config/float-c4x.h: New.
2529         * configure.in (c4x-*): Set float_format to c4x.
2530         * configure: Regenerate.
2531
2532 2000-10-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2533
2534         * configure.in (sparc-*-solaris2*): Disable 32-to-64 cross
2535         compilation for solaris versions 2.7 and greater.
2536
2537 2000-10-02  Marc Espie <espie@openbsd.org>
2538
2539         * config/alpha.h (WORD_SWITCH_TAKES_ARG): add -rpath to default,
2540         instead of redefining from scratch.
2541
2542 2000-10-02  David O'Brien  <obrien@dragon.nuxi.com>
2543
2544         * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Define.
2545
2546 2000-10-01  Mark Mitchell  <mark@codesourcery.com>
2547
2548         * config/ns32k/genix.h: Remove.
2549         * config/ns32k/x-genix: Likewise.
2550         * config/ns32k/xm-genix.h: Likewise.
2551         * config/fx80: Remove all filee in directory.
2552         * config/pyr: Likewise.
2553         * config/tahoe: Likewise.
2554         * config/gmicro: Likewise.
2555         * config/spur: Likewise.
2556         * configure.in: Remove configury bits for above targets.
2557         * configure: Regenerated.
2558
2559         * configure.in: Don't configure chill by default.
2560         * configure: Regenerated.
2561
2562         * c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
2563         (lang_mark_false_label_stack): Remove.
2564         * c-lex.c (init_c_lex): Add file_info_tree as GC root.  Allocate
2565         <top level> string in GC area.
2566         (mark_splay_tree_node): New function.
2567         (mark_splay_tree): Likewise.
2568         * except.c (mark_eh_status): Only call lang_mark_false_label_stack
2569         if it exists.
2570         * ggc-callbacks.c (lang_mark_false_label_stack): Remove.
2571         * ggc-common.c (lang_mark_false_label_stack): Change type.
2572         * ggc.h (ggc_alloc_string): Add comment.
2573         (ggc_strdup): New function.
2574
2575 Sat Sep 23 19:10:20 2000  Denis Chertykov  <denisc@overta.ru>
2576
2577         * config/avr/avr.h (BRANCH_COST): Define as 0.
2578
2579         * config/pdp11/pdp11.c: #include "tree.h" added.
2580
2581 2000-09-30  Marek Michalkiewicz  <marekm@linux.org.pl>
2582
2583         * config/avr/avr.c (ashlhi3_out, ashlsi3_out, ashrhi3_out,
2584         ashrsi3_out, lshrhi3_out, lshrsi3_out): Optimize more cases
2585         with known shift count.
2586         * config/avr/avr.md (ashlsi3, ashrsi3, lshrsi3):
2587         New alternative for shift count 2 with no scratch register.
2588         (ashlhi3, ashlsi3): Change "cc" attribute from "clobber" to
2589         "set_n" for shift counts 1 and 2.
2590
2591 2000-09-30  Geoff Keating  <geoffk@cygnus.com>
2592
2593         * config/rs6000/rs6000.md (movsi_to_cr): Remove the USE.  Calculate
2594         the mask value from the individual SET operations.
2595         (return_internal_si): Move the USE after the RETURN.
2596         (return_internal_di): Likewise.
2597         (return_and_restore_fpregs_si): Likewise.
2598         (return_and_restore_fpregs_di): Likewise.
2599         (return_eh_si): Likewise.
2600         (return_eh_di): Likewise.
2601         * config/rs6000/rs6000.c (mtcrf_operation): Don't look for,
2602         or check, the USE.
2603         (rs6000_emit_prologue): Don't emit the USE for movsi_to_cr.
2604         Don't generate a PARALLEL around a single operation movsi_to_cr.
2605         Generate the RETURN first in any PARALLELs.
2606
2607         * rtlanal.c (single_set_1): Use fatal_insn to display the
2608         invalid insn.  Check for more cases when a USE or CLOBBER occurs
2609         before a SET.
2610         * Makefile.in: Update dependencies for rtlanal.o.
2611
2612 2000-09-30  Joseph S. Myers  <jsm28@cam.ac.uk>
2613
2614         * i386.c: Move include of "config.h" to before that of <setjmp.h>.
2615
2616 2000-09-30  Joseph S. Myers  <jsm28@cam.ac.uk>
2617
2618         * c-tree.texi, contrib.texi, gcc.texi, install.texi, invoke.texi:
2619         Consistently use @email for formatting email addresses.
2620
2621 2000-09-29  Richard Henderson  <rth@cygnus.com>
2622
2623         * cse.c (notreg_cost): New argument outer.
2624         (COST): Pass in SET to notreg_cost
2625         (COST_IN): New.
2626         (fold_rtx): Use COST_IN.  Prefer constants when costs
2627         are the same.
2628
2629 2000-09-29  David Edelsohn  <edelsohn@gnu.org>
2630
2631         * fixinc/inclhack.def (broken_cabs): Generalize regex.
2632         * fixinc/fixincl.x: Regenerate.
2633
2634 2000-09-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2635
2636         * loop.c (check_final_value): A GIV is not replaceable if used
2637         before set.
2638
2639 Fri Sep 29 10:04:12 2000  Jeffrey A Law  (law@cygnus.com)
2640
2641         * version.c: Bump to gcc-2.97.
2642
2643 Frs Sep 29 13:37:59 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2644
2645         * final.c (final_scan_insn): Remove extra extract_insn call;
2646         Use caching for constrain_operands.
2647         (cleanup_subreg_operands): Use caching for extract_insn.
2648         * recog.c (constrain_operands_cached): New.
2649         * recog.h (constrain_operands_cached): Declare.
2650         * i386.c (ix86_attr_length_immediate_default,
2651         ix86_attr_length_address_default, ix86_agi_dependant): Cache
2652         extract_insn call.
2653
2654         * recog.c (asm_noperands): Tweak.
2655         (extract_insn): Do not call asm_noperads for non-asm instructions.
2656
2657 Fri Sep 29 13:20:42 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2658
2659         * recog.c (recog_memoized): Rename to recog_memoized_1.
2660         * recog.h (recog_memoized): Rename to recog_memoized_1.
2661         (recog_memoized): New macro.
2662         * rtl.h (single_set): Rename to single_set_1
2663         (single_set): New macro.
2664         * rtlanal.c (single_set): Rename to single_set_1;  expect clobbers
2665         to be last.
2666
2667         * i386.md (strmovsi_1, strmovhi_1 strmovqi_1):
2668         Do not use match_dup of input operands at outputs.
2669         Use register_operand for memory expression.
2670         (rep_movsi): Put use last, canonicalize.
2671         Use register_operand for memory expression.
2672         (rep_movqi): Put use last.
2673         Use register_operand for memory expression.
2674         (strsetsi_1, strset_hi_1, strsetqi_1): Do not use match_dup
2675         of input operands at outputs.  Use register_operand for memory
2676         expression.
2677         (rep_stossi): Put use last; canonicalize; fix match_dup in
2678         the address expression
2679         (rep_stosqi): Likewise.
2680         (memcmp expander): Update calls.
2681         (cmpstrsi_nz_1, cmpstrsi_1, strlensi_1): Avoid match_dups in
2682         the clobbers.
2683
2684         * i386.md (fp_jcc_3, fp_jcc_4, jp_fcc_5): if_then_else operand is
2685         VOIDmode.
2686         (fp_jcc_4, fp_jcc_3): Refuse unordered comparisons.
2687
2688 2000-09-28  David O'Brien  <obrien@FreeBSD.org>
2689
2690         * config/i386/freebsd-aout.h: New, FreeBSD a.out config file.
2691         Contains the old contents of config/i386/freebsd.h
2692         * config/i386/freebsd.h: Now the ELF rather than a.out config file.
2693         Contains the old contents of config/i386/freebsd-elf.h
2694         * config/i386/freebsd-elf.h: Retire this file -- contents moved to
2695         config/i386/freebsd.h.
2696         * configure.in: Adjust for above changes.
2697         * po/POTFILES.in: Likewise.
2698         * po/en_GB.po: Likewise.
2699         * po/gcc.pot: Likewise.
2700         * configure: Rebuilt.
2701
2702 2000-09-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2703
2704         * doloop.c (doloop_modify): Prevent delete_insn() from
2705         deleting too much.  Prefer loop->top over loop->start as
2706         target for the new JUMP insn.
2707         (doloop_valid_p): Ignore loop with exit_count != 0.
2708
2709 2000-09-28  Philipp Thomas  <pthomas@suse.de>
2710
2711         * invoke.texi (i386 Options): Add athlon to table of possible
2712         choices for -mcpu=.
2713
2714 2000-09-28  Gabriel Dos Reis  <gdr@codesourcery.com>
2715
2716         * diagnostic.h (output_clear_message_text): New function.
2717         (output_message_text): New macro.
2718
2719         * diagnostic.c (clear_text_info): Rename to
2720         output_clear_message_text.
2721         (output_clear): Adjust.
2722         (output_finish): Rename to output_finalize_message.  Tweek.
2723         (output_to_stream): Adjust.
2724
2725 2000-09-28  Neil Booth  <neilb@earthling.net>
2726
2727         * cpperror.c (_cpp_begin_message):  Do the test for suppression
2728         of warnings and pedantic warnings before the "is a warning an
2729         error" tests.
2730         * cppinit.c (cpp_handle_option): Remove surplus \n.
2731         * cpplex.c (ON_REST_ARG): Delete.
2732         (skip_block_comment): Initialise prevc.
2733         (parse_args): Improve error messages.
2734         (maybe_paste_with_next): Use CONTEXT_VARARGS rather
2735         than ON_REST_ARG.
2736         * cpplib.c (cpp_push_buffer): Fix grammar in message.
2737         * cppmain.c (main): Set callbacks for #ident and #pragma
2738         only if no_output option is false.
2739         (do_pragma_implementation): Only call the #pragma handler
2740         if it is set in the cpp_reader structure.
2741
2742 Wed Sep 27 14:00:07 2000  Donald Lindsay  <dlindsay@cygnus.com>
2743
2744         * integrate.c (copy_insn_list): if an ignored return value
2745         is being clobbered, skip cloning that into the inline copy.
2746
2747 2000-09-27  Joseph S. Myers  <jsm28@cam.ac.uk>
2748
2749         * extend.texi, invoke.texi, gcc.texi, install.texi: Consistently
2750         use @uref for formatting URLs.
2751
2752 2000-09-27  Mark Elbrecht  <snowball3@bigfoot.com>
2753
2754         * config/i386/djgpp.h (UNIQUE_SECTION): Constify the variables
2755         name and prefix.
2756
2757 Tue 26-Sep-2000 18:25:38 BST  Neil Booth  <neilb@earthling.net>
2758
2759         * gcc.c (cpp_options): Add spec for -ftabstop=.
2760         (invoke_as): New spec that handles invoking as.
2761         Update specs to handle -save-temps and -traditional.
2762         * ch/lang-specs.h, f/lang-specs.h, java/lang-specs.h:
2763         Use invoke_as.
2764         * cp/lang-specs.h, objc/lang-specs.h: Update to use
2765         invoke_as, and handle -save-temps and -traditional (if
2766         appropriate).
2767
2768 2000-09-26  Jakub Jelinek  <jakub@redhat.com>
2769
2770         * config/sparc/sparc.c (sparc_emit_set_const64): Don't abort when
2771         op0 is a SUBREG.
2772         (function_arg_slotno): Accept TImode/CTImode.
2773         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): If IN_LIBGCC2 define
2774         to UNITS_PER_WORD.
2775
2776 2000-09-26  Michael Hayes  <mhayes@cygnus.com>
2777
2778         * flow.c (flow_loop_pre_header_scan): Punt if loop enters
2779         from entry block.
2780
2781 2000-09-25  Jim Wilson  <wilson@cygnus.com>
2782
2783         * config/ia64/ia64.h (INDEX_REG_CLASS): Define to GENERAL_REGS.
2784         (REGNO_OK_FOR_INDEX_P): Define to REGNO_OK_FOR_BASE_P.
2785         (LEGITIMATE_ADDRESS_DISP): Use LEGITIMATE_ADDRESS_REG.
2786         (REG_OK_FOR_INDEX): Define to REG_OK_FOR_BASE_P.
2787
2788 Tue 26-Sep-2000 00:16:22 BST  Neil Booth  <neilb@earthling.net>
2789
2790         * cpplex.c (parse_args): Don't set VOID_REST flag.
2791         (CONTEXT_VARARGS): New flag.
2792         (maybe_paste_with_next): Set context earlier in loop.  Use
2793         it.  Do varargs test with CONTEXT_VARARGS flag.
2794         (push_arg_context): Set CONTEXT_VARARGS flag if we're
2795         pushing an argument context for a varargs argument.
2796         * cpplib.h (VOID_REST): Delete.
2797         * gcc.dg/cpp/vararg1.c: Add test case.
2798
2799 2000-09-25  Branko Cibej  <branko.cibej@hermes.si>
2800
2801         * flags.h:  Declare warning flag warn_system_headers.
2802         * toplev.c:  Define it.
2803         (W_options): Add option -Wsystem-headers.
2804         * diagnostic.c (count_error): Test warn_system_headers.
2805         * invoke.texi:  Add description for -Wsystem-headers.
2806         * cpplib.h (cpp_options): New member warn_system_headers.
2807         * cpphash.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Don't test
2808         CPP_IN_SYSTEM_HEADER.
2809         * cpplib.c (do_import, do_pragma_once): Likewise.
2810         * cpperror.c (_cpp_begin_message): Test warn_system_headers
2811         and CPP_IN_SYSTEM_HEADER.
2812         * cppinit.c (handle_option): Recognize -Wsystem_headers.
2813         (print_help): Describe -Wsystem_headers.
2814         * cpplex.c (lex_line): Reorganize condition so that warnings
2815         about C++ comments in system headers can be enabled. Remove
2816         label do_line_comment.
2817
2818 Mon 25-Sep-2000 23:38:27 BST  Neil Booth  <neilb@earthling.net>
2819
2820         * cpplex.c (save_comment): Only store the initial '/'
2821         now.
2822         (lex_token): Combine handling of the two comment types.
2823         Pass everything but the initial '/' to save_comment.
2824
2825 Mon 25-Sep-2000 23:31:45 BST  Neil Booth  <neilb@earthling.net>
2826
2827         * cpphash.h (_cpp_digraph_spellings, _cpp_process_directive,
2828         _cpp_can_paste): New library-internal prototypes.
2829         * cpplex.c (dump_param_spelling, output_line_command,
2830         output_token, cpp_scan_buffer, cpp_scan_buffer_nooutput,
2831         cpp_printf, cpp_output_list): Move to cppoutput.c.
2832         (process_directive, can_paste, digraph_spellings): Add _cpp_ prefix.
2833         * cppmacro.c (dump_macro_args, cpp_dump_definition) Move to
2834         cppoutput.c.
2835         * cppoutput.c (dump_macro_args, cpp_dump_definition, output_token,
2836         dump_param_spelling, output_line_command, cpp_scan_buffer,
2837         cpp_scan_buffer_nooutput, cpp_printf, cpp_output_list): Moved
2838         from elsewhere.
2839         * Makefile.in: Add cppoutput.c.
2840         * po/POTFILES.in: Add cppoutput.c.
2841
2842 2000-09-25  Richard Henderson  <rth@cygnus.com>
2843
2844         * config/ia64/ia64.c (ia64_print_operand): Define 'e' as 64-n.
2845         * config/ia64/ia64.md (rotrsi3): Allow variable rotates; don't
2846         split until after reload.
2847         (rotlsi3, rotldi3): New.
2848
2849 2000-09-25  Gabriel Dos Reis  <gdr@codesourcery.com>
2850
2851         * diagnostic.c (output_last_position): Define.
2852         (set_real_maximum_length): Tweek.
2853         * diagnostic.h (output_last_position): Declare.
2854
2855 2000-09-25  Kazu Hirata  <kazu@hxi.com>
2856
2857         * config/i386/i386.c: Fix formatting.
2858
2859 2000-09-24  Alan Lehotsky  <alehotsky@cygnus.com>
2860
2861         * emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when
2862         UNITS_PER_WORD is small.
2863
2864 2000-09-25  Joseph S. Myers  <jsm28@cam.ac.uk>
2865
2866         * c-common.c (format_char_info): Add flags2; update comments.
2867         (print_char_table, scan_char_table, time_char_table): Split some
2868         flags out into flags2.
2869         (check_format_info): Use flags2 for those flags, for identifying
2870         the initial character of a scanf scanset, and for identifying
2871         printf formats where the '0' flag is ignored with precision.
2872
2873 2000-09-25  Hans-Peter Nilsson  <hp@axis.com>
2874
2875         Changes below marked "here" add TABs on either or both sides,
2876         covering start of line, up to any operand for all noted .*ASM.*_OP
2877         definitions.  All callers changed.
2878         * tm.texi: Make documented *_ASM.*_OP:s include spacing
2879         (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, SHARED_SECTION_ASM_OP,
2880         BSS_SECTION_ASM_OP, SHARED_BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
2881         ASM_BYTE_OP, FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
2882         ASM_STABS_OP, ASM_STABD_OP, ASM_STABN_OP).
2883         Fix typos in description for LONG_LONG_TYPE_SIZE and
2884         FINI_SECTION_ASM_OP.
2885         * crtstuff.c (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Explain
2886         why these defaults don't have leading spacing.
2887         * dbxout.c (ASM_STABS_OP, ASM_STABN_OP): Here.
2888         * dwarf2out.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2889         UNALIGNED_DOUBLE_INT_ASM_OP, SECTION_ASM_OP, ASM_BYTE_OP): Here.
2890         * dwarfout.c (FILE_ASM_OP, VERSION_ASM_OP,
2891         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, ASM_BYTE_OP,
2892         PUSHSECTION_ASM_OP, POPSECTION_ASM_OP): Here.
2893         * defaults.h (ASM_STABD_OP, EH_FRAME_SECTION_ASM_OP): Here.
2894         * varasm.c (ASM_STABS_OP): Here.
2895         * xcoffout.h (ASM_STABS_OP): Here.
2896         * config/elfos.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
2897         SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
2898         INT_ASM_OP, ASCII_DATA_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP,
2899         STRING_ASM_OP): Here.
2900         * config/freebsd.h (IDENT_ASM_OP): Here.
2901         * config/linux-aout.h (SET_ASM_OP): Here.
2902         * config/linux.h (SET_ASM_OP): Here.
2903         * config/lynx.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
2904         INT_ASM_OP): Here.
2905         * config/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
2906         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP, ALIGN_ASM_OP): Here.
2907         * config/openbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
2908         * config/psos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
2909         INT_ASM_OP): Here.
2910         * config/ptx4.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
2911         SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
2912         INT_ASM_OP, ASCII_DATA_ASM_OP, CONST_SECTION_ASM_OP,
2913         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
2914         FINI_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP STRING_ASM_OP): Here.
2915         * config/svr3.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
2916         CONST_SECTION_ASM_OP, ASM_BYTE_OP): Here.
2917         * config/a29k/udi.h (INT_ASM_OP): Here.
2918         * config/alpha/alpha-interix.h (CONST_SECTION_ASM_OP,
2919         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
2920         SET_ASM_OP): Here.
2921         * config/alpha/alpha.h (TEXT_SECTION_ASM_OP,
2922         READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2923         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2924         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_STABS_OP, ASM_STABN_OP,
2925         ASM_STABD_OP): Here.
2926         * config/alpha/elf.h (IDENT_ASM_OP, SKIP_ASM_OP, ALIGN_ASM_OP,
2927         COMMON_ASM_OP, INT_ASM_OP, ASCII_DATA_ASM_OP,
2928         CONST_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
2929         BSS_SECTION_ASM_OP, SBSS_SECTION_ASM_OP, SDATA_SECTION_ASM_OP,
2930         INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, TYPE_ASM_OP,
2931         SIZE_ASM_OP, STRING_ASM_OP): Here.
2932         * config/alpha/vms.h (LINK_SECTION_ASM_OP,
2933         READONLY_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP,
2934         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, COMMON_ASM_OP): Here.
2935         * config/arc/arc.h (ASM_BYTE_OP, SET_ASM_OP): Here.
2936         (PUSHSECTION_ASM_OP): Define this, not PUSHSECTION_FORMAT.
2937         * config/arm/aof.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP):
2938         Here.
2939         * config/arm/aout.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2940         BSS_SECTION_ASM_OP, SET_ASM_OP): Here.
2941         * config/arm/coff.h (INT_ASM_OP): Here.
2942         * config/arm/conix-elf.h (UNALIGNED_WORD_ASM_OP): Here.
2943         * config/arm/elf.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP): Here.
2944         * config/arm/linux-elf.h (IDENT_ASM_OP, CONST_SECTION_ASM_OP,
2945         INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Here.
2946         * config/arm/unknown-elf.h (UNALIGNED_WORD_ASM_OP): Here.
2947         * config/avr/avr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2948         ASM_BYTE_OP, TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP,
2949         STRING_ASM_OP): Here.  Update documentation copy in comments.
2950         * config/c4x/c4x.h (ASM_STABS_OP, BSS_SECTION_ASM_OP): Here.
2951         * config/clipper/clipper.h (TEXT_SECTION_ASM_OP,
2952         DATA_SECTION_ASM_OP): Here.
2953         * config/clipper/clix.h (BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP):
2954         Here.
2955         * config/convex/convex.h (TEXT_SECTION_ASM_OP,
2956         DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
2957         * config/d30v/d30v.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2958         BSS_SECTION_ASM_OP): Here.
2959         * config/fr30/fr30.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2960         BSS_SECTION_ASM_OP): Here.
2961         * config/fx80/fx80.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
2962         Here.
2963         * config/gmicro/gmicro.h (TEXT_SECTION_ASM_OP,
2964         DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
2965         * config/h8300/h8300.h (ASM_WORD_OP): Here.
2966         * config/i370/i370.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2967         BSS_SECTION_ASM_OP): Here.
2968         * config/i386/aix386.h (INIT_SECTION_ASM_OP): Here.
2969         * config/i386/bsd.h (ASM_BYTE_OP): Here.
2970         * config/i386/cygwin.h (SET_ASM_OP, INT_ASM_OP): Here.
2971         * config/i386/dgux.h (CONST_SECTION_ASM_OP): Here.
2972         * config/i386/djgpp.h (IDENT_ASM_OP, INT_ASM_OP, SET_ASM_OP):
2973         Here.
2974         * config/i386/freebsd-elf.h (SET_ASM_OP): Here.
2975         * config/i386/freebsd.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP):
2976         Here.
2977         * config/i386/i386-coff.h (CTORS_SECTION_ASM_OP,
2978         DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
2979         * config/i386/i386-interix.h (STRING_ASM_OP, CONST_SECTION_ASM_OP,
2980         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
2981         SET_ASM_OP): Here.
2982         * config/i386/i386elf.h (BSS_SECTION_ASM_OP): Here.
2983         * config/i386/netbsd.h (INT_ASM_OP): Here.
2984         * config/i386/openbsd.h (INT_ASM_OP): Here.
2985         * config/i386/osfrose.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP,
2986         IDENT_ASM_OP): Here.
2987         * config/i386/sco5.h (ALIGN_ASM_OP, ASCII_DATA_ASM_OP,
2988         ASM_BYTE_OP, IDENT_ASM_OP, COMMON_ASM_OP, SET_ASM_OP,
2989         LOCAL_ASM_OP, INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, STRING_ASM_OP,
2990         SKIP_ASM_OP, GLOBAL_ASM_OP): Here.
2991         * config/i386/seq-sysv3.h (SHARED_SECTION_ASM_OP,
2992         SHARED_BSS_SECTION_ASM_OP): Here.
2993         * config/i386/sequent.h (SHARED_SECTION_ASM_OP): Here.
2994         * config/i386/sun386.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
2995         DATA_SECTION_ASM_OP): Here.
2996         * config/i386/svr3gas.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
2997         CONST_SECTION_ASM_OP): Here.
2998         * config/i386/sysv3.h (INIT_SECTION_ASM_OP): Here.
2999         * config/i386/unix.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3000         BSS_SECTION_ASM_OP): Here.
3001         * config/i860/bsd-gas.h (ASCII_DATA_ASM_OP): Here.
3002         * config/i860/bsd.h (ASCII_DATA_ASM_OP): Here.
3003         * config/i860/fx2800.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP,
3004         BSS_ASM_OP): Here, but use trailing spaces.
3005         * config/i860/i860.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
3006         DATA_SECTION_ASM_OP): Here.
3007         * config/i860/paragon.h (ASCII_DATA_ASM_OP, BSS_SECTION_ASM_OP):
3008         Here.
3009         * config/i860/sysv3.h (ASCII_DATA_ASM_OP, CTORS_SECTION_ASM_OP,
3010         DTORS_SECTION_ASM_OP, TDESC_SECTION_ASM_OP): Here.
3011         * config/i860/sysv4.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
3012         TDESC_SECTION_ASM_OP): Here.
3013         * config/i960/i960-coff.h (CTORS_SECTION_ASM_OP,
3014         DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
3015         * config/i960/i960.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3016         Here.
3017         * config/ia64/ia64.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3018         BSS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
3019         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
3020         UNALIGNED_DOUBLE_INT_ASM_OP): Here.
3021         * config/ia64/sysv4.h (ASM_BYTE_OP, STRING_ASM_OP, SKIP_ASM_OP,
3022         COMMON_ASM_OP, ASCII_DATA_ASM_OP, INIT_SECTION_ASM_OP,
3023         FINI_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
3024         SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Here.
3025         * config/m32r/m32r.h (SCOMMON_ASM_OP): Here.
3026         * config/m68hc11/m68hc11.h (GLOBAL_ASM_OP): Here.
3027         * config/m68k/auxas.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
3028         SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
3029         SET_ASM_OP): Here.
3030         * config/m68k/coff.h (BSS_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
3031         DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
3032         * config/m68k/crds.h (BSS_SECTION_ASM_OP): Here.
3033         * config/m68k/dpx2.h (ASM_BYTE_OP, GLOBAL_ASM_OP): Here.
3034         * config/m68k/hp320.h (ASCII_DATA_ASM_OP, GLOBAL_ASM_OP): Here.
3035         * config/m68k/linux.h (BSS_SECTION_ASM_OP): Here.
3036         * config/m68k/lynx.h (BSS_SECTION_ASM_OP): Here.
3037         * config/m68k/m68k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3038         GLOBAL_ASM_OP): Here.
3039         * config/m68k/m68kelf.h (SWBEG_ASM_OP, BSS_ASM_OP,
3040         BSS_SECTION_ASM_OP): Here.
3041         * config/m68k/m68kv4.h (BSS_ASM_OP): Here.
3042         * config/m68k/mot3300.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3043         ASCII_DATA_ASM_OP, SET_ASM_OP, CTORS_SECTION_ASM_OP,
3044         DTORS_SECTION_ASM_OP, GLOBAL_ASM_OP, ASM_BYTE_OP, ALIGN_ASM_OP,
3045         SKIP_ASM_OP): Here.
3046         * config/m68k/newsgas.h (SET_ASM_OP): Here.
3047         * config/m68k/rtemself.h (INIT_SECTION_ASM_OP,
3048         FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
3049         * config/m68k/sgs.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
3050         SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
3051         SET_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here,
3052         but use trailing spaces.
3053         * config/m68k/tower-as.h (TEXT_SECTION_ASM_OP,
3054         DATA_SECTION_ASM_OP, GLOBAL_ASM_OP, INIT_SECTION_ASM_OP,
3055         FINI_SECTION_ASM_OP, CONST_SECTION_ASM_OP, BSS_SECTION_ASM_OP):
3056         Here.
3057         * config/m88k/dgux.h (FINI_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
3058         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
3059         * config/m88k/m88k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3060         CONST_SECTION_ASM_OP, TDESC_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
3061         DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
3062         IDENT_ASM_OP, FILE_ASM_OP, SECTION_ASM_OP, SET_ASM_OP,
3063         GLOBAL_ASM_OP, ALIGN_ASM_OP, SKIP_ASM_OP, COMMON_ASM_OP,
3064         BSS_ASM_OP, FLOAT_ASM_OP, DOUBLE_ASM_OP, INT_ASM_OP, SHORT_ASM_OP,
3065         CHAR_ASM_OP, ASCII_DATA_ASM_OP, SBSS_ASM_OP, SCOMM_ASM_OP,
3066         SDATA_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, INTERNAL_ASM_OP,
3067         VERSION_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
3068         PUSHSECTION_ASM_OP, POPSECTION_ASM_OP, REQUIRES_88110_ASM_OP,
3069         ASM_BYTE_OP): Here.
3070         * config/m88k/openbsd.h (SET_ASM_OP): Here.
3071         * config/m88k/sysv4.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
3072         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
3073         * config/mcore/mcore-elf.h (UNALIGNED_INT_ASM_OP,
3074         UNALIGNED_SHORT_ASM_OP, CTORS_SECTION_ASM_OP,
3075         DTORS_SECTION_ASM_OP): Here.
3076         * config/mcore/mcore-pe.h (CTORS_SECTION_ASM_OP,
3077         DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
3078         * config/mips/elf.h (TYPE_ASM_OP, SIZE_ASM_OP,
3079         BSS_SECTION_ASM_OP): Here.
3080         * config/mips/elf64.h (TYPE_ASM_OP, SIZE_ASM_OP): Here.
3081         * config/mips/iris5.h (ABICALLS_ASM_OP): Here.
3082         * config/mips/iris6.h (TYPE_ASM_OP, SIZE_ASM_OP,
3083         POPSECTION_ASM_OP, BSS_SECTION_ASM_OP, CONST_SECTION_ASM_OP_32,
3084         CONST_SECTION_ASM_OP_64, CTORS_SECTION_ASM_OP,
3085         DTORS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
3086         * config/mips/mips.c (ABICALLS_ASM_OP): Here.
3087         * config/mips/mips.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP):
3088         Here.
3089         * config/mips/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP):
3090         Here.
3091         * config/mips/osfrose.h (SET_ASM_OP): Here.
3092         * config/mips/sni-svr4.h (ABICALLS_ASM_OP): Here.
3093         * config/ns32k/encore.h (SHARED_SECTION_ASM_OP): Here.
3094         * config/ns32k/merlin.h (SHARED_SECTION_ASM_OP): Here.
3095         * config/ns32k/ns32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3096         Here.
3097         * config/ns32k/sequent.h (SHARED_SECTION_ASM_OP): Here.
3098         * config/ns32k/tek6000.h (SHARED_SECTION_ASM_OP): Here.
3099         * config/pa/pa-64.h (INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP): Here.
3100         * config/pa/pa.h (ASM_STABS_OP, ASM_STABN_OP): Here.
3101         * config/pj/pj.h (SET_ASM_OP, BSS_SECTION_ASM_OP): Here.
3102         * config/pyr/pyr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3103         Here.
3104         * config/romp/romp.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3105         Here.
3106         * config/rs6000/rs6000.h (SET_ASM_OP): Here.
3107         * config/rs6000/sol2.h (ASM_STABN_OP): Here.
3108         * config/rs6000/sysv4.h (SKIP_ASM_OP, LOCAL_ASM_OP, LCOMM_ASM_OP):
3109         Here.
3110         * config/sh/sh.h (SET_ASM_OP, BSS_SECTION_ASM_OP,
3111         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here.
3112         * config/sparc/linux.h (COMMON_ASM_OP): Here.
3113         * config/sparc/linux64.h (COMMON_ASM_OP,
3114         UNALIGNED_DOUBLE_INT_ASM_OP): Here.
3115         * config/sparc/litecoff.h (BSS_SECTION_ASM_OP,
3116         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
3117         * config/sparc/lynx.h (BSS_SECTION_ASM_OP): Here.
3118         * config/sparc/pbd.h (ASM_INT_OP): Here.
3119         * config/sparc/sp64-elf.h (UNALIGNED_LONGLONG_ASM_OP): Here.
3120         * config/sparc/sparc.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
3121         DATA_SECTION_ASM_OP, IDENT_ASM_OP): Here.
3122         * config/sparc/sun4gas.h (UNALIGNED_DOUBLE_INT_ASM_OP,
3123         UNALIGNED_INT_ASM_OP, UNALIGNED_SHORT_ASM_OP): Here.
3124         * config/sparc/sysv4.h (STRING_ASM_OP, COMMON_ASM_OP, SKIP_ASM_OP,
3125         UNALIGNED_DOUBLE_INT_ASM_OP, UNALIGNED_INT_ASM_OP,
3126         UNALIGNED_SHORT_ASM_OP, PUSHSECTION_ASM_OP, POPSECTION_ASM_OP,
3127         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
3128         CONST_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
3129         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
3130         EH_FRAME_SECTION_ASM_OP): Here.
3131         * config/sparc/vxsim.h (COMMON_ASM_OP): Here.
3132         * config/spur/spur.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3133         Here.
3134         * config/tahoe/tahoe.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3135         Here.
3136         * config/v850/v850.h (SCOMMON_ASM_OP, ZCOMMON_ASM_OP,
3137         TCOMMON_ASM_OP): Here.
3138         * config/vax/vax.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3139         Here.
3140         * config/we32k/we32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3141         ASM_BYTE_OP): Here.
3142
3143 2000-09-25  Richard Henderson  <rth@cygnus.com>
3144
3145         * expmed.c (store_bit_field): Adjust last change to not consider
3146         any word-sized field naturally aligned.
3147
3148 2000-09-24  Richard Henderson  <rth@cygnus.com>
3149
3150         * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
3151         TFmode unordered compares properly.  Revalidate integer compare
3152         operands.
3153         (alpha_emit_setcc): New.
3154         (alpha_emit_conditional_move): Revalidate integer compare operands.
3155         * config/alpha/alpha-protos.h: Update.
3156         * config/alpha/alpha.md (cmpdi): Allow general operands.
3157         (sne): Use alpha_emit_setcc.
3158         (seq, slt, sle, sgt, sge, sltu, sleu, sgtu, sgeu): Likewise.
3159         (sunordered, sordered): New.
3160
3161 2000-09-24  Richard Henderson  <rth@cygnus.com>
3162
3163         * config/ia64/ia64-protos.h: Update.
3164         * config/ia64/ia64.c (call_multiple_values_operation): Remove.
3165         (ia64_expand_call): New.
3166         (ia64_expand_prologue): Emit an alloc if we need extra input
3167         registers.
3168         (ia64_expand_epilogue): New arg sibcall_p; don't emit the return
3169         instruction if true.
3170         (struct reg_flags): Add is_sibcall.
3171         (rtx_needs_barrier): A sibcall does not use CFM et al.  Ignore USEs.
3172         (emit_insn_group_barriers): Set flags.is_sibcall.  Remove hacks
3173         for CODE_FOR_gr_spill_internal/CODE_FOR_gr_restore_internal.
3174         * config/ia64/ia64.h (PREDICATE_CODES): Update.
3175         * config/ia64/ia64.md (call): Use ia64_expand_call.
3176         (call_value): Likewise.
3177         (sibcall, sibcall_value): New.
3178         (call patterns): Remove extra expanders; tidy.
3179         (sibcall_epilogue): New.
3180         (set_bsp): Remove the extra USE.  Put the operand inside the UNSPEC.
3181
3182 2000-09-24  Richard Henderson  <rth@cygnus.com>
3183
3184         * emit-rtl.c (gen_lowpart_common): Use trunc_int_for_mode.
3185
3186         * sibcall.c (skip_pic_restore): New.
3187         (identify_call_return_value): Use it.
3188
3189 2000-09-24  Mark Mitchell  <mark@codesourcery.com>
3190
3191         * c-tree.texi: Moved here from cp/ir.texi.  Documented nested
3192         functions.  Generalize to handle both C and C++.
3193         * Makefile.in (c-tree.info): New target.
3194         (info): Add c-tree.info.
3195
3196 Sun Sep 24 09:15:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3197
3198         * expr.c (store_field): If BITSIZE is negative, use size of type.
3199         (expand_expr, case COMPONENT_EXPR): Likewise.
3200
3201 Sun 24-Sep-2000 11:40:23 BST  Neil Booth  <NeilB@earthling.net>
3202
3203         * cpplex.c: Update TODO comment.
3204         * cpplib.c (do_error, do_warning): Merge common code of
3205         do_error and do_warning into do_diagnostic.  Use it.
3206         (do_diagnostic): New function.
3207         * cpplib.h: Fix comment typo.
3208
3209 2000-09-24  Joseph S. Myers  <jsm28@cam.ac.uk>
3210
3211         * c-common.c (check_format_info): Warn for a wide character string
3212         used as a non-wide format argument.
3213
3214 2000-09-24  Joseph S. Myers  <jsm28@cam.ac.uk>
3215
3216         * builtins.def (BUILT_IN_LLABS): Add.
3217         * builtins.c (expand_builtin): Also abort on BUILT_IN_LLABS.
3218         * c-common.c (c_common_nodes_builtins): Create builtin functions
3219         __builtin_llabs, and plain llabs unless no_nonansi_builtins
3220         outside of C99 mode.
3221         (expand_tree_builtin): Handle BUILT_IN_LLABS.
3222
3223 Sat 23-Sep-2000 22:39:18 BST  Neil Booth  <NeilB@earthling.net>
3224
3225         * cpphash.h (CPP_RESERVE, CPP_PUTS_Q, CPP_PUTS, CPP_PUTC_Q,
3226         CPP_PUTC, DUMMY_TOKEN, NO_DUMMY_TOKEN): Delete.
3227         * cpplex.c (_cpp_expand_token_space, _cpp_init_toklist,
3228         _cpp_free_toklist): No need to worry about extra dummy token
3229         at the start of token lists any more.
3230         (trigraph_ok): Only warn outside comments.
3231         (skip_block_comment): Set and clear lexing_comment.
3232         (skip_line_comment): Take a cpp_reader not cpp_buffer.
3233         Set and clear lexing_comment.
3234         (parse_number): Handle leading '.' indicated by pfile->seen_dot.
3235         (check_long_token): Delete.
3236         (lex_percent, lex_dot): New subroutines of lex_token to
3237         handle lexing of '.' and '%' without lookback.
3238         (lex_token): Use lex_dot and lex_percent.
3239         (lex_line): Don't check for LIST_OFFSET.
3240         (_cpp_init_input_buffer): Update for new _cpp_init_toklist.
3241         * cpplib.c (_cpp_parse_assertion): Similarly.
3242         (cpp_push_buffer): Initialize extra_char.
3243         * cpplib.h (LIST_OFFSET): Delete.
3244         (struct cpp_buffer): New member extra_char.
3245         (struct lexer_state): New members lexing_comment and seen_dot.
3246
3247 2000-09-23  Jason Merrill  <jason@redhat.com>
3248
3249         * config/rs6000/x-aix41 (CLIB): Define here.
3250         * config/rs6000/t-aix43: Not here.
3251         * config/rs6000/t-aix41: Or here.  Remove.
3252         * configure.in: Don't use it.
3253
3254 2000-09-22  Jason Merrill  <jason@redhat.com>
3255
3256         * configure.in: Add test for HAVE_LD_DWARF_LINKONCE.
3257         * toplev.c: Use it to initialize flag_eliminate_dwarf2dups.
3258         * config.in: Regenerate.
3259
3260         * configure.in: Fix checks for assembler features when using a
3261         one-tree assembler that has not yet been built.
3262         Fix --disable-threads.
3263
3264 2000-09-19  Geoff Keating  <geoffk@cygnus.com>
3265
3266         * stmt.c (expand_asm_operands): Allow # in constraints.
3267
3268 2000-09-22  Jason Merrill  <jason@redhat.com>
3269
3270         * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
3271
3272         * dbxout.c (dbxout_symbol_name): Just use DECL_NAME for
3273         function-local names.
3274
3275 2000-09-22  Brad Lucier <lucier@math.purdue.edu>
3276             Mark Mitchell  <mark@codesourcery.com>
3277
3278         * toplev.c (warn_disabled_optimization): Declare new warning flag.
3279         * flags.h (warn_disabled_optimization): Add it here.
3280         * gcse.c (gcse_main): Add warning when disabled.
3281         * invoke.texi: Document -Wdisabled-optimization.
3282
3283 2000-09-21  Jason Merrill  <jason@redhat.com>
3284
3285         * dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.
3286
3287         * dwarf2out.c (tree_add_const_value_attribute): New fn.
3288         (gen_variable_die): Call it for non-definitions.
3289
3290         * dwarf2out.c (die_struct): Add die_mark field.
3291         (mark_dies, unmark_dies): New fns.
3292         (clear_die_sizes): Remove.
3293         (print_die): Check die_symbol rather than die_offset.
3294         (build_abbrev_table, output_pubnames, output_aranges): Check
3295         die_mark rather than die_offset.
3296         (output_comp_unit): Move calc_die_sizes after build_abbrev_table.
3297         Call mark_dies.
3298
3299 Thu 21-Sep-2000 18:19:05 BST  Neil Booth  <NeilB@earthling.net>
3300
3301         * cppfiles.c (lookup_include_file): Rename to open_file.
3302         Always create a splay tree value, even on syscall failures.
3303         Negative entries indicated by fd == -2.
3304         Re-open files closed in the meantime.
3305         (_cpp_fake_include): Create a negative splay tree entry.
3306         (find_include_file, cpp_read_file): Update for function name
3307         change.
3308         * gcc.gd/cpp/mi4.c: Testcase.
3309
3310 2000-09-21  Nick Clifton  <nickc@redhat.com>
3311
3312         * config/arm/t-arm-elf (MULTILIB_DIRNAMES): Enable multilibs for
3313         ARM and THUMB modes.
3314
3315         * config/mcore/mcore.c: Fix compile time warnings.
3316         * config/mcore/mcore-protos.h: Fix compile time warnings.
3317
3318 2000-09-20  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
3319
3320         * configure.in: Correct test of gcc_cv_glibc.
3321         * configure: Rebuilt.
3322         * config.in: Rebuilt.
3323
3324 2000-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3325
3326         * builtins.c (expand_builtin_fputs): Also expand when length!=1.
3327         (expand_builtin): Handle BUILT_IN_FWRITE.
3328
3329         * builtins.def (BUILT_IN_FWRITE): New entry.
3330
3331         * c-common.c (c_common_nodes_and_builtins): Declare __builtin_fwrite.
3332
3333 Wed Sep 20 15:39:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3334
3335         * gcc.c (modify_target): New variable and struct.
3336         (process_command): Handle MODIFY_TARGET_NAME.
3337         * tm.texi (MODIFY_TARGET_NAME): Add documentation for new macro.
3338         * config/pa/pa.h (MODIFY_TARGET_NAME): New macro.
3339
3340         * c-decl.c (finish_decl): Add else's to avoid referencing
3341         TYPE_DOMAIN of an ERROR_MARK.
3342
3343 Wed Sep 20 21:44:31 2000  Denis Chertykov  <denisc@overta.ru>
3344
3345         * config/avr/avr.c (adjust_insn_length): Adjust lengths of
3346         `reload_in*' insns.
3347
3348 2000-09-19  Marek Michalkiewicz  <marekm@linux.org.pl>
3349
3350         * config/avr/avr.md (neghi2): Add alternative for input and output
3351         operands in different registers, as in negsi2.
3352         (*negsi2): Remove '*' from the name.  Use "movw" if available.
3353
3354 2000-09-19  Jim Wilson  <wilson@cygnus.com>
3355
3356         * config/ia64/crtbegin.asm (__dso_handle): Delete use of
3357         HAVE_GAS_HIDDEN macro.
3358
3359 Tue 19-Sep-2000 22:38:57 BST  Neil Booth  <NeilB@earthling.net>
3360
3361         * cpplex.c (lex_line): Drop the EOF token for unknown
3362         directives in assembler.
3363
3364 2000-09-19  David Edelsohn  <edelsohn@gnu.org>
3365
3366         * configure.in: Allow enable_threads_flag value of "aix".  Define
3367         thread_file as "aix" for AIX 4.3 and above.
3368         * configure: Regenerated.
3369
3370         * gthr-aix.h: New file.
3371
3372         * rs6000/t-aix43: Replace soft-float multilib with pthread.
3373         Remove 403 processor multilib match.  Fix rios2 processor multilib
3374         match.
3375
3376         * rs6000/aix.h (ASM_DECLARE_FUNCTION_NAME): Use function_section
3377         to return to appropriate csect.
3378
3379 2000-09-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3380
3381         * builtins.c (is_valid_printf_arglist, expand_builtin_printf): New
3382         functions.
3383         (expand_builtin_fputs): Set `target' parameter for `expand_expr'.
3384         (expand_builtin): Handle BUILT_IN_PUTCHAR, BUILT_IN_PUTS and
3385         BUILT_IN_PRINTF.
3386
3387         * builtins.def (BUILT_IN_PUTCHAR, BUILT_IN_PUTS, BUILT_IN_PRINTF):
3388         New entries.
3389
3390         * c-common.c (init_function_format_info): Handle __builtin_printf.
3391         Set `check_function_format_ptr'.
3392         (c_common_nodes_and_builtins): Set `puts_ftype' and
3393         `printf_ftype'.  Declare __builtin_putchar, __builtin_puts,
3394         __builtin_printf and printf.
3395
3396         * tree.c, tree.h (check_function_format_ptr): Declare.
3397
3398 Tue 19-Sep-2000 18:26:57 BST  Neil Booth  <NeilB@earthling.net>
3399
3400         * cppfiles.c (read_include_file): Take no special action for
3401         zero-length files.
3402
3403 2000-09-19  Bernd Schmidt  <bernds@redhat.co.uk>
3404
3405         * final.c (insn_current_reference_address): Use INSN_SHUID of seq
3406         rather than that of branch.
3407         (shorten_branches): Don't increment insn_current_address twice.
3408
3409         Undo most of the Wed Jan 27 23:39:53 1999 patch:
3410         * loop.h (struct induction): Delete members derived, ix and last_use.
3411         (struct loop_ivs): Delete members first_increment_giv and
3412         last_increment_giv.
3413         * loop.c (verify_dominator, find_life_end, cmp_recombine_givs_stats,
3414         recombine_givs): Delete functions.
3415         (find_and_verify_loops): Don't initialize cont_dominator.
3416         (strength_reduce): Lose code to try to find bivs that can be
3417         expressed as givs of another biv, and to convert biv increments
3418         into givs.
3419         Lose loop_scan_start variable, always use loop->scan_start.
3420         Don't call recombine_givs.  Don't handle derived givs.
3421         (record_giv): Don't initialize derived and last_use fields.
3422         (biv_eliminiation_giv_has_0_offset): Lose code to handle derived
3423         givs.
3424         * unroll.c (derived_regs): Delete static variable.
3425         (unroll_loop): Don't initialize it.
3426         (copy_loop_body): Lose code to handle derived givs.
3427         (find_splittable_givs): Don't check for givs made from biv
3428         increments.
3429         Don't set derived_regs.
3430
3431         Fix misapplied earlier patch:
3432         * config/sh/sh.md (floatsisf_ie): Reenable.  Remove explicit reference
3433         to fpul.
3434         (floatsisf2): Generate floatsisf_ie by default.
3435         (floatsisf_i4): Conditional on TARGET_SH4.
3436
3437         (floatsisf2, floatsidf2, extendsfdf2): Also use reg_no_subreg_operand
3438         predicate for the expanders.
3439
3440 2000-09-19  Richard Henderson  <rth@cygnus.com>
3441
3442         * config/i386/i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols
3443         in addition to pentium and pentiumpro symbols.
3444         (CPP_CPU_DEFAULT_SPEC): Likewise.
3445
3446         * c-typeck.c (c_expand_asm_operands): Restore the output tree
3447         after expanding.
3448
3449         * stmt.c (expand_expr_stmt): Only call warn_if_unused_value
3450         if the tree has side effects.
3451         (warn_if_unused_value): Do not warn about void constructs.
3452
3453         * c-decl.c (poplevel): Invoke warn_about_unused_variables.
3454
3455         * unroll.c (copy_loop_body): Update LABEL_NUSES before
3456         calling invert_jump.
3457
3458 2000-09-18  Geoff Keating  <geoffk@cygnus.com>
3459
3460         * combine.c (can_combine_p): Don't substitute an ASM_OPERANDS
3461         into anything.
3462
3463 2000-09-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3464
3465         * Makefile.in (c-common.o): Depend on diagnostic.h.
3466
3467         * c-common.c: Include diagnostic.h.
3468         (tfaff): Delete.
3469         (status_warning): New function.
3470         (check_format_info, maybe_read_dollar_number, check_format_types,
3471         finish_dollar_format_checking, check_function_format): Accept a
3472         `status' parameter.  All callers changed.
3473
3474         * c-common.h (check_function_format): Accept a `status' parameter.
3475
3476         * c-typeck.c: Update call to `check_function_format'.
3477
3478 2000-09-18  Richard Henderson  <rth@cygnus.com>
3479
3480         * c-decl.c (c_expand_body): Call mark_varargs before
3481         expand_function_start.
3482
3483 2000-09-18  Geoff Keating  <geoffk@cygnus.com>
3484
3485         * config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #.
3486         * config/rs6000/eabi-ci.asm: Likewise.
3487
3488 2000-09-18  Richard Henderson  <rth@cygnus.com>
3489
3490         * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx
3491         for BImode.
3492
3493 2000-09-18  Jim Wilson  <wilson@cygnus.com>
3494
3495         * unroll.c (loop_iterations): Pass increment to extend_for_giv_value
3496         before passing it to fold_rtx_mult_add.
3497
3498         * unroll.c (final_giv_value): Pass increment through
3499         extend_value_for_giv before passing it to emit_iv_add_mult.
3500
3501         * function.c (fixup_var_refs_1, case ZERO_EXTRACT): If we have a
3502         paradoxical subreg, then directly substitute the replacement and
3503         return.
3504
3505 Mon 18-Sep-2000 22:12:44 BST  Neil Booth  <NeilB@earthling.net>
3506
3507         * cpp.texi: Update documentation, including some clarifications,
3508         the treatment of various newline combinations, and space between
3509         backslash and newline.
3510
3511 Mon Sep 18 21:00:47 2000  J"orn Rennecke <amylaar@redhat.co.uk>
3512
3513         * sdbout.c (PUT_SDB_DEF, PUT_SDB_TAG, PUT_SDB_EPILOGUE_END):
3514         Replace ASM_OUTPUT_LABELREF with assemble_name.
3515
3516 Mon Sep 18 20:26:50 2000  J"orn Rennecke <amylaar@redhat.co.uk>
3517
3518         * sh.c (addsubcosts): CONST is not cheap.
3519         (find_barrier): For Sh1, take alignment after jumps into account.
3520
3521 2000-09-15  Andrew Haley  <aph@redhat.com>
3522
3523         * toplev.c (rest_of_compilation): Call purge_hard_subreg_sets to
3524         remove all SETs of SUBREGs of hard registers.
3525         * function.c (purge_hard_subreg_sets): New function.
3526         (purge_single_hard_subreg_set): New function.
3527         * rtl.h: (purge_hard_subreg_sets): New function.
3528
3529 2000-09-18  Richard Henderson  <rth@cygnus.com>
3530
3531         * config/ia64/ia64-protos.h: Update.
3532         * config/ia64/ia64.c (signed_inequality_operator): New.
3533         (ia64_expand_compare): New.
3534         (ia64_register_move_cost): Handle PR_REGS moves.
3535         (ia64_secondary_reload_class): Require a GR when moving to a PR.
3536         (struct reg_write_state): Add written_by_and/or.
3537         (struct reg_flags): Add is_and/or.
3538         (rws_update): Set them.
3539         (rws_access_regno): Test them to allow parallel comparisons.
3540         (rtx_needs_barrier): Recognize parallel comparisons.
3541         (emit_insn_group_barriers): Set prev_insn after a call stop bit.
3542         Call recog_memoized; ignore pred_rel_mutex.
3543         (emit_predicate_relation_info): Don't call find_basic_blocks here.
3544         (ia64_reorg): Do it here instead.
3545         * config/ia64/ia64.h: s/CCmode/BImode/g
3546         (MODES_TIEABLE_P): Don't tie BImode.
3547         (PREFERRED_RELOAD_CLASS): Do not reload operations into AR regs.
3548         (CONST_COSTS): Pick sensible values for CONST_INT based on context.
3549         (RTX_COSTS): Make multiply 4 insns.
3550         (MEMORY_MOVE_COST): New.
3551         (PREDICATE_CODES): Update.
3552         * config/ia64/ia64.md: s/CCmode/BImode/g
3553         (movcci, movbi): New.
3554         (andbi3, andcmbi3, iorbi3, iorcmbi3, one_cmplbi2): New.
3555         (cmpsi_and_0, cmpsi_and_1, cmpsi_andnot_0, cmpsi_andnot_1): New.
3556         (cmpdi_and_0, cmpdi_and_1, cmpdi_andnot_0, cmpdi_andnot_1): New.
3557         (tbit_and_0, tbit_and_1, tbit_and_2, tbit_and_3): New.
3558         (cmpsi_or_0, cmpsi_or_1, cmpsi_orcm_0, cmpsi_orcm_1): New.
3559         (cmpdi_or_0, cmpdi_or_1, cmpdi_orcm_0, cmpdi_orcm_1): New.
3560         (tbit_or_0, tbit_or_1, tbit_or_2, tbit_or_3): New.
3561         (mulsi, muldi): Use xmpy not xma.
3562         (cmpbi): New.
3563         (movcc, movcc_internal): Remove.
3564         (branch expanders): Use ia64_expand_compare.
3565         (setcc expanders): Likewise.
3566         (cmov insns): Use move_operand and ia64_move_ok.
3567         (pred_rel_mutex): Use unspec not unspec_volatile.  Prevent the
3568         scheduler from moving it past a use.
3569         * config/ia64/build.hacks: Remove.
3570
3571 Mon 18-Sep-2000 19:21:35 BST  Neil Booth  <NeilB@earthling.net>
3572
3573         * cpphash.h (HASHSTEP): Take character rather than pointer
3574         to character.
3575         (_cpp_check_directive, _cpp_check_linemarker): Update prototypes.
3576
3577         * cpphash.c (cpp_loookup): Update for new HASHSTEP.
3578
3579         * cpplex.c (auto_expand_name_space, trigraph_replace,
3580         backslash_start, handle_newline, parse_name, INIT_TOKEN_STR,
3581         IMMED_TOKEN, PREV_TOKEN_TYPE, PUSH_TOKEN, REVISE_TOKEN,
3582         BACKUP_TOKEN, BACKUP_TRIGRAPH, MIGHT_BE_DIRECTIVE,
3583         KNOWN_DIRECTIVE): Delete.
3584
3585         (handle_newline, check_long_token, skip_escaped_newlines,
3586         unterminated): New functions.
3587         (ACCEPT_CHAR, SAVE_STATE, RESTORE_STATE): New macros.
3588
3589         (parse_identifier): Was parse_name, new implementation.
3590         (skip_line_comment, skip_block_comment, skip_whitespace,
3591         parse_number, parse_string, trigraph_ok, save_comment,
3592         adjust_column, _cpp_get_line): New implementations.
3593
3594         (lex_token): New function.  Lexes a token at a time, looking
3595         forwards.  Contains most of the guts of the old lex_line.
3596         (lex_line): New implementation, using lex_token to obtain
3597         individual tokens.
3598         (cpp_scan_buffer): Use the token's line, not the list's line.
3599
3600         * cpplib.c (_cpp_check_directive, _cpp_check_linemarker):
3601          New implementations.
3602         (do_assert): Don't bother setting the answer's list's line.
3603         (cpp_push_buffer): Initialise new pfile and read_ahead members
3604         of struct cpp_buffer.
3605
3606         * cpplib.h (cppchar_t): New typedef.
3607         (struct cpp_buffer): read_ahead, pfile and col_adjust are
3608         new members.
3609         (struct lexer_state): New structure that determines the state
3610         and behaviour of the lexer.
3611         (IN_DIRECTIVE, KNOWN_DIRECTIVE): New macros.
3612         (struct cpp_reader): New member "state". Rename
3613         multiline_string_line and multiline_string_column. Delete
3614         col_adjust, in_lex_line members.
3615         (CPP_BUF_COLUMN): Update.
3616
3617 2000-09-18  Richard Henderson  <rth@cygnus.com>
3618
3619         * combine.c (simplify_comparison): Shift a NOT out of a single
3620         bit test.
3621
3622         * combine.c (if_then_else_cond): Canonicalize BImode true to
3623         STORE_FLAG_VALUE.
3624         * explow.c (trunc_int_for_mode): Likewise.
3625
3626         * combine.c (combine_simplify_rtx): Use gen_unary to distribute
3627         the NOT for De Morgan's rule.
3628         * simplify-rtx.c (simplify_unary_operation): Simplify a BImode NOT
3629         of a comparison to the reverse comparison.
3630
3631         * combine.c (try_combine): Allow split to create a single insn.
3632
3633         * machmode.def: Add BImode.  Add a column for bitsize.
3634         * machmode.h (DEF_MACHMODE): Adjust for extra column.
3635         (GET_MODE_BITSIZE): Use it.
3636         * rtl.c (DEF_MACHMODE): Adjust for extra column.
3637         (mode_bitsize): New.
3638         (mode_mask_array): Use bitsize.
3639         * combine.c (combine_simplify_rtx): Require inner and outer
3640         modes to match on nonzero_bits optimizations.
3641
3642 2000-09-18  Bernd Schmidt  <bernds@redhat.co.uk>
3643
3644         * reload1.c (forget_old_reloads_1): If a hard reg is stored, clear
3645         its entry in spill_reg_store.
3646         * config/sh/lib1funcs.ams (movstr_i4 functions): Always compile in.
3647         * sh.c (reg_no_subreg_operand): New function.
3648         * sh-protos.h (reg_no_subreg_operand): Declare it.
3649         * sh.h (PREDICATE_CODES): Add it.
3650         * sh.md (floatsisf2_i4, floatsidf2_i, extendsfdf2_i4): Use it for
3651         input operand that needs to be in fpul.
3652         (fix_truncsfsi2, fix_truncsfsi2_i4): Use register_operand for output.
3653         * sh.c (find_barrier): Take into account that machine_dependent_reorg
3654         might add new insns.
3655
3656 2000-09-18  Alexandre Oliva  <aoliva@redhat.com>
3657
3658         * config/sh/sh.c (sh_expand_prologue): Mark GOTaddr2picreg as
3659         MAYBE_DEAD.
3660         (sh_expand_epilogue): Take the PIC register into account when
3661         computing the frame size.
3662
3663         * config/sh/sh.c (nonpic_symbol_mentioned_p): Check LABEL_REFs.
3664         * config/sh/sh.md (sym_label2reg, symPLT_label2reg): Protect
3665         LABEL_REFs with a PIC-safe unspec.
3666
3667 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
3668
3669         * c-common.c (check_format_info): Properly save the argument
3670         number and parameter for $ operand number formats in case width
3671         and precision arguments are also used.  Allow printf width and
3672         precision arguments to have operand numbers even if none was
3673         specified for the main format, since this is OK for %*.*m.  Only
3674         object to missing $ operand number if the format used requires an
3675         argument.
3676
3677 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
3678
3679         * c-common.c (format_char_info): Add 'W' flag to comment.
3680         (print_char_table, scan_char_table): Use it.
3681         (check_format_info): Use the 'W' flag to determine whether a
3682         format argument is written into.
3683
3684 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
3685
3686         * c-common.c (check_format_types): Reorganise and clean up,
3687         checking earlier for ERROR_MARKs and making cur_type into its
3688         TYPE_MAIN_VARIANT where convenient.
3689
3690 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
3691
3692         * gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
3693
3694 2000-09-18  Bernd Schmidt  <bernds@redhat.co.uk>
3695
3696         * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call.
3697
3698         * i386-protos.h (ix86_init_builtins, ix86_expand_builtin): Declare.
3699         * i386.c (struct builtin_description): New.
3700         (bdesc_comi, bdesc_2arg, bdesc_1arg): New arrays.
3701         (mmx_reg_operand): Declare MODE arg as unused.
3702         (ix86_expand_sse_comi, ix86_expand_sse_compare, safe_vector_operand,
3703         ix86_expand_unop1_builtin, ix86_expand_unop_builtin,
3704         ix86_expand_binop_builtin, ix86_expand_store_builtin,
3705         ix86_init_builtins, ix86_expand_builtin): New functions.
3706         * i386.h (ix86_builtins): New enumeration.
3707         (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): New macros.
3708         * i386.md (attr length_immediate): 0 for mmx/sse types.
3709         (attr prefix_0f): 1 for mmx/sse types.
3710         (setcc_2): Remove "*" so we get gen_setcc_2.
3711         (emms): Account for changed register numbering.  Set "memory" attr
3712         to unknown.
3713         (sfence): Set "memory" attr to unknown.
3714
3715 2000-09-18  Andreas Jaeger  <aj@suse.de>
3716
3717         * configure.in: Define _GNU_SOURCE only when using the GNU C
3718         Library.
3719         * configure: Regenerated.
3720         * config.in: Regenerated.
3721
3722 2000-09-17  Mark Mitchell  <mark@codesourcery.com>
3723
3724         * cppinit.c (cpp_init): Don't use ANSI prototypes.
3725         * flow.c (flow_dump_loop): Likewise.
3726         (flow_loops_dump): Likewise.
3727
3728         * c-typeck.c (c_start_case): Fix typo.
3729
3730 2000-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
3731
3732         * c-decl.c (grokdeclarator): Don't give a warning about defaulting
3733         to int for plain complex which defaults to complex double.  Do
3734         warn about defaulting to complex double if pedantic.  Warn about
3735         complex integer types if pedantic.  Warn about complex types if
3736         pedantic and not in C99 mode.
3737         * c-typeck.c (build_unary_op): If pedantic, warn about use of ~
3738         for complex conjugation.
3739
3740 2000-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
3741
3742         * contrib.texi: Update my entry.
3743
3744 Sun Sep 17 18:48:32 2000  Denis Chertykov  <denisc@overta.ru>
3745
3746         * config/avr/avr.md (mcu_enhanced): New attribute.
3747         (mcu_mega): Likewise.
3748         (extendhisi2): Use mcu_enhanced.
3749         (zero_extendhisi2): Likewise.
3750         (call_insn): Use mcu_enhanced and mcu_mega.
3751         (call_value_insn): Likewise.
3752         (*sbrx_branch): Use mcu_mega.
3753         (*sbrx_and_branchsi): Likewise.
3754         (*sbrx_and_branchhi): Likewise.
3755         (*tablejump_lib): Likewise.
3756
3757 Sun Sep 17 10:46:17 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3758
3759         * alias.c (true_dependence): Allow non-unchanging read to conflict
3760         with unchanging write.
3761
3762         * expr.c (store_constructor_field): Accept ALIAS_SET arg.
3763         (store_constructor): Pass alias_set to it.
3764
3765         * c-decl.c (grokdeclarator): Reorder tests to avoid looking at
3766         TYPE_MAIN_VARIANT of ERROR_MARK.
3767         * c-lex.c (readescape): Avoid using printf syntax we don't recognize.
3768
3769         * simplify-rtx.c (simplify_unary_operation): Add cases
3770         FLOAT_EXTEND and FLOAT_TRUNCATE to ones that return 0.
3771
3772 2000-09-17  Bernd Schmidt  <bernds@redhat.co.uk>
3773
3774         * expr.h (emit_library_call, emit_library_call_value): Delete
3775         declarations.
3776         * rtl.h (enum libcall_type): New.
3777         (emit_library_call, emit_library_call_value): Change fn_type arg to
3778         be of type enum libcall_type.
3779         * calls.c: Likewise for the function definitions.  Several callers
3780         throughout changed to use the new enumeration appropriately.
3781         (emit_library_call_value_1): Likewise.  Put back code to make libcall
3782         blocks of equal form, but only use it for the two new higher
3783         enumeration values.
3784
3785 2000-09-16  Mark Mitchell  <mark@codesourcery.com>
3786
3787         Convert the C front-end to use function-at-a-time mode.
3788         * c-common.h: Include splay-tree.h.
3789         (C_DECLARED_LABEL_FLAG): New macro.
3790         (struct language_function): Add x_scope_stmt_stack and
3791         x_function_name_declared_p.
3792         (RECHAIN_STMTS): Move definition.
3793         (lang_statment_code_p): Likewise.
3794         (lang_expand_stmt): Likewise.
3795         (lang_expand_decl_stmt): New variable.
3796         (lang_expand_function_end): Likewise.
3797         (current_scope_stmt_stack): New function.
3798         (add_decl_stmt): Likewise.
3799         (add_scope_stmt): Likewise.
3800         (mark_stmt_tree): Likewise.
3801         (struct c_lang_decl): New structure.
3802         (DECL_SAVED_TREE): Define.
3803         (c_mark_lang_decl): New function.
3804         (c_expand_start_cond): Change prototype.
3805         (c_finish_then): New function.
3806         (c_finish_else): Likewise.
3807         (current_function_name_declared): Remove.
3808         (set_current_function_name_declared): Likewise.
3809         (mark_c_language_function): Declare.
3810         (case_compare): Likewise.
3811         (c_add_case_label): Likewise.
3812         (c_expand_expr): Likewise.
3813         (c_safe_from_p): Likewise.
3814         * c-common.c (lang_expand_function_end): New variable.
3815         (struct if_elt): Add if_stmt.
3816         (c_expand_start_cond): Add the if-statement to the statement-tree,
3817         rather than generating RTL.
3818         (c_finish_then): New function.
3819         (c_expand_start_else): Don't generate RTL.
3820         (c_finish_else): New function.
3821         (c_expand_expr_stmt): Don't generate RTL.
3822         (statement_code_p): Add SCOPE_STMT.
3823         (case_compare): New function.
3824         (c_add_case_label): Likewise.
3825         (mark_stmt_tree): Likewise.
3826         (c_mark_lang_decl): Likewise.
3827         (mark_c_language_function): Likewise.
3828         (c_expand_expr): Likewise.
3829         (c_safe_from_p): Likewise.
3830         * c-decl.c (c_stmt_tree): New variable
3831         (c_scope_stmt_stack): Likewise.
3832         (c_function_name_declared_p): Likewise.
3833         (lang_expand_expr_stmt): Remove.
3834         (poplevel): Don't call output_inline_function for nested
3835         functions.
3836         (pushdecl): Don't set DECL_CONTEXT for a local declaration of an
3837         `extern' function.
3838         (redeclaration_error_message): Change means of computing whether
3839         or not a function is nested.
3840         (lookup_label): Don't call label_rtx.
3841         (init_decl_processing): Add more GC roots.
3842         (start_decl): Add DECL_STMTs to the statement-tree, rather than
3843         calling rest_of_decl_compilation.
3844         (finish_decl): Don't call expand_decl.
3845         (store_parm_decls): Begin the statement-tree, but don't generate
3846         RTL.
3847         (finish_function): Tie off the statement-tree.  Call c_expand_body
3848         if appropriate.
3849         (c_expand_body): New function.
3850         (push_c_function_context): Save more information.
3851         (pop_c_function_contxt): Likewise.
3852         (copy_lang_decl): Now that we use DECL_LANG_SPECIFIC, copy it.
3853         (lang_mark_tree): Mark it.
3854         (current_stmt_tree): Adjust.
3855         (current_scope_stmt_stack): New function.
3856         (do_case): Remove.
3857         (set_current_name_declared): Likewise.
3858         (c_begin_compound_stmt): Define.
3859         (c_expand_decl_stmt): Likewise.
3860         * c-lang.c: Include rtl.h and expr.h.
3861         (lang_init): Set more language-specific hooks.
3862         * c-lex.c: Include expr.h.
3863         * c-parse.in: Changes throughout to add statements to the
3864         statement-tree, rather than generating RTL after every statement.
3865         * c-semantics.c (lang_expand_decl_stmt): Define.
3866         (add_decl_stmt): New function.
3867         (add_scope_stmt): Likewise.
3868         (finish_stmt_tree): Tweak.
3869         (genrtl_expr_stmt): Likewise.
3870         (genrtl_decl_stmt): Handle local labels, and call
3871         lang_expand_decl_stmt if required.
3872         (genrtl_for_stmt): Fix line-number handling.
3873         (genrtl_case_label): Handle cleanups.
3874         (genrtl_asm_stmt): Don't call combine_strings.
3875         (genrtl_compound_stmt): Simplify.
3876         (expand_stmt): Handle SCOPE_STMTs.
3877         * c-tree.h (struct lang_decl): New structure.
3878         (C_DECLARED_LABEL_FLAG): Remove.
3879         (c_begin_compound_stmt): Declare.
3880         (c_expand_decl_stmt): Likewise.
3881         (c_expand_start_case): Rename to c_start_case.
3882         (c_finish_case): New function.
3883         * c-typeck.c (start_init): Tweak setting of
3884         constructor_incremental.
3885         (c_expand_asm_operands): Tweak error-handling.  Add to the
3886         statement-tree.
3887         (c_expand_return): Add to the statement-tree.
3888         (c_expand_start_case): Rename to ...
3889         (c_start_case): ... this.
3890         (struct c_switch): New type.
3891         (switch_stack): New variable.
3892         (do_case): Simplify.
3893         (c_finish_case): New function.
3894         * dependence.c: Include expr.h.
3895         (enum dependence_type): Change spelling of enumerals.
3896         (check_node_dependence): Adjust.
3897         * expr.h (lang_safe_from_p): Declare.
3898         (safe_from_p): Likewise.
3899         * expr.c (lang_safe_from_p): New variable.
3900         (safe_from_p): Give it external linkage.  Use lang_safe_from_p.
3901         * stmt.c (expand_expr_stmt): Avoid clobberring of last_expr_type.
3902         * toplev.c (rest_of_decl_compilation): Robustify.
3903         * tree.c (contains_placeholder_p): Likewise.
3904         * Makefile.in: Update dependencies.
3905         * objc/objc-act.h: Adjust calculation of value for dummy_tree_code.
3906         * objc/objc-act.c: Include rtl.h, expr.h, and c-common.h.
3907         (objc_expand_function_end): New function.
3908         (finish_method_def): Use it.
3909         (init_objc): Initialize more language-specific hooks.
3910         * objc/Make-lang.in: Update dependencies.
3911
3912 2000-09-16  Geoffrey Keating  <geoffk@cygnus.com>
3913
3914         * configure.in: Define macros that affect features before
3915         testing for features.  Don't define _XOPEN_SOURCE.
3916         * configure: Regenerated.
3917         * config.in: Regenerated.
3918
3919 Sat Sep 16 19:42:50 EDT 2000  John Wehle  (john@feith.com)
3920
3921         * rtlanal.c (rtx_varies_p): Volatile asms vary.
3922         (rtx_unstable_p): Restructure code.  Volatile asms
3923         are unstable.
3924
3925 Sat Sep 16 14:35:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3926
3927         * function.h (no_debugging_symbols): New field.
3928         * integrate.c (save_for_inline): Renamed from save_for_inline_nocopy.
3929         Initialize no_debugging_symbols.
3930         (output_inline_function): Save and restore write_symbols and set from
3931         no_debugging_symbols.
3932         * toplev.c (rest_of_compilation): Call save_for_inline.
3933         * tree.h: Update comment.
3934
3935         * stor-layout.c (place_field): Don't do anything if field or
3936         its type are ERROR_MARK.
3937
3938 Sat Sep 16 19:14:00 2000  Laurynas Biveinis <lauras@softhome.net>
3939
3940         * cppfiles.c (purge_cache): Use munmap only if MMAP_THRESHOLD defined.
3941         (read_include_file): Ensure inc->mmaped is initialized.
3942
3943 2000-09-16  Richard Henderson  <rth@cygnus.com>
3944
3945         * cppiles.c (purge_cache): Use PTR not caddr_t.
3946
3947 2000-09-16  Hans-Peter Nilsson  <hp@axis.com>
3948
3949         * gcc.c: In description for %{<S}, say the option removed is -S.
3950         * invoke.texi (Spec Files): Ditto.
3951
3952 2000-09-16  Andreas Jaeger  <aj@suse.de>
3953
3954         * configure.in: Always define _GNU_SOURCE to make interfaces
3955         visible that were hidden by only defining _GNU_SOURCE.
3956         * configure: Regenerated.
3957
3958 Sat 16-Sep-2000 08:13:45 BST  Neil Booth  <NeilB@earthling.net>
3959
3960         * cpplex.c (push_macro_context): Set an argument's level after
3961         calling parse_args.  We could loop infinitely otherwise.
3962
3963 2000-09-15  Tom Tromey  <tromey@cygnus.com>
3964
3965         * configure, config.in: Rebuilt.
3966         * configure.in: Check for iconv.h.  Define _XOPEN_SOURCE.
3967
3968 2000-09-15  Greg McGary  <greg@mcgary.org>
3969
3970         * cppmacro.c (check_trad_stringification): Check token
3971         text pointers against limit before dereferencing.
3972
3973 2000-09-15  Joseph S. Myers  <jsm28@cam.ac.uk>
3974
3975         * c-common.c (format_wanted_type): New structure.
3976         (check_format_types): New function.
3977         (check_format_info): Pass all checking of types of format
3978         arguments, including width and precision arguments, to this new
3979         function.
3980
3981 2000-09-15  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3982
3983         * BUGS: Remove file.
3984
3985 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
3986
3987         * config/alpha/alpha.c (override_options): ev6 cache latencies
3988         from Richard Henderson.  Don't allow -mmemory-latency=L0.
3989
3990         * config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
3991         (TARGET_OPTIONS): Add tune=.
3992         (alpha_tune_string): Declare.
3993         * config/alpha/alpha.c (override_options): Add cpu_table.
3994         Use alpha_cpu_string first to set both alpha_cpu and target_flags
3995         and then alpha_tune_string to set alpha_cpu only.
3996         Replace tests for PROCESSOR_EV* with TARGET_CPU_EV* tests.
3997         * config/alpha/elf.h (ASM_FILE_START): Likewise.
3998         * config/alpha/osf.h (ASM_FILE_START): Likewise.
3999         * config/alpha/openbsd.h (ASM_FILE_START): Likewise.
4000
4001 Fri Sep 15 19:45:55 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4002
4003         * i386-protos.h (no_comparison_operator, uno_comparison_operator):
4004         Remove.
4005         (ix86_comparison_operator, ix86_cc_mode): Declare
4006         * i386.h (CCGC, CCGCO): New modes.
4007         (SELECT_CC_MODE): Move offline to ....
4008         * i386.c (ix86_cc_mode): .... here; use new modes.
4009         (ix86_comparison_operator): New.
4010         (fcmov_comparison_operator): Ensure proper mode.
4011         (put_condition_mode): More sanity checking.
4012         (ix86_match_ccmode): Handle new modes.
4013         (ix86_expand_fp_compare): GEU requires CCmode.
4014         (ix86_expand_strlensi_unroll_1): Use emit_cmp_and_jump_insn instead of
4015         doing it by hand.
4016         * i386.md (cmp?i_ccz_1): Remove
4017         (cmp?i_ccno_1): Use ix86_match_ccmode.
4018         (cmp?i_minus_1): New.
4019         (cmpsi_1): New expander.
4020         (cmpqi_ext_1): Use match_ccmode
4021         (cmpqi_ext_3): New expander.
4022         (cmpqi_ext_3_insn): Rename from cmpqi_ext_3.
4023         (cmpqi_ext_4): Use match_ccmode.
4024         (add?i_?): Use match_ccmode.
4025         (add?i_6): New.
4026         (test?i_ccz_1): Remove
4027         (test?i_1): New.
4028         (testsi_ccno_1, testqi_ccz_1, testqi_ext_ccno_0): New expander.
4029         (testqi_ext_0): Use ix86_match_ccmode.
4030         (*xorqi_cc_ext_1): Use ix86_match_ccmode.
4031         (xorqi_cc_ext_1): New expander.
4032         (shift patterns): Use CCGOCmode for all shifts except for sar.
4033         (setcc_?, jcc_?, miv?icc_nic): Use ix86_comparison_operator.
4034         (setcc_3, jcc_3, miv?icc_c): Remove.
4035
4036 2000-09-15  Will Cohen  <wcohen@redhat.com>
4037
4038         * dwarf2out.c (add_const_value_attribute): Changed array into a
4039         xmalloced object, so it exists after function exit.
4040         (free_AT): Added case for dw_val_class_float to free allocated
4041         memory.
4042
4043 2000-09-15  Kazu Hirata  <kazu@hxi.com>
4044
4045         * config/i386/i386.md: Fix a comment typo.
4046         * gcc.c: Fix formatting.
4047
4048 2000-09-15  Bernd Schmidt  <bernds@redhat.co.uk>
4049
4050         * optabs.c (emit_libcall_block): If target is a user variable,
4051         copy to a temporary first.
4052         * expr.c (convert_move): When generating a libcall, make a libcall
4053         block.
4054         * calls.c (emit_library_call_value_1): Don't create a libcall
4055         sequence here; our caller will in most cases do it.
4056
4057         * sh.h (SECONDARY_INPUT_RELOAD_CLASS): Handle moving T, MACL or
4058         MACH into FPUL.
4059         (SECONDARY_OUTPUT_RELOAD_CLASS): Similar case.
4060         * sh.md (reload_outsf): Generate recognizable patterns for
4061         TARGET_SH3E.
4062         (floatsisf2, floatsisf2_ie, floatsisf2_i4, fix_truncsfsi2,
4063         fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i, fix_truncdfsi2,
4064         fix_truncdfsi2_i, extendsfdf2, extendsfdf2_i4, truncdfsf2,
4065         truncdfsf2_i4): Change not to use explicit references to fpul.
4066         (floatsisf2_ie): Remove USE of fpscr.
4067         (floatsisf2): Change default expansion to match this.
4068         (fix_truncsfsi2_i4_2, fix_truncdfsi2_i4 & splitters): Comment out
4069         unused patterns.
4070
4071 2000-09-15  Richard Henderson  <rth@cygnus.com>
4072
4073         * expmed.c (store_bit_field): Consider naturally aligned
4074         memory for direct reference.
4075
4076 2000-09-15  Richard Henderson  <rth@cygnus.com>
4077
4078         * config/alpha/alpha.c (alpha_expand_unaligned_load): Force all
4079         AND addresses into alias set 0.
4080         (alpha_expand_unaligned_store): Likewise.
4081         (alpha_expand_unaligned_load_words): Likewise.
4082         (alpha_expand_unaligned_store_words): Likewise.
4083
4084 2000-09-15  Bernd Schmidt  <bernds@redhat.co.uk>
4085
4086         * config/sh/sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
4087         * config/sh/lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__
4088         is defined.
4089         * config/mips/mips.c (mips_va_arg): Args passed by reference have a
4090         rsize of UNITS_PER_WORD.
4091
4092 Fri 15-Sep-2000 06:49:07 BST  Neil Booth  <NeilB@earthling.net>
4093
4094         * cpplex.c (ON_REST_ARG): Correct the test.
4095         (maybe_paste_with_next): Duplicate a token that fail pasting,
4096         and clear its PASTE_LEFT flag, so that nested pasting attempts
4097         do not occur.
4098
4099 2000-09-14  Richard Henderson  <rth@cygnus.com>
4100
4101         * calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
4102         * cse.c (rtx_cost): Likewise.
4103         * optabls.c (expand_binop): Likewise.
4104         (expand_twoval_binop, prepare_cmp_insn): Likewise.
4105         * regclass.c (copy_cost): Likewise.
4106         * reload1.c (reload_cse_move2add): Likewise.
4107
4108 2000-09-14  Joseph S. Myers  <jsm28@cam.ac.uk>
4109
4110         * c-parse.in (reswords): Add _Complex.
4111
4112 2000-09-14  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
4113
4114         * gcc.1: Delete documentation for -undef preprocessor option.
4115
4116 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
4117
4118         * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
4119         STARTFILE_SPEC, ENDFILE_SPEC): Remove define.
4120         * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
4121         Remove undefine before config/elfos.h.
4122         * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out.
4123
4124 2000-09-14  Kazu Hirata  <kazu@hxi.com>
4125
4126         * invoke.texi (H8/300 Options): Add -ms2600.
4127         * config/h8300.c (h8300_init_once): Output an error when -ms2600
4128         is used without -ms.
4129         * config/h8300.h (TARGET_MAC): New.
4130         (TARGET_SWITCHES): Add -ms2600 and -mno-s2600.
4131         (CONDITIONA_REGISTER_USAGE): Disable the mac register on any
4132         machine other than H8/S2600.
4133         * config/h8300.md: Accept mac instructions on the H8/S2600 instead
4134         of the H8/S2000.
4135
4136 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>, Bernd Schmidt  <bernds@redhat.co.uk>
4137
4138         * reload.c (find_reloads_address_1): Generate reloads for auto_inc
4139         pseudos that refer to the original pseudos, not only to their
4140         equivalent memory locations.
4141
4142 Thu Sep 14 12:10:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4143
4144         * expr.c (expand_expr, case COMPONENT_EXPR): Copy memory attributes
4145         when making new MEM.
4146
4147         * Makefile.in (LN): Remove duplicate definition.
4148
4149 2000-09-12  Bernd Schmidt  <bernds@redhat.co.uk>
4150
4151         From Joern Rennecke:
4152         * local-alloc.c (update_equiv_regs): If there is no REG_EQUAL note
4153         on an insn and function_invariant_p returns nonzero for the source,
4154         add a REG_EQUAL note.
4155
4156 Thu Sep 14 00:51:57 EDT 2000  John Wehle  (john@feith.com)
4157
4158         * alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
4159         conflict with frame_pointer_rtx.
4160
4161 2000-09-13  Kazu Hirata  <kazu@hxi.com>
4162
4163         * loop.c: Fix formatting.
4164         * loop.h: Likewise.
4165
4166 2000-09-13  Richard Henderson  <rth@cygnus.com>
4167
4168         * config/ia64/ia64.md (divsf3): New.
4169         (divsf3_internal_lat, divsf3_internal_thr): New.
4170         (divdf3, divdf3_internal_lat, divdf3_internal_thr): New.
4171         (divtf3, divtf3_internal_lat, divtf3_internal_thr): New.
4172         (adddf3_trunc, subdf3_trunc, muldf3_trunc): New.
4173         (madddf4_trunc, msubdf4_trunc, nmuldf3_trunc): New.
4174         (nmadddf4_alts, nmadddf4_trunc): New.
4175         (addtf3_truncsf, addtf3_truncdf, subtf3_truncsf): New.
4176         (subtf3_truncdf, multf3_truncsf, multf3_truncdf): New.
4177         (multf3_truncsf_alts, multf3_truncdf_alts): New.
4178         (maddtf4_truncsf, maddtf4_truncdf, maddtf4_alts_truncdf): New.
4179         (msubtf4_truncsf, msubtf4_truncdf, nmultf3_truncsf): New.
4180         (nmultf3_truncdf, nmaddtf4_truncsf, nmaddtf4_truncdf): New.
4181         (nmaddtf4_truncdf_alts): New.
4182         (recip_approx): Don't predicate.
4183
4184 2000-09-13  Richard Henderson  <rth@cygnus.com>
4185
4186         * config/ia64/lib1funcs.asm (__divsf3): Protect fnorm.s with p6.
4187
4188 2000-09-13  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4189
4190         * flags.h (flag_dump_rtl_in_asm): Declare.
4191         * toplev.c (flag_dump_rtl_in_asm): Define.
4192         (decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name
4193         if -dP is specified.
4194         * rtl.h (print_rtx_head): Declare.
4195         * print-rtl.c (print_rtx_head): Define.
4196         (print_rtx): Print the string pointed to by print_rtx_head
4197         at beginning of each dump line.
4198         (print_rtl): Likewise.
4199         (print_rtl_single): Likewise.
4200         * final.c (final_scan_insn): Dump the insn in the assembly
4201         file for debugging.
4202         * gcc.1: Document -dP option.
4203         * invoke.texi (Debugging Options): Likewise.
4204
4205 2000-09-13  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4206
4207         * md.texi (Machine Constraints): Document the 68HC11 constraints.
4208         * install.texi (Configurations): Document the 68HC11&68HC12 port.
4209         * invoke.texi (Option Summary, M68hc1x Options): Document the options.
4210
4211 Tue Sep 12 13:51:13 2000  Denis Chertykov  <denisc@overta.ru>
4212
4213         * config/avr/avr.h (ASSEMBLER_DIALECT): New macro declared.
4214         * config/avr/avr.md (*movstrqi_insn): Cleanup output template.
4215         (*clrstrqi): Likewise.
4216         (xorhi3,xorsi3,absqi2): Likewise.
4217         (one_cmplhi2,one_cmplsi2): Likewise.
4218         (addsi3): Two stupid constraint alternatives removed.
4219         (extendhisi2): Use `movw' for enhanced avr cores.
4220         (zero_extendhisi2): Likewise.
4221
4222 Wed Sep 13 02:31:23 EDT 2000  John Wehle  (john@feith.com)
4223
4224         * alias.c (find_base_term): Use frame_pointer_rtx
4225         when handling an ADDRESSOF.
4226
4227         * cse.c (canon_hash): Handle USE of BLKmode memory.
4228         (cse_insn): Outgoing arguments for a libcall don't
4229         affect any recorded expressions.
4230
4231 2000-09-12  Tom Tromey  <tromey@cygnus.com>
4232
4233         * configure, config.in: Rebuilt.
4234         * configure.in: Check for iconv, nl_langinfo, langinfo.h.
4235
4236 2000-09-12  Jakub Jelinek  <jakub@redhat.com>
4237
4238         * c-lex.c (lex_string): Use charwidth to compute bytemask.
4239         * expr.c (expand_expr): Don't optimize constant array references
4240         initialized with wide string constants.
4241
4242 2000-09-13  Michael Hayes  <mhayes@cygnus.com>
4243
4244         * loop.c (note_set_pseudo_multiple_uses): Correct.
4245
4246 2000-09-12  Jim Wilson  <wilson@cygnus.com>
4247
4248         * ifcvt.c (noce_process_if_block): If A and B are the same, and no
4249         else block, and X has side-effects, then fail.
4250
4251 2000-09-12  Greg McGary  <greg@mcgary.org>
4252
4253         * config/mips/mips-protos.h
4254         (trap_cmp_op, mips_gen_conditional_trap): New func decls.
4255         * config/mips/mips.h (ISA_HAS_COND_TRAP): New macro.
4256         (PREDICATE_CODES): Add "trap_cmp_op".
4257         * config/mips/mips.c
4258         (trap_cmp_op, mips_gen_conditional_trap): New functions.
4259         * config/mips/mips.md (trap, conditional_trap): New patterns.
4260
4261 2000-09-12  Bernd Schmidt  <bernds@redhat.co.uk>
4262
4263         * flow.c (try_pre_increment_1): Don't do anything to sets of the stack
4264         pointer.
4265
4266 2000-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4267
4268         * builtins.c (built_in_decls): New array.
4269         (expand_builtin_fputs): New function.
4270         (expand_builtin): Handle BUILT_IN_FPUTC and BUILT_IN_FPUTS.
4271
4272         * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTS): New members.
4273
4274         * c-common.c (c_common_nodes_and_builtins): Handle fputc/fputs.
4275
4276         * tree.h (built_in_decls): New array.
4277
4278 Tue Sep 12 08:53:57 2000  Jeffrey A Law  (law@cygnus.com)
4279
4280         * convex.md: Use "+" instead of "=" for outputs wrapped in a
4281         STRICT_LOW_PART.
4282         * i370.md, i386.md, ns32k.md, sh.md, vax.md: Likewise.
4283
4284 2000-09-12  Kazu Hirata  <kazu@hxi.com>
4285
4286         * haifa-sched.c: Fix formatting.
4287
4288         * genattrtab.c: Fix formatting.
4289
4290         * unroll.c: Fix formatting.
4291
4292 2000-09-12  Bruce Korb  <bkorb@gnu.org>
4293
4294         * fixinc/fixfixes.c: make a type for the fix procedure & use it,
4295         remove obsolete code
4296         * fixinc/fixincl.c: Use PARAMS, not _P_.  Add no-op default to switch.
4297         * fixinc/fixincl.tpl: make non-exported arrays static scope
4298         * fixinc/fixincl.x: regenerate
4299         * fixinc/fixlib.h: Use PARAMS, not _P_
4300         * fixinc/fixtests.c: make a type for the test proc & use it
4301         * fixinc/server.h: Use PARAMS, not _P_
4302
4303 2000-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4304
4305         * c-typeck.c (process_init_element): Avoid union init warnings on
4306         floating point zero.  Don't crash on unions containing structs.
4307
4308 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
4309
4310         * config/sh/sh.h (PREDICATE_CODES): Add CONST_DOUBLE to
4311         general_movsrc_operand, and remove CONST_INT from
4312         general_movdst_operand.
4313
4314 2000-09-12  Bernd Schmidt  <bernds@redhat.co.uk>
4315
4316         * cse.c (approx_reg_cost): If SMALL_REGISTER_CLASSES, return INT_MAX
4317         if a reference to non-fixed hardreg is seen.  Otherwise, count hard
4318         regs with a higher cost.
4319         (preferrable): Deal with cases where either cost or regcost is
4320         MAX_COST.
4321         (cse_insn): Use MAX_COST rather than 10000.  Always initialize
4322         regcost values.
4323         (COSTS_N_INSNS): Move definition...
4324         * rtl.h: ...here.
4325         (MAX_COST): New macro.
4326         * loop.c (init_loop): Use COSTS_N_INSNS macro instead of hardcoded
4327         constant.
4328
4329 2000-09-11  Mark Mitchell  <mark@codesourcery.com>
4330
4331         * c-common.h (genrtl_clear_out_block): Remove.
4332         * c-semantics.c (genrtl_clear_out_block): Remove.
4333         (genrtl_while_stmt): Don't call it.
4334         (genrtl_for_stmt): Likewise.
4335
4336 2000-09-11  Zack Weinberg  <zack@wolery.cumb.org>
4337
4338         * cppfiles.c: Move all default-#defines to top of file.
4339         (open_include_file): Replace by lookup_include_file.
4340         (read_with_read, read_file): Merged into read_include_file.
4341         (stack_include_file, purge_cache): New functions.
4342         (close_cached_fd): Delete.
4343         (lookup_include_file, read_include_file, _cpp_pop_file_buffer):
4344         Cache the in-memory buffer, not the file descriptor.
4345
4346         * cpphash.h (struct include_file): Add buffer, st, refcnt,
4347         mapped fields.
4348         (xcnew): New utility macro.
4349         (DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
4350         * cpplib.h (struct cpp_buffer): Remove mapped field.
4351
4352 2000-09-11  Zack Weinberg  <zack@wolery.cumb.org>
4353
4354         * cpplex.c (parse_string): Accept backslash space newline as a
4355         line continuation.
4356         (lex_line): Likewise.
4357         (_cpp_get_token): Remove hard limit on macro nesting.
4358
4359 2000-09-12  Philipp Thomas  <pthomas@suse.de>
4360
4361         * aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
4362         * configure: Rebuilt.
4363
4364 2000-09-13  Michael Hayes  <mhayes@cygnus.com>
4365
4366         * flow.c (split_block): Fix update of registers live at
4367         end of split block.
4368
4369 Tue Sep 12 01:51:38 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4370
4371         * i386.md (add?i_3, add?i_5): New.
4372         (add?i_4): Rename from add?i_3;  Fix compare pattern.
4373         (sub?i_3, xor?i_3, ior?i_3): New.
4374
4375         * genrecog.c (write_tree): Output code to clear insn_extract cache.
4376         * genattrtab.c (write_attr_case): Gen call to extract_insn_cache
4377         instead of extract_insn and extract_constrain_insn_cache instead of
4378         extract_insn and constrain_operands.
4379         * recog.c (extract_insn_cached, extract_constrain_insn_cached):
4380         New functions.
4381         (extract_insn): Clear which_alternative.
4382         (constrain_operands): Set which_alternative to -1 when failed.
4383         * recog.h (extract_constrain_insn_cached, extract_insn_cached):
4384         Declare.
4385
4386 2000-09-11  Matthew Hiller  <hiller@redhat.com>
4387
4388         * config/h8300/h8300.md (movstrictqi): Changed constraint modifier
4389         on operand 0 to '+'.
4390         (movstricthi): Likewise.
4391
4392 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
4393
4394         * loop.h (LOOP_IVS): New macro.
4395         (REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
4396         (struct loop_ivs): New.
4397         (struct loop_info): Add ivs field.
4398         (reg_iv_type, reg_iv_info): Delete prototype.
4399         (reg_biv_class, loop_iv_list): Likewise.
4400         * loop.c (record_biv, find_life_end): Pass loop argument.
4401         (reg_iv_type): Remove global array and use
4402         field in loop_regs structure within loop_ivs structure.
4403         (reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
4404         (first_increment_giv, last_increment_giv): Use entry in
4405         loop_ivs structure.
4406         (record_initial): Pass ivs pointer.
4407         * unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.
4408
4409 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
4410
4411         * loop.h (LOOP_REGS): New macro.
4412         (struct loop_regs): New.
4413         (struct loop_info): Add regs field.
4414         * loop.c (set_in_loop): Remove global array and store
4415         in loop_regs structure as part of loop_info structure.
4416         (n_times_set, may_not_optimize): Likewise.
4417         (reg_single_usage, moved_once): Likewise.
4418         (count_one_set): Add regs argument.
4419         (combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
4420         (set_pseudo_multiple_uses): Pass regs pointer.
4421
4422 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
4423
4424         * unroll.c (iteration_info): Subsume into loop_iterations.
4425         * loop.h (loop_info): New field iv.
4426
4427 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
4428
4429         * basic-block.h (LOOP_TREE, LOOP_PRE_HEADER, LOOP_EDGES): New.
4430         (LOOP_EXITS_DOMS, LOOP_ALL): Likewise.
4431         (flow_loops_update): New prototype.
4432         (flow_loops_find): Add flags to prototype.
4433         (struct loop): Add `pre_header_root' and `pre_header_trace' fields.
4434         * flow.c (flow_loop_pre_header_scan): New.
4435         (flow_loop_dump): Dump pre-header root and trace and exit dominators.
4436         (flow_loop_free): Free pre-header root and trace and exit dominators.
4437         (flow_loops_find): New argument flags.
4438         (flow_loops_update): New function.
4439         * toplev.c (rest_of_compilation): Add flag argument to flow_loops_find.
4440
4441 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
4442
4443         * basic-block.h (split_block, update_bb_for_insn): New prototypes.
4444         * flow.c (split_block, update_bb_for_insn): New functions.
4445
4446 2000-09-11  Richard Henderson  <rth@cygnus.com>
4447
4448         * cse.c (fold_rtx): Honor NO_FUNCTION_CSE.
4449
4450 2000-09-11  Richard Henderson  <rth@cygnus.com>
4451
4452         * config/ia64/ia64-protos.h (fr_nonimmediate_operand): Declare.
4453         * config/ia64/ia64.c (fr_nonimmediate_operand): New.
4454         (ia64_override_options): Prevent optimizing division for both
4455         latency and throughput.
4456         (rtx_needs_barrier): Handle frcpa.
4457         * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): New.
4458         (MASK_INLINE_DIV_THR, TARGET_INLINE_DIV_LAT): New.
4459         (TARGET_INLINE_DIV_THR, TARGET_INLINE_DIV): New.
4460         (TARGET_SWITCHES): Add -minline-divide-min-latency and
4461         -minline-divide-max-throughput.
4462         (PREDICATE_CODES): Update.
4463         * config/ia64/ia64.md (extendsidi2): Remove * from f case.
4464         (zero_extendsidi2): Likewise.  Fix typo in f case insn.
4465         (extendsfdf2): Add cases for gr<->fr and fr<->mem.
4466         (extendsftf2): Likewise.
4467         (extenddftf2): Likewise.
4468         (fix_trunctfdi2_alts): New.
4469         (fixuns_trunctfdi2_alts): New.
4470         (madd*4): Rename from madd*3.
4471         (divsi3, modsi3, udivsi3, umodsi3): New.
4472         (divsi3_internal): New.
4473         (divdi3, moddi3, udivdi3, umoddi3): New.
4474         (divdi3_internal_lat, divdi3_internal_thr): New.
4475         (multf3_alts, maddtf4_alts, nmaddtf4_alts): New.
4476         (recip_approx): New.
4477
4478 2000-09-11  Alexandre Oliva  <aoliva@redhat.com>
4479
4480         * print-rtl.c (debug_call_placeholder_verbose): New variable.
4481         (print_rtx) [CALL_PLACEHOLDER]: Dump all call sequences if it is
4482         set.
4483         * integrate.c (copy_rtx_and_substitute): Don't share
4484         LEAF_REG_REMAPpable registers with the inlined function.  Don't
4485         share the function value with calling sequences.
4486
4487 2000-09-11  Jakub Jelinek  <jakub@redhat.com>
4488
4489         * c-decl.c (do_case): Fix a typo.
4490
4491         * combine.c (simplify_if_then_else): Don't convert a == b ? b : a
4492         to a if the comparison is floating mode and not -ffast-math.
4493         * simplify-rtx.c (simplify_ternary_operation): Likewise.
4494
4495 Mon Sep 11 20:07:48 2000  J"orn Rennecke <amylaar@redhat.co.uk>
4496
4497         * sh.h (INITIALIZE_TRAMPOLINE): Remove stray call to
4498         gen_ic_invalidate_line.
4499
4500 2000-09-11  Philip Blundell  <pb@futuretv.com>
4501
4502         * config/arm/elf.h (SUBTARGET_CPP_SPEC): Don't define `arm_elf'.
4503
4504 Mon Sep 11 10:48:41 2000  Ulrich Drepper <drepper@redhat.com>
4505
4506         * install.texi (LANGUAGES): Update to include new languages.
4507         * INSTALL: Rebuilt.
4508
4509 2000-09-11  DJ Delorie  <dj@redhat.com>
4510
4511         * gcc.c (main): Don't warn about unused -B prefixes
4512         (unused_prefix_warnings): remove
4513
4514 2000-09-11  Kazu Hirata  <kazu@hxi.com>
4515
4516         * final.c: Fix formatting.
4517
4518         * integrate.c: Fix formatting.
4519
4520 2000-09-11  Geoff Keating  <geoffk@cygnus.com>
4521
4522         * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry.
4523
4524 2000-09-11  Bernd Schmidt  <bernds@redhat.co.uk>
4525
4526         * reload.c (regno_clobbered_p): Fix thinko in previous change.
4527
4528 2000-09-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4529
4530         * gcc.1: Document 68hc11 specific options.
4531
4532 2000-09-10  Geoff Keating  <geoffk@cygnus.com>
4533
4534         * config/rs6000/sysv4.h (MASK_LONG_DOUBLE_128): Define.
4535         (TARGET_LONG_DOUBLE_128): Define.
4536         (SUBTARGET_SWITCHES): Add -mlong-double-64 and -mlong-double-128.
4537         (LONG_DOUBLE_TYPE_SIZE): Redefine.
4538         (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
4539         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on definition
4540         of __LONG_DOUBLE_128__.
4541         (CPP_SYSV_SPEC): Define __LONG_DOUBLE_128__ if -mlong-double-128
4542         passed.
4543         (CPP_LONGDOUBLE_DEFAULT_SPEC): Define.
4544         (CPP_SYSV_DEFAULT_SPEC): Define.
4545         (SUBTARGET_EXTRA_SPECS): Add cpp_longdouble_default.
4546         (INIT_TARGET_OPTABS): Define.
4547
4548         * config/rs6000/aix.h (RS6000_ITRUNC): Moved from rs6000.h.
4549         (RS6000_UITRUNC): Likewise.
4550         (INIT_TARGET_OPTABS): New macro.
4551         * config/rs6000/rs6000.c (rs6000_trunc_used): Delete.
4552         (trunc_defined): Delete.
4553         (output_prolog): Don't output .extern definitions for fp->int
4554         conversion routines, ASM_OUTPUT_EXTERNAL_LIBCALL will do it.
4555         * config/rs6000/rs6000.h (rs6000_trunc_used): Delete.
4556         (trunc_defined): Delete.
4557         (RS6000_ITRUNC): Moved to aix.h.
4558         (RS6000_UITRUNC): Likewise.
4559         * config/rs6000/rs6000.md (fix_truncdfsi2): Fail if it would
4560         only emit a libcall.
4561         (fixuns_truncdfsi2): Delete.
4562         (trunc_call): Delete.
4563         (trunc_call_rtl): Delete.
4564
4565 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
4566
4567         * varasm.c (make_decl_rtl): Restore leading star on
4568         DECL_ASSEMBLER_NAME set for decls with an asmspec.
4569
4570 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
4571
4572         * c-pragma.c (handle_pragma_pack): Correct parsing logic so it
4573         won't give a spurious error for '#pragma pack()'.  Simplify
4574         control flow for readability.  'reset' action is not necessary.
4575
4576 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
4577
4578         * defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
4579         SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
4580         LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
4581         DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
4582
4583         * cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
4584         profile.c, sdbout.c, tradcif.y, tree.c:
4585         Include defaults.h if not already included.
4586         Don't define the above macros.
4587
4588         * Makefile.in: Update dependencies.
4589
4590 2000-09-10  Mark Mitchell  <mark@codesourcery.com>
4591
4592         * c-common.h (add_stmt): Change prototype.
4593         (RECHAIN_STMTS): New macro.
4594         (CASE_LABEL_DECL): Likewise.
4595         (genrtl_case_label): Change prototype.
4596         (c_expand_start_case): Remove prototype.
4597         (build_case_label): Change prototype.
4598         (decl_constant_value): Declare.
4599         * c-common.c (check_case_value): Handle C++'s extensions to C
4600         semantics.
4601         * c-commnon.def (CASE_LABEL): Add room for the CASE_LABEL_DECL
4602         field.
4603         * c-parse.in (stmt): Adjust handling of return statements and case
4604         laels.
4605         * c-semantics.c (add_stmt): Return the new statement.
4606         (genrtl_return_stmt): Take the RETURN_STMT as input, not the
4607         returned expression.  Directly generate RTL, rather than calling
4608         c_expand_return.
4609         (genrtl_switch_stmt): Don't call c_expand_start_case.
4610         (build_case_label): Take the LABEL_DECL as input, too.
4611         (genrtl_case_label): Just call add_case_node.
4612         (expand_stmt): Adjust calls to genrtl_return_stmt and
4613         genrtl_case_label.
4614         * c-tree.h (c_expand_start_case): Declare.
4615         * c-typeck.c (decl_constant_value): Give it external linkage.
4616         (c_expand_return): Don't call expand_return or expand_null_return;
4617         use genrtl_return_stmt instead.
4618         * stmt.c (struct nesting): Remove num_ranges field.
4619         (add_case_node): Give it external linkage.
4620         (expand_start_case): Don't set num_ranges.
4621         (expand_start_case_dummy): Don't clear it.
4622         (pushcase): Rely on add_case_node to handle `default' labels.
4623         (add_case_node): Handle `default' labels.
4624         * tree.c (tree_int_cst_compare): New function.
4625         * tree.h (tree_int_cst_compare): Declare.
4626         (add_case_node): Likewise.
4627
4628 2000-09-10  Richard Henderson  <rth@cygnus.com>
4629
4630         * c-parse.in: Revert last change.
4631         (init_reswords): Do not enter disabled keywords into the ridpointers
4632         table, modulo objc weirdness.
4633         (_yylex): Return the canonical spelling for a keyword.
4634
4635 2000-09-10  Philip Blundell  <philb@gnu.org>
4636
4637         * config/arm/arm.h (CPP_ISA_SPEC): Don't define `arm' or `thumb'.
4638         * config/arm/linux-elf.h (CPP_PREDEFINES): Don't define `__arm__'.
4639
4640 Sun Sep 10 14:30:28 EDT 2000  John Wehle  (john@feith.com)
4641
4642         * alias.c (find_base_term): Handle ADDRESSOF.
4643         (memrefs_conflict_p): An ADDRESSOF doesn't conflict.
4644
4645 2000-09-10  Denis Chertykov  <denisc@overta.ru>
4646
4647         * genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
4648         outputting templates with many lines.
4649
4650 2000-09-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4651
4652         * libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
4653         to decide whether 64-bit support must be generated.
4654
4655 2000-09-10  Richard Henderson  <rth@cygnus.com>
4656
4657         * c-parse.in (asm patterns): Fix volatile check.
4658
4659 2000-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4660
4661         * cppmacro.c (check_trad_stringification): New function.
4662         (save_expansion): If -Wtraditional, warn about stringification of
4663         macro arguments.
4664
4665 2000-09-11  Michael Hayes  <mhayes@cygnus.com>
4666
4667         * loop.h (struct loop_mem_info): Move from loop.c
4668         (struct loop_info): Add fields store_mems, mems, mems_idx,
4669         mems_allocated, unknown_address_altered,
4670         unknown_constant_address_altered, num_mem_sets, and
4671         first_loop_store_insn.
4672
4673         * loop.c (loop_store_mems): Replace with field in loop_info struct.
4674         (loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
4675         (unknown_address_altered, unknown_constant_address_altered): Likewise.
4676         (num_mem_sets): Likewise.
4677         (replace_loop_mems, replace_loop_regs): New.
4678         (struct loop_replace_args): New.
4679         (load_mems): Use replace_loop_mems.
4680         (try_copy_prop): Use replace_loop_regs.
4681         (replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
4682
4683 2000-09-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4684
4685         * configure.in: Recognize m6811-elf and m6812-elf.
4686         * configure: Regenerate.
4687
4688 2000-09-09  Geoff Keating  <geoffk@cygnus.com>
4689
4690         * recog.c (validate_replace_rtx_1): Correct MODE parameter in call
4691         to operand_subword.
4692
4693 2000-09-10  Michael Hayes  <mhayes@cygnus.com>
4694
4695         * loop.c (struct movables): New.
4696         (num_movables): Move into struct movables.
4697         (the_movables): Change type to struct movables.
4698         (ignore_some_movables): Change struct movable arg to struct movables.
4699         (force_movables, combine_movables, regs_match_p): Likewise.
4700         (rtx_equal_for_loop_p, move_movables): Likewise.
4701         (scan_loop): Change movables to be of type struct movables.
4702         Replace last_movable with field in movables structure.
4703
4704 2000-09-08  Zack Weinberg  <zack@wolery.cumb.org>
4705
4706         * c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
4707         (init_pragma): Avoid warning if pfile happens to be unused.
4708         * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS.  Never
4709         define init_pragma to nothing.  Always prototype
4710         init_pragma.  Prototype dispatch_pragma if !USE_CPPLIB.
4711
4712         * c-lex.c (process_directive): Always call dispatch_pragma.
4713         Initialize entering_c_header to 0.
4714
4715 2000-09-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4716
4717         * config/m68hc11/m68hc11.md: New file, machine description for
4718         68HC11 & 68HC12.
4719         * config/m68hc11/m68hc11.h: New file, definitions for 68HC11 & 68HC12.
4720         * config/m68hc11/m68hc11.c: New file, functions for 68HC11 & 68HC12.
4721         * config/m68hc11/m68hc12.h: New file, definitions for 68HC12.
4722         * config/m68hc11/m68hc11-protos.h: New file.
4723         * config/m68hc11/m68hc11-crt0.S: New file, startup code.
4724         * config/m68hc11/t-m68hc11-gas: New file, makefile fragment.
4725         * config/m68hc11/xm-m68hc11.h: New file, target defs.
4726         * config/m68hc11/larith.asm: New file, libgcc routines.
4727
4728 2000-09-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4729
4730         * Makefile.in (DPBIT_FUNCS): Add _usi_to_df.
4731         (FPBIT_FUNCS): Add _usi_to_sf.
4732         * config/fp-bit.c (usi_to_float): New function.
4733         * config/fp-bit.h (L_usi_to_sf, L_usi_to_df): Define.
4734         (usi_to_float): Add appropriate #define.
4735
4736 2000-09-08  Bernd Schmidt  <bernds@redhat.co.uk>
4737
4738         * i386-protos.h (sse_comparison_operator, mmx_reg_operand): Declare
4739         new functions.
4740         * i386.c (sse_comparison_operator, mmx_reg_operand): New functions.
4741         * i386.md (attr "type"): Add sse and mmx types.
4742         (attr "memory"): Handle them without a crash.
4743         (movsi_1, movdi_2): Allow MMX regs.
4744         (movdi splits): Don't split moves involving MMX regs.
4745         (setcc_4): Remove '*' from pattern name so we get a gen_setcc4.
4746         (movv4sf_internal, movv4si_internal, movv8qi_internal,
4747         movv4hi_internal, movv2si_internal, movv8qi, movv4hi, movv2si,
4748         movv4sf, movv4si, pushv4sf, pushv4si, pushv8qi, pushv4hi, pushv2si,
4749         sse_movaps, sse_movups, sse_movmskps, mmx_pmovmskb, mmx_maskmovq,
4750         sse_movntv4sf, sse_movntdi, sse_movhlps, sse_movlhps, sse_movhps,
4751         sse_movlps, sse_loadss, sse_movss, sse_storess, sse_shufps,
4752         addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, mulv4sf3, vmmulv4sf3,
4753         divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2, rsqrtv4sf2, vmrsqrtv4sf2,
4754         sqrtv4sf2, vmsqrtv4sf2, sse_andti3, sse_nandti3, sse_iorti3,
4755         sse_xorti3, maskcmpv4sf3, maskncmpv4sf3, vmmaskcmpv4sf3,
4756         vmmaskncmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
4757         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
4758         cvttps2pi, cvtsi2ss, cvtss2si, cvttss2si, addv8qi3, addv4hi3,
4759         addv2si3, ssaddv8qi3, ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3,
4760         subv4hi3, subv2si3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
4761         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
4762         mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3, mmx_uavgv8qi3,
4763         mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw, mmx_pshufw,
4764         eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3, gtv2si3, umaxv8qi3,
4765         smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3, ashrv2si3, lshrv4hi3,
4766         lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3, mmx_ashldi3,
4767         mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
4768         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
4769         mmx_punpckldq, emms, sfence, ldmxcsr, prefetch, stmxcsr, sse_clrti,
4770         mmx_clrdi): New patterns.
4771
4772 2000-09-08  Richard Earnshaw  <rearnsha@arm.com>
4773
4774         * arm.c: Don't include tm.h directly.
4775
4776 Fri Sep  8 14:34:56 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4777
4778         * recog.c (validate_replace_rtx_1): Fix confusion about equality
4779         testing; simplify subregs of constants and nested subregs.
4780
4781 2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
4782
4783         * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
4784
4785 2000-09-08  Bernd Schmidt  <bernds@redhat.co.uk>
4786
4787         * combine.c (combine_simplify_rtx): Try to simplify VEC_SELECT of a
4788         VEC_CONCAT.
4789         * rtl.texi (description of USE): Add note about possible pitfalls
4790         with this rtx.
4791         From Richard Henderson:
4792         * reload1.c (choose_reload_regs): Compute need_mode properly.
4793
4794 2000-09-07  Richard Henderson  <rth@cygnus.com>
4795
4796         * config/ia64/lib1funcs.asm (__divsi3): Use .s1 for frcpa.
4797         (__modsi3, __umodsi3): Likewise.
4798         (__udivsi3): Likewise.  Normalize the TFmode values.
4799
4800 2000-09-07  Geoff Keating  <geoffk@cygnus.com>
4801
4802         * config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
4803         with a prototype.
4804         * config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
4805         warning.
4806
4807 Fri Sep  8 03:26:38 2000  J"orn Rennecke <amylaar@redhat.co.uk>
4808
4809         * sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
4810         (cmpeqdi_t): Add output pattern.
4811         (cmpeqdi_t+1): Don't split when not optimizing.
4812         Restore proper splitting operation.
4813
4814 2000-09-07  Richard Henderson  <rth@cygnus.com>
4815
4816         * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
4817         do not call dispatch_pragma.
4818
4819 2000-09-07  Jim Wilson  <wilson@cygnus.com>
4820
4821         * reload.c (push_reload): Use CLASS_CANNOT_CHANGE_MODE_P in addition
4822         to CLASS_CANNOT_CHANGE_MODE.
4823         * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE_P): True only if the
4824         mode classes are different.
4825
4826 2000-09-07  Zack Weinberg  <zack@wolery.cumb.org>
4827
4828         * cpplib.h (struct cpp_options): Add user_label_prefix member,
4829         left out of commit which removed cppulp.c.
4830
4831 2000-09-07  Richard Henderson  <rth@cygnus.com>
4832
4833         * bb-reorder.c (fixup_reorder_chain): Add jump in new block
4834         after switch for CASE_DROPS_THROUGH.
4835
4836 2000-09-07  Richard Henderson  <rth@cygnus.com>
4837
4838         * loop.c (strength_reduce): Call check_ext_dependant_givs.
4839         Properly extend the biv initial value for the giv.
4840         (record_biv): Zero ext_dependant.
4841         (record_giv): New argument ext_val.  Update all callers.
4842         (general_induction_var): Likewise.
4843         (consec_sets_giv): Likewise.
4844         (simplify_giv_expr): Likewise.  Fill in ext_val if we find
4845         a sign-extend, zero-extend, or truncate.
4846         (combine_givs_p): Make sure modes are compatible.
4847         (check_ext_dependant_givs): New.
4848         (extend_value_for_giv): New.
4849         * loop.h (struct induction): Add ext_dependant.
4850         * unroll.c (iteration_info): Extend the biv initial value for the giv.
4851         (find_splittable_givs): Likewise.
4852         (final_giv_value): Likewise.
4853
4854 2000-09-07  Zack Weinberg  <zack@wolery.cumb.org>
4855
4856         * c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
4857         REGISTER_TARGET_PRAGMAS is defined.  Duplicate some
4858         definitions from cpplib.h.
4859         * cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
4860         already done it.
4861         * tm.texi: Document HANDLE_PRAGMA as no longer supported.  Add
4862         documentation for REGISTER_TARGET_PRAGMAS.
4863
4864         * c-lex.c: Include cpplib.h before c-pragma.h.  Define a
4865         default-pragma callback to implement -Wunknown-pragmas if
4866         USE_CPPLIB.
4867         * c-parse.in: Move all includes to top of file.
4868         * c-pragma.c: Include cpplib.h before c-pragma.h.  Include
4869         tm_p.h.
4870         (dispatch_pragma): Put the namespace in the -Wunknown-pragmas
4871         warning.
4872         (init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
4873
4874         * arm.h, arm-protos.h, arm.c,
4875           c4x.h, c4x-protos.h, c4x.c,
4876           h8300.h, h8300-protos.h, h8300.c,
4877           i370.h, i370-protos.h, i370.c,
4878           i960.h, i960-protos.h, i960.c,
4879           sh.h, sh-protos.h, sh.c,
4880           v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
4881         pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
4882
4883         * d30v.h: Don't mention HANDLE_PRAGMA in comment.  Add
4884         multiple include guard.
4885         * i370.md (untyped_call): Use GEN_CALL.
4886         (umodsi3): Remove unused variable.
4887         * sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
4888         * v850.c (output_move_single, output_move_double): Constify
4889         return value.
4890         (print_operand): Constify a char *.
4891         * v850.h (struct small_memory_info): Constify name member.
4892
4893 2000-09-07  Kazu Hirata  <kazu@hxi.com>
4894
4895         * config/h8300.h: Fix comment typos.
4896         * config/h8300/h8300.md: Likewise.
4897         * config/h8300/lib1funcs.asm: Likewise.
4898
4899 Thu 07-Sep-2000 21:29:00 BST  Neil Booth  <NeilB@earthling.net>
4900
4901         * Makefile.in: Remove references to cppulp.{c,o}.
4902         * cppinit.c (initialize_builtins, cpp_start_read,
4903         cpp_handle_option): Update to use cpp_options structure.
4904         * cppulp.c: Remove.
4905
4906 2000-09-07  Joseph S. Myers  <jsm28@cam.ac.uk>
4907
4908         * c-common.c (time_char_table): Allow %#b and %#h.
4909
4910 2000-09-07 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4911
4912         * reorg.c (find_end_label): If the basic block reorder pass moves the
4913         return insn to some other place try to locate it again and put our
4914         end_of_function_label there.
4915         * reorg.c (relax_delay_slots): Check if find_end_label created a
4916         new label that invalidates the current optimazation.
4917
4918 2000-09-07  Catherine Moore  <clm@redhat.com>
4919
4920         * unroll.c (unroll_loop): Check for unconditional jumps
4921         to loop continuation.  Delete if n_iterations is 1.
4922         (ujump_to_loop_cont): New routine.
4923
4924 2000-09-07  Bernd Schmidt  <bernds@redhat.co.uk>
4925
4926         * rtl.c (class_narrowest_mode): Add entries for MODE_VECTOR_INT and
4927         MODE_VECTOR_FLOAT.
4928         * reload.c (regno_clobbered_p): Accept new arg, MODE, and use it
4929         to handle multiword modes correctly.  All callers and the declaration
4930         changed.
4931
4932 2000-09-06  Mark Mitchell  <mark@codesourcery.com>
4933
4934         * c-common.h (prep_stmt): Declare.
4935         (lang_expand_stmt): Likewise.
4936         * c-decl.c (lang_expand_stmt): Remove.
4937         * c-semantics.c (lang_expand_stmt): Define.
4938         (prep_stmt): New function.
4939         (expand_stmt): Handle common statement types here.
4940
4941 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
4942
4943         * configure.in (sh-*-linux*): Added.
4944         * configure: Rebuilt.
4945         * config/sh/t-linux: New file.
4946         * config/sh/sh.h (USERMODE_BIT): Define.
4947         (TARGET_USERMODE): Likewise.
4948         (TARGET_SWITCHES): New switches for the bits above.
4949         (INITIALIZE_TRAMPOLINE): Call __ic_invalidate in USERMODE.
4950         * config/sh/linux.h: New file.
4951         * config/sh/lib1funcs.asm (GLOBAL): Don't prefix symbols with
4952         underscore on linux.
4953         (L_sdivsi3, L_udivsi3): Define for linux.
4954         (L_ic_invalidate): Define.
4955         * invoke.texi (SH Options): Document -musermode.
4956
4957 2000-09-07  Alexandre Oliva  <aoliva@redhat.com>
4958
4959         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
4960         CSE unless generating PIC.
4961
4962         * config/sh/sh.md (symPLT_label2reg): Force the initialization of
4963         the PIC register.
4964
4965 2000-09-06  H.J. Lu  (hjl@gnu.org)
4966
4967         * Makefile.in (clean_s1): Depend on stage_b.
4968         (clean_s2): Depend on stage_d. Don't remove $(VOL_FILES) in
4969         stage2. They are used for "make compare".
4970
4971 2000-09-06  Mark Mitchell  <mark@codesourcery.com>
4972
4973         Move statement-tree facilities from C++ to C front-end.
4974         * c-common.h (c_tree_index): Add CTI_VOID_ZERO.
4975         (void_zero_node): New macro.
4976         (struct stmt_tree_s): New type.
4977         (stmt_tree): New typedef.
4978         (struct language_function): New type.
4979         (last_tree): New macro.
4980         (last_expr_type): Likewise.
4981         (walk_tree_fn): New typedef.
4982         (current_stmt_tree): New function.
4983         (begin_stmt_tree): Likewise.
4984         (add_stmt): Likewise.
4985         (finish_stmt_tree): Likewise.
4986         (statement_code_p): Likewise.
4987         (lang_statement_code_p): New variable.
4988         (walk_stmt_tree): New function.
4989         (STMT_IS_FULL_EXPR_P): New macro.
4990         * c-common.c (lang_statement_code_p): New variable.
4991         (c_common_nodes_and_builtins): Initialize void_zero_node.
4992         (statement_code_p): New function.
4993         (walk_stmt_tree): Likewise.
4994         * c-decl.c (language_function): Rename to ...
4995         (c_language_function): ... this.  Include language_function.
4996         (push_c_function_context): Adjust accordingly.
4997         (pop_c_function_context): Likewise.
4998         (mark_c_function_context): Likewise.
4999         (current_stmt_tree): Define.
5000         * c-semantics.c (begin_stmt_tree): New function.
5001         (add_stmt): Likewise.
5002         (prune_unused_decls): Likewise.
5003         (finish_stmt_tree): Likewise.
5004
5005 2000-09-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5006
5007         * flow.c (insn_dead_p): Detect dead memory stores with auto increments.
5008
5009 2000-09-06  Kazu Hirata  <kazu@hxi.com>
5010
5011         * calls.c: Fix formatting.
5012
5013 2000-09-06  Graham Stott  <grahams@cygnus.co.uk>
5014
5015         * config/i386/i386.h (ADDRESS_COST): Fix typo.
5016
5017 2000-09-06  Zack Weinberg  <zack@wolery.cumb.org>
5018
5019         Integrated preprocessor.
5020
5021         * Makefile.in: Remove all references to c-parse.gperf,
5022         c-gperf.h, and c-parse.h.  Remove -d from yacc command line
5023         generating c-parse.c.  Update dependencies.
5024         * c-parse.gperf, c-gperf.h: Delete.
5025
5026         * c-common.c: Don't define parse_options, cpp_token, yy_cur,
5027         yy_lim, or yy_get_token.  Don't define get_directive_line if
5028         USE_CPPLIB.
5029         * c-common.h: Add multiple include guard.  Define RID values
5030         for every keyword in C, C++, and Objective C.  Put all the
5031         modifiers first.
5032         (struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
5033         * c-decl.c (c_decode_option): Handle -lang-objc here.
5034         (print_lang_identifier): Handle C_IS_RESERVED_WORD case.
5035         (grokdeclarator): Adjust for new RID scheme.
5036         (extract_interface_info): New stub.
5037         * c-lang.c: Don't declare yy_cur or parse_options.
5038         (lang_init_options): Call cpp_init.  Don't call
5039         cpp_options_init.
5040         (lang_init): Don't call check_newline if USE_CPPLIB.
5041
5042         * c-lex.c: Don't include c-parse.h.  Do include timevar.h.
5043         Elide lots of unnecessary code if USE_CPPLIB.  Delete code
5044         rendered unnecessary by new architecture.  Move routines not
5045         shared with C++ to c-parse.in.  Maintain a local idea of the
5046         line number.    Handle C++ as well as C.
5047         [USE_CPPLIB]: Declare and register callbacks for #ident and
5048         for entering/leaving files.
5049         (init_c_lex, c_lex): Are now the entry points to this file.
5050         (check_newline): Break out directive handling to
5051         process_directive.
5052         (read_ucs, is_extended_char, utf8_extend_token): Moved here
5053         from C++ front end.
5054         (readescape, parse_float): Overhaul.
5055         (lex_number, lex_string, lex_charconst): Break out of c_lex
5056         (n'ee yylex).
5057         (get_fileinfo, update_header_times, dump_one_header,
5058         dump_time_statistics): New and/or moved here from C++.
5059         Support per-file data needed by C++ and per-header timing
5060         statistics (C++ only, at the moment).
5061         * c-lex.h: Update prototypes.  Add multiple include guard.
5062         * c-tree.h (struct lang_identifier): Add rid_code field.
5063         (C_IS_RESERVED_WORD, C_RID_CODE): New.
5064
5065         * c-parse.in: Include c-pragma.h. Remove unnecesary calls to
5066         reinit_parse_for_function and/or position_after_white_space.
5067         (save_filename, save_lineno): Look ahead before saving.
5068         (label -> identifier ':'): Save file and line before shifting ':'.
5069         (reservedwords): No need to call get_identifier.
5070         (init_parse, finish_parse, yyerror, yylex, yyprint,
5071         make_pointer_declarator): Are now here for C/ObjC.
5072         (rid_to_yy): Conversion table from RID constants to Yacc codes.
5073
5074         * c-pragma.c: Rewrite parsing logic to fit with cpplib's
5075         #pragma registry.  Provide dummy implementation of that
5076         interface if !USE_CPPLIB.
5077         * c-pragma.h: Update to match.
5078
5079         * flags.h: Add multiple include guard.
5080         (flag_detailed_statistics): Moved here from C++.
5081         * toplev.c: Define flag_detailed_statistics.
5082
5083         * gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
5084         #if USE_CPPLIB.
5085         * timevar.def (TV_CPP, TV_LEX): New.
5086         * timevar.h: Add multiple include guard.
5087
5088         * objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
5089         #if USE_CPPLIB.
5090         * objc/objc-act.c: Don't mention yy_cur or parse_options.
5091         Initialize cpplib properly.  Force lineno to 0 after first
5092         call to check_newline.  Don't handle -lang-objc here.
5093         Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
5094
5095 2000-09-06  David Edelsohn  <edelsohn@gnu.org>
5096
5097         * rs6000.md: Correct function unit definitions for cr_logical and
5098         mtjmpr.
5099         (sCOND): Additionally fail for sgt, slt, sge, sle if !TARGET_POWER
5100         and use portable method for >=0 and floating point >=.  Remove
5101         associated matchers.
5102
5103 2000-09-06  Mark Mitchell  <mark@codesourcery.com>
5104
5105         * extend.texi: Mark named return value extension as deprecated.
5106
5107 2000-09-06  Geoff Keating  <geoffk@cygnus.com>
5108
5109         * config/rs6000/rs6000.c (rs6000_reverse_condition): Return
5110         the result.
5111
5112 2000-09-06  Gabriel Dos Reis  <gdr@codesourcery.com>
5113
5114         * toplev.c (display_help): Fix thinko in documentation.
5115
5116         * diagnostic.h (output_buffer::indent_skip): New fields.
5117         (output_indentation): New macro.
5118
5119         * diagnostic.c (output_indent): New function.
5120         (output_set_prefix, clear_diagnostic_info): Use.
5121         (output_emit_prefix): Predict future indentation.
5122
5123 2000-09-06  DJ Delorie  <dj@redhat.com>
5124
5125         * Makefile.in (stage_*): add more dependencies to ensure parallel
5126         builds build correctly
5127
5128 2000-09-06  Manfred Hollstein  <manfredh@redhat.com>
5129
5130         * Makefile.in (bootstrap-lean): Depend on bootstrap-lean_g,
5131         not bootstrap-lean_f.
5132
5133 2000-09-06  Andreas Schwab  <schwab@suse.de>
5134
5135         * mklibgcc.in: Emit rule for libgcc-stage-start.
5136         * Makefile.in (stage1-start, stage2-start, stage3-start,
5137         stage4-start): Don't handle libgcc here, use libgcc.mk instead.
5138
5139 2000-09-06  Bernd Schmidt  <bernds@redhat.co.uk>
5140
5141         * local-alloc.c (local_alloc): Ignore CLASS_LIKELY_SPILLED.
5142         (update_equiv_regs): Likewise, except for the mn10200 kludge.
5143         (combine_regs): Likewise.
5144
5145         * Makefile.in (cse.o): Depend on $(BASIC_BLOCK_H).
5146         * cse.c: Include "basic-block.h".
5147         (struct table_elt): New field REGCOST.
5148         (CHEAP_REG): Delete macro.
5149         (COST): Return 0 for REGs.
5150         (approx_reg_cost_1, approx_reg_cost, preferrable): New functions.
5151         (notreg_cost): Return 0 for appropriate SUBREGs.
5152         (COSTS_N_INSNS): Return N * 2.
5153         (rtx_cost): Return 0 for REGs, and use cost of nested rtx for cheap
5154         SUBREGs.
5155         (CHEAPER): Use new function preferrable.
5156         (insert): Initialize REGCOST member.
5157         (find_best_addr): Use approx_reg_cost for estimation of register
5158         usage.
5159         (cse_insn): Likewise.
5160         * loop.c (iv_add_mult_cost): New function.
5161         (add_cost, shift_cost, mult_cost): Delete variables.
5162         (init_loop): Don't initialize add_cost; reduce copy_cost by half.
5163         (strength_reduce): Use iv_add_mult_cost instead of fixed add_cost.
5164         Make code that detects autoinc opportunities slightly less optimistic.
5165         (simplify_giv_expr): If expression contains other reg that is also a
5166         giv, only increment benefit if this is the only use of that reg.
5167         (consec_sets_giv): Take that change into account.
5168         (combine_givs): Slightly more verbose output.
5169
5170         * i386.h (RTX_COSTS): For MULT, return true cost of multiplication,
5171         not the cost of an equivalent shift.
5172         * sh-protos.h (addsubcosts): Declare.
5173         * sh.c (addsubcosts): New function.
5174         * sh.h (CONST_COSTS): If CONST_OK_FOR_I, then return 0.
5175         (RTX_COSTS): Tweak.  Use addsubcosts.
5176         (ADDRESS_COST): Return higher cost for reg+reg addressing.
5177
5178 2000-09-06  Geoff Keating  <geoffk@cygnus.com>
5179
5180         * config/rs6000/rs6000.c (validate_condition_mode): New function.
5181         (branch_comparison_operator): Call validate_condition_mode to
5182         abort rather than returning 0.
5183         (branch_positive_comparison_operator): New function.
5184         (scc_comparison_operator): Call validate_condition_mode to abort
5185         rather than returning 0.
5186         (ccr_bit): Call validate_condition_mode.  Update for
5187         new branch scheme.
5188         (print_operand): Delete %C modifier.  Update %E case
5189         to use EQ bit not SO bit.
5190         (rs6000_reverse_condition): New function.
5191         (rs6000_generate_compare): New function.
5192         (rs6000_emit_sCOND): New function.
5193         (rs6000_emit_cbranch): New function.
5194         (output_cbranch): The length of a long branch insn is
5195         now only 8 bytes.  Add validate_condition_mode.  Use
5196         rs6000_reverse_condition.  Remove cror generation.
5197
5198         * config/rs6000/rs6000.h: Update comments.
5199         (PREDICATE_CODES): Add new predicate.  Update codes used
5200         by branch_comparison_operator and scc_comparison_operator.
5201         * config/rs6000/rs6000-protos.h: Add prototypes for
5202         new external functions.
5203         * config/rs6000/rs6000.md: Add new scheduling parameters
5204         for cr_logical instructions.  Change length of branch
5205         instructions.
5206         (bCOND patterns): Call rs6000_emit_cbranch.
5207         (sCOND patterns): Call rs6000_emit_sCOND.
5208         (branch patterns): Change lengths to 4.
5209         (cr logical patterns): New.
5210
5211 2000-09-06  Richard Henderson  <rth@cygnus.com>
5212
5213         * config/i386/i386.md (call_pop): Fix test for setting
5214         current_function_uses_pic_offset_table.
5215         (call, call_value_pop, call_value): Likewise.
5216
5217 2000-09-06  Zack Weinberg  <zack@wolery.cumb.org>
5218
5219         * timevar.c (timevar_add): Delete.
5220         (timevar_get): Also count time since the selected timer was
5221         last updated.  Do not examine the timevar stack if the
5222         selected timer is standalone.
5223
5224 2000-09-05  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
5225
5226         * gthr-dce.h (__gthread_objc_mutex_deallocate): Free mutex->backend.
5227
5228 2000-09-05  Jason Merrill  <jason@redhat.com>
5229
5230         * c-decl.c (finish_incomplete_decl): Don't call complete_array_type
5231         for 'extern' arrays.
5232
5233 2000-09-05  Richard Henderson  <rth@cygnus.com>
5234
5235         * config/ia64/lib1func.asm (__divtf3): Rebundle for Itanium.
5236         Eliminate final copy from non-trapping case.
5237         (__divdf3, __divsf3): Likewise.
5238
5239 2000-09-05  Richard Henderson  <rth@cygnus.com>
5240
5241         * config/ia64/ia64.md (mulhi3): Fix typo last change.
5242         * config/ia64/lib1func.asm (__divdi3, __udivdi3, __umodsi3): Likewise.
5243
5244 2000-09-03  Donn Terry  <donn@interix.com>,  Laurynas Biveinis  <lauras@softhome.net>
5245
5246         * Makefile.in: Restructure bootstrap stages to allow clean
5247         restart after failure.
5248
5249 2000-09-05  Richard Henderson  <rth@cygnus.com>
5250
5251         * config/ia64.md (movsi and movdi patterns): Allow moves from
5252         8-bit constants to AR registers.
5253
5254 2000-09-05  Richard Henderson  <rth@cygnus.com>
5255
5256         * config/ia64/ia64.md (mulhi3): New.
5257
5258 2000-09-05  Richard Henderson  <rth@cygnus.com>
5259
5260         * config/ia64/ia64.h (INIT_TARGET_OPTABS): Remove.
5261         * config/ia64/lib1funcs.asm (__divdi3): Update from Intel IA-64
5262         Optimization Guide, minimum latency alternative.
5263         (__moddi3, __udivdi3, __umoddi3): Likewise.
5264         (__divsi3, __modsi3, __udivsi3, __umodsi3): Likewise.
5265
5266 2000-09-05  Bruce Korb  <bkorb@gnu.org>
5267
5268         * fixinc/fixincl.c (load_file): always read header files
5269         with sizes that are a multiple of the page size.
5270         & use libiberty's getpagesize for determining that.
5271
5272 2000-09-05  Alexandre Oliva  <aoliva@redhat.com>
5273
5274         * gcse.c (hash_string_1): Add prototype.
5275         * cse.c (canon_hash_string): Likewise.
5276
5277 2000-09-04  Craig Newell  <CraigN@ieee.org>
5278
5279         * gcc.c: Undefine "__WCHAR_TYPE__" before redefining it.
5280
5281 2000-09-04  Andreas Schwab  <schwab@suse.de>
5282
5283         * Makefile.in (STAGESTUFF): Remove libgcc.
5284         (stage1-start, stage2-start, stage3-start): Copy the contents of
5285         the libgcc directory explicitly.
5286         (mostlyclean): Clean libgcc.
5287
5288 2000-09-04  Andrew Haley  <aph@redhat.com>
5289
5290         * dwarf2out.c: (stack_adjust_offset): New prototype.
5291
5292 Wed Jan  1 00:23:59 MET 1997  Jan Hubicka  <jh@suse.cz>
5293
5294         * combine.c (make_extraction): Fix rtx_cost comparison to
5295         match the comment.
5296
5297 Wed Jan  1 00:17:32 MET 1997  Jan Hubicka  <jh@suse.cz>
5298
5299         * i386.md (pushsi2, pushhi2, pophi2, swapsf, swapdf,
5300         umulsi3_highpart, smulsi3_highpart, testqi_ccno_1, xorqi_ext_1):
5301         Add '*' to insn pattern name.
5302
5303 2000-09-04  Jakub Jelinek  <jakub@redhat.com>
5304
5305         * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
5306         use posn - 1 to index into tokens array.
5307         (maybe_paste_with_next): Adjust caller.
5308
5309 2000-09-03  Geoff Keating  <geoffk@cygnus.com>
5310
5311         * invoke.texi: Document the -mvxworks option for rs6000 ELF.
5312
5313         * config/rs6000/rs6000.h: Update various comments about XER_REGNO.
5314         (REGNO_REG_CLASS): Use symbolic register
5315         names.
5316
5317 2000-09-03  Richard Earnshaw  <rearnsha@arm.com>
5318
5319         * arm.c (final_prescan_insn): If the form of a jump insn isn't
5320         recognized, don't try to conditionally execute it.
5321
5322 Sun Sep  3 13:10:56 2000  Denis Chertykov  <denisc@overta.ru>
5323
5324         * config/avr/avr.md ("*tablejump_lib"): New pattern.
5325         (call_value_insn): Right length claculation.
5326         (call_insn): Likewise.
5327
5328 2000-09-02  Marek Michalkiewicz  <marekm@linux.org.pl>
5329
5330         * config/avr/avr-protos.h, config/avr/avr.c (unique_section,
5331         gas_output_limited_string, gas_output_ascii, output_movqi,
5332         output_movhi, out_movqi_r_mr, out_movqi_mr_r, out_movhi_r_mr,
5333         out_movhi_mr_r, out_movsi_r_mr, out_movsi_mr_r, output_movsisf,
5334         out_tstsi, out_tsthi, ret_cond_branch, ashlqi3_out, ashlhi3_out,
5335         ashlsi3_out, ashrqi3_out, ashrhi3_out, ashrsi3_out, lshrqi3_out,
5336         lshrhi3_out, lshrsi3_out, output_reload_inhi, output_reload_insisf,
5337         out_shift_with_cnt, ptrreg_to_str, cond_string, encode_section_info):
5338         Add "const" as needed to remove warnings.
5339
5340         * config/avr/avr.c (avr_override_options, avr_init_once,
5341         function_prologue, function_epilogue, frame_pointer_required_p,
5342         class_likely_spilled_p, order_regs_for_local_alloc,
5343         avr_address_cost, avr_ret_register): Use K&R style arguments.
5344         (initial_elimination_offset, gas_output_limited_string):
5345         Remove ATTRIBUTE_UNUSED from the used arguments.
5346         (output_mov*, out_mov*_r_mr, out_mov*_mr_r, output_reload_insisf):
5347         Use local variables src, dest, base to access operands[].
5348         Rename reg_dest to reg_src if that's what it is.
5349         (output_movhi, output_movsisf): Optimize loading 8-bit immediate
5350         constants to LD_REGS if reg_was_0.
5351         (output_reload_insisf): Change arg 3 to insn length and set it.
5352         (out_movhi_r_mr, out_movhi_mr_r): Use in/out for more efficient
5353         access to 16-bit I/O register pairs.
5354         (avr_address_cost): Lower cost for the above case.
5355         (out_tsthi): Use "or" (faster) instead of "sbiw" if the operand
5356         may be clobbered, also for LD_REGS.
5357         (adjust_insn_length): Correct insn length for iorhi3 and iorsi3
5358         with a CONST_INT.
5359
5360         * config/avr/avr.h (PTRDIFF_TYPE): Make signed.
5361
5362         * config/avr/avr.md: Change all uses of the TEST_HARD_REG_CLASS
5363         macro to test_hard_reg_class function.
5364         (*movsi, *movsf): Change "cc" attribute from "clobber" to "none"
5365         for loading immediate constants to LD_REGS.
5366         (andsi3, cmphi, cmpsi): Add return statements to avoid warnings.
5367
5368
5369 Sat Sep  2 13:58:23 2000  Marek Michalkiewicz <marekm@linux.org.pl>
5370
5371         * config/avr/avr.md ("*negsi2"): substitute %@ to __zero_reg__
5372         * config/avr/libgcc.S: Lost part of the previous patch.
5373
5374 2000-08-31  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
5375
5376         * gthr-dce.h (__gthread_objc_mutex_allocate): Create a pthread_mutex_t
5377         object before calling pthread_mutex_init.
5378
5379 2000-09-02  Alexandre Oliva  <aoliva@redhat.com>
5380
5381         * config/sh/t-elf, config/sh/crt1.asm, config/sh/crti.asm,
5382         config/sh/crtn.asm: New files.
5383         * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Set.
5384         (crt1.o, crti.o, crtn.o): New targets.
5385         * configure.in [sh-*-elf*, sh-*-rtemself*] (tmake_file): Added
5386         sh/t-elf.
5387         * configure: Rebuilt.
5388         * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
5389         STARTFILE_SPEC, ENDFILE_SPEC, CRT_CALL_STATIC_FUNCTION): Define.
5390         * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
5391         Undefine for config/elfos.h to redefine.
5392         (STARTFILE_SPEC, ENDFILE_SPEC): Redefine after config/elfos.h.
5393
5394 2000-09-02  Alexandre Oliva  <aoliva@redhat.com>, Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5395
5396         * config/sh/sh-protos.h (nonpic_symbol_mentioned_p,
5397         legitimize_pic_address, output_pic_addr_const): Declare.
5398         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Fix PIC register.
5399         (PREFERGOT_BIT, TARGET_PREFERGOT): Likewise.
5400         (TARGET_SWITCHES): New switch -mprefergot.
5401         (OVERRIDE_OPTIONS): Set flag_no_function_cse unless -mprefergot.
5402         (PIC_OFFSET_TABLE_REGNUM): Define.
5403         (GOT_SYMBOL_TABLE): Likewise.
5404         (LEGITIMIZE_ADDRESS): Use legitimize_pic_address.
5405         (ENCODE_SECTION_INFO): Define.
5406         (FINALIZE_PIC): New macros.
5407         (LEGITIMATE_PIC_OPERAND_P, SYMBOLIC_CONST_P): New macro.
5408         (ASM_OUTPUT_INT, ASM_OUTPUT_SHORT): Use output_pic_addr_const.
5409         * config/sh/sh.c (print_operand_address): Use output_pic_addr_const.
5410         (prepare_move_operands): Call emit_pic_move or
5411         emit_pic_const_move if appropriate.
5412         (output_far_jump): For PIC, use braf and output long offset.
5413         (machine_dependent_reorg):
5414         (sh_expand_prologue): Save and initialize the PIC register.
5415         (sh_expand_epilogue): Restore it.
5416         (initial_elimination_offset): Account for it.
5417         (nonpic_symbol_mentioned_p): New function.
5418         (legitimize_pic_address): Likewise.
5419         (output_pic_addr_const): Likewise.
5420         * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): New insns.
5421         (call, call_value): Use them.
5422         (GOTaddr2picreg, sym_label2reg, symGOT2reg, symGOTOFF2reg,
5423         symPLT_label2reg): New expands.
5424         * invoke.texi (SH Options): Document -mprefergot.
5425
5426 2000-09-01  Alexandre Oliva  <aoliva@redhat.com>
5427
5428         * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
5429         * gcse.c (hash_string_1): New function.
5430         (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
5431         (expr_equiv_p) <ASM_OPERANDS>: Likewise.
5432         * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
5433         (canon_hash_string): New function.
5434         (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
5435         (exp_equiv_p) <ASM_OPERANDS>: Likewise.
5436         (fold_rtx): Use ASM_OPERANDS accessor macros.
5437         * emit-rtl.c (copy_insn_1): Likewise.
5438         * integrate.c (copy_rtx_and_substitute): Likewise.
5439         * stmt.c (expand_asm_operands): Likewise.  Give an
5440         ASM_OPERANDS rtx the mode of the output reg being set from it.
5441
5442 2000-09-01  Fred Fish  <fnf@be.com>
5443
5444         * fix-header.c (write_rbrac): Add putc and getc to list of
5445         functions to protect against prior definition as a macro.
5446
5447 2000-09-01  Joseph S. Myers  <jsm28@cam.ac.uk>
5448
5449         * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
5450         (c_size_type_node): Define.
5451         * c-decl.c (init_decl_processing): Initialize c_size_type_node.
5452         * c-common.c (enum format_lengths, enum format_std_version,
5453         format_length_info, format_type_detail, BADLEN, NOLENGTHS,
5454         format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
5455         T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
5456         T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
5457         T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
5458         TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
5459         format_types): Define.
5460         (format_char_info, print_char_table, scan_char_table,
5461         time_char_table): Rearrange for new organization of information
5462         about format length modifiers and standard versions.
5463         (T_ST): Redefine to use c_size_type_node.
5464         (check_format_info): Obtain information about length modifiers and
5465         standard versions from tables.  Adjust warning message wordings.
5466         Use the name from the user's program for `ll' and `hh' length
5467         modifiers in warning messages.  Use more informative names for
5468         wanted types where available (for wchar_t, wint_t, size_t, signed
5469         size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).
5470
5471 2000-09-01  Jim Wilson  <wilson@cygnus.com>
5472
5473         * calls.c (emit_call_1): Add REG_NORETURN note to call if ECF_NORETURN.
5474         * combine.c (distribute_notes): Handle REG_NORETURN.
5475         * rtl.c (reg_note_name): Add REG_NORETURN.
5476         * rtl.h (enum reg_note): Likewise.
5477
5478         * config/ia64/ia64-protos.h (emit_safe_across_calls): Renamed from
5479         ia64_file_start.
5480         * config/ia64/ia64.c (emit_safe_across_calls): Likewise.
5481         (rtx_needs_barrier): Handle unspec_volatile 8 and 9.
5482         (emit_predicate_relation_info): Handle conditional calls with
5483         REG_NORETURN.
5484         * config/ia64/ia64.h (ASM_FILE_START): Call emit_safe_across_calls
5485         instead of ia64_file_start.
5486         * config/ia64/sysv4.h (ASM_FILE_START): Likewise.
5487         * config/ia64/ia64.md (safe_across_calls_all,
5488         save_across_calls_normal): New patterns.
5489
5490         * loop.c (check_final_value): Check for biv use before checking for
5491         giv use.  Check for both biv and giv uses.  Always set last_giv_use
5492         if there is a giv use.
5493
5494 2000-09-01  Richard Henderson  <rth@cygnus.com>
5495
5496         * config/ia64/ia64.md (mulsi3): Use grfr_register_operand.
5497         (madddi3): Likewise.
5498         (maddsi3): New.
5499
5500 Fri Sep  1 10:59:47 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5501
5502         * expr.c (clear_storage): Don't use emit_move_insn unless
5503         either BLKmode or proper size.
5504         (store_constructor): Don't call clear_storage if REG of wrong size.
5505
5506         * flow.c (init_propagate_block_info): Don't mark frame dead at end
5507         of function if returns wiht stack pointer depressed.
5508
5509 2000-09-01  Andrew Haley  <aph@redhat.com>
5510
5511         * dwarf2out.c (stack_adjust_offset): New function.
5512         (dwarf2out_stack_adjust): Break out stack adjust logic into
5513         new stack_adjust_offset function.  Look inside parallels and
5514         sequences for stack adjustments.
5515
5516 2000-08-31  Jeff Law <law@cygnus.com>
5517
5518         * arm.md: Use no_new_pseudos to determine when it is safe
5519         to create new pseudo registers.
5520
5521         * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
5522         when we can safely allocate new registers.
5523
5524 2000-08-31  Geoffrey Keating  <geoffk@cygnus.com>
5525
5526         * stmt.c (expand_asm_operands): Twiddle generating_concat_p
5527         so that CONCATs are not generated for ASMs.
5528         * emit-rtl.c (gen_reg_rtx): Don't generate CONCATs when
5529         not generating_concat_p.
5530         * function.c (pop_function_context_from): Reset
5531         generating_concat_p.
5532         (prepare_function_start): Likewise.
5533         * rtl.c (generating_concat_p): Define.
5534         * rtl.h (generating_concat_p): Declare.
5535         * toplev.c (rest_of_compilation): No CONCATs after RTL generation.
5536
5537 2000-08-22  Philipp Thomas  <pthomas@suse.de>
5538             Masanobu Yuhara <yuhara@flab.fujitsu.co.jp>
5539
5540         * gmicro.h (TARGET_SWITCHES): Add descriptions and mark them
5541         for translation.
5542
5543 2000-08-30  Greg McGary  <greg@mcgary.org>
5544
5545         * Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
5546         * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC).
5547         * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE.
5548
5549 2000-08-30  Greg McGary  <greg@mcgary.org>
5550
5551         * tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
5552         (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct.
5553         (TREE_INT_CST): New macro.
5554         * varasm.c (const_hash, compare_constant_1, record_constant_1):
5555         Use new macro TREE_INT_CST.
5556
5557 Wed 30-Aug-2000 23:18:59 BST  Neil Booth  <NeilB@earthling.net>
5558
5559         * contrib.texi: Add self.
5560
5561 2000-08-30  Alexandre Oliva  <aoliva@redhat.com>
5562
5563         * config/sh/sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): New insns.
5564         (cmpeqdi_t splitter): Use cmpeqsi_and_t instead of emitting jumps
5565         and labels.
5566
5567 2000-08-30  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
5568
5569         * fixinc/gnu-regex.c: Don't define `const'.
5570
5571 Tue Aug 29 22:09:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5572
5573         * expr.c (store_constructor): Allow variable bounds of array type.
5574         (expand_expr): Don't blow up if type is ERROR_MARK.
5575         * varasm.c (output_constructor): Don't access lower bound of array
5576         type unless need it if index is supplied (so it can be a variable
5577         if no index is supplied).
5578         Use tree_low_cst; use HOST_WIDE_INT for sizes; change BITPOS to POS.
5579         Other minor cleanups.
5580
5581 2000-08-29  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
5582
5583         * Makefile.in: Revamp handling of cflags to allow different WARN_CFLAGS
5584         for compilations in stage 1 and subsequent stages, respectively.
5585         * configure.in (vax): Add compiler-dependent CFLAGS for stage 1.
5586         * configure: Rebuilt.
5587         * x-vax, x-vax-gcc: Deleted.
5588
5589 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
5590
5591         * c-common.c (declare_function_name): Use func_id_node,
5592         function_id_node, and pretty_function_id_node.  Do not make
5593         __func__ visible at file scope.
5594         * c-common.h (c_tree_index): Add CTI_FUNCTION_ID,
5595         CTI_PRETTY_FUNCTION_ID, and CTI_FUNC_ID.
5596         (function_id_node, pretty_function_id_node, func_id_node): New
5597         macros.
5598         * c-decl.c (init_decl_processing): Initialize function_id_node,
5599         pretty_function_id_node, and func_id_node.
5600         (c_make_fname_decl): Correct comment.
5601
5602         * tree.h (struct tree_identifier): Constify pointer member.
5603
5604         * c-decl.c (pushdecl, implicit_decl_warning): Constify a char *.
5605         * c-pragma.h (struct weak_syms): Constify name and value members.
5606         (add_weak): Constify arguments.
5607
5608         * calls.c (special_function_p): Constify a char *.
5609         (expand_call): Remove variable which is initialized and then
5610         never used.
5611         * dependence.c (struct def_use, struct induction, struct subscript):
5612         Constify 'variable' member.
5613         (get_low_bound, have_induction_variable): Constify char * argument.
5614         (find_induction_variable): Add braces to avoid dangling else.
5615         (classify_dependence): Constify char * arrays.
5616         * profile.c (output_func_start_profiler): Constify a char *.
5617         * stor-layout.c (finalize_record_size): Constify a char *.
5618         * tree.c (is_attribute_p): Constify a char *.
5619         * varasm.c (add_weak, remove_from_pending_weak_list): Constify argument.
5620
5621         * varasm.c (make_function_rtl, make_decl_rtl): Rearrange code
5622         for comprehensibility.  Do not call get_identifier if we did
5623         not change the DECL_ASSEMBLER_NAME of the decl.  Use alloca to
5624         create temporary string constants, not ggc_alloc_string.  No
5625         need to copy result of ASM_FORMAT_PRIVATE_NAME.  Use const
5626         char * to hold IDENTIFIER_POINTERs.
5627
5628 2000-08-29  Richard Henderson  <rth@cygnus.com>
5629
5630         * config/ia64/ia64.md (muldi3): Use grfr_register_operand
5631         for the inputs.
5632
5633 2000-08-29  Richard Henderson  <rth@cygnus.com>
5634
5635         * reload.c (push_secondary_reload): Allow class == reload_class
5636         if we're using a reload_in/out pattern.
5637
5638         * config/ia64/ia64.md (reload_inti): Use a TImode scratch.  Use
5639         the half that does not conflict with the reload register.
5640         (reload_outti): Likewise.
5641
5642 2000-08-29  Kazu Hirata  <kazu@hxi.com>
5643
5644         * reload.c: Fix formatting.
5645
5646         * stmt.c: Fix formatting.
5647
5648         * gcc.c: Fix formatting.
5649
5650 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
5651
5652         * flags.h (time_report, mem_report): New global flags.
5653         * toplev.c: Define time_report and mem_report.
5654         (f_options): Add -ftime-report and -fmem-report.
5655         (compile_file): Turn on time_report if quiet_flag is off.
5656         Call ggc_print_statistics at very end if mem_report is on.
5657         * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
5658
5659         * ggc-common.c (ggc_print_statistics): Rename to
5660         ggc_print_common_statistics; all callers changed.  Scale
5661         quantities above 10K to kilobytes and above 10M to megabytes.
5662         * ggc-page.c (ggc_page_print_statistics): Rename to
5663         ggc_print_statistics.  Report memory consumed by internal data
5664         structures for each allocation bucket.  Scale quantities above
5665         10K to kilobytes and above 10M to megabytes.
5666         * ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
5667         Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
5668         Define tally_leaves always.
5669         (ggc_print_statistics): New function.
5670         * ggc.h: Adjust for renamed functions.
5671
5672 Wed Aug 30 00:11:42 2000  Denis Chertykov  <denisc@overta.ru>
5673
5674         * config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
5675         output_movsisf instead of which_alternative.
5676
5677         * config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
5678
5679 Tue Aug 29 22:29:58 2000  Denis Chertykov  <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
5680
5681         * config/avr/avr-protos.h: (avr_output_ascii) Removed.
5682         (avr_progmem_p): New prototype.
5683         (output_movsisf): Prototype declaration changed.
5684         (output_movqi): New prototype.
5685         (output_movhi): New prototype.
5686         (call_insn_operand): Likewise.
5687         (final_prescan_insn): Likewise.
5688         (avr_simplify_comparision_p): Likewise.
5689         (avr_normalize_condition): Likewise.
5690         (compare_eq_p): Likewise.
5691         (out_shift_with_cnt): Likewise.
5692         (const_int_pow2_p): Likewise.
5693         (output_reload_inhi): Prototype declaration changed.
5694
5695         * config/avr/avr.c: (debug_hard_reg_set): Prototype declared.
5696         (ldi_reg_rtx): New. rtx for r31.
5697         (avr_init_stack): Initialize as "__stack".
5698         (function_prologue): Use it.
5699         Replace all TARGET_ENHANCED with AVR_ENHANCED.
5700         (avr_mcu_name): Initialize as "avr2".
5701         (avr_enhanced_p, avr_mega_p): New variables.
5702         (mcu_types, avr_override_options): Handle all known MCU types.
5703         Also handle avr1 (only preprocess, assemble and link).
5704         (print_operand): Using of `%K' in output template removed.
5705         (out_movqi_r_mr): Optimized.
5706         (out_movhi_r_mr): Likewise.
5707         (output_movqi): New function.
5708         (output_movhi): Likewise.
5709         (out_movsi_r_mr): Optimized.
5710         (output_movsisf): Compute insn length for `adjust_insn_length'
5711         (out_movqi_mr_r): Optimized.
5712         (out_movhi_mr_r): Optimized.
5713         (adjust_insn_length): Use output_movsisf, output_movqi,
5714         output_movhi for insn length adjusting.
5715         (reg_unused_after): Use dead_or_set_p.
5716         (preferred_reload_class): Now havn't any restriction.
5717         (reg_was_0): New function.
5718         (io_address_p): Likewise.
5719         (const_int_pow2_p): Likewise.
5720         (output_reload_inhi): Likewise.
5721         (output_reload_insisf): Likewise.
5722
5723         * config/avr/avr.h (MULTILIB_DEFAULTS): Define.
5724         (LIB_SPEC): Use -lc for all supported devices.
5725         (LIBGCC_SPEC): Use -lgcc for all supported devices.
5726         (AVR_MEGA): Define as avr_mega_p.
5727         (AVR_ENHANCED): New, define as avr_enhanced_p.
5728         (TARGET_SWITCHES): Remove -menhanced, now handled by -mmcu=...
5729         (CPP_SPEC, LINK_SPEC): Handle all known MCU types.
5730         (CRT_BINUTILS_SPECS): Handle all known MCU types.
5731         Rename gcrt1-*.o to make file names unique on 8.3 filesystems.
5732         (EXTRA_SPECS): Add CPP_AVR[1-5]_SPEC.
5733         (ASM_SPEC): Pass -mmcu=... to the assembler.
5734         Change all -DAVR_* to -D__AVR_*__.
5735         (INIT_TARGET_OPTABS), config/avr/libgcc.S:
5736         Rename library functions to start with two underscores.
5737         (ASM_OUTPUT_COMMON): Outputs `.comm VAR,VAR-SIZE,1' to avoid
5738         alignment.
5739         (ASM_WEAKEN_LABEL): Declared for __attribute__((weak)).
5740         (SUPPORTS_WEAK): Likewise.
5741         (LDI_REG_REGNO): New. Register r31 will be used as temporary
5742         register for loading constants to r0-r14.
5743
5744         * config/avr/avr.md: Replace all TARGET_ENHANCED with
5745         AVR_ENHANCED.
5746         (*mov_r_sp): Removed. Handled by output_movhi.
5747         (*mov_sp_r): Likewise.
5748         (*mov_sp_r_no_interrupts): Likewise
5749         (*mov_sp_r_tiny): Likewise.
5750         (*movqi): Use output_movqi.
5751         (*reload_inqi): New.
5752         (*movhi): Use output_movhi.
5753         (*reload_inhi): New.
5754         (*negsi2): Optimized.
5755         (*negsf2): Likewise.
5756         Added peepholes (define_peephole2) for loading constants to r0-r14
5757         and for using `cpse' command.
5758
5759         * config/avr/libgcc.S: Rename library functions to start with two
5760         underscores.
5761         Add support for enhanced core.
5762         (_moqhi3): Fix typo, now _modqi3.
5763         (__divsi_raw): Use __zero_reg__ as loop counter, smaller by 1 word.
5764         (__prologue_saves__): Remove test for stack adjust by 0.
5765         (__tablejump__): New.
5766
5767         * config/avr/t-avr: Build libgcc2 with -mcall-prologues.
5768         Add multilib support.
5769
5770 Tue Aug 29 15:17:54 EDT 2000  John Wehle  (john@feith.com)
5771
5772         * loop.c (prescan_loop): Don't check unknown_address_altered
5773         when deciding if insert_loop_mem is safe.  Add BLKmode MEMs
5774         to loop_store_mems as necessary.
5775         (loop_invariant_p): Don't check unknown_address_altered
5776         or unknown_constant_address_altered.
5777
5778 2000-08-29  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
5779
5780         * vax.md (sltu, sgeu): Delete sltu and sgeu insn patterns.
5781
5782 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
5783
5784         * cpperror.c (print_file_and_line): If line is (unsigned int)-1,
5785         print just the filename.
5786         * cpplex.c (_cpp_run_directive): Add additional argument, the
5787         name to give the synthetic buffer.  This defaults to
5788         translated "<command line>".
5789         * cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
5790         Adjust to match.
5791         (_cpp_define_builtin): New function.
5792         * cppinit.c (initialize_builtins): Use _cpp_define_builtin.
5793         * cpphash.h: Update prototypes.
5794
5795         * tradcpp.c (main): Process -D and -U simultaneously, in the
5796         order they appeared on the command line.
5797
5798 2000-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5799
5800         * c-decl.c (define_label): Call warning_with_file_and_line and
5801         error_with_file_and_line instead of plain warning or error.
5802
5803         * c-parse.in (label): Use save_filename/save_lineno to ensure
5804         correct values for calls to define_label.
5805
5806 2000-08-29  Mark Mitchell  <mark@codesourcery.com>
5807
5808         * calls.c (expand_call): Don't create a VAR_DECL just to throw it
5809         away.
5810         * expr.c (expand_expr, case TARGET_EXPR): Don't call
5811         mark_addressable.
5812         * tree.h (get_file_function_name): Remove two duplicate
5813         declarations.
5814
5815 2000-08-28  Kazu Hirata  <kazu@hxi.com>
5816
5817         * tree.c: Fix formatting.
5818
5819         * xcoffout.c: Fix formatting.
5820
5821 2000-08-28  Jason Merrill  <jason@redhat.com>
5822
5823         * dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
5824
5825 2000-08-28  Daniel Berlin  <dberlin@redhat.com>
5826
5827         * dwarf2out.c (dwarf2out_finish): Don't bother calling
5828         break_out_includes if it won't do anything.
5829
5830 2000-08-28  Richard Henderson  <rth@cygnus.com>
5831
5832         * reload.c (push_secondary_reload): Revert 2000-08-16 change.
5833         (find_reloads): Likewise.
5834         * config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
5835         (reload_inhi): Likewise.
5836
5837 2000-08-28  Richard Henderson  <rth@cygnus.com>
5838
5839         * config/i386/i386.c: Don't error on EXTRA_CONSTRAINT defined.
5840         (call_insn_operand): Don't expect a surrounding mem.
5841         (constant_call_address_operand): Likewise.
5842         * config/i386/i386.h (PREDICATE_CODES): Update.
5843         * config/i386/i386.md (call patterns): Move the match_operand
5844         for the call destination inside the mem.
5845
5846 2000-08-28  Richard Henderson  <rth@cygnus.com>
5847
5848         * local-alloc.c (requires_inout): Don't use reserved range for
5849         EXTRA_CONSTRAINTS; use anything not matched by REG_CLASS_FROM_LETTER.
5850         * recog.c (asm_operand_ok): Likewise.
5851         (preprocess_constraints, constrain_operands): Likewise.
5852         * regclass.c (record_reg_classes): Likewise.
5853         * reload.c (find_reloads): Likewise.
5854         * reload1.c (maybe_fix_stack_asms): Likewise.
5855         (reload_cse_simplify_operands): Likewise.
5856         * stmt.c (expand_asm_operands): Likewise.
5857
5858         * md.texi: Update constraints documentation.
5859         * tm.texi (EXTRA_CONSTRAINT): Update.
5860
5861 2000-08-28  Daniel Berlin  <dberlin@redhat.com>
5862
5863         * dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
5864         (print_die): If we don't know the offset of the
5865         target die, try the symbol.  Add a trailing newline.
5866         (reverse_all_dies): New fn.
5867         (dwarf2out_finish): Call it.
5868         (break_out_includes): Reorganize for clarity.
5869         (add_sibling_attributes): Don't call reverse_die_lists.
5870         (output_comp_unit): Rename from output_comdat_comp_unit.  Use for
5871         primary CU, too.
5872         * flags.h: Add flag_eliminate_dwarf2_dups.
5873         * toplev.c (f_options): Support -feliminate-dwarf2-dups.
5874
5875 2000-08-28  Jason Merrill  <jason@redhat.com>
5876
5877         * dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
5878         * dwarf2out.c: #include "md5.h".
5879         (DIE_LABEL_PREFIX): New macro.
5880         (dw_val_struct): Add 'external' flag to val_die_ref.
5881         (add_AT_die_ref, AT_ref): Adjust.
5882         (AT_ref_external, set_AT_ref_external): New fns.
5883         (build_abbrev_table): Call set_AT_ref_external.
5884         (value_format): Call AT_ref_external.
5885         (die_struct): Add die_symbol field.
5886         (new_die): Clear it.
5887         (dwarf_tag_name): Handle BINCL/EINCL.
5888         (dwarf2out_start_source_file): Add BINCL DIE.
5889         (dwarf2out_end_source_file): Add EINCL DIE.
5890         (push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
5891         (loc_checksum, attr_checksum, die_checksum): New fns.
5892         (is_type_die, is_comdat_die, is_symbol_die): New fns.
5893         (compute_section_prefix, assign_symbol_names): New fns.
5894         (gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
5895         (output_die): Call output_die_symbol and AT_ref_external.
5896         (output_comdat_comp_unit): New fn, split out from...
5897         (dwarf2out_finish): ...here.  Also call add_sibling_attributes for
5898         secondary CUs.
5899         (output_pubnames, output_aranges): Abort if we see entries from
5900         secondary CUs.
5901         * toplev.h: Declare file_name_nondirectory.
5902         * toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
5903         (rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
5904         (debug_start_source_file): Call dwarf2out_start_source_file
5905         regardless of debug verbosity.
5906         (debug_end_source_file): Similarly.
5907         * tree.h: Declare clean_symbol_name.
5908         * tree.c (clean_symbol_name): Split out from...
5909         (get_file_function_name_long): ...here.
5910
5911         * dwarf2out.c (new_loc_descr): Use calloc.
5912         (splice_child_die): Remove the die from the right parent.
5913         (gen_struct_or_union_die): Don't add AT_name to a specification DIE.
5914
5915 Mon Aug 28 19:02:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5916
5917         * toplev.c (decode_g_option): Don't give warning for unknown -g
5918         option; return 0 instead.
5919         (main): If -g option is not recognized by front end or
5920         language-independent code, give warning.
5921
5922 2000-08-28  Greg McGary  <greg@mcgary.org>
5923
5924         * config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
5925         * config/i386/i386.c (ix86_expand_compare): Remove `static'.
5926         * config/i386/i386.md (trap, conditional_trap): New insn & expand.
5927
5928 2000-08-27  Greg McGary  <greg@mcgary.org>
5929
5930         * cpplex.c (parse_string): Don't look for backslash
5931         before first char in `namebuf'.
5932         * loop.c (strength_reduce): Skip NOTEs.
5933
5934 2000-08-27  Jason Merrill  <jason@redhat.com>
5935
5936         * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
5937         DECL_EXTERNAL on a local extern.  Don't set DECL_IGNORED_P or
5938         TREE_ASM_WRITTEN, either.
5939         (finish_decl): Adjust.
5940
5941 2000-08-28  Philipp Thomas  <pthomas@suse.de>
5942
5943         * ABOUT-GCC-NLS: Remove gettext patches from Paul Eggert as
5944         they have been incorporated into the gettext CVS. Change the text to
5945         reflect the current status of NLS. Add instructions for accessing
5946         the gettext CVS and add the patch from Martin v. Loewis.
5947
5948 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
5949
5950         * config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
5951         by using gen_lowpart_common.
5952         (movdi_internal64+6): Likewise.
5953
5954 2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
5955
5956         * tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
5957         Document.
5958
5959         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register
5960         numbers to the ranges used by GDB.
5961
5962 2000-08-25  Richard Henderson  <rth@cygnus.com>
5963
5964         * config/ia64/ia64.h (struct machine_function): Add n_varargs.
5965         * config/ia64/ia64.c (ia64_compute_frame_size): Use it.
5966         (ia64_expand_prologue): Likewise.
5967         (ia64_setup_incoming_varargs): Set it.  Properly skip the current
5968         argument for stdargs.
5969
5970 2000-08-25  Jason Merrill  <jason@redhat.com>
5971
5972         * integrate.c (expand_inline_function): Pull out the original decl.
5973
5974 2000-08-25  Jim Wilson  <wilson@cygnus.com>
5975
5976         * cse.c (cse_insn): Don't pass label subtraction to force_const_mem.
5977
5978         * function.c (gen_mem_addressof): Clear MEM_ALIAS_SET if no decl.
5979
5980 2000-08-25  Greg McGary  <greg@mcgary.org>
5981
5982         * flow.c (dump_edge_info): Use ARRAY_SIZE.
5983         * config/alpha/alpha.c (alpha_expand_block_move): Likewise.
5984
5985 2000-08-25  Richard Earnshaw  <rearnsha@arm.com>
5986
5987         * arm.h (STRUCT_VALUE): Define to 0, not NULL.
5988
5989 Fri Aug 25 12:52:49 EDT 2000  John Wehle  (john@feith.com)
5990
5991         * i386.c (ix86_find_base_term): New.
5992         * i386-protos.h (ix86_find_base_term): Prototype.
5993         * i386.h (FIND_BASE_TERM): Define.
5994         * alias.c (find_base_term): Use it.
5995         * tm.texi (FIND_BASE_TERM): Document it.
5996
5997         * alias.c (true_dependence, write_dependence_p): Unchanging
5998         memory can't conflict with non-unchanging memory.
5999
6000         * alias.c (memrefs_conflict_p): A BLKmode reference
6001         to a symbol (or CONST_INT address) always conflicts
6002         with a reference to another symbol.
6003
6004 2000-08-25  Joseph S. Myers  <jsm28@cam.ac.uk>
6005
6006         * c-common.c (time_char_table): Don't allow width and flags with
6007         "z" format.
6008
6009 2000-08-25  Jakub Jelinek  <jakub@redhat.com>
6010
6011         * config/i386/i386.c (ix86_expand_branch): Treat GE and GEU the same
6012         way as LT and LTU when the second operand has 0 in low word.
6013
6014 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
6015
6016         * basic-block.h (struct loop): Rename `exits' field to
6017         `exit_edges'.  Add `entry_edges' and `num_entries' fields.
6018
6019         * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
6020         (flow_loop_entry_edges_find): Add.
6021         (flow_edge_list_print): Rename from flow_exits_print.
6022         (flow_loops_find): Call flow_loop_entry_edges_find.
6023         (flow_loop_dump): Dump entry_edges list.
6024         (flow_loops_free): Free entry_edges.
6025
6026 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
6027
6028         * loop.c (loop_dump_aux, debug_loop): New functions.
6029         (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros.
6030
6031         * flow.c (flow_loops_dump): Add callback parameter.
6032         (flow_loop_dump): Add callback parameter and call it.  Move
6033         loop note debugging code to loop_dump_aux.
6034
6035         * basic-block.h (flow_loop_dump): Add callback parameter
6036         (flow_loops_dump): Likewise.
6037
6038         * toplev.c (rest_of_compilation): Add NULL callback function pointer
6039         to call to flow_loops_dump.
6040
6041 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
6042
6043         * loop.c (count_loop_regs_set): Replace start and end arguments
6044         with loop argument.  All callers udated.
6045
6046 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
6047
6048         * loop.c (constant_high_bytes): Delete.
6049
6050 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
6051
6052         * loop.c (prescan_loop): Move checks for NOTE_INSN_LOOP_CONT
6053         and NOTE_INSN_LOOP_VTOP to...
6054         (find_and_verify_loops) ...here.
6055
6056 Fri Aug 25 04:21:13 2000  Alexandre Oliva  <aoliva@redhat.com>
6057
6058         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
6059         (fini_dummy, init_dummy): Use it.
6060
6061 Fri 25-Aug-2000 08:03:27 BST  Neil Booth  <NeilB@earthling.net>
6062
6063         * cpplex.c (is_macro_disabled): Caller has already checked
6064         that we're not a preprocessed file.
6065
6066 2000-08-24  Mark Mitchell  <mark@codesourcery.com>
6067
6068         * Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
6069         (c-iterate.o): Remove target.
6070         * gcc/c-common.h (enum rid): Remove RID_ITERATOR.
6071         * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
6072         (finish_decl): Don't handle iterators.
6073         (grokdeclarator): Likewise.
6074         * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
6075         * gcc/c-gperf.h: Regenerated.
6076         * gcc/c-iterate.c: Removed.
6077         * gcc/c-lex.c (init_lex): Don't handle iterators.
6078         * gcc/c-parse.in (primary): Remove pop_iterator_stack call.
6079         (compstmt_primary_start): Remove push_iterator_stack call.
6080         (stmt): Don't allow iterator statements.  Replace iterator_expand
6081         with expand_expr_stmt.
6082         (all_iter_stmt): Remove.
6083         (all_iter_stmt_simple): Likewise.
6084         (all_iter_stmt_with_decl): Likewise.
6085         * gcc/c-tree.h (ITERATOR_P): Remove.
6086         (ITERATOR_BOUND_P): Likewise.
6087         (init_iterators): Remove declaration.
6088         (iterator_expand): Likewise.
6089         (iterator_for_loop_start): Likewise.
6090         (iterator_for_loop_end): Likewise.
6091         (iterator_for_loop_record): Likewise.
6092         (push_iterator_stack): Likewise.
6093         (pop_iterator_stack): Likewise.
6094         * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
6095         (readonly_warning): Likewise.
6096         * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
6097
6098 2000-08-24  Jim Wilson  <wilson@cygnus.com>
6099
6100         * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
6101         Copy type in a TYPE_DECL, just like pushdecl does.
6102
6103 2000-08-24  Richard Henderson  <rth@cygnus.com>
6104
6105         * toplev.c (main): Enable flag_reorder_blocks at -O2.
6106
6107 2000-08-24  Zack Weinberg  <zack@wolery.cumb.org>
6108
6109         * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
6110         asked for one page, allocate GGC_QUIRE_SIZE of them and put
6111         the extras on the free list.
6112         (release_pages): Clean up.
6113         (ggc_set_mark): Don't adjust G.allocated here...
6114         (sweep_pages): ... do it here.
6115
6116 2000-08-24  Zack Weinberg  <zack@wolery.cumb.org>
6117
6118         * cppfiles.c (read_include_file): Rearrange initializations.
6119
6120 2000-08-24  Richard Henderson  <rth@cygnus.com>
6121
6122         * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
6123
6124         * config/ia64/ia64-protos.h: Update.
6125         * config/ia64/ia64.c (gr_register_operand): New.
6126         (fr_register_operand, grfr_register_operand): New.
6127         (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
6128         (grfr_reg_or_8bit_operand): New.
6129         (gr_reg_or_0_operand): Rename from reg_or_0_operand and
6130         use gr_register_operand.
6131         (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
6132         (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
6133         (gr_reg_or_8bit_and_adjusted_operand): Likewise.
6134         (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
6135         (fr_reg_or_fp01_operand): Likewise.
6136         (not_postinc_memory_operand): New.
6137         (ia64_split_timode): Remove unused variables.
6138         (rtx_needs_barrier): Check arguments to cmpxchg.
6139         (builtin_description): Remove.
6140         (bdesc_2argsi, bdesc_2argdi): Remove.
6141         (ia64_init_builtins): Declare all builtins directly.
6142         (ia64_expand_fetch_and_op): Rewrite to be called from
6143         ia64_expand_builtin directly.  Use expand_binop and co.
6144         (ia64_expand_op_and_fetch): Likewise.
6145         (ia64_expand_compare_and_swap): Likewise.
6146         (ia64_expand_binop_builtin): Remove.
6147         (ia64_expand_lock_test_and_set): New.
6148         (ia64_expand_lock_release): New.
6149         (ia64_expand_builtin): Use them.
6150         * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
6151         (EXTRA_CONSTRAINT): Use it.
6152         (PREDICATE_CODES): Update.
6153         * config/ia64/ia64.md (*): Use gr_register_operand and co.
6154         (mf): Indicate that we set memory as well as use it.
6155         (fetchadd_acq_si): Show memory being modified as well.
6156         (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
6157         (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
6158         (lock_test_and_set_si, lock_test_and_set_di): Remove.
6159         (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
6160         (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
6161         (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
6162         (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
6163         (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
6164         (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
6165         (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
6166         (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
6167         * config/ia64/ia64intrin.h (*): Cast result to the appropriate
6168         return type.  Pretty print definitions.
6169
6170 2000-08-24  Jim Wilson  <wilson@cygnus.com>
6171
6172         * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
6173         we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
6174
6175 2000-08-24  Jason Merrill  <jason@redhat.com>
6176
6177         * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
6178         AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
6179         (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
6180         get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
6181
6182 2000-08-24  Greg McGary  <greg@mcgary.org>
6183
6184         * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
6185         and extendtab within their proper array boundaries.
6186         * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
6187         for the entire array.
6188
6189         * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
6190         * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
6191         * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
6192         * config/fr30/fr30.c (fr30_print_operand): Likewise.
6193         * config/i386/dgux.c (output_options): Likewise.
6194         * config/i386/dgux.h (ASM_FILE_START): Likewise.
6195         * config/m88k/m88k.c (output_options): Likewise.
6196         * config/m88k/m88k.h (ASM_FILE_START): Likewise.
6197         * config/mcore/mcore.c (mcore_output_inline_const_forced,
6198         layout_mcore_frame, handle_structs_in_regs): Likewise.
6199         * config/mips/mips.c (output_block_move): Likewise.
6200         * config/rs6000/rs6000.c (rs6000_override_options,
6201         rs6000_file_start): Likewise.
6202         * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
6203         * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
6204         * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
6205         * builtins.c (expand_builtin_setjmp): Likewise.
6206         * expr.c (safe_from_p): Likewise.
6207         * flow.c (life_analysis): Likewise.
6208         * fold-const.c (size_int_type_wide): Likewise.
6209         * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
6210         * genattrtab.c (make_length_attrs): Likewise.
6211         * genopinit.c (gen_insn): Likewise.
6212         * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
6213         * global.c (global_alloc): Likewise.
6214         * local-alloc.c (find_free_reg): Likewise.
6215         * mips-tdump.c (print_symbol): Likewise.
6216         * mips-tfile.c (parse_def, parse_input): Likewise.
6217         * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
6218         * stmt.c (expand_nl_goto_receiver): Likewise.
6219         * stor-layout.c (set_sizetype): Likewise.
6220         * varasm.c (decode_reg_name): Likewise.
6221         * toplev.c (decode_f_option, decode_W_option,
6222         set_target_switch, print_switch_values): Likewise.
6223         (NUM_ELEM): Remove macro.
6224         (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
6225
6226 2000-08-24  Greg McGary  <greg@mcgary.org>
6227
6228         * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
6229         (MAIN_NAME_P, main_identifier_node): New macros.
6230         * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
6231         * c-decl.c (start_decl, grokdeclarator, start_function,
6232         store_parm_decls, finish_function): Use MAIN_NAME_P.
6233         * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
6234         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
6235         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
6236         * config/pdp11/pdp11.c (output_function_prologue): Likewise.
6237
6238 2000-08-24  Greg McGary  <greg@mcgary.org>
6239
6240         * cppfiles.c (actual_directory): Don't write beyond `dir'
6241         when it contains "".
6242         * real.c (asctoeg): Stay within bounds of etens[][].
6243
6244 2000-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6245
6246         * dependence.c (dependence_string, direction_string,
6247         dump_one_node, dump_node_dependence): Hide unused identifiers.
6248         (get_low_bound, normalize_coefficients): Match definition to
6249         static prototype.
6250         (get_one_coefficient): Initialize variables `value0_is_idx' and
6251         `value1_is_idx'.
6252         (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
6253         (ziv_test): Delete variable `idx', use parameter `sub' instead.
6254         (direction_merge): Avoid automatic aggregate initialization.
6255         (have_dependence_p): Use `src' not `dest' to set `src_idx'.
6256         Initialize variables `dest_idx' and `src_idx'.
6257         (end_dependence_analysis): Avoid C89 style function definition.
6258
6259 2000-08-24  Joseph S. Myers  <jsm28@cam.ac.uk>
6260
6261         * c-common.c (time_char_table): Don't allow width with %F.
6262         (check_format_info): Don't allow "Z" length with scanf.
6263
6264 2000-08-24  Gabriel Dos Reis  <gdr@codesourcery.com>
6265
6266         * diagnostic.c (finish_diagnostic): Define.
6267         (output_do_printf): Use wrap_text instead of output_add_string.
6268         (default_print_error_function): Avoid embedded '\n'.
6269
6270         * diagnostic.h (flush_diagnostic_buffer): Declare.
6271
6272 2000-08-23  Alexandre Oliva  <aoliva@redhat.com>
6273
6274         * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
6275
6276 2000-08-23  Hans-Peter Nilsson  <hp@axis.com>
6277
6278         * Makefile.in (GCC_PASSES): Add specs.
6279
6280 2000-08-23  Jim Wilson  <wilson@cygnus.com>
6281
6282         * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
6283         * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
6284         EHANDLER nor UHANDLER bit is set.
6285         (__get_except_table): Likewise.
6286
6287 2000-08-23  Nick Clifton  <nickc@redhat.com>
6288
6289         * config/arm/lib1funcs.asm: Replace upper case condition codes
6290         with lower case versions.
6291
6292         * config/arm/arm.h (STRUCT_VALUE): Define.
6293         (STRUCT_VALUE_REGNUM): Delete.
6294
6295 2000-08-23  Zack Weinberg  <zack@wolery.cumb.org>
6296
6297         * cpphash.h (IN_I): New flag for directive table.
6298         * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
6299         #pragma with IN_I.
6300         (_cpp_check_directive): If -fpreprocessed, execute directives
6301         marked with IN_I.  Issue no warnings in this case.
6302         * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
6303
6304 2000-08-23  Joseph S. Myers  <jsm28@cam.ac.uk>
6305
6306         * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
6307         %u.
6308         (check_format_info): Support printf 'I' flag; warn about it with
6309         -pedantic.
6310
6311 2000-08-23  Richard Earnshaw  (rearnsha@arm.com)
6312
6313         * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
6314         barrier can't be ignored by the alias analysis code.
6315
6316 2000-08-12  Eli Zaretskii  <eliz@is.elta.co.il>
6317
6318         * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
6319         works inside fixincl.
6320
6321 Wed Aug 23 04:55:48 2000  Alexandre Oliva  <aoliva@redhat.com>
6322
6323         * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
6324         simplify_relational_operation() unless both operands are of
6325         VOIDmode.
6326         * cse.c (fold_rtx): Likewise.
6327
6328 Tue Aug 22 23:53:27 EDT 2000  John Wehle  (john@feith.com)
6329
6330         * rtlanal.c (rtx_unstable_p): The pic register is stable
6331         (within one function) and the actual rtx should be used
6332         when checking the registers.
6333         (rtx_addr_can_trap_p): Pic memory addresses can't trap.
6334
6335         * alias.c (true_dependence, write_dependence_p): Fix
6336         bug in previous patch.
6337
6338         * i386.c (ix86_GOT_alias_set): New.
6339         (legitimize_pic_address): Use it.
6340
6341         * rtlanal.c (rtx_unstable_p): An unchanging MEM is
6342         only stable if its address is stable.
6343         (rtx_varies_p): An unchanging MEM can't vary if
6344         its address doesn't vary.
6345
6346 2000-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6347
6348         * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
6349
6350 2000-08-22  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
6351
6352         * vax.h (ASM_SPEC): Pass `-J' to assembler.
6353         * x-vax-gcc: New file for bootstrapping with gcc.
6354         * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
6355         * configure.in: Use x-vax-gcc with gcc.
6356         * configure: Rebuilt.
6357
6358 Tue Aug 22 21:21:05 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
6359
6360         * toplev.c (rest_of_compilation): Rebuild label notes after
6361         post-reload splitting pass if new labels have been created.
6362
6363 2000-08-22  Gabriel Dos Reis  <gdr@codesourcery.com>
6364
6365         * diagnostic.h (output_buffer_state): New macro.
6366         * diagnostic.c (diagnostic_for_decl, sorry,
6367         default_print_error_function, output_do_verbatim,
6368         report_diagnostic, report_problematic_module): Use it.
6369         (wrap_text): Tweak.
6370         (output_format): Use wrap_text instead of maybe_wrap_text.
6371
6372 2000-08-22  Nick Clifton  <nickc@redhat.com>
6373
6374         * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
6375         Common code for ARM divide and modulus functions.
6376         (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
6377         ARM_DIV_MOD_BODY.
6378         (FUNC_END): New macro: Common code at the end of the division and
6379         modulo functions.
6380         (THUMB_FUNCTION_START): New macro:  Common code at the start of
6381         Thumb functions.
6382         (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
6383
6384 Tue Aug 22 20:34:52 2000  Kaz Kojima <kkojima@rr.iij4u.or.jp>
6385
6386         * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
6387
6388         * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
6389         sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
6390         const0_rtx.
6391
6392 2000-08-22  Nick Clifton  <nickc@redhat.com>
6393
6394         * config/arm/lib1funcs.asm (__umodsi3): Before performing any
6395         restorative additions, test for bottom bits of IP being set,
6396         rather than relying upon the RORs not matching.
6397         (__modsi3): Ditto.
6398
6399 2000-08-22  David Edelsohn  <edelsohn@gnu.org>
6400
6401         * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
6402         text_section() as appropriate instead of emitting text csect
6403         pseudo-op directly.
6404         (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
6405         (UNIQUE_SECTION): Define macro.
6406         (ASM_OUTPUT_SECTION_NAME): Define macro.
6407         * rs6000.c (rs6000_override_options): Disable -ffunction-sections
6408         on AIX if debugging and -fdata-sections always.
6409
6410 2000-08-22  Steven King  <sxking@uswest.net>
6411
6412         * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
6413         machinery.
6414         (LDBL_MAX): Same here.
6415
6416 2000-08-22  Richard Henderson  <rth@cygnus.com>
6417
6418         * flow.c (tidy_fallthru_edge): Update b->end properly.
6419
6420 2000-08-22  Stan Cox  <scox@redhat.com>
6421
6422         * Makefile.in (OBJS): Add dependence.o.
6423         * dependence.c: New file.
6424
6425 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>, John David Anglin  <dave.anglin@nrc.ca>
6426
6427         * calls.c (check_sibcall_argument_overlap_1): Adjust for
6428         ARGS_GROW_DOWNWARD.
6429         (check_sibcall_argument_overlap): Likewise.
6430
6431 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
6432
6433         * invoke.texi (SH Options): Document -m4-nofpu,
6434         -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
6435         -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
6436
6437 2000-08-22  Joseph S. Myers  <jsm28@cam.ac.uk>
6438
6439         * c-common.c (check_format_info): Give the 'some locales' warning
6440         for strftime %Ey rather than the unconditional 'only last 2 digits
6441         of year' one.
6442
6443 2000-08-22  Richard Henderson  <rth@cygnus.com>
6444
6445         * alias.c (init_alias_analysis): Do not register
6446         struct_value_incoming_rtx or static_chain_rtx as pointing
6447         to stack memory.
6448
6449 Tue Aug 22 01:44:43 2000  Jeffrey A Law  (law@cygnus.com)
6450
6451         * protoize.c (munge_compile_params): Fix typo and formatting buglets.
6452
6453 2000-08-22  Gabriel Dos Reis  <gdr@codesourcery.com>
6454
6455         * diagnostic.h (report_problematic_module): Declare.
6456         * diagnostic.c (report_problematic_module): New function.
6457         (report_error_function): Tweak.
6458
6459 Tue Aug 22 02:31:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6460
6461         * stmt.c (expand_goto_internal, fixup_gotos): Only check
6462         TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
6463
6464 2000-08-21  Richard Henderson  <rth@cygnus.com>
6465
6466         * flow.c (calculate_global_regs_live): Mark frame pointer live
6467         everywhere before reload.
6468
6469 2000-08-21  Jim Wilson  <wilson@cygnus.com>
6470
6471         * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
6472         INTEL_EXTENDED_IEEE_FORMAT.
6473         (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support.  Unconditionally
6474         clear last two bytes of output FP value.
6475
6476 2000-08-21  Graham Stott  <grahams@cygnus.co.uk>
6477
6478         * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
6479
6480 2000-08-21  Jakub Jelinek  <jakub@redhat.com>
6481
6482         * unroll.c (loop_find_equiv_value): If ret is modified between
6483         insn and loop_start, ret might not be equivalent to reg.
6484
6485 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6486
6487         * c-common.c (init_dollar_format_checking,
6488         maybe_read_dollar_number, finish_dollar_format_checking): New
6489         functions.
6490         (dollar_arguments_used, dollar_arguments_count,
6491         dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
6492         New variables.
6493         (check_format_info): Support $ formats for scanf and printf width
6494         and precision.  Always increment format_chars to advance past the
6495         '*' of precision, not just when the format parameters are
6496         available to check.
6497
6498 2000-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6499
6500         * mips.c (block_move_loop, expand_block_move,
6501         function_arg_partial_nregs, save_restore_insns, function_prologue,
6502         mips_expand_prologue, RA_MASK): Avoid using the `U' integer
6503         constant suffix.
6504         (function_arg_advance, function_arg): Match argument to format
6505         specifier `%p'.
6506
6507 2000-08-21  Nix  <nix@esperi.demon.co.uk>
6508
6509         * gcc.c (do_spec_1): Implement %j spec flag.
6510         Remove dead comment.
6511
6512         * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
6513         * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
6514         * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
6515         * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
6516
6517         * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
6518         writable) instead of hardcoded value.
6519
6520         * toplev.c (compile_file): Output to a file even if -fsyntax-only.
6521
6522         * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
6523         MKTEMP_EACH_FILE.
6524
6525         * gcc.c (cc1_options): Do not process -o or run the assembler if
6526         -fsyntax-only.
6527         * objc/lang-spec.h: Likewise.
6528
6529 2000-08-21  Eli Zaretskii  <eliz@is.elta.co.il>
6530
6531         * fixinc/fixincl.c (fix_with_system): Pipe the output of
6532         "external" fixes through `cat', to avoid truncating the input
6533         file by redirection.
6534
6535 2000-08-21  Jakub Jelinek  <jakub@redhat.com>
6536
6537         * config/i386/i386.md (lea_general_1): Copy insn condition to split
6538         condition.
6539         (lea_general_2, lea_general_3): Likewise.
6540
6541 2000-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6542
6543         * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
6544         warnings to user code.
6545
6546         * c-lex.c (readescape, yylex): Likewise.
6547
6548         * c-typeck.c (store_init_value, process_init_element): Likewise
6549         (c_expand_start_case): Format.
6550
6551 2000-08-18  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
6552
6553         * mips/linux.h (LINK_SPEC): Use %(endian_spec).
6554
6555         * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
6556         and linker_endian_spec to endian_spec.
6557         (ENDIAN_SPEC): Add %{EB} and %{EL}.
6558         (LINK_SPEC): Remove %{EB} and %{EL}.
6559         (ASM_SPEC): Likewise.  Use %(endian_spec).
6560
6561 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6562
6563         * c-tree.h (flag_hosted): Move declaration from here...
6564         * c-common.h (flag_hosted): ... to here.
6565         (flag_noniso_default_format_attributes): New declaration.
6566         * c-decl.c (flag_noniso_default_format_attributes): New variable.
6567         (c_decode_option): Set it appropriately for options choosing
6568         language standard variant.
6569         * c-common.c (init_function_format_info): Only provide default
6570         format attributes if flag_hosted.  Only provide the gettext
6571         formats if flag_noniso_default_format_attributes.  Update
6572         comments.
6573         (check_format_info): Disable treatment of %a as a scanf flag in
6574         C99 mode.
6575
6576 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6577
6578         * c-common.c (scan_char_table): Add 'w' to flags for all formats
6579         except 'n'.
6580         (check_format_info): Set 'wide' for scanf format widths.  Warn for
6581         a zero scanf width.  Make the check for writing into a constant
6582         object at the first level of indirection; at later levels, warn if
6583         any type qualifiers are encountered.
6584
6585 Mon Aug 21 07:41:12 2000  Jeffrey A Law  (law@cygnus.com)
6586
6587         * reload.c (reload_inner_reg_of_subreg): New function broken out of
6588         push_reload.
6589         (push_reload): Use reload_inner_reg_of_subreg.
6590         (combine_reloads): Do not combine reloads if the input reload
6591         is a SUBREG in which the inner part will need reloading.
6592
6593         * global.c (global_alloc): Avoid passing dumpfile argument to
6594         reload routines.
6595         * toplev.c (rest_of_compilation): Likewise.
6596         * reload.h (reload): Remove dumpfile argument.  Callers changed.
6597         (debug_reload, debug_reload_to_stream): Move prototypes here.
6598         * rtl.h  (reload): Remove dumpfile argument.
6599         * reload.c (debug_reload): Remove prototype.
6600         (debug_reload_to_stream): Likewise.
6601         * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
6602         instead.
6603
6604 2000-08-21  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6605
6606         * diagnostic.c (context_as_prefix): Export.
6607         (need_error_newline): Remove.
6608         (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
6609         (error_module_changed, record_last_error_module,
6610         error_function_changed, record_last_error_function): New functions.
6611         (initialize_diagnostics): Default intialize
6612         lang_diagnostic_starter, lang_diagnostic_finalizer.
6613         (init_output_buffer): Tweak.
6614         (file_name_as_prefix): New function.
6615         (announce_function, default_print_error_function,
6616         report_error_function, set_diagnostic_context): Tweak.
6617
6618 2000-08-21  Richard Earnshaw  <rearnsha@arm.com>
6619
6620         * flow.c (init_propagate_block_info): Handle SUBREG in a jump
6621         condition expression.
6622
6623 2000-08-20  Richard Henderson  <rth@cygnus.com>
6624
6625         * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
6626
6627 2000-08-20  Zack Weinberg  <zack@wolery.cumb.org>
6628
6629         * cppinit.c (cpp_init): Set global flag when called.
6630         (cpp_reader_init): Bomb out if cpp_init hasn't been called.
6631
6632 Sun Aug 20 01:41:35 2000  Dennis Chernoivanov  <cdi@sparc.spb.su>
6633
6634         * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
6635         before `process_directive' so that newlines won't be missed
6636         for directives.
6637         (cpp_printf): Increment `print->lineno' when newline is emitted.
6638
6639         * cppmain.c (cb_ident): Likewise.
6640         (cb_define): Likewise.
6641         (cb_undef): Likewise.
6642         (cb_include): Likewise.
6643         (cb_def_pragma): Likewise.
6644         (dump_macros_helper): Likewise.
6645
6646 2000-08-20  Richard Henderson  <rth@cygnus.com>
6647
6648         * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
6649         assigned before a loop.
6650
6651         * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
6652         (ashrsi3, lshrsi3): Likewise.
6653
6654 2000-08-20  Gabriel Dos Reis  <gdr@codesourcery.com>
6655
6656         * c-lang.c: #include diagnostic.h
6657         (c_tree_printer): New function.
6658         (lang_init): Initialize lang_printer.
6659
6660         * Makefile.in (c-lang.o): Depends on diagnostic.h
6661
6662 2000-08-20  Gabriel Dos Reis  <gdr@codesourcery.com>
6663
6664         * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
6665
6666         * diagnostic.c (default_diagnostic_starter,
6667         default_diagnostic_finalizer): New functions.
6668         (diagnostic_for_asm, diagnostic_for_decl): Tweak.
6669         (pedwarn, pedwarn_with_file_and_line, error,
6670         error_with_file_and_line, fatal, warning,
6671         warning_with_file_and_line): Adjust call to report_diagnostic.
6672         (report_diagnostic): Rework.
6673         (set_diagnostic_context): New function.
6674
6675         * diagnostic.h (struct diagnostic_context): New data structure.
6676         (diagnostic_message, diagnostic_argument_list,
6677         diagnostic_file_location, diagnostic_line_location,
6678         diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
6679         diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
6680         (set_diagnostic_context): Declare.
6681         (report_diagnostic): Change prototype.
6682
6683 Sun 20-Aug-2000 09:25:45 BST  Neil Booth  <NeilB@earthling.net>
6684
6685         * fix-header.c (main): Initialize cpplib.
6686
6687 2000-08-19  Michael Meissner  <meissner@redhat.com>
6688
6689         * ifcvt.c (find_if_block): Do not assume that a THEN block has any
6690         instructions in it before checking for indirect jumps.
6691
6692         * ifcvt.c (find_if_block): Do not consider a THEN block that ends
6693         in a indirect jump as a potential for conditional execution.
6694
6695         * d30v.h (d30v_init_expanders): Don't declare here.
6696         * d30v-protos.h (d30v_init_expanders): Declare here with a valid
6697         prototype.
6698
6699 Sat 19-Aug-2000 21:11:45 BST  Neil Booth  <NeilB@earthling.net>
6700
6701         * cpp.texi: Add @section for assertions.
6702
6703 Sat Aug 19 12:37:08 EDT 2000  John Wehle  (john@feith.com)
6704
6705         * loop.c (scan_loop): Use CONST_CALL_P instead of
6706         checking for REG_LIBCALL / REG_RETVAL.
6707
6708 Sat Aug 19 09:18:47 2000  Jeffrey A Law  (law@cygnus.com)
6709
6710         * reload1.c (reload_as_needed): Accept dumpfile argument,
6711         pass it to emit_reload_insns.
6712         (emit_reload_insns): Add new dumpfile argument.  If non-null
6713         then dump the reloads for each insn into the dumpfile.
6714         (reload): Pass dumpfile to reload_as_needed.
6715
6716         * invoke.texi: Clean up linux-gnu vs linux comments.
6717
6718 2000-08-19  Richard Henderson  <rth@cygnus.com>
6719
6720         * config/ia64/ia64.c (reg_or_5bit_operand): New.
6721         (ia64_depz_field_mask): New.
6722         * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
6723         (PREDICATE_CODES): Update.
6724         * config/ia64/ia64.md: Update commentary.
6725         (depz_internal): New.
6726         (ashlsi3): Implement directly.
6727         (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
6728         (ashldi3): Use shladd.
6729         * config/ia64/ia64-protos.h: Update.
6730
6731 2000-08-18  Zack Weinberg  <zack@wolery.cumb.org>
6732
6733         * toplev.c (independent_decode_option): Always process -g.
6734         Remove third argument, now unused.  Adjust caller to match.
6735
6736 2000-08-18  Richard Henderson  <rth@cygnus.com>
6737
6738         * combine.c (make_compound_operation): Break after creating
6739         the extraction.
6740
6741 2000-08-18  Zack Weinberg  <zack@wolery.cumb.org>
6742
6743         * cpplib.c (cpp_register_pragma_space): Just return if the
6744         namespace is already registered.
6745
6746 2000-08-18  Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton  <nickc@redhat.com>
6747
6748         * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
6749         constant amount.  Do not generate ROTL instruction.
6750
6751 Fri Aug 18 16:22:20 2000  Alexandre Oliva  <aoliva@redhat.com>
6752
6753         * config/sh/elf.h: Do not include sh/sh.h.
6754         * config/sh/rtems.h: Likewise.
6755         * config/sh/rtemself.h: Do not include sh/elf.h.
6756         * configure.in: Get them included with `tm_file's.
6757         * configure: Rebuilt.
6758
6759         * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
6760         * config/sh/sh.c (fpscr_set_from_mem): Use them.
6761
6762 Fri Aug 18 14:23:18 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6763
6764         * stor-layout.c (compute_record_type): Don't use mode of single
6765         field as mode of record if not integer mode of same type.
6766
6767         * regmove.c (perhaps_ends_bb_p): New function.
6768         (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
6769         (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
6770         (fixup_match_1): Likewise.
6771         (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
6772         avoid signed/unsigned warnings.
6773
6774         * function.c (fixup_var_refs_1, case MEM): Update CODE after
6775         updating X.
6776
6777 Fri 18-Aug-2000 18:33:45 BST  Neil Booth  <NeilB@earthling.net>
6778
6779         * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
6780         (_cpp_trigraph_map): Declaration moved from cpplex.c
6781
6782         * cppinit.c: Define _cpp_trigraph_map.  Use UCHAR_MAX + 1
6783         instead of 256.  Use consistent test for designated initializers.
6784         (cpp_init): Initialize trigraph_map.
6785         (initialize_standard_includes, parse_option):  Use memcmp
6786         instead of strncmp.
6787
6788         * cpplex.c (init_trigraph_map): Remove.
6789         (trigraph_ok, trigraph_replace, lex_line): Refer to
6790         _cpp_trigraph_map.
6791
6792         * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
6793         (do_unassert): Remove unused "next" local.
6794
6795         * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
6796
6797 2000-08-18  Emmanuel Marty  <emarty@suntech.fr>
6798
6799         * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
6800         insn.
6801
6802 2000-08-17  Richard Henderson  <rth@cygnus.com>
6803
6804         * config/ia64/ia64.c (spill_restore_mem): Handle emitting
6805         the first insn in a sequence.
6806
6807 Thu Aug 17 22:40:05 EDT 2000  John Wehle  (john@feith.com)
6808
6809         * alias.c (true_dependence, write_dependence_p): A read
6810         involving a label_ref or the constant pool doesn't create
6811         a dependency.
6812
6813         * rtl.h (unchanging): Improve documentation.
6814
6815 2000-08-17  Rodney Brown  <RodneyBrown@mynd.com>
6816
6817         * cse.c (insert_regs): Remove unused `regno'.
6818
6819 2000-08-17  Neil Booth  <NeilB@earthling.net>
6820
6821         * (cppinit.c) merge_include_chains: Use remove_dup_dir,
6822         remove_dup_dirs.  If qtail == brack, remove brack not
6823         qtail.
6824         (remove_dup_dir, remove_dup_dirs): New functions.
6825
6826 2000-08-17  Neil Booth  <NeilB@earthling.net>
6827
6828         * cppinit.c (cpp_cleanup): Free include dir chains.
6829         * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
6830         (do_unassert): Free the assert with _cpp_free_definition.
6831         * cppmacro.c (_cpp_free_definition): Free memory allocated for
6832         assertions.  Make the node a T_VOID node.
6833
6834 2000-08-17  Neil Booth  <NeilB@earthling.net>
6835
6836         * cppinit.c (path_include, append_include_chain):
6837         Remove 2nd parameter (struct cpp_pending *).
6838         (path_include, initialize_standard_includes, cpp_handle_option):
6839         Update callers appropriately.
6840         (cpp_handle_option): Use pend.
6841
6842 2000-08-17  Neil Booth  <NeilB@earthling.net>
6843
6844         * cppinit.c (sort_options): Remove, put functionality in
6845         cpp_init.
6846         (cpp_init): New.
6847         (initialize_builtins): Free memory.
6848         (cpp_start_read): Move init_IStable to cpp_init.
6849
6850         * cpplib.h (cpp_init): New prototype.
6851         * cppmain.c (main): Call cpp_init.
6852
6853 Thu Aug 17 13:20:32 EDT 2000  John Wehle  (john@feith.com)
6854
6855         * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
6856         (rtx_unstable_p, rtx_varies_p): Process vectors.
6857
6858 2000-08-16  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6859
6860         * config/sh/lib1funcs.asm (GLOBAL): Define.  Use for all
6861         references to GLOBAL symbols.  Use LOCAL where appropriate.
6862
6863 2000-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6864
6865         * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld.  Always
6866         use t-aix41 when host == target.
6867
6868 2000-08-16  Richard Henderson  <rth@cygnus.com>
6869
6870         * reload.c (push_secondary_reload): Revert last change.
6871         If we use a reload_in/out pattern, make the when the same
6872         as the primary reload.
6873         (find_reloads): Likewise.
6874
6875 2000-08-16  Manfred Hollstein  <manfredh@redhat.com>
6876
6877         * configure.in (libstdcxx-v3): Fix test.
6878         * configure: Regenerate.
6879
6880 Wed Aug 16 08:10:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6881
6882         * calls.c (calls_function_1, expand_call): Only test
6883         TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
6884         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6885
6886 2000-08-16  Richard Henderson  <rth@cygnus.com>
6887
6888         * combine.c (simplify_shift_const): Revert previous two
6889         changes.  If SHIFT_COUNT_TRUNCATED, crop the shift count
6890         before the main loop.
6891
6892 2000-08-15  Richard Henderson  <rth@cygnus.com>
6893
6894         * combine.c (simplify_shift_const): Bound shift count when
6895         combining shifts.
6896
6897 Tue Aug 15 17:33:05 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6898
6899         * calls.c (ECF_SP_DEPRESSED): New macro.
6900         (calls_function_1): Treat calling sp-depressed function as alloca.
6901         (emit_call_1): Don't adjust SP if calling sp-depressed function.
6902         (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
6903         If sp-depressed, ensure block saves and restores SP.
6904         * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
6905         for INTEGER_TYPE.
6906         * function.c (keep_stack_depressed): New function.
6907         (thread_prologue_and_epilogue_insns): Call it.
6908         * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
6909         to print DECL_OFFSET_ALIGN.
6910         Print no-force-blk and transparent-union flags properly.
6911         * stmt.c (expand_goto_internal): Don't restore stack if last block
6912         and function returns with sp depressed.
6913         (fixup_gotos): Likewise.
6914         (save_stack_pointer): New function, from code in expand_decl.
6915         (expand_decl): Call new function.
6916         * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
6917         (TYPE_RETURNS_STACK_DEPRESSED): New macro.
6918         (save_stack_pointer): New declaration.
6919
6920         * diagnostic.c (fatal_function): New variable.
6921         (set_fatal_function): New function.
6922         (fatal): Call it.
6923         * diagnostic.h (set_fatal_function): New declaration.
6924
6925 2000-08-15  William Cohen  <wcohen@redhat.com>
6926
6927         * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
6928         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
6929         (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
6930
6931 2000-08-15  Richard Henderson  <rth@cygnus.com>
6932
6933         * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
6934
6935 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
6936
6937         * arm.c (arm_function_ok_for_sibcall): New function.
6938         * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
6939         * arm.md (call expanders): Don't check here for calls that can't
6940         be sibling calls.
6941
6942 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
6943
6944         * arm.md (splits generating cond_exec): Disable.
6945
6946 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
6947
6948         * arm/linux-elf.h (text_section): Delete declaration.
6949
6950 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
6951
6952         ARM support for unordered FP operations.
6953         * arm-protos.h (arm_comparison_operator): Declare.
6954         * arm.c (arm_comparison_operator): New function.
6955         (arm_select_cc_mode): Add unordered comparison codes.
6956         (get_arm_condition_code): Likewise.
6957         (arm_final_prescan_insn): Can't handle unordered jumps that can't
6958         be done in one insn.
6959         * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
6960         * arm.md (all uses of comparison_operator): Replace with
6961         arm_comparison_operator.
6962         (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
6963         expands.
6964         (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
6965         patterns.
6966
6967 Tue Aug 15 00:36:36 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
6968
6969         * gthr-posix.h: Conditionally include <sched.h>; include
6970         <config.h> from libobjc/.
6971
6972 2000-08-14  Richard Henderson  <rth@cygnus.com>
6973
6974         * config/i386/i386.c (legitimize_pic_address): Use Pmode
6975         for all CONSTs.
6976
6977 2000-08-14  Richard Henderson  <rth@cygnus.com>
6978
6979         * configure.in (ia64-*): Set float_format for i386 long double.
6980
6981         * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
6982         as we would for i386 XFmode.
6983         (PUT_REAL): Likewise.
6984         (endian, ereal_atof, real_value_truncate): Likewise.
6985         (ereal_isneg, toe64, etens, make_nan): Likewise.
6986         * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
6987
6988         * config/ia64/ia64-protos.h: Update.
6989         * config/ia64/ia64.c (general_tfmode_operand): New.
6990         (destination_tfmode_operand): New.
6991         (tfreg_or_fp01_operand): New.
6992         (ia64_split_timode): New.
6993         (spill_tfmode_operand): New.
6994         (ia64_expand_prologue): Use TFmode not XFmode.
6995         (ia64_expand_epilogue): Likewise.
6996         (ia64_function_arg): Likewise.
6997         (ia64_function_arg_advance): Likewise.
6998         (ia64_return_in_memory): Likewise.
6999         (ia64_function_value): Likewise.
7000         (ia64_print_operand): Likewise.
7001         (ia64_register_move_cost): Set GR<->FR to 5.
7002         (ia64_secondary_reload_class): Get GR for TImode memory op.
7003         * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
7004         (ROUND_TYPE_ALIGN): Remove.
7005         (LONG_DOUBLE_TYPE_SIZE): Set to 128.
7006         (INTEL_EXTENDED_IEEE_FORMAT): Define.
7007         (HARD_REGNO_NREGS): Use TFmode, not XFmode.
7008         (HARD_REGNO_MODE_OK): Likewise.  Disallow TImode in FRs.
7009         (MODES_TIEABLE_P): Use TFmode, not XFmode.
7010         (CLASS_MAX_NREGS): Likewise.
7011         (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
7012         (PREDICATE_CODES): Update.
7013         * config/ia64/ia64.md (movti): New.
7014         (movti_internal): Use a clobber for memory alternatives.
7015         (reload_inti, reload_outti): New.
7016         (movsfcc_astep): Predicate properly.
7017         (movdfcc_astep): Likewise.
7018         (movxf): Remove.
7019         (movtf): New.
7020         (extendsftf2, extenddftf2): New.
7021         (trunctfsf2, trunctfdf2): New.
7022         (floatditf2, fix_trunctfdi2): New.
7023         (floatunsditf2, fixuns_trunctfdi2): New.
7024         (addtf3, subtf3, multf3, abstf2): New.
7025         (negtf2, nabstf2, mintf3, maxtf3): New.
7026         (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
7027         (cmptf): New.
7028         (fr_spill): Use TFmode, not XFmode.
7029         (fr_restore): Likewise.
7030         * config/ia64/lib1funcs.asm (__divtf3): New.
7031         * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
7032
7033 2000-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7034
7035         * cse.c (fold_rtx): Avoid empty body in an if-statement.
7036
7037         * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
7038         `U' integer constant suffix.
7039
7040         * dwarf2out.c (add_subscript_info): Avoid empty body in an
7041         else-statement.
7042
7043         * sparc/sol2.h (__enable_execute_stack): Prototype.
7044
7045 2000-08-14  David Edelsohn  <edelsohn@gnu.org>
7046
7047         * collect2.c: Remove use of AIX import file.
7048
7049         * longlong.h: Test ARCH_PWR not ARCH_POWER.
7050
7051         * rs6000.c (print_operand, case 'E'): Add else.
7052
7053 2000-08-14  Richard Henderson  <rth@cygnus.com>
7054
7055         * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
7056         (movdi_symbolic): New.
7057
7058 2000-08-14  Jim Wilson  <wilson@cygnus.com>
7059
7060         * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
7061         to GNU as.  For Intel as, pass -M const_gp and -M no_plabel.
7062         * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
7063         to GNU as.
7064
7065 2000-08-14  Richard Henderson  <rth@cygnus.com>
7066
7067         * expr.c (emit_group_load): Don't force constants into registers.
7068         Special case source already in the correct mode.
7069
7070 2000-08-14  Zack Weinberg  <zack@wolery.cumb.org>
7071
7072         * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
7073         * fixinc/inclhack.def: Likewise.
7074         * fixinc/mkfixinc.sh: Likewise.
7075         * configure: Regenerate.
7076         * fixinc/fixincl.x: Regenerate.
7077         * install.texi: Document equivalence of linux and linux-gnu.
7078
7079 Mon Aug 14 18:51:44 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
7080
7081         * cse.c (insert_regs): Also in REG case: When finding an invalid
7082         value, and we make a new quantity, make sure that it won't be
7083         mistaken by for a valid one by mention_regs.
7084
7085 2000-08-13  Ralf Gütlein <ralf.guetlein@aranea.de>
7086
7087         * h8300.md: Remove obsolete peepholes.
7088
7089 2000-08-13  Kazu Hirata  <kazu@hxi.com>
7090
7091         * invoke.texi (H8/300 Options): Fix typos.
7092         * config/h8300.c: Fix formatting.
7093         * config/h8300.h: Fix comment typos.
7094         (OVERRIDE_OPTIONS): Fix formatting.
7095
7096         * function.c: Fix formatting.
7097
7098         * cse.c: Fix formatting.
7099
7100 2000-08-13  Geoff Keating  <geoffk@cygnus.com>
7101
7102         * flow.c (attempt_auto_inc): Remove unused variable `bb'.
7103         (attempt_auto_inc): Suppress parentheses warning.
7104         * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
7105         * loop.c (load_mems): Remove `u' suffix in two places.
7106         * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
7107         hex constants.
7108         * config/rs6000/rs6000.h: Likewise.
7109         * config/rs6000/sol-c0.c: Prototype some functions.  Remove the
7110         __eabi dummy routine.
7111         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
7112         variable `buf_ptr'.
7113
7114         * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
7115         not put stuff in .sdata unnecessarily.
7116         (rs6000_unique_section): New function.
7117         * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
7118         * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
7119
7120         * c-typeck.c (build_array_ref): Don't complain about non-lvalue
7121         arrays in C99.  Don't try to look at DECL_REGISTER of a
7122         COMPONENT_REF.  Don't complain twice about the same error.
7123
7124         * fixinc/inclhack.def (aix_pthread): New fix.
7125         (aix_sysmachine): New fix.
7126         * fixinc/fixincl.x: Regenerate.
7127
7128         * expr.c (expand_expr): Call convert_modes when turning a large
7129         multiply into a small one.
7130
7131 2000-08-12  Geoff Keating  <geoffk@cygnus.com>
7132
7133         * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
7134         the tree structure an exponent rather than an explicit alignment
7135         so it doesn't overflow.
7136         (SET_DECL_OFFSET_ALIGN): New macro.
7137         * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
7138         rather than DECL_OFFSET_ALIGN.
7139         (place_field): Likewise.
7140         * expmed.c (store_bit_field): Abort on align==0 to avoid
7141         antisocial machine behaviour.
7142
7143 2000-08-12  Richard Henderson  <rth@cygnus.com>
7144
7145         * sibcall.c (uses_addressof): Accept both addressof and
7146         current_function_internal_arg_pointer inside a mem.
7147         (optimize_sibling_and_tail_recursive_call): Fail tail recursion
7148         if current_function_uses_addressof.
7149         * stmt.c (expand_return): Kill tail recursion and HAVE_return
7150         optimizations.
7151
7152 2000-08-11  Richard Henderson  <rth@cygnus.com>
7153
7154         * config/ia64/ia64.md (addsi3): Remove expander.
7155         (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
7156         (*addsi3_shladd): New.
7157
7158 2000-08-11  Richard Henderson  <rth@cygnus.com>
7159
7160         * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
7161         (do_restore): Likewise.
7162         (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
7163         (ia64_expand_prologue, ia64_expand_epilogue): Use them.
7164         (rtx_needs_barrier): Track actual bit manipulation for
7165         ar.unat moves, gr_spill, and gr_restore.
7166         (emit_insn_group_barriers): Special case gr_spill/gr_restore.
7167         (process_set): Don't handle varargs spills.
7168         * config/ia64/ia64.md (gr_spill): Accept cfa offset.  Emit
7169         .mem.offset here instead of in process_set.
7170         (gr_restore): Likewise.
7171
7172 2000-08-11  Richard Henderson  <rth@cygnus.com>
7173
7174         * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
7175
7176 2000-08-11  Mark Elbrecht  <snowball3@bigfoot.com>
7177
7178         * gcc.texi (The Configuration File): Document
7179         COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
7180         UPDATE_PATH_HOST_CANONICALIZATION.
7181
7182 2000-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7183
7184         * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
7185         unprototyped function pointer casts on integer constants.
7186
7187 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
7188
7189         * fixproto: Recognize DOS paths with drive letters as absolute paths.
7190
7191 2000-08-11  Nathan Sidwell  <nathan@codesourcery.com>
7192
7193         * extend.texi (Volatiles): Fix typos.
7194
7195 2000-08-11  Kazu Hirata  <kazu@hxi.com>
7196
7197         * flow.c: Fix formatting.
7198
7199 2000-08-11  Richard Henderson  <rth@cygnus.com>
7200
7201         * reload.c (push_secondary_reload): When invoking a reload_{in,out}
7202         pattern, always allocate a tertiary scratch register.
7203
7204         * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
7205         (reload_inhi): Likewise.
7206
7207 2000-08-11  Richard Henderson  <rth@cygnus.com>
7208
7209         * function.c (put_reg_into_stack): Allow type to be NULL.
7210         (schedule_fixup_var_refs): Likewise.
7211         (gen_mem_addressof): Allow decl to be NULL.
7212         (put_addressof_into_stack): Likewise.
7213
7214         * flow.c (merge_blocks_nomove): Be more careful about
7215         locating the beginning of block A.
7216
7217         * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
7218
7219 Thu Aug 10 22:47:09 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
7220
7221         * configure.in:
7222         * configure:
7223         * gthr-posix.h:
7224         * config.in: Reverted the check for <sched.h>.
7225
7226 2000-08-10  Chris Demetriou  <cgd@sibyte.com>
7227
7228         * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
7229         macros define the name of CTOR and DTOR sections.
7230         (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
7231         DTOR_LIST_END): Change to use attributes to specify
7232         sections.
7233         * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
7234         (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
7235         DTOR_LIST_END): Same as in mips/elf.h.
7236
7237 2000-08-10  Drew Moseley  <dmoseley@redhat.com>
7238
7239         * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
7240         disabling just crt0.o.
7241
7242 2000-08-10  Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton  <nickc@cygnus.com>
7243
7244         * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
7245         (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
7246         (EXTRA_SPECS): Add them.
7247         * arm/lib1funcs.asm: Support builds for interworking.
7248         Use macros to eliminate duplicated pieces of code.
7249
7250 2000-08-10  Kazu Hirata  <kazu@hxi.com>
7251
7252         * h8300.c (expand_a_rotate): New.
7253         (emit_a_rotate): Likewise.
7254         (h8300_adjust_insn_length): Add support for the rotate insns.
7255         * h8300.md (rotlqi3): New.
7256         (*rotlqi3_1): Likewise.
7257         (rotlhi3): Likewise.
7258         (*rotlhi3_1): Likewise.
7259         (rotlhi3): Likewise.
7260         (*rotlhi3_1): Likewise.
7261         * h8300-proto.h: Add prototypes for expand_a_rotate and
7262         emit_a_rotate.
7263
7264         * h8300.c: Fix comment typos.
7265         (dosize): Declare the variable amount as unsigned.
7266         (get_shift_alg): Fix a comparison between signed and unsigned.
7267         (emit_a_shift): Likewise.
7268         (h8300_adjust_insn_length): Simplify the code.
7269
7270         * c-decl.c: Fix formatting.
7271
7272 2000-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7273
7274         * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
7275         warning about non-traditional numeric constant suffixes.
7276
7277         * cppexp.c (parse_number): Likewise.
7278
7279         * invoke.texi: (-Wtraditional): Document new behavior.
7280
7281 Thu Aug 10 00:11:04 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
7282
7283         * gthr-posix.h: Include auto-host.h. Conditionally include
7284         <sched.h>.
7285         * configure.in: Check for the <sched.h> header file.
7286         * config.in: Added define for HAVE_SCHED_H.
7287
7288 2000-08-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7289
7290         * c-typeck.c (process_init_element): For -Wtraditional, warn about
7291         initialization of unions.
7292
7293         * invoke.texi (-Wtraditional): Document new behavior.
7294
7295 2000-08-09  Zack Weinberg  <zack@wolery.cumb.org>
7296
7297         * configure.in (--enable-c-cpplib): Uncomment.  Use AC_DEFINE
7298         instead of extra_c_flags.
7299         (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
7300         * configure: Regenerate.
7301         * config.in: Regenerate.
7302
7303         * cpperror.c (cpp_type2name): New function.
7304         * cpplex.c (lex_line): If we issued an error for an invalid
7305         preprocessing directive, discard that logical line.
7306         * cpplib.c (do_line): Call a hook function if the current file
7307         is renamed by #line.
7308         (do_ident): Pass the contents of the string, not the entire
7309         token, to the callback function.
7310         * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
7311         (cb.rename_file): New hook function.
7312         (cb.ident): Adjust prototype.
7313         (cpp_type2name): Prototype.
7314         * cppmacro.c (dump_macro_args): Correct precedence lossage.
7315
7316         * cppmain.c (cb_ident): Update for changed interface.
7317         (cb_rename_file): New function.
7318         (main): Set rename callback.
7319
7320 2000-08-09  Alexandre Oliva  <aoliva@redhat.com>
7321
7322         * caller-save.c (mark_referenced_regs): Mark partially-overwritten
7323         multi-word registers.
7324
7325 2000-08-08  Joseph S. Myers  <jsm28@cam.ac.uk>
7326
7327         * c-common.c (combine_strings, check_format_info): Refer to ISO C
7328         or ISO C89 instead of ANSI C.
7329         * c-decl.c (grokdeclarator, xref_tag, finish_struct,
7330         build_enumerator, do_case): Likewise.
7331         * c-lex.c (parse_float, yylex): Likewise.
7332         * c-parse.in: Likewise.
7333         * c-typeck.c (common_type, build_array_ref, build_binary_op,
7334         build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
7335         build_c_cast, convert_for_assignment, set_init_index,
7336         set_init_label, c_expand_start_case): Likewise.
7337         * toplev.c (documented_lang_options, display_help): Likewise.
7338
7339 2000-08-08  Kazu Hirata  <kazu@hxi.com>
7340
7341         * h8300.c: Fix formatting.
7342         * h8300.h: Likewise.
7343         * h8300.md: Likewise.
7344         (movsi_h8300hs): Fix formatting of the resulting assembly code.
7345
7346         * reload1.c: Fix formatting.
7347
7348 2000-08-08  Rodney Brown  <RodneyBrown@mynd.com>
7349
7350         * alpha/alpha.c (alpha_emit_xfloating_libcall):
7351         Use GEN_CALL_VALUE define.
7352         * alpha/alpha.md (untyped_call): Use GEN_CALL define.
7353         * clipper/clipper.md (untyped_call): Likewise.
7354         * dsp16xx/dsp16xx.md (untyped_call): Likewise.
7355         * fx80/fx80.md (untyped_call): Likewise.
7356         * mips/mips.md (untyped_call): Likewise.
7357         * ns32k/ns32k.md (untyped_call): Likewise.
7358         * pa/pa.md (untyped_call): Likewise.
7359         * romp/romp.md (untyped_call): Likewise.
7360         * sparc/sparc.md (untyped_call): Likewise.
7361
7362 2000-08-08  Jason Eckhardt  <jle@cygnus.com>
7363
7364         * config/i860/i860.c (singlemove_string): Do not generate assembler
7365         pseudo instructions that must be expanded (that is, with signed
7366         constants larger than 16 bits).
7367
7368 2000-08-08  Richard Henderson  <rth@cygnus.com>
7369
7370         * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
7371         PROP_AUTOINC at -O0.  Don't collect alias info at -O0.
7372         (init_propagate_block_info): Don't kill memory stores at -O0.
7373         (mark_set_1, mark_used_regs): Likewise.
7374
7375 2000-08-08  David Edelsohn  <edelsohn@gnu.org>
7376
7377         * rs6000.c (optimization_options): Decorate 'level' as
7378         ATTRIBUTE_UNUSED.
7379         (mask64_operand): Remove sign-extend thinko.
7380         (rldic_operand): New function.
7381         (load_multiple_operation): regno's are unsigned ints.
7382         (store_multiple_operation): Likewise.
7383         (lmw_operation): Likewise.
7384         (stmw_operation): Likewise.
7385         (includes_lshift_p): shift_mask is unsigned int.
7386         (includes_lshift64_p): New function.
7387         (addrs_ok_for_quad_peep): unsigned int reg1.
7388         (print_operand): Consistently add "else" after
7389         output_operand_lossage().
7390         (print_operand, case 'b'): Fold in case 'W'.
7391         (print_operand, case 'W'): Print rldic MB value.
7392         (output_epilogue): Update Objective-C language string.
7393         (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
7394         * rs6000.h (PREDICATE_CODES): Add rldic_operand.
7395         * rs6000.md (ashldi3): Add rldic instruction.
7396         (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
7397         (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
7398         modifier.
7399
7400 2000-08-08  Richard Henderson  <rth@cygnus.com>
7401
7402         * config/ia64/ia64-protos.h: Remove duplicates.  Update
7403         for massive code rearrangements.
7404         * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
7405         (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
7406         (ia64_local_regs, ia64_need_regstk): Remove.
7407         (ar_ccv_reg_operand): New.
7408         (ia64_gp_save_reg): New.
7409         (struct ia64_frame_info): Combine most of the size elements;
7410         add new gr save elements.
7411         (find_gr_spill): New.
7412         (next_scratch_gr_reg): New.
7413         (mark_reg_gr_used_mask): New.
7414         (ia64_compute_frame_size): Rewrite.  Allocate special AR regs
7415         to GR backing store regs when possible.
7416         (ia64_initial_elimination_offset): New.
7417         (ia64_rap_fp_offset): Remove.
7418         (save_restore_insns): Remove.
7419         (setup_spill_pointers): New.
7420         (finish_spill_pointers): New.
7421         (spill_restore_mem): New.
7422         (do_spill, do_restore): New.
7423         (ia64_expand_prologue): Rewrite to use them.
7424         (ia64_expand_epilogue): Likewise.
7425         (ia64_direct_return): Update for current_frame_info changes.
7426         (ia64_function_prologue): Simplify .prologue emission.  Emit
7427         .spill when needed.
7428         (ia64_setup_incoming_varargs): Don't ever emit rtl.
7429         (ia64_dbx_register_number): New.
7430         (ia64_initialize_trampoline): New.
7431         (ia64_secondary_reload_class): Request GR_REGS for integer
7432         arithmetic destined for FR_REGS.
7433         (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
7434         (ia64_mark_machine_status): Mark ia64_gp_save.
7435         (rws_access_regno): Rename from rws_access_reg; don't treat
7436         predicates specially.
7437         (rws_access_reg): New.  Update all callers.
7438         (rtx_needs_barrier): Remove dead unspecs.
7439         (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
7440         (ia64_encode_section_info): Silence signed/unsigned warnings.
7441         (spill_offset, sp_offset, spill_offset_emitted): Remove.
7442         (tmp_reg, tmp_saved): Remove.
7443         (process_set): Rewrite to expect complicated bits via
7444         REG_FRAME_RELATED_EXPR.
7445         (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
7446         in the use of ar.ccv; never set RTX_UNCHANGING_P.
7447         (ia64_expand_op_and_fetch): Likewise.
7448         (ia64_expand_compare_and_swap): Likewise.
7449         (ia64_expand_builtin): Likewise.
7450         * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
7451         (FIRST_PSEUDO_REGISTER): Update.
7452         (AR_M_REGNO_P): Update.
7453         (FIXED_REGS): Don't mark three local registers as used.
7454         (EXTRA_CC_MODES): New.
7455         (SELECT_CC_MODE): New.
7456         (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
7457         (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
7458         (FRAME_GROWS_DOWNWARD): Unset.
7459         (STARTING_FRAME_OFFSET): Zero.
7460         (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
7461         (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
7462         (HARD_FRAME_POINTER_REGNUM): New.
7463         (CAN_DEBUG_WITHOUT_FP): Define.
7464         (TRAMPOLINE_TEMPLATE): Remove.
7465         (TRAMPOLINE_SIZE): Lower to 32.
7466         (TRAMPOLINE_ALIGNMENT): Lower to 64.
7467         (INITIALIZE_TRAMPOLINE): Defer to out of line function.
7468         (PREDICATE_CODES): Update.
7469         (struct machine_function): Add ia64_gp_save.
7470         * config/ia64/ia64.md: Purge unused unspecs.
7471         (movsi patterns): Allow moves to/from AR_M_REGS.
7472         (movdi patterns): Allow moves to/from p0.
7473         (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
7474         (gr_spill, gr_restore): Indicate ar.unat read/written.
7475         (nonlocal_goto): Don't pass old frame_pointer.
7476         (nonlocal_goto_receiver): Remove.
7477         (exception_receiver): New.
7478         (builtin_setjmp_setup): New.
7479         (builtin_setjmp_receiver): New.
7480         * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
7481         (__ia64_nonlocal_goto): Bundle.  Don't kill r7.
7482         (__ia64_restore_stack_nonlocal): Likewise.
7483         (__ia64_trampoline): New.
7484         * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
7485         function.
7486         * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
7487
7488 2000-08-08  Richard Henderson  <rth@cygnus.com>
7489
7490         * frame.h (ia64_frame_state): Add my_psp.
7491         * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
7492         (__throw): Pass it in.  Don't clobber r7.
7493         * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
7494         (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
7495         and nothing to do with sp.
7496         (normalize_reg_loc): Use frame->my_psp.
7497         (frame_translate): Handle frame-pointer-less functions.  Set
7498         spill_base correctly, in absence of being told.
7499         (__build_ia64_frame_state): New sp argument.  Fill in frame->my_sp.
7500         (__ia64_backtrace_helper): New sp argument.  Use
7501         builtin_return_address instead of label addresses.
7502         (print_record) [mem_stack_v]: No size member.
7503
7504 2000-08-08  Richard Henderson  <rth@cygnus.com>
7505
7506         * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
7507
7508 2000-08-08  Richard Henderson  <rth@cygnus.com>
7509
7510         * tm.texi (LOCAL_REGNO): Document.
7511         * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
7512         (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
7513         * reload1.c (reload): Likewise when considering nonlocal labels.
7514
7515         * config/ia64/ia64.h (LOCAL_REGNO): New.
7516         * config/sparc/sparc.h (LOCAL_REGNO): New.
7517
7518 2000-08-08  Joseph S. Myers  <jsm28@cam.ac.uk>
7519
7520         * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
7521
7522 2000-08-07  Nick Clifton  <nickc@redhat.com>
7523
7524         * config/mips/mips.c: Fix compile time warning messages.
7525         * config/mips/mips-protos.h: Add prototype for equality_op.
7526
7527         * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
7528
7529 2000-08-07  Graham Stott  <grahams@cygnus.co.uk>
7530
7531         * mn10300.md: Use nonimmediate_operand instead of general_operand
7532         on output operands.
7533
7534         * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
7535
7536 2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
7537
7538         * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
7539         * sh.c (expand_block_move): Break long lines.
7540         (expand_ashiftrt, fpscr_set_from_mem): Likewise.
7541         * sh.md (mulsi3): Likewise.
7542         (movdi): Adjust spacing.
7543
7544 2000-08-07  Richard Henderson  <rth@cygnus.com>
7545
7546         * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
7547         * expr.c (emit_group_store): Don't set it.
7548
7549 2000-08-07  Kazu Hirata  <kazu@hxi.com>
7550
7551         * invoke.texi (Options for Debugging Your Program or GCC): Remove
7552         duplicate entries for 'w' and 'z'.
7553
7554         * flow.c: Fix a comment typo.
7555
7556 Sun Aug  6 23:47:35 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
7557
7558         * c-parse.in: Changed the language string for Objective-C to "GNU
7559         Objective-C".
7560
7561 Sun Aug  6 11:54:03 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
7562
7563         * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
7564         to improve the Posix thread support for Objective-C.
7565
7566 2000-08-06  Joseph S. Myers  <jsm28@cam.ac.uk>
7567
7568         * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
7569         CTI_UNSIGNED_PTRDIFF_TYPE.
7570         (signed_size_type_node): Define.
7571         (unsigned_ptrdiff_type_node): Define.
7572         * c-decl.c (init_decl_processing): Create the
7573         signed_size_type_node and unsigned_ptrdiff_type_node types.
7574         * c-common.c (T_SC): Define.
7575         (T_SST): Define.
7576         (T_UPD): Define.
7577         (print_char_table): Use T_SST for %zd, %zi, %zn.  Use T_UPD for
7578         %to, %tu, %tx, %tX.  Allow %hhn (T_SC).  Add "c" to the flags for
7579         %s and %p.
7580         (scan_char_table): Use T_SC for %hhd, %hhi, %hhn.  Use T_SST for
7581         %zd, %zi, %zn.  Use T_UPD for %to, %tu, %tx, %tX.  Add "c" to the
7582         flags for %c, %s and %[.
7583         (check_format_info): Only allow leniency for signedness of targets
7584         of character pointers (when pedantic) for formats flagged with
7585         "c", so for strings but not for %hh formats.  When pedantic, don't
7586         allow character pointers to substitute for void pointers if a
7587         second level of indirection is present.
7588
7589 2000-08-06  Kazu Hirata  <kazu@hxi.com>
7590
7591         * invoke.texi (Options for Debugging Your Program or GCC): Update
7592         the names of dump files.
7593
7594         * h8300.c (dosize): Rearrange code for conciseness.
7595         (split_adds_subs): Likewise.
7596
7597         * loop.c: Fix formatting.
7598
7599         * dwarf2out.c: Fix formatting.
7600
7601         * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
7602
7603         * expr.c: Fix formatting.
7604
7605 2000-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7606
7607         * rs6000.c (rs6000_maybe_dead): Prototype.
7608
7609 2000-08-06  Richard Henderson  <rth@cygnus.com>
7610
7611         * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
7612         HAVE_nonlocal_goto as well.
7613         * config/i960/i960.md (nonlocal_goto): Don't do it here.
7614         * config/pj/pj.md (nonlocal_goto): Likewise.
7615
7616 2000-08-07  Michael Hayes  <mhayes@cygnus.com>
7617
7618         * loop.c (try_swap_copy_prop): New function.
7619         (load_mems): Rename copies to load_copies and add new regset
7620         store_copies.  Check for sets of shadow registers and mark
7621         in store_copies.   Call try_swap_copy_prop for registers
7622         marked in store_copies.
7623
7624 Sun Aug  6 00:54:42 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
7625
7626         * objc/objc-act.c: New command line option -fconstant-string-class
7627         to allow specifying a user defined constant string class,
7628         different from NXConstantString.
7629
7630         * toplev.c: Moved the Objective-C specific options to
7631         objc/lang-options.h.
7632
7633         * objc/lang-options.h: Moved the Objective-C specific options from
7634         toplev.c. Added -fconstant-string-class.
7635
7636 2000-08-05  Chris Demetriou  <cgd@sibyte.com>
7637
7638         * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
7639         DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
7640         __CTOR_LIST__ from func_ptr array to just func_ptr, to
7641         avoid extra alignment imposed on arrays.
7642         * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
7643         DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
7644
7645         * mips.h: Clean up comments and spacing near MASKs.
7646         (TARGET_UNIX_ASM): Delete.
7647         (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
7648         MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
7649         values contiguous.
7650
7651 2000-08-05  Joseph S. Myers  <jsm28@cam.ac.uk>
7652
7653         * c-common.c (print_char_table): Add entries for the X/Open '
7654         format flag (print decimals with locale's thousands grouping
7655         character).  Make %C expect wint_t.
7656         (check_format_info): If pedantic, warn when the %n$ operand
7657         number form is used.  Allow for the ' flag; warn about it if
7658         pedantic.
7659
7660 2000-08-05  Zack Weinberg  <zack@wolery.cumb.org>
7661
7662         * i386.h (FUNCTION_OK_FOR_SIBCALL):  Not OK if DECL's return
7663         type is a float mode, cfun->decl's return type is not, and
7664         TARGET_FLOAT_RETURNS_IN_80387.
7665
7666 2000-08-04  Andreas Schwab  <schwab@suse.de>
7667
7668         * cppmain.c (cb_def_pragma): Skip the first two tokens from the
7669         token list, which are always `#' and `pragma'.
7670
7671 2000-08-04  Zack Weinberg  <zack@wolery.cumb.org>
7672
7673         * tree.c (tree_expr_nonnegative_p): Move to...
7674         * fold-const.c: ... here.  Also handle BIND_EXPR and RTL_EXPR.
7675         (rtl_expr_nonnegative_p): New.
7676         * tree.h: Add prototype for rtl_expr_nonnegative_p.
7677
7678         * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
7679         CONST_DOUBLE_CHAIN: Move to...
7680         * rtl.h: ...here.  Use XCINT/XCEXP.
7681
7682         * Makefile.in: Remove toplev.o from OBJS.  Add rule to make
7683         libbackend.a; add libbackend.a to STAGESTUFF.  Add BACKEND
7684         variable.  Use BACKEND when linking cc1, not OBJS.  Add BACKEND
7685         to VOL_FILES.
7686
7687         * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
7688
7689 2000-08-05  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7690
7691         * config/c4x/c4x.md (return_indirect_internal): New.
7692         * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
7693
7694 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
7695
7696         * c-common.c (time_char_table): Mark up formats added in C99 and
7697         make other corrections.  %D and %g were added in C99.  %Og is an
7698         extension.  %EX is permitted.  %R, %T, %n, %r, %t were added in
7699         C99.  %e was added in C99.  %Oj is an extension.  %G and %z are in
7700         C99 rather than GNU extensions, but %OG and %Oz are extensions.
7701         %h was added in C99.  %C was added in C99.  %OY and %OC are
7702         extensions.  Add the C99 format %F.
7703         (check_format_info): If pedantic and not in C99 mode, warn for C99
7704         formats, %E and %O.
7705
7706 Fri Aug  4 23:01:58 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
7707
7708         * function.c (schedule_fixup_var_refs): New function, broken out
7709         of put_reg_into_stack.
7710         (put_reg_into_stack): Use it.
7711         (put_var_into_stack): In CONCAT case, fixup up references for
7712         components only after fixing up references to the whole concat.
7713
7714 2000-08-04  Rodney Brown  <RodneyBrown@pmsc.com>
7715
7716         * alias.c (mark_constant_function): Use INSN_P.
7717         (init_alias_analysis): Likewise.
7718         * combine.c (combine_instructions): Use INSN_P.
7719         (can_combine_p): Likewise.
7720         (try_combine): Likewise.
7721         (distribute_notes): Likewise.
7722         (distribute_links): Likewise.
7723         * cse.c (cse_around_loop): Use INSN_P.
7724         (invalidate_skipped_block): Likewise.
7725         (cse_set_around_loop): Likewise.
7726         (cse_end_of_basic_block): Likewise.
7727         (delete_trivially_dead_insns): Likewise.
7728         * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
7729         (unshare_all_rtl_1): Likewise.
7730         (next_cc0_user): Likewise.
7731         (try_split make_insn_raw): Likewise.
7732         (remove_unnecessary_notes): Likewise.
7733         * final.c (shorten_branches): Use INSN_P.
7734         (leaf_renumber_regs): Likewise.
7735         (leaf_renumber_regs_insn): Likewise.
7736         * flow.c (find_label_refs): Use INSN_P.
7737         (verify_wide_reg): Likewise.
7738         (notice_stack_pointer_modification): Likewise.
7739         (count_or_remove_death_notes): Likewise.
7740         (verify_flow_info): Likewise.
7741         (clear_log_links): Likewise.
7742         * function.c (fixup_var_refs_insns): Use INSN_P.
7743         (compute_insns_for_mem): Likewise.
7744         * gcse.c (alloc_gcse_mem): Use INSN_P.
7745         (compute_sets): Likewise.
7746         (compute_hash_table): Likewise.
7747         (classic_gcse): Likewise.
7748         (cprop): Likewise.
7749         (insert_insn_end_bb): Likewise.
7750         (delete_null_pointer_checks_1): Likewise.
7751         * global.c (expand_preferences): Use INSN_P.
7752         (build_insn_chain): Likewise.
7753         * graph.c (node_data): Use INSN_P.
7754         * haifa-sched.c (priority): Use INSN_P.
7755         (rm_line_notes): Likewise.
7756         (rm_other_notes): Likewise.
7757         (find_insn_reg_weight): Likewise.
7758         (init_target_units): Likewise.
7759         (schedule_block): Likewise.
7760         (compute_block_forward_dependences): Likewise.
7761         (debug_dependencies): Likewise.
7762         (set_priorities): Likewise.
7763         * integrate.c (function_cannot_inline_p): Use INSN_P.
7764         (save_parm_insns): Likewise.
7765         (copy_insn_list): Likewise.
7766         * jump.c (mark_all_labels): Use INSN_P.
7767         (never_reached_warning): Likewise.
7768         * lcm.c (optimize_mode_switching): Use INSN_P.
7769         * local-alloc.c (validate_equiv_mem): Use INSN_P.
7770         (memref_used_between_p): Likewise.
7771         (update_equiv_regs): Likewise.
7772         (block_alloc): Likewise.
7773         (no_conflict_p): Likewise.
7774         * loop.c (scan_loop): Use INSN_P.
7775         (find_and_verify_loops): Likewise.
7776         (count_loop_regs_set): Likewise.
7777         (loop_reg_used_before_p): Likewise.
7778         (strength_reduce): Likewise.
7779         (recombine_givs): Likewise.
7780         (check_dbra_loop): Likewise.
7781         (load_mems): Likewise.
7782         (try_copy_prop): Likewise.
7783         * print-rtl.c (print_rtx): Use INSN_P.
7784         * recog.c (find_single_use): Use INSN_P.
7785         * reg-stack.c (stack_regs_mentioned): Use INSN_P.
7786         (next_flags_user): Likewise.
7787         (swap_rtx_condition): Likewise.
7788         * regmove.c (mark_flags_life_zones): Use INSN_P.
7789         (optimize_reg_copy_1): Likewise.
7790         (optimize_reg_copy_2): Likewise.
7791         (optimize_reg_copy_3): Likewise.
7792         (reg_is_remote_constant_p): Likewise.
7793         (fixup_match_2): Likewise.
7794         (regmove_optimize): Likewise.
7795         (fixup_match_1): Likewise.
7796         * regrename.c (build_def_use): Use INSN_P.
7797         (replace_reg_in_block): Likewise.
7798         (consider_use): Likewise.
7799         * reload.c (find_equiv_reg): Use INSN_P.
7800         * reload1.c (reload): Use INSN_P.
7801         (maybe_fix_stack_asms): Likewise.
7802         (calculate_needs_all_insns): Likewise.
7803         (reload_as_needed): Likewise.
7804         (emit_output_reload_insns): Likewise.
7805         (delete_address_reloads_1): Likewise.
7806         (reload_cse_regs_1): Likewise.
7807         (reload_combine): Likewise.
7808         (reload_cse_move2add): Likewise.
7809         * reorg.c (redundant_insn): Use INSN_P.
7810         (dbr_schedule): Likewise.
7811         * resource.c (find_dead_or_set_registers): Use INSN_P.
7812         (mark_target_live_regs): Likewise.
7813         * rtlanal.c (reg_used_between_p): Use INSN_P.
7814         (reg_referenced_between_p): Likewise.
7815         (reg_set_between_p): Likewise.
7816         (reg_set_p): Likewise.
7817         (single_set): Likewise.
7818         (multiple_sets): Likewise.
7819         (find_last_value): Likewise.
7820         (reg_set_last): Likewise.
7821         (find_reg_note): Likewise.
7822         (find_regno_note): Likewise.
7823         * sibcall.c (sequence_uses_addressof): Use INSN_P.
7824         * simplify-rtx.c (cselib_process_insn): Use INSN_P.
7825         * ssa.c (find_evaluations): Use INSN_P.
7826         (rename_block): Likewise.
7827         (rename_equivalent_regs): Likewise.
7828         * unroll.c (loop_find_equiv_value): Use INSN_P.
7829         (set_dominates_use): Likewise.
7830         * varasm.c (mark_constant_pool): Use INSN_P.
7831         (mark_constants): Likewise.
7832         * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
7833         (alphaev4_next_group): Likewise.
7834         (alphaev5_next_group): Likewise.
7835         * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
7836         (c4x_rptb_rpts_p): Likewise.
7837         * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
7838         * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
7839         (rs6000_adjust_priority): Likewise.
7840         * config/sh/sh.c (sh_loop_align): Use INSN_P.
7841         (machine_dependent_reorg): Likewise.
7842         (split_branches): Likewise.
7843         * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
7844
7845 Fri Aug  4 11:43:49 2000  John Wehle  (john@feith.com)
7846
7847         * combine.c (recog_for_combine): Remove the old notes
7848         prior to attempting to recognize the new pattern.
7849         (distribute_notes): Ignore REG_NONNEG notes.
7850
7851 2000-08-04  Chandrakala Chavva  <cchavva@redhat.com>
7852
7853         * varasm.c (output_constructor): Add .align 0 for packed vars.
7854
7855 2000-08-04  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
7856
7857         * configure.in: Use default thread_file even when enable_threads is
7858         yes or dce because hpux10.20 pa port uses MULTILIB implementation.
7859         * configure: Rebuilt.
7860
7861         * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
7862
7863 2000-08-04  Donn Terry (donnte@microsoft.com)
7864
7865         * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
7866
7867 2000-08-04  Mark Elbrecht  <snowball3@bigfoot.com>
7868
7869         * i386/x-djgpp: Delete code that conditionally modifies target_alias.
7870         Delete code that conditionally modifies 'version'.
7871         Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
7872         * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
7873         * gcc.c (main): Use it.
7874         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
7875         * prefix.c (update_path): Use it.
7876         * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
7877         (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
7878         (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
7879         code.
7880         (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
7881         (SUBTARGET_SWITCHES): Adjust.
7882         (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
7883         defining.
7884         (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
7885
7886 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
7887
7888         * c-common.h (flag_isoc94): Declare.
7889         * c-decl.c (flag_isoc94): Define.
7890         (c_decode_option): Set flag_isoc94 as appropriate.
7891         * c-common.c (T_PD, T_IM, T_UIM): Define.
7892         (format_char_info): Add tlen and jlen.
7893         (print_char_table): Add entries for %t and %j.  Allow %zn.  Allow
7894         %F.  Allow %lf.
7895         (scan_char_table): Add entries for %t and %j.  Allow %F.  Allow
7896         %l[.
7897         (time_char_table): Add NULL entries for %t and %j.
7898         (check_format_info): Allow for %t and %j.  Warn for %F if pedantic
7899         and not C99.  Warn for %lc, %ls and %l[ if pedantic and not C94.
7900         Warn for printf %lf if pedantic and not C99.  Don't warn for empty
7901         precision.  Allow precision argument to be unsigned int.  If
7902         pedantic, warn for %p passed an argument not a pointer to possibly
7903         qualified void or a possibly qualified character type, and for
7904         pointer targets of the wrong sign, except for character pointers.
7905
7906 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
7907
7908         * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
7909         * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
7910         (wint_type_node): Define.
7911         * c-decl.c (WINT_TYPE): Define.
7912         (init_decl_processing): Create the wint_type_node type.
7913         * c-common.c (T_WI): Define.
7914         (print_char_table): Use T_WI for %lc format.
7915
7916 2000-08-04  Bruce Korb  <bkorb@gnu.org>
7917
7918         * fixinc/:  Verified that the MSDOS patch does not break
7919         the UNIX functionality and applied the next three patches
7920         from July:
7921
7922 2000-07-28  Eli Zaretskii  <eliz@is.elta.co.il>
7923
7924         * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
7925         output file with the temporary one by appending ".X" to generate
7926         the temporary fuile's name.  If the output file already has an
7927         extension, replace it with ".X".
7928
7929         * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
7930         not $DESTDIR, to find applyfix.  Use sprintf instead of snprintf;
7931         reallocate the command buffer while copying the command-line
7932         argument.  Redirect the output directly to the temporary file,
7933         instead of going through another temporary file.
7934         (process): Close the temporary file before unlinking it.
7935         (machine_matches) [__MSDOS__]: If the machine doesn't match, set
7936         the FD_SKIP_TEST flag.  Pay attention to the FD_MACH_IFNOT flag.
7937         (run_compiles): Pass p_fixd argument to machine_matches, as it
7938         expects.
7939
7940         * fixinc/fixincl.sh: Export ORIGDIR.  If $DJDIR is set in the
7941         environment, assume there are no symlinks in the include
7942         directory.  When cleaning up the DONE files, look for them
7943         case-insensitively.  Don't try to remove symlinks if they aren't
7944         there.
7945
7946         * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
7947         all callers changed.  Declare pz "const char *", to avoid compiler
7948         warnings.
7949
7950         * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
7951         Change prototype of make_raw_shell_str.
7952
7953 2000-07-27  Eli Zaretskii  <eliz@is.elta.co.il>
7954
7955         * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
7956         (initialize) [__MSDOS__]: Use tempnam.
7957         (initialize): Don't use SIGPIPE if it is not defined.
7958
7959         * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
7960         return stdout.
7961
7962 2000-07-25  Bruce Korb  <bkorb@gnu.org>
7963
7964         * fixinc/fix*.[ch]: substantially reworked to make it possible
7965         to run this program without using fork(2) or pipe(2) (i.e. in
7966         a DOS environment).
7967
7968 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
7969
7970         * cppdefault.h (WINT_TYPE): Define.
7971         * cppinit.c (builtin_array): Define __WINT_TYPE__.
7972         * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
7973         * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
7974
7975 Fri Aug  4 06:53:46 2000  Clinton Popetz  <cpopetz@cygnus.com>
7976
7977         * (mips_legitimate_address_p): Don't allow register+offset
7978         if the offset is large and negative, and we are compiling
7979         for 64 bit registers.
7980
7981 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7982
7983         * gencodes.c (main): Define CODE_FOR_nothing as the last possible
7984         insn_code_number + 1.
7985
7986 2000-08-04  Kazu Hirata  <kazu@hxi.com>
7987
7988         * h8300.c (function_prologue): Rearrange code for conciseness.
7989         (function_epilogue): Likewise.
7990         * h8300.h (OK_FOR_U): Fix formatting.
7991
7992         * cse.c: Fix a comment typo. Fix formatting.
7993
7994 2000-08-03  Richard Henderson  <rth@cygnus.com>
7995
7996         * config/i386/i386.md (return_indirect_internal): New.
7997         * config/i386/i386.c (ix86_expand_epilogue): Use it.
7998
7999 2000-08-03  Zack Weinberg  <zack@wolery.cumb.org>
8000
8001         * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
8002         before the name.
8003         (lex_line): Glue @ onto the beginning of identifiers and
8004         string constants, in Objective-C mode.
8005         (output_token, spell_token): Handle CPP_OSTRING.
8006         (can_paste, maybe_paste_with_next): Handle pasting @ onto the
8007         beginning of a NAME or a STRING, in objc mode.
8008
8009         * cpplib.c (get_define_node): Do not permit identifiers that
8010         begin with @ to be #defined.
8011         * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
8012         * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
8013
8014         * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
8015         * c-tree.h (build_objc_string): Delete prototype.
8016         * objc/objc-tree.def: Delete OBJC_STRING_CST.
8017         * c-lex.c (yylex): Use build_string for all three kinds of strings.
8018
8019         * c-parse.in, objc/objc-act.c: Update commentary.
8020
8021 2000-08-03  Mark Mitchell  <mark@codesourcery.com>
8022
8023         * extend.texi: Fix typo in last change.
8024
8025         * extend.texi: Add commentary on statement-expressions and their
8026         interactions with C++.
8027
8028 2000-08-03  Nick Clifton  <nickc@cygnus.com>
8029
8030         * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
8031         * dwarf.h (LANG_JAVA): Change value to 0x000b.
8032
8033 2000-08-03  Anthony Green  <green@cygnus.com>
8034
8035         * dwarf2out.c (gen_compile_unit_die): Add java language support.
8036         (add_bound_info): Check for java language.
8037         (is_java): New function.
8038         * dwarfout.c (output_compile_unit_die): Ditto.
8039         * dwarf.h (dwarf_source_language): Add java source language type.
8040         * dwarf2.h (dwarf_source_language): Ditto.
8041
8042 Thu Aug  3 20:32:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8043
8044         * reg-stack.c (subst_stack_regs_pat):  Use replace_reg to swap
8045         operands.
8046
8047         * i386.c (ix86_expand_branch): Mode of comparison in
8048         IF_THEN_ELSE is VOIDmode.
8049
8050 Thu Aug  3 10:05:53 2000  Akiko Matsushita <matusita@sra.co.jp>
8051
8052         * gengenrtl.c, rtl.c: Avoid #elif.
8053
8054 2000-08-03  Michael Poole  <poole@troilus.org>
8055
8056         * tm.texi (Register Classes): Clarify order of sub-initializers
8057         in REG_CLASS_CONTENTS.
8058
8059 Thu Aug  3 15:53:03 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
8060
8061         From SAITOH Masanobu:
8062         * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
8063
8064 2000-08-03  David Billinghurst  <David.Billinghurst@riotinto.com.au>
8065
8066         * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
8067         is not supported by tradcpp and isn't actually needed for cygwin.
8068
8069 2000-08-03  Kazu Hirata  <kazu@hxi.com>
8070
8071         * h8300.c: Fix a comment typo.
8072         * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
8073
8074         * jump.c: Fix formatting.
8075
8076         * toplev.c: Fix formatting.
8077
8078 Thu Aug  3 01:05:32 2000  Jeffrey A Law  (law@cygnus.com)
8079
8080         * flow.c (find_auto_inc): Verify that we've got a REG before
8081         peeking at its regno.  Fail, don't abort if we can't find
8082         the increment of the desired register.
8083
8084         * pa.md (shadd height reduction patterns/splitters): Remove.
8085
8086 2000-08-02  Jim Wilson  <wilson@cygnus.com>
8087
8088         * config/ia64/ia64-protos.h (flag_ssa): Declare.
8089         * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
8090
8091 2000-08-02  Mark Mitchell  <mark@codesourcery.com>
8092
8093         * dce.c: Remove all uses of assert.
8094         * dwarf2out.c: Likewise.
8095         * dwarfout.c: Likewise.
8096         * ssa.c: Likewise.
8097
8098 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
8099
8100         * gcc.h (lang_specific_driver): Constify second argument.
8101         * gcc.c (translate_options, process_command, main): Likewise.
8102         Constify variables to match.  Cast second argument to
8103         pexecute.
8104
8105         * cppspec.c, gccspec.c: Adjust type of second argument to
8106         lang_specific_driver, and update code as necessary.
8107
8108 2000-08-02  Jakub Jelinek  <jakub@redhat.com>
8109
8110         * loop.c (scan_loop): Ensure update_end label does not
8111         go away until reg_scan_update is run.
8112
8113 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
8114
8115         * c-common.h: Prototype min_precision and c_build_qualified_type here...
8116         * c-tree.h: ... not here.
8117         * errors.h: Prototype fancy_abort.
8118
8119         * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
8120         HOST_BITS_PER_WIDE_INT == 64 ifdef block.
8121         * regrename.c (regrename_optimize): Make control flow explicit.
8122         (replace_reg_in_block): Initialize reg_use to 0.
8123
8124         * i386.c (legitimate_address_p): Rename error label to
8125         report_error to avoid namespace clash.
8126
8127 2000-08-02  Kazu Hirata  <kazu@hxi.com>
8128
8129         * fold-const.c: Fix formatting.
8130
8131 Wed Aug  2 16:26:15 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8132
8133         * i386.c (legitimate_address_p): Accept other bases than
8134         pic_offset_table_rtx for GOTOFF constructs.
8135
8136 Wed Aug  2 15:59:34 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8137
8138         * i386.md (shift to lea splitter): Use const_int_operand.
8139
8140 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
8141
8142         * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
8143         cppspec.c: Do not use 'legal' or 'illegal' in error messages
8144         and comments.
8145
8146         * cppmain.c (cb_define, cb_undef): Don't generate any output
8147         if not done_initializing.
8148         * cpplex.c (maybe_paste_with_next): When the token after a ##
8149         is an omitted rest argument, only delete the token before it
8150         if that token is a comma.  Do not warn about bogus token
8151         pastes for , ## rest_arg.
8152
8153         * cpp.texi: Update.
8154         * cpp.1: Regenerate.
8155
8156 2000-08-02  Fred Fish  <fnf@be.com>
8157
8158         * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
8159         when user gives -p option.  Add init_term_dyn.o for BeOS 5.0
8160         and later.
8161
8162         * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
8163         Be directories to search path.
8164
8165         Remove support for __declspec(dllimport) and __declspec(dllexport).
8166         This is leftover cruft from the earlier BeOS gcc port when BeOS
8167         used Microsoft's PE object file format.
8168         * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
8169         * config/i386/t-beos (winnt.o): Remove Makefile frag.
8170         * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
8171         (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
8172         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
8173         (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
8174         (REDO_SECTION_INFO_P): Remove.
8175         (ASM_EXPORT_DECL): Remove.
8176         (ASM_DECLARE_FUNCTION_NAME): Remove.
8177         (ASM_DECLARE_OBJECT_NAME): Remove.
8178         (ASM_OUTPUT_ALIGNED_COMMON): Remove.
8179         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
8180         (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
8181         (STRIP_NAME_ENCODING): Remove.
8182
8183         Remove support for obsolete version of BeOS that is no longer
8184         supported by Be.
8185         * configure.in (i*86-*-beospe*): Remove.
8186         * config/i386/beos-pe.h: Remove.
8187
8188 2000-08-01  Jeffrey Oldham  <oldham@codesourcery.com>
8189             Mark Mitchell <mark@codesourcery.com>
8190
8191         * Makefile.in (OBJS): Added dce.o.
8192         (ssa.o): Updated target to include ssa.h.
8193         (flow.o): Likewise.
8194         (toplev.o): Likewise.
8195         (dce.o): Created target.
8196         * basic-block.h: Added comments.
8197         (INVALID_BLOCK): Added definition.
8198         (connect_infinite_loops_to_exit): Added declaration.
8199         Moved SSA declarations to ssa.h.
8200         * flow.c: Added inclusion of ssa.h.
8201         (struct depth_first_search_dsS, depth_first_search_ds):
8202         Added definitions.
8203         (compute_immediate_postdominators): Added definition.
8204         (connect_infinite_loops_to_exit): Likewise.
8205         (flow_dfs_compute_reverse_init): Likewise.
8206         (flow_dfs_compute_reverse_add_bb): Likewise.
8207         (flow_dfs_compute_reverse_execute): Likewise.
8208         (flow_dfs_compute_reverse_finish): Likewise.
8209         * rtl.h (rtx/in_struct): Added use to determine insn necessity.
8210         (LABEL_P): Added definition.
8211         (JUMP_P): Likewise.
8212         (NOTE_P): Likewise.
8213         (BARRIER_P): Likewise.
8214         (JUMP_TABLE_DATA_P): Likewise.
8215         (INSN_DEAD_CODE_P): Likewise.
8216         * ssa.c: Replaced inclusions with ssa.h inclusion.
8217         (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
8218         (rename_registers): Removed unnecessary variables.
8219         * ssa.h: Created by moving declarations from ssa.c and
8220         basic-block.h.
8221         * timevar.def: Defined TV_DEAD_CODE_ELIM.
8222         * toplev.c: Added ssa.h inclusion.
8223         (dump_file_index): Added DFI_dce.
8224         (dump_file): Added "dce" entry.
8225         Defined flag_ssa.
8226         (f_options): Added dce entry.
8227         * invoke.texi: Document -fdce.  Emphasize experimental status of
8228         -fssa.
8229         * dce.c: New file.
8230
8231 2000-08-01  Zack Weinberg  <zack@wolery.cumb.org>
8232
8233         * cpperror.c (v_message): Split into _cpp_begin_message and
8234         v_message macro.  All callers updated.
8235         (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
8236         checks here.
8237
8238         * cppfiles.c (cpp_syshdr_flags): New function.
8239         (read_include_file): Don't call cpp_output_tokens.  Call
8240         enter_file hook.
8241         * cppinit.c (dump_macros_helper): Moved to cppmain.c.
8242         (cpp_reader_init): Don't initialize token_buffer.  Call
8243         _cpp_init_internal_pragmas.
8244         (cpp_cleanup): Don't clear token_buffer.
8245         (cpp_start_read): Don't worry about output from -D processing.
8246         Don't call cpp_output_tokens.
8247         (cpp_finish): Don't dump macros here.  Don't call
8248         cpp_output_tokens.
8249         * cppmacro.c (_cpp_dump_definition): Rename
8250         cpp_dump_definition.  Write directly to a FILE *.
8251         (dump_funlike_macro): Delete.
8252         (dump_macro_args): New.
8253
8254         * cpplex.c (TOKEN_LEN): Convert to inline function.
8255         (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
8256         cpp_scan_line, _cpp_dump_list): Delete.
8257         (cpp_printf, cpp_output_list): New.
8258         (output_line_command): Don't worry about entering or leaving files.
8259         (cpp_scan_buffer): Just output each token as we hit it.
8260         (process_directive): Don't call cpp_output_tokens.
8261         (_cpp_glue_header_name): Don't use token_buffer.
8262         (output_token, dump_param_spelling): Write directly to a FILE *.
8263
8264         * cpplib.c (pass_thru_directive, dump_macro_name,
8265         pragma_dispatch, do_pragma_gcc): Delete.
8266         (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
8267         do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
8268         functions.
8269         (do_error, do_warning, pragma_dependency): Call
8270         _cpp_begin_message, then cpp_output_list.
8271         (cpp_register_pragma, cpp_register_pragma_space,
8272         _cpp_init_internal_pragmas): New.
8273         (do_pragma): Walk the pragmas table here.
8274         (do_pragma_once, do_pragma_poison, do_pragma_system_header,
8275         do_pragma_dependency): Return void.
8276         (do_pragma_implementation): Moved to cppmain.c.
8277
8278         * cpplib.h: Update prototypes.
8279          (struct cpp_reader): Remove printer, token_buffer,
8280         token_buffer_size, and limit.  Add struct cb, and pragmas.
8281         (struct cpp_printer): Remove last_id and written.
8282         (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
8283         CPP_ADJUST_WRITTEN): Delete.
8284         * cpphash.h: Update prototypes.
8285         (ufputs): New wrapper.
8286
8287         * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
8288         cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
8289         (main): Set up callbacks.  Register #pragma implementation.
8290         Dump macros from here.
8291
8292 2000-08-01  Geoff Keating  <geoffk@cygnus.com>
8293
8294         * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
8295         * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
8296         * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
8297         insns if they have a REG_MAYBE_DEAD note attached.
8298         * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
8299         (rs6000_emit_load_toc_table): TOC loads may go dead.
8300
8301 2000-08-01  Jim Wilson  <wilson@cygnus.com>
8302
8303         * config/ia64/ia64.c (ia64_function_arg): Fix last change.  Verify
8304         type exists before using it.  Use number of words as alignment
8305         otherwise.
8306         (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
8307         ia64_va_arg): Propagate ia64_function_args changes here.
8308
8309 2000-08-01  Richard Henderson  <rth@cygnus.com>
8310
8311         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
8312         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8313
8314 2000-08-01  Bernd Schmidt  <bernds@cygnus.co.uk>
8315
8316         From Joern Rennecke:
8317         * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
8318         * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
8319         unless TARGET_SH3E is set.
8320         * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
8321
8322         * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
8323         (ashlsi3_std): New pattern.
8324         (ashlsi3 expander): Use it for TARGET_SH3.
8325         * sh.c (gen_ashift): Use it instead of ashlsi3_k.
8326
8327 Tue Aug  1 12:34:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8328
8329         * loop.c (canonicalize_condition):  Use destination, not source to
8330         determine SET's mode.
8331
8332 2000-07-31  Mark Mitchell  <mark@codesourcery.com>
8333
8334         * flow.c (clear_log_links): Fix typo.
8335
8336 Mon Jul 31 22:19:24 2000  Jeffrey A Law  (law@cygnus.com)
8337
8338         * loop.c (check_dbra_loop): Make change from July 17, 2000 work
8339         on targets which need more than one insn for a compare/cbranch
8340         operation.
8341
8342 2000-07-31  Jim Wilson  <wilson@cygnus.com>
8343
8344         * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
8345         when computing offset.
8346
8347 Mon Jul 31 20:35:50 2000  Denis Chertykov  <denisc@overta.ru>
8348
8349         * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
8350
8351 2000-07-31  Geoff Keating  <geoffk@cygnus.com>
8352
8353         * flow.c (clear_log_links): Nuke global_live_at_start and
8354         global_live_at_end data, since if the log_links stuff is invalid
8355         so is global_live_at_*.
8356
8357 2000-07-31  Richard Henderson  <rth@cygnus.com>
8358
8359         * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
8360
8361 2000-07-31  Jakub Jelinek  <jakub@redhat.com>
8362
8363         * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
8364         (_cpp_get_token): Don't macro expand a just pasted token if it
8365         was pasted at no_expand_level.
8366
8367 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
8368
8369         * cppmacro.c (find_param, count_params, save_expansion):
8370         Permit 'defined' as a macro parameter name.
8371
8372 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
8373
8374         * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
8375         xcpp to cpp throughout.
8376         (native): Remove unnecessary dependency on cpp.
8377
8378         * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
8379         tradcpp to tradcpp0.
8380         (.i spec): Add missing output-file spec to cc1 command line.
8381         * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
8382
8383 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
8384
8385         * c-decl.c (mesg_implicit_function_declaration): Init to -1.
8386         (implicit_decl_warning): New function.
8387         (implicitly_declare): Use it.
8388         * c-typeck.c (build_external_ref): Use implicit_decl_warning
8389         to complain about implicit decls of builtins.
8390
8391         * c-lang.c (lang_init): Set mesg_implicit_function_declaration
8392         based on pedantic && flag_isoc99, if not already set.
8393         * c-tree.h: Declare mesg_implicit_function_declaration.
8394         Prototype implicit_decl_warning.
8395
8396 2000-07-30  Jeffrey D. Oldham  <oldham@codesourcery.com>
8397
8398         * Makefile.in (ssa.o): Updated header files in dependences.
8399         * basic-block.h: Added compute_immediate_postdominators declaration.
8400         * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
8401         definition.
8402         * flow.c (compute_immediate_dominators): Updated comment.
8403         (compute_immediate_postdominators): Added definition.
8404         * rtl.h (HARD_REGISTER_P): Added definition.
8405         * ssa.c: Include additional header files.
8406         (assert): Added definition.
8407         (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
8408         include select hard registers.
8409         (ssa_rename_to_insert): Likewise.
8410         (ssa_rename_from_initialize): Likewise.
8411         (ssa_rename_from_lookup): Likewise.
8412         (original_register): Likewise.
8413         (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
8414         include select hard reigsters.
8415         (ssa_rename_from_traverse): Likewise.
8416         (ssa_rename_from_free): Likewise.
8417         (ssa_rename_from_print): Likewise.
8418         (ssa_rename_from_print_1): Likewise.
8419         (ssa_rename_from_hash_function): Likewise.
8420         (ssa_rename_from_equal): Likewise.
8421         (ssa_rename_from_delete): Likewise.
8422         (simplify_to_immediate_dominators): Removed in favor of
8423         flow.c:compute_immediate_dominators.
8424         (find_evaluations_1): Modified to work with hard registers.
8425         (insert_phi_node): Likewise.
8426         (insert_phi_nodes): Likewise.
8427         (struct rename_set_data): Updated prev_reg comment.
8428         (create_delayed_rename): Modified to work with hard registers.
8429         (RENAME_NO_RTX): Updated comment.
8430         (apply_delayed_renames): Modified to work with hard registers.
8431         (rename_insn_1): Likewise and added handling of CLOBBER rtls.
8432         (rename_block): Updated to use revised ssa_rename_to interface.
8433         (rename_registers): Updated to use revised ssa_rename_to and
8434         ssa_rename_from interface.
8435         (convert_to_ssa): Revised to use compute_immediate_dominators and
8436         deal with hard registers.
8437         (make_regs_equivalent_over_bad_edges): Modified to work with hard
8438         registers.  Added check for illegal unification of hard register.
8439         (make_equivalent_phi_alternatives_equivalent): Modified to work
8440         with hard registers.
8441         (compute_conservative_reg_partition): Likewise.
8442         (coalesce_if_unconflicting): Modified to work with hard registers
8443         and check for conflicting hard registers.
8444         (mark_phi_and_copy_regs): Revised loop to work only on pseudo
8445         registers.
8446         (rename_equivalent_regs_in_insn): Modified to work with hard
8447         registers.
8448         (record_canonical_element_1): Added definition.
8449         (check_hard_regs_in_partition): Added definition.
8450         (convert_from_ssa): Added data structure deallocation and check
8451         for illegal hard register unification.
8452         (conflict_hard_regs_p): Added definition.
8453         * toplev.c (rest_of_compilation): Added comment.
8454
8455 2000-07-31  Anthony Green  <green@redhat.com>
8456
8457         * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
8458
8459 2000-07-31  Jason McMullan  <jmcmullan@linuxcare.com>
8460
8461         * builtins.c (expand_builtin_apply): Don't defer pop during
8462         argument setup.
8463
8464 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8465
8466         * calls.c (combine_pending_stack_adjustment_and_call): Only use
8467         preferred_unit_stack_boundary when it is > 1.
8468
8469 2000-07-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8470
8471         * c-common.c (init_function_format_info): Add C99 format functions
8472         in C99 mode.
8473
8474         * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
8475         void' or 'register void' as being the special case of 'void' alone
8476         in a parameter list.
8477
8478         * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
8479         discarding qualifiers into a plain warning.
8480
8481 2000-07-31  Kazu Hirata  <kazu@hxi.com>
8482
8483         * combine.c: Fix formatting.
8484
8485         * h8300.md: Fix formatting.
8486
8487         * local-alloc.c: Fix formatting.
8488
8489         * h8300.c (get_shift_alg): Remove the variable alg.
8490         (emit_a_shift): Rearrange code to improve readability.
8491
8492         * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
8493
8494         * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
8495         HImode on all architectures and a combination of HImode and SImode
8496         on H8/300H and H8/S.
8497
8498         * h8300.c (split_adds_subs): Rearrange code for conciseness.
8499
8500 Mon Jul 31 12:27:55 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8501
8502         * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
8503         in my last checkin.
8504
8505 Mon Jul 31 10:41:01 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8506
8507         * recog.c (extract_insn): Set operand_mode according to
8508         operand if match_operand is VOIDmode.
8509
8510 Mon Jul 31 10:36:38 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8511
8512         * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
8513
8514 2000-07-31  Geoff Keating  <geoffk@cygnus.com>
8515
8516         * c-parse.in (extdefs): Call ggc_collect between external
8517         definitions.
8518
8519 2000-07-30  Michael Hayes  <mhayes@cygnus.com>
8520             Richard Henderson  <rth@cygnus.com>
8521
8522         * Makefile.in (OBJS): Add doloop.o.
8523         * doloop.c: New file.
8524
8525         * final.c (insn_current_reference_address): Return 0 before final.
8526         * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
8527         * jump.c (any_uncondjump_p): Likewise.
8528         * loop.c (indirect_jump_in_function): Make static.
8529         (strength_reduce): Call doloop_optimize.
8530         (insert_bct, instrument_loop_bct): Remove.
8531         * loop.h (doloop_optimize): Prototype.
8532         * recog.c (split_all_insns): Split all INSN_P.
8533         * toplev.c (flag_branch_on_count_reg): Default on.
8534
8535         * config/c4x/c4x.c (c4x_optimization_options): Don't set
8536         flag_branch_on_count_reg.
8537         * config/i386/i386.c (override_options): Likewise.
8538         * config/rs6000/rs6000.c (optimization_options): Likewise.
8539
8540         * config/i386/i386.md (decrement_and_branch_on_count): Remove.
8541         (doloop_end): New.
8542         (dbra_ge): Remove, as well as all it's splitters.
8543
8544         * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
8545         (doloop_end): New.
8546
8547         * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
8548         (ia64_register_move_cost): Declare.
8549         * config/ia64/ia64.c (ar_lc_reg_operand): New.
8550         (struct ia64_frame_info): Add ar_size.
8551         (ia64_compute_frame_size): Set it.
8552         (save_restore_insns): Save and restore ar.lc.
8553         (ia64_register_move_cost): New, moved from header file.  Handle
8554         application registers.
8555         (REG_AR_PFS, REG_AR_EC): Remove.  Replace with AR_*_REGNUM numbers.
8556         (emit_insn_group_barriers): Special case doloop_end_internal.
8557         (ia64_epilogue_uses): Mark ar.lc live at end.
8558         * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
8559         (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
8560         (FIRST_PSEUDO_REGISTER): Make room.
8561         (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
8562         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
8563         (REG_ALLOC_ORDER): Update.
8564         (HARD_REGNO_MODE_OK): Update.
8565         (REGISTER_NAMES): Update.
8566         (enum reg_class): Add AR_M_REGS and AR_I_REGS.
8567         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
8568         (REGNO_REG_CLASS): Update.
8569         (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
8570         (REGISTER_MOVE_COST): Move out of line.
8571         (PREDICATE_CODES): Update.
8572         * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
8573         (addsi3_plus1_alt, adddi3_plus1_alt): New.
8574         (shladd_elim splitter): Allow constants in the predicate.
8575         (doloop_end, doloop_end_internal): New.
8576
8577 2000-07-30  Richard Henderson  <rth@cygnus.com>
8578
8579         * genattrtab.c (struct insn_def): Add lineno member.
8580         (struct insn_ent): Likewise.
8581         (struct attr_desc): Likewise.
8582         (struct delay_desc): Likewise.
8583         (struct function_unit_op): Likewise.
8584         (struct function_unit): Likewise.
8585         (check_attr_value): Use message_with_line.
8586         (check_defs): Likewise.
8587         (expand_units): Likewise.
8588         (check_attr_test): Take a lineno argument.
8589         (gen_attr): Likewise.
8590         (gen_insn): Likewise.
8591         (gen_delay): Likewise.
8592         (gen_unit): Likewise.
8593         (main): Give it to them.
8594         (convert_set_attr_alternative): Take an insn_def argument
8595         instead of num_alt and insn_index.
8596         (convert_set_attr): Likewise.
8597         (write_test_expr): Protect INSN_ADDRESSES load
8598         with INSN_ADDRESSES_SET_P.
8599
8600 2000-07-30  Richard Henderson  <rth@cygnus.com>
8601
8602         * flow.c (init_propagate_block_info): Use pc_set.
8603
8604 Sun Jul 30 20:58:34 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8605
8606         * i386.md (*lea_general_[123]) New insns and splits.
8607         (addsi3 to lea splitter): Handle other modes too.
8608         (shlsi3 to lea splitter): Likewise.
8609         (addhi_1_lea, shlhi_1_lea): New patterns.
8610         (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
8611
8612 Sun Jul 30 20:51:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8613
8614         * recog.c (general_operand, nonimmediate_operand): Accept
8615         any mode for VOIDmode CONSTANT_P operands.
8616
8617 Sun Jul 30 20:42:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8618
8619         * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
8620         instead of replace_rtx.
8621         * recog.c (validate_replace_rtx_subexp): New function.
8622         * recog.h (validate_replace_rtx_subexp): Declare.
8623
8624 Sun Jul 30 20:38:26 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8625
8626         * combine.c (simplify_set, make_extraction, make_compound_operation
8627         make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
8628         as force_to_mode argument.
8629
8630 Sun Jul 30 20:30:41 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8631
8632         * combine.c (if_then_else_cond): Be sure that mode fits in
8633         HOST_WIDE_INT.
8634
8635 Sun Jul 30 20:27:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8636
8637         * combine.c (record_promoted_value):  Allow bitsize of mode
8638         to be equivalent to HOST_BITS_PER_WISE_INT.
8639
8640 Sun Jul 30 20:25:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8641
8642         * function.c (assign_stack_local_1, assign_stack_temp_for_type):
8643         Do not call gen_mode_alignment when mode is BLKmode.
8644
8645 Sun Jul 30 20:21:54 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8646
8647         * loop.c (express_from_1): Fix call of simplify_gen_binary.
8648
8649 Sun Jul 30 20:08:37 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8650
8651         * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
8652         VOIDmode implies both operands to be VOIDmode.
8653         (simplify_ternary_operation): Compute properly the mode of comparison.
8654         * combine.c (combine_simplify_rtx): Likewise.
8655
8656 2000-07-25  Michael Hayes  <mph@paradise.net.nz>
8657
8658         * basic-block.h (struct loops): New field rc_order.
8659         * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
8660         (flow_loops_free): Free rc_order.
8661         (flow_depth_first_order_compute): New parameter rc_order.
8662         (flow_loops_find): Allocate rc_order and swap usage with
8663         dfs_order.
8664
8665 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8666            Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8667
8668         * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
8669         (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
8670         (nodb_call, return_from_epilogue): Likewise.
8671         (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
8672         * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
8673         * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
8674         (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
8675         (c4x_valid_type_attribute_p): Likewise.
8676         * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
8677         (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
8678
8679 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8680
8681         * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
8682         and loadhi_big_constant if applicable.
8683         * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
8684         and add new splitter.s
8685
8686 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8687
8688         * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
8689
8690 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8691
8692         * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
8693
8694 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8695
8696         * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
8697
8698 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8699
8700         * config/c4x/libgcc.S (divqf3): Improve accuracy.
8701
8702 2000-07-27  Mark Mitchell  <mark@codesourcery.com>
8703
8704         Put phi nodes after NOTE_INSN_BASIC_BLOCK.
8705         * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
8706         * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
8707         (get_prev_bb_note): Likewise.
8708         (remove_scope_notes): Likewise.
8709         * flow.c (commit_one_edge_insertion): Likewise.
8710         (merge_blocks_nomove): Likewise.
8711         (verify_flow_info): Likewise.
8712         * gcse.c (insert_insn_end_bb): Likewise.
8713         * reg-stack.c (emit_swap_insn): Likewise.
8714         * ssa.c (first_insn_after_basic_block_note): New function.
8715         (insert_phi_node): Use it.
8716         (rename_block): Likewise.
8717         (eliminate_phi): Likewise.
8718         (make_regs_equivalent_over_bad_edges): Likewise.
8719         (make_equivalent_phi_alternatives_equivalent): Likewise.
8720         (for_each_successor_phi): Likewise.
8721         (convert_from_ssa): Modify phi-node deletion algorithm.
8722
8723 2000-07-29  Andreas Jaeger  <aj@suse.de>
8724
8725         * configure.in (mips*-*-linux*): Use mips*el to check for little
8726         endian MIPS, add tmake_file.
8727
8728         * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
8729         (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
8730         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
8731
8732 2000-07-28  Richard Henderson  <rth@cygnus.com>
8733
8734         * config/ia64/ia64.c (ia64_print_operand): Fix typos.
8735         Sign extend mode size before negating.
8736
8737 2000-07-28  Richard Henderson  <rth@cygnus.com>
8738
8739         * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
8740
8741 2000-07-28  Bernd Schmidt  <bernds@cygnus.co.uk>
8742
8743         * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
8744         (cse_insn): Likewise.
8745         (addr_affects_sp_p): Likewise.
8746         * expr.c (move_by_pieces): Likewise.
8747         (clear_by_pieces): Likewise.
8748         * gcse.c (oprs_unchanged_p): Likewise.
8749         * haifa-sched.c (sched_analyze_2): Likewise.
8750         * recog.c (offsettable_address_p): Likewise.
8751         * regclass.c (record_address_regs): Likewise.
8752         * reload.c (find_reusable_reload): Likewise.
8753         (push_reload): Likewise.
8754         (operands_match_p): Likewise.
8755         (decompose): Likewise.
8756         (find_reloads_address_1): Likewise.
8757         (find_inc_amount): Likewise.
8758         * reload1.c (elimination_effects): Likewise.
8759         * resource.c (mark_set_resources): Likewise.
8760         * flow.c (attempt_auto_inc): New function; mostly broken out
8761         of find_auto_inc.
8762         (find_auto_inc): Split into two functions and enhanced to
8763         generate POST_MODIFY.
8764         * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
8765         * rtl.h (count_all_occurrences):  Declare.
8766         (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
8767         defined.
8768         * rtlanal.c (count_all_occurrences): New function.
8769         * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
8770         HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
8771
8772         * config/ia64/ia64-protos.h (destination_operand): Declare.
8773         * config/ia64/ia64.c (destination_operand): New function.
8774         (ia64_print_operand): Handle POST_MODIFY.
8775         (rtx_needs_barrier): Likewise.
8776         * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
8777         (HAVE_POST_MODIFY_REG): Define to 1.
8778         (MAX_REGS_PER_ADDRESS): Change to 2.
8779         (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
8780         (LEGITIMATE_ADDRESS_REG): New helper macro.
8781         (LEGITIMATE_ADDRESS_DISP): Likewise.
8782         (PREDICATE_CODES): Add entry for destination_operand.
8783         * config/ia64/ia64.md (all mov patterns): Use destination_operand
8784         predicate for operand 0.
8785
8786 2000-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8787
8788         * dwarf2out.c: Indent #error directive.
8789
8790         * gbl-ctors.h: Fix typo in comment.
8791         (__do_global_ctors): Prototype.
8792
8793         * gcse.c (record_one_set, pre_delete): Remove unused variables.
8794
8795         * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
8796         (print_operand): Initialize variable `t'.
8797
8798 2000-07-27  Aldy Hernandez  <aldyh@redhat.com>
8799
8800         * config/arm/arm.md ("call_value"): removed constraints.
8801         Constraints are ignored in expanders.
8802         (*call_value_reg): split =rf into various constraints.
8803         (*call_value_mem): same
8804         (*call_value_symbol): same
8805         (*sibcall_value_insn): same
8806
8807 2000-07-28  Philipp Thomas  <pthomas@suse.de>
8808
8809         * install.texi (--enable-nls): Change the description of the NLS
8810         related configure options to match the current state.
8811         (--with-included-gettext): Likewise.
8812         (--enable-maintainer-mode): New description added.
8813         * extend.texi (-fstrict-prototype): Add missing '.'.
8814
8815 2000-07-27  Jim Wilson  <wilson@cygnus.com>
8816
8817         * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
8818         DECL_INITIAL (decl) == NULL_TREE.
8819
8820 2000-07-27  Alexandre Oliva  <aoliva@redhat.com>
8821
8822         * Makefile.in (INSN_ATTR_H): New macro.  Replace all dependencies
8823         on insn-attr.h with it.
8824         * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
8825         * insn-addr.h: New header.
8826         (insn_addresses_): Renamed from insn_addresses.
8827         (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
8828         INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
8829         INSN_ADDRESSES_NEW): New macros.
8830         * genattrtab.c (write_test_expr): Use new macros.
8831         * final.c (insn_addresses, init_insn_lengths): Likewise.
8832         (align_fuzz, shorten_branches): Likewise.
8833         (final): Likewise.  Do not reject new insns if their addresses
8834         have been added to INSN_ADDRESSES.
8835         * config/arm/arm.c, config/avr/avr.c: Use new macros.
8836         * config/h8300/h8300.c, config/i370/i370.c: Likewise.
8837         * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
8838         * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
8839         * config/sh/sh.c: Likewise.
8840         (output_branchy_insn): Use INSN_ADDRESSES_NEW.
8841
8842         * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
8843
8844 2000-07-27  Andrew Cagney  <cagney@b1.cygnus.com>
8845
8846         * gcc.c (struct prefix_list): Add member priority.
8847         (enum path_prefix_priority): Declare.
8848         (add_prefix): Replace ``first'' with ``priority''.  Append new
8849         entry but keep list in priority order.
8850         (process_command): Update.  Pass PREFIX_PRIORITY_B_OPT or
8851         PREFIX_PRIORITY_LAST to add_prefix.
8852         (process_command): Move include kludge - foo/stageN - to before
8853         foo/include.
8854
8855 2000-07-27  Jason Merrill  <jason@redhat.com>
8856
8857         * dwarf2out.c (gen_typedef_die): Abort if we get identical
8858         TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
8859
8860 2000-07-27  RodneyBrown  <RodneyBrown@pmsc.com>
8861
8862         * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
8863         * tree.h (get_alias_set, lang_get_alias_set): Prototype.
8864
8865 2000-07-27  Joseph S. Myers  <jsm28@cam.ac.uk>
8866
8867         * c-decl.c (finish_function): Don't treat 'main' specially unless
8868         flag_hosted.  In C99 mode, return 0 from 'main' unless
8869         DEFAULT_MAIN_RETURN is otherwise defined.
8870
8871         * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
8872         parameters defaulting to int in an old-style function definition.
8873
8874 2000-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8875
8876         * c-parse.in (string): For -Wtraditional, warn about string
8877         concatenation only once per line.
8878
8879 Thu Jul 27 09:25:17 2000  Akiko Matsushita  <matusita@sra.co.jp>
8880
8881         * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
8882         for HI-UX/WE2 systems.
8883
8884 2000-07-24  Bruce Korb  <bkorb@gnu.org>
8885
8886         * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
8887         defining the __xxx_TYPE__ macros.
8888         * fixincl/fixincl.tpl(gnu_type_map): now obsolete
8889         * fixincl/fixlib.h: don't need to include "tm.h" anymore
8890         * fixincl/inclhack.def(type_map): now obsolete
8891
8892 Thu Jul 27 11:54:17 2000  Andrew Cagney  <cagney@b1.cygnus.com>
8893
8894         * cpp.texi: Append a trailing full-stop to xrefs where needed.
8895
8896 2000-07-26  Dave Pitts  <dpitts@cozx.com>
8897
8898         * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
8899         routine constants.
8900         (mvs_hash_alias): New function.
8901         (mvs_add_alias): Change argument spacing.
8902         (mvs_need_alias): Change aliasing criteria. Added documentation.
8903         (mvs_get_alias): Change to use hashed name. The hashed name prevents
8904         CSECT name collisions.
8905         (mvs_check_alias): Likewise.
8906         (handle_pragma): Change documentation.
8907         * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
8908         mode from SImode to DImode.
8909         (iorhi3): Changed LTORG size for insn.
8910
8911 Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
8912
8913         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
8914         mem if the address is a mode_dependent_address_p.
8915
8916 2000-07-26  Kazu Hirata  <kazu@hxi.com>
8917
8918         * h8300.c (print_operand): Print ":8" when the 'R' operand is
8919         suitable for 8-bit absolute.
8920         * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
8921         (OK_FOR_U): Add a case for the 8-bit constant address on the
8922         H8/300H.
8923
8924 Wed Jul 26 19:26:21 2000  Hans-Peter Nilsson  <hp@axis.com>
8925
8926         * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
8927         && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
8928         ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
8929         lack of implemented alignment.
8930
8931 2000-07-26  Geoffrey Keating  <geoffk@cygnus.com>
8932
8933         * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
8934         cross-compiling between 64-bit and 32-bit machines.
8935
8936 2000-07-27  Richard Henderson  <rth@cygnus.com>
8937
8938         * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
8939         (movhicc_astep, movhi_internal_astep): New.
8940         (movsicc_astep, movsi_internal_astep): New.
8941         (movdicc_astep, movdi_internal_astep): New.
8942         (movsfcc_astep, movsf_internal_astep): New.
8943         (movdfcc_astep, movdf_internal_astep): New.
8944         (movxfcc_astep, movxf_internal_astep): New.
8945         (cmovdi_internal_astep, cmovsi_internal_astep): New.
8946         Unify the cmov[ds]i splitters.
8947
8948 2000-07-27  Rodney Brown  <RodneyBrown@pmsc.com>
8949
8950         * real.c (asctoeg): Rename `error' label to unexpected_char_error
8951
8952 2000-07-26  Nick Clifton  <nickc@cygnus.com>
8953
8954         * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
8955         __arm__.  Allow it to be defined by CPP_ISA_SPEC in arm.h
8956
8957         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
8958         well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
8959
8960 2000-07-26  Alexandre Oliva  <aoliva@redhat.com>
8961
8962         * c-decl.c (finish_enum): Convert enumerations that fit in an
8963         `int' to `int'.
8964         (build_enumerator): In pedantic mode, cast to `int' those that
8965         don't.
8966
8967 2000-07-25  Rodney Brown  <RodneyBrown@pmsc.com>
8968
8969         * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
8970
8971 Tue Jul 25 23:08:33 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
8972
8973         * sh.md (cmpgtdi_t): Must be split.
8974         (cmpgtdi_t+1): New splitter.
8975
8976 2000-07-25  Zack Weinberg  <zack@wolery.cumb.org>
8977
8978         * cpplib.c (_cpp_check_directive): Issue -Wtraditional
8979         warnings for indented directives even if we are skipping.
8980
8981 2000-07-25  Nathan Sidwell  <nathan@codesourcery.com>
8982
8983         * invoke.texi (strict-prototypes): Remove.
8984         * extend.texi (Deprecated Features): Add strict-prototypes.
8985         (Backwards Compatibility): New node.
8986
8987 2000-07-25  Jakub Jelinek  <jakub@redhat.com>
8988
8989         * config/i386/i386.md (andsi_1+1): Allow HImode.
8990         (andsi_1+2): Require q_regs_operand.
8991
8992 2000-07-25  Jakub Jelinek  <jakub@redhat.com>
8993
8994         * config/i386/i386.md (call_pop): Check operands[0],
8995         not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
8996         (call): Likewise.
8997         (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
8998         (call_value): Likewise.
8999
9000 2000-07-25  Zack Weinberg  <zack@wolery.cumb.org>
9001
9002         * toplev.c (pipe_closed): Delete.
9003         (crash_signal): New.  Generate ICE for a fatal signal.
9004         (float_signal): Call crash_signal outside a float-handler
9005         block, not abort.
9006         (main): Install crash_signal as handler for core-dumping signals.
9007
9008 2000-07-25  David Edelsohn  <edelsohn@gnu.org>
9009
9010         * rs6000.c (print_operand, case 'T'): New case.
9011
9012         * rs6000.md (call_indirect_aix32): Convert to expander of
9013         scheduled instructions.
9014         (call_indirect_aix64): Likewise.
9015         (call_value_indirect_aix{32,64}): Likewise.
9016         (call, call_value): Invoke expanders for AIX.  Fall through to
9017         matchers for SysV.
9018         (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
9019         (call_value_indirect_nonlocal_aix{32,64}): New patterns.
9020         (call_nonlocal_aix32): Remove CALL_LONG alternative.  Operand 1
9021         only "g" constraint.
9022         (call_nonlocal_aix64): Likewise.
9023         (call_value_nonlocal_aix{32,64}): Likewise.
9024         (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
9025         operands.
9026         (call_value_nonlocal_sysv): New pattern.
9027         (indirect_jump{si,di}): Use new 'T' modifier.
9028         (tablejump{si,di} matchers): Likewise.
9029         (return_internal_{si,di}): Likewise.
9030         (return_eh_{si,di}): Likewise.
9031
9032 2000-07-24  Richard Henderson  <rth@cygnus.com>
9033
9034         * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
9035         * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
9036         * config/ia64/ia64.md (movdi_internal): Use it.
9037
9038 2000-07-24  Zack Weinberg  <zack@wolery.cumb.org>
9039
9040         * cppexp.c: Warn about unary + if -Wtraditional.
9041         * cpplex.c (lex_line): Always set BOL on the first token of a line.
9042
9043 2000-07-24  Michael Meissner  <meissner@redhat.com>
9044
9045         * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
9046         unsupported macro.
9047
9048 2000-07-24  Nick Clifton  <nickc@cygnus.com>
9049
9050         * config/arm/arm.c (emit_multi_reg_push): Generate a
9051         REG_FRAME_RELEATED_NOTE that is compatable with the code in
9052         dwarf2out_debug_frame_expr.
9053
9054 2000-07-24  Jason Merrill  <jason@redhat.com>
9055
9056         * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
9057         UNALIGNED_INT_ASM_OP.
9058         (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
9059         a location expression.
9060         (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff.  Don't
9061         assume indirect access if we're saving the CFA address exactly.
9062
9063         * Makefile.in (bootstrap): Move -BstageN/ to the end.
9064
9065 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
9066
9067         * tradcpp.c (main): Update max_include_len for cpp_include_defaults
9068         as well.
9069
9070 2000-07-24  Michael Meissner  <meissner@redhat.com>
9071
9072         * invoke.texi (D30V Options): Add d30v options.
9073
9074 Mon Jul 24 02:04:52 2000  Jeffrey A Law  (law@cygnus.com)
9075
9076         * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
9077         needed by our gcse pass anymore.
9078         (free_pre_mem): Corresponding changes.
9079         (compute_pre_data): Do not call compute_transpout anymore.
9080
9081         * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
9082         (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
9083         changes.
9084
9085         * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
9086         (compute_pre_data): Do it here instead.
9087
9088         * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
9089         'temp_bitmap'.
9090         (pre_delete): Corresponding changes.
9091
9092 2000-07-23  Mark Mitchell  <mark@codesourcery.com>
9093
9094         * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
9095         to figure out whether or not a variable has already been emitted.
9096
9097 Sun Jul 23 14:49:12 2000  Jason Eckhardt  <jle@cygnus.com>
9098
9099         * config/i860/i860.md (untyped_call expander): Use GEN_CALL
9100         instead of gen_call.
9101
9102 Sun Jul 23 11:52:03 2000  George Helffrich (george@gly.bris.ac.uk)
9103
9104         * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
9105
9106 2000-07-23  Kazu Hirata  <kazu@hxi.com>
9107
9108         * h8300.c: Fix formatting.
9109
9110 2000-07-23  Joseph S. Myers  <jsm28@cam.ac.uk>
9111
9112         * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
9113         for `long' switch expression into a plain warning.
9114
9115         * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
9116         (yylex): Don't pedwarn for "inline" in C99 mode.
9117
9118         * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
9119         with %p.
9120         * ggc-page.c (debug_print_page_list, alloc_page, free_page,
9121         ggc_alloc): Likewise.
9122         * bb-reorder.c (dump_scope_forest_1): Likewise.
9123
9124 2000-07-22  Aldy Hernandez  <aldyh@redhat.com>
9125
9126         * reload.c (find_reloads_toplev): Add new parameter
9127         "address_reloaded".
9128         (find_reloads): Add new parameter to find_reloads_toplev calls.
9129
9130 2000-07-22  Jeffrey Oldham  <oldham@codesourcery.com>
9131
9132         * collect2.c (main): Typo fixed.
9133         * diagnostic.c: Typo fixed.
9134         * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
9135         * eh-common.h: Typo fixed.
9136         * emit-rtl.c (start_sequence): Typo fixed.
9137         * flow.c (find_label_refs): Typo fixed.
9138         (calculate_global_regs_live): Typo fixed.
9139         (mark_regno_cond_dead): Typo fixed.
9140         (create_edge_list): Typos fixed.
9141         (verify_edge_list): Typo fixed.
9142         * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
9143         * loop.c (strength_reduce): Typo in function name fixed.
9144         * rtl.h: Added comments.  Typo in function name fixed.
9145         * rtlanal.c: Typo in function name fixed.
9146         (insn_dependant_p): Rename to ...
9147         (insn_dependent_p): ... this.
9148         (computed_jumo_p): Typo fixed.
9149
9150 2000-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9151
9152         * system.h (__FUNCTION__): Wrap definition in #ifndef.
9153
9154 2000-07-21  David Edelsohn  <edelsohn@gnu.org>
9155
9156         * rs6000.h (SIZE_TYPE): Define.
9157
9158 2000-07-21  Mark Mitchell  <mark@codesourcery.com>
9159
9160         * ssa.c (rename_insn_1): Don't rename registers that are
9161         CLOBBERed.
9162
9163 2000-07-21  Zack Weinberg  <zack@wolery.cumb.org>
9164
9165         * diagnostic.c (trim_filename, fancy_abort): Moved here from
9166         rtl.c.
9167         (fatal_function, set_fatal_function): Removed.
9168         (fatal): Don't prepare for or call the fatal_function.
9169         (diagnostic_lock, error_recursion): New.
9170         (diagnostic_for_decl, report_diagnostic): Guard against
9171         re-entering the error reporting routines.
9172         (fancy_abort): Assume function is not NULL.
9173
9174         * errors.c (fancy_abort): New.  Assume function is not NULL.
9175         * tradcpp.c (fancy_abort): Assume function is not NULL.
9176
9177         * system.h: Provide default definition of __FUNCTION__.
9178         * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
9179         Always use __FUNCTION__ in definition of abort.
9180         * tree.h: Likewise.
9181         * varray.h: Likewise.
9182         * toplev.h: Likewise.  Don't prototype set_fatal_function.
9183
9184 2000-07-20  Geoff Keating  <geoffk@cygnus.com>
9185
9186         * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
9187         in 64-bit mode.
9188         * glimits.h: Don't do #if defined for ARCH_PPC.
9189
9190         * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
9191         constants of size no larger than a pointer should go in the TOC.
9192         Add 'MODE' parameter.
9193         (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
9194         ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
9195         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
9196         * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
9197         * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
9198         * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
9199         (rs6000_legitimize_address): Likewise.
9200         (rs6000_emit_move): Likewise.
9201         (rs6000_select_rtx_section): Likewise.
9202         (output_toc): Deal properly with outputting small constants like
9203         HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
9204         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
9205         MODE parameter.  Put small constants in the TOC.
9206
9207         * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
9208         easy in SImode.
9209         (rs6000_emit_move): When reload calls us with an illegitimate
9210         address, exit early.  Move the change_address calls to one place
9211         at the end of the routine.  Merge the SImode and DImode expanders.
9212         When called by reload to put an integer into a FP register, force
9213         it to memory.
9214
9215         * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
9216         field.
9217         (rs6000_hash_constant): Hash mode too.
9218         (toc_hash_function): Allow for key_mode.
9219         (toc_hash_eq): Structures are different if key_mode differs.
9220         (output_toc): Add 'mode' parameter.  Save key_mode.
9221         * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
9222         Pass 'mode' parameter.
9223         * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
9224
9225         * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
9226         for vtable references.
9227
9228         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
9229         choice, don't put integer values in FP regs.
9230
9231 Thu Jul 20 18:13:52 2000  Jeffrey A Law  (law@cygnus.com)
9232
9233         * flow.c (verify_flow_info): Revamp code to verify that the
9234         head and end of each basic block are in the insn chain.
9235
9236 Thu Jul 20 18:02:35 2000  Michael Matz <matzmich@cs.tu-berlin.de>
9237
9238         * gcse.c (record_one_set): Prepend instead of append onto
9239         reg_set_table, making it O(n) instead O(n^2).
9240         * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
9241         Use a queue instead of a stack as worklist.
9242
9243 2000-07-20  Kazu Hirata  <kazu@hxi.com>
9244
9245         * h8300.c (two_insn_adds_subs_operand): Fix a typo.
9246         * h8300.h (OK_FOR_T): New.
9247         (EXTRA_CONSTRAINT): Support OK_FOR_T.
9248         * h8300.md: Use inc/dec.[wl] for increment/decrement
9249         by 1 and 2 in HI and SI modes.
9250
9251 2000-07-20  Jim Wilson  <wilson@cygnus.com>
9252
9253         * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
9254         larger than 14 bits.
9255
9256 2000-07-20  Zack Weinberg  <zack@wolery.cumb.org>
9257
9258         * cppmacro.c (CAN_PASTE_AFTER): New macro.
9259         (count_params): Don't set GNU_REST_ARGS on anything.
9260         (save_expansion): Set PASTE_LEFT only on tokens for which
9261         CAN_PASTE_AFTER is true, or which are named operators.
9262
9263         * cpplex.c (parse_args): Distinguish between a rest argument
9264         given one empty argument, and a rest argument given zero arguments.
9265         (maybe_paste_with_next): Look for VOID_REST tag, and trigger
9266         deletion of previous token based on that.
9267         (get_raw_token): Flatten some control structure.
9268
9269         * cpplib.h (CPP_LAST_EQ): Correct.
9270         (VOID_REST): New token flag.
9271         (GNU_REST_ARGS): Delete.
9272
9273         * tradcpp.c (main): Don't munge -D options.
9274         (make_definition): Bring -D handling in line with cpplib.
9275         (do_define): Strip all leading whitespace from macro definitions.
9276
9277 2000-07-20  David Billinghurst <David.Billinghurst@riotinto.com.au>
9278
9279         * Makefile.in (tradcpp): Depend on intl.o and version.o.
9280
9281 2000-07-20  Bruce Korb  <bkorb@gnu.org>
9282
9283         * fixincl/check.tpl: strip the platform specific types before testing
9284         * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
9285         * fixincl/fixincl.tpl: use platform specific types
9286         * fixincl/fixlib.h: include the platform specific types
9287         * fixincl/inclhack.def(gnu_types): don't supply the types
9288         * fixincl/fixincl.x: regen
9289
9290 2000-07-19  Jim Wilson  <wilson@cygnus.com>
9291
9292         * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
9293         GR_REGS.
9294
9295 2000-07-19  Zack Weinberg  <zack@wolery.cumb.org>
9296
9297         * tradcpp.c (rescan): Do not recognize directives when the #
9298         is indented.
9299
9300 2000-07-19  Zack Weinberg  <zack@wolery.cumb.org>
9301
9302         Implement C++ named operators.
9303
9304         * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
9305         of operators allowed in #if and having an _EQ variant.  Add
9306         CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
9307         (cpp_token flags): Add NAMED_OP.
9308         (enum node_type): Add T_OPERATOR.
9309         (struct cpp_hashnode): Add code slot to value union.
9310         * cpphash.h (spec_nodes): Remove n_defined.
9311
9312         * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
9313         (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
9314         (is_macro_disabled): Tweak error messages.
9315
9316         * cpplib.c (get_define_node): Disallow all named operators as
9317         macro names.  Tweak error messages.
9318         (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
9319
9320         * cppinit.c (builtin_array): Add entries for the named operators.
9321         * cppexp.c (lex): Check for CPP_DEFINED token.
9322         (priority table): Add entries for CPP_MIN and CPP_MAX.
9323         (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
9324
9325 2000-07-19  Bernd Schmidt  <bernds@cygnus.co.uk>
9326
9327         * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
9328         larger than the array of cuids.
9329         (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
9330         cuids.
9331
9332 2000-07-19  Bruce Korb  <bkorb@gnu.org>
9333
9334         * fixinc/fixincl.c:  Convert to using a table of environment variables
9335         and activate the auto-edit marker on the fixed output files.
9336         * fixinc/fixlib.h:  Define the environment table
9337         * fixinc/fixincl.sh: export the ${INPUT} dir
9338         * fixinc/check.tpl: likewise
9339
9340 2000-07-18  Zack Weinberg  <zack@wolery.cumb.org>
9341
9342         * gcc.c (.h spec): Fix typo.
9343
9344 Wed Jul 19 01:22:15 CEST 2000  Marc Espie  <espie@cvs.openbsd.org>
9345
9346         * Makefile.in: Fix tradcif.c path.
9347
9348 2000-07-18  Zack Weinberg  <zack@wolery.cumb.org>
9349
9350         * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
9351           macros, not five.
9352
9353         * cpphash.h (TOKEN_NAME): New macro.
9354         (_cpp_spell_operator): Deleted.
9355         (token_spellings): Now _cpp_token_spellings.
9356
9357         * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
9358         * cpplex.c: Use OP and TK macros when expanding the
9359         TTYPE_TABLE.  Eliminate token_names.  For non-OPERATOR tokens,
9360         store the stringification of the enumeration name (CPP_CHAR,
9361         etc.) in the name slot of token_spellings.
9362         Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
9363         token_spellings directly.
9364         * cpplib.c: Use TOKEN_SPELL.
9365
9366         * cpplex.c (_cpp_push_token): If the token being pushed back
9367         is the previous token in this context, just subtract one from
9368         context->posn.
9369         * cppmacro.c (save_expansion): Clear aux field when storing a
9370         placemarker.
9371
9372 2000-07-18  Jakub Jelinek  <jakub@redhat.com>
9373
9374         * cpplex.c (cpp_scan_buffer): Output line command even at the stop
9375         buffer, provided it is not NULL.
9376
9377 2000-07-18  Alexandre Oliva  <aoliva@redhat.com>
9378
9379         * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
9380         case of invalid volatile re-declaration.
9381
9382 2000-07-18  Jakub Jelinek  <jakub@redhat.com>
9383
9384         * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
9385         (expand_call): Adjust caller.
9386
9387 2000-07-17  Gabriel Dos Reis  <gdr@codesourcery.com>
9388
9389         * diagnostic.h (report_diagnostic): Change prototype.
9390
9391         * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
9392         diagnostic_for_decl):  Change prototype.
9393         (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
9394         error, warning, error_with_file_and_line,
9395         warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
9396         Adjust call to report_diagnostic, diagnostic_for_decl.
9397         (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
9398         (output_verbatim, verbatim): Adjust call to output_do_verbatim.
9399
9400         * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
9401         varaible argument list.
9402
9403 2000-07-17  Zack Weinberg  <zack@wolery.cumb.org>
9404
9405         * cpphash.c: Don't include hashtab.h.  Most macro-handling code
9406         moved to cppmacro.c.
9407         (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
9408         dump_hash_helper): Delete.
9409         (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
9410         cpp_forall_identifiers): New. Implement specialized version of
9411         Vlad's expandable hash table.
9412         (cpp_lookup): Use new functions.
9413         (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
9414         implementation.
9415         * cppmacro.c: New file.
9416         * cppinit.c (dump_macros_helper): New.
9417         (cpp_finish): Iterate over the identifier table directly.
9418         * cpplex.c (parse_name): Calculate the hash of the identifier
9419         while we scan it.  Use _cpp_lookup_with_hash when we can.
9420
9421         * cpphash.h: Update prototypes.
9422         (xcnewvec, HASHSTEP): New helper macros.
9423         * cpplib.h: Update prototypes.
9424         * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
9425         (cppmacro.o): New rule.
9426         (cpphash.o): Update deps.
9427
9428         * cppmain.c: Do not set pfile->printer if no_output is on.
9429
9430 2000-07-15  Neil Booth  <neilb@earthling.net>
9431
9432         * cpplib.c: Change all directive-handler functions to return
9433         void, not int.
9434         * cpphash.h: Update typedefs.
9435
9436 2000-07-17  Geoffrey Keating  <geoffk@cygnus.com>
9437
9438         * configure: Regenerate.
9439
9440         * extend.texi (Extended Asm): Mention that a memory clobber
9441         does not count as a side-effect.
9442
9443         * unroll.c (copy_loop_body): Fix one instance of using host
9444         arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
9445         cross-compile.
9446
9447         * tlink.c (scan_linker_output): Tweak for output of AIX ld.
9448
9449 2000-07-17  Richard Henderson  <rth@cygnus.com>
9450
9451         * config/ia64/ia64.md (movdi): Split out load address code.
9452         New post-reload splitter for symbolic operands.
9453         (movdi_internal): Abort if we didn't split symbolic operands
9454         when we should have.
9455         * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
9456         (ia64_reorg): Split insns when not optimizing.
9457         * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
9458
9459 Mon Jul 17 23:43:26 MET DST 2000  Jan Hubicka  <jh@suse.cz>
9460
9461         * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
9462         instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
9463
9464 2000-07-17  Chandrakala Chavva   <cchavva@cygnus.com>
9465
9466         * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
9467
9468 2000-07-17  Jason Merrill  <jason@redhat.com>
9469
9470         * Makefile.in (clean): Remove libgcc directory.
9471
9472         * configure.in (-Wno-long-long check): Use higher-level macros.
9473
9474 2000-07-17  Zack Weinberg  <zack@wolery.cumb.org>
9475
9476         * simplify-rtx.c (simplify_binary_operation): Recognize
9477            (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
9478         (simplify_ternary_operation):  Do not examine MODE_BITSIZE of
9479            a CONST_INT, it will always be zero.
9480
9481 2000-07-17  Chandrakala Chavva   <cchavva@cygnus.com>
9482
9483         * loop.c (check_dbra_loop) : Return if more than one condition is
9484         present to control the loop.
9485
9486 Mon Jul 17 08:26:35 2000  Clinton Popetz  <cpopetz@cygnus.com>
9487
9488         * mips.c (mips_expand_prologue): Don't calculate the last argument
9489         register unless we need it.  When we are calculating this, make
9490         sure FUNCTION_ARG is giving us a REG.
9491
9492 2000-07-17  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9493
9494         * flow.c (libcall_dead_p): Use single_set to verify the insn
9495         has only one set and get for analysis.
9496         (propagate_one_insn): Don't pass the PATTERN of the insn.
9497
9498 2000-07-17  Mark Klein <mklein@dis.com>
9499
9500          * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
9501
9502 2000-07-17  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
9503
9504         * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
9505         * configure.in (TARGET_GETGROUPS_T): Evaluate.
9506         * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
9507         of second argument of getgroups.
9508         * configure, config.in: Rebuilt.
9509
9510 2000-07-17  Geoffrey Keating  <geoffk@cygnus.com>
9511
9512         * simplify-rtx.c (simplify_relational_operation): Two signed
9513         values with equal high words are less/greater than each other if
9514         their low words are less/greater when considered as unsigned.
9515
9516 Mon Jul 17 02:37:06 2000  Marc Espie <espie@openbsd.org>
9517
9518         * configure.in (vax-*-openbsd):  Change to new style configuration,
9519         add collect2/float_format information.
9520         * configure:  Rebuilt.
9521         * config/vax/openbsd1.h:  New.
9522         * config/vax/openbsd.h:  New.
9523         * config/vax/t-openbsd:  New.
9524
9525 2000-07-17  Chip Salzenberg  <chip@valinux.com>
9526
9527         * c-common.c (shorten_compare): Quiet warnings about unsigned
9528         comparisons with zero when they occur in a system header.
9529
9530 2000-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
9531
9532         * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
9533         update to describe current practice.
9534
9535         * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
9536
9537         * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
9538         references to C9X.  Change references to -fstd and -flang-isoc9x
9539         to refer to -std.
9540
9541         * c-common.c (scan_char_table): Allow "z" length modifiers on
9542         diouxXn formats.
9543         (check_format_info): Use TYPE_DOMAIN on the type matched against
9544         for "z" formats, to retrieve the language size_t rather than the
9545         internal one.
9546
9547         * c-common.c (check_format_info): Do not make a pedantic objection
9548         to the 'L' length modifier if used with a floating point type
9549         character.
9550
9551         * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
9552         constants in C99 mode.
9553
9554 2000-07-17  Kazu Hirata  <kazu@hxi.com>
9555
9556         * h8300.md: Fix the format of mac.
9557         (movsi_h8300hs): Output a tab after stmac instead of a space.
9558
9559         * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
9560         profitable adds/subs sequences.
9561
9562         * fold-const.c: Fix comment typos.
9563
9564 2000-07-16  Laurynas Biveinis  <lauras@softhome.net>
9565
9566         * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
9567
9568 2000-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9569
9570         * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
9571
9572 2000-07-16  Neil Booth  <NeilB@earthling.net>
9573
9574         * cpplex.c: Update comments.
9575         * README.Portability: Small update.
9576
9577 2000-07-16  Neil Booth  <NeilB@earthling.net>
9578
9579         * README.Portability:  Small update.
9580
9581 2000-07-15  Richard Henderson  <rth@cygnus.com>
9582
9583         * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
9584         * config/ia64/ia64.c (ia64_move_ok): New function.
9585         * config/ia64/ia64.md (movqi, movqi_internal): Use it.
9586         (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
9587
9588 2000-07-15  Zack Weinberg  <zack@wolery.cumb.org>
9589
9590         * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
9591         immediately following a paste operator.
9592         * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
9593         (cpp_reader_init): Call it, if HOST_EBCDIC.
9594         (cpp_handle_options): Do not sort option list here.
9595         (handle_option): Rename to cpp_handle_option and export.
9596         * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
9597         _cpp_get_token directly.
9598         (cpp_scan_line): Return 0 at EOF, 1 otherwise.
9599         * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
9600         * cpplib.h: Prototype cpp_handle_option.  Update prototype of
9601         cpp_scan_line.
9602
9603 2000-07-15  Richard Henderson  <rth@cygnus.com>
9604
9605         * fold-const.c (extract_muldiv): Don't optimize past an unsigned
9606         cast around an expression.  Tidy other unsigned tests.
9607
9608 2000-07-15  Gabriel Dos Reis  <gdr@codesourcery.com>
9609
9610         * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
9611         v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
9612         (v_message_with_decl): Rename to ...
9613         (format_with_decl): ... this. Tweak
9614         (diagnostic_for_decl): New function.
9615         (fatal_io_error): Use verbatim in lieu of notice.
9616         (announce_function): Use verbatim.
9617         (default_print_error_function): Likewise.
9618         (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
9619         infratructure.
9620
9621 2000-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9622
9623         * mips.c (function_arg_pass_by_reference): Don't do automatic
9624         aggregate initialization.
9625         (machine_dependent_reorg): Initialize variable `mode'.
9626
9627         * mips.md (absdi2): Change variable `regno1' to unsigned int.
9628         (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
9629         conflicts with sys/param.h macro of the same name.
9630         (reload_outdi): Likewise.
9631
9632 2000-07-15  Michael Meissner  <meissner@redhat.com>
9633
9634         * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
9635         == CONST + INCREMENT, don't overwrite the tree node for FOO++,
9636         create a new node instead.
9637
9638 2000-07-15  Neil Booth  <NeilB@earthling.net>
9639
9640         * README.Portability: Correct example about calling a function
9641         through a pointer to function.  Format wide paragraphs.
9642
9643 2000-07-15  Michael Meissner  <meissner@redhat.com>
9644
9645         * README.Portability: Update integer suffixes and function
9646         prototype sections.
9647
9648 2000-07-15  Neil Booth  <NeilB@earthling.net>
9649
9650         * README.Portability: Small update.
9651
9652 2000-07-15  Neil Booth  <NeilB@earthling.net>
9653
9654         * README.Portability: New file.
9655
9656 Fri Jul 14 18:13:53 2000  Mark P Mitchell  <mark@codesourcery.com>
9657
9658         * INSTALL: Give special instructions for building GCC on Irix 6.
9659         * config/mips/x-iris6 (CC): Don't set it.
9660         (OLDCC): Likewise.
9661
9662 2000-07-14  Jason Merrill  <jason@redhat.com>
9663
9664         * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
9665         register in the stack and later in another register, use the new
9666         register.
9667
9668 Fri Jul 14 10:25:53 2000  Clinton Popetz  <cpopetz@cygnus.com>
9669
9670         * config/mips/mips.md: (absdi2): Handle sign_extend for
9671         second operand.
9672
9673 2000-07-14  Nathan Sidwell  <nathan@codesourcery.com>
9674
9675         * cpplib.c (do_pragma_dependency): Tidy warning messages.
9676
9677 2000-07-14  Zack Weinberg  <zack@wolery.cumb.org>
9678
9679         * .cvsignore: Correct typo.
9680
9681 2000-07-13  Mark Mitchell  <mark@codesourcery.com>
9682
9683         * .cvsignore: Add generated YACC files.
9684         * objc/.cvsignore: New file.
9685
9686 2000-07-14  Neil Booth  <NeilB@earthling.net>
9687
9688         * cpplex.c (adjust_column): New funcion.
9689         (skip_whitespace): Use it.
9690         (skip_block_comment): Use it, and warn about /*/* with
9691         -Wcomments.
9692
9693 2000-07-14  Neil Booth  <NeilB@earthling.net>
9694
9695         * cpphash.c (struct macro_info): Add new members.
9696         (_cpp_free_definition): Delete the macro directly.
9697         (count_params): Return void, with first token of
9698         expansion in struct macro_info on success.
9699         (parse_define): Return int.  Hoist syntax checking from
9700         save_macro_expansion.  Leave call to save_expansion to
9701         _cpp_create_definition.
9702         (alloc_macro): Needs just 2 arguments.
9703         (free_macro): Delete.
9704         (save_expansion): Don't perform syntax check.
9705         (_cpp_create_definition): Call save_expansion.
9706
9707 2000-07-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9708
9709         * genrecog.c (write_header): Split long string.
9710
9711         * cpphash.c (macro_info): Don't use the `signed' keyword.
9712
9713         * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
9714
9715 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
9716
9717         * calls.c (stored_args_map): New variable.
9718         (check_sibcall_argument_overlap_1): New.
9719         (check_sibcall_argument_overlap): New.
9720         (expand_call): Initialize stored_args_map.
9721         Call check_sibcall_argument_overlap.
9722
9723 2000-07-13  Bruce Korb  <bkorb@gnu.org>
9724
9725         * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
9726         (emit_gnu_type): utility procedure for gnu_type_fix
9727         (gnu_type_fix): implement various pre-processor guards around
9728         standard types so these types can be defined over and over
9729         * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
9730         types alluded to above will have GNU-compliant base types
9731         * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
9732         * fixinc/inclhack.def: add test_text entries and utilize the new
9733         "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
9734         * fixinc/fixincl.x: regenerate
9735
9736 2000-07-12  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
9737
9738         * diagnostic.c (vline_wrapper_message_with_location,
9739         v_message_with_file_and_line, v_error_with_file_and_file,
9740         v_error_for_asm, v_warning_for_asm, vfatal,
9741         v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
9742         vsorry, verror, vwarning, vpedwarn): Remove.
9743         (diagnostic_for_asm): New function.
9744         (pedwarn, error, warning, pedwarn_with_file_and_line,
9745         error_with_file_and_line, warning_with_file_and_line, sorry,
9746         error_for_asm, warning_for_asm, fatal): Reimplement.
9747         (finish_diagnostic): Clear diagnostic info as well.
9748
9749 2000-07-13  Neil Booth  <NeilB@earthling.net>
9750
9751         * c-common.h (flag_digraphs): New.
9752         * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
9753         * c-lex.c (yylex): Use flag_digraphs to decide whether to
9754         honour digraphs.
9755
9756 2000-07-13  Zack Weinberg  <zack@wolery.cumb.org>
9757
9758         * gcc.c (do_spec_1): Add new %B operator.
9759         (set_input): Prepare for %B.
9760
9761         (link_command_spec): Move up with the other tm.h-
9762         overrideable specs.  Factor out the portion conditional on
9763         LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
9764         (struct compiler): Just have a single spec string.  All users
9765         updated.
9766         (default_compilers): Remove unnecessary braces.
9767         (static_specs): Update.
9768
9769         (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
9770         named specs.
9771         (C and assembly specs): Use the new named specs, as appropriate.
9772
9773         * objc/lang-specs.h: Use the new named specs.
9774         Remove unnecessary braces.
9775
9776 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
9777
9778         * gcc.c (execute): If a subprocess gets a fatal signal, report
9779         strsignal() of the signal number, and ask for a bug report.
9780         Do not do this for SIGPIPE if there's already been an error.
9781
9782         * tradcpp.c: Don't include signal.h.  Don't catch SIGPIPE.
9783         Delete pipe_closed.
9784
9785         * tradcif.c: Remove.
9786
9787 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
9788
9789         * final.c (profile_function): Do not emit profile counters in
9790         the data section, if NO_PROFILE_COUNTERS is defined.
9791         * tm.texi: Document NO_PROFILE_COUNTERS.  Update doc for
9792         FUNCTION_PROFILER.
9793
9794         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
9795         (FUNCTION_PROFILER): Just emit a call to mcount.
9796
9797 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
9798
9799         * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
9800
9801         * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
9802         cpplib.c, cpplib.h: Eradicate all traces of code dependent on
9803         traditional, lang_chill, or lang_fortran.
9804
9805         * cppfiles.c: #undef strcmp to suppress warning about macros
9806         used without arguments.
9807         (_cpp_execute_include): Use f, not fname, in "No include path"
9808         error.
9809         (_cpp_pop_file_buffer): New function.
9810         * cpplib.c: Don't include <sys/mman.h>.
9811         (cpp_push_buffer): Set line_base and lineno in new buffer.
9812         (cpp_pop_buffer): Use _cpp_pop_file_buffer.
9813
9814         * cpplex.c: Move all prototypes and structure declarations to the
9815         top of the file.  Properly parenthesise some macro arguments.
9816         (cpp_scan_line): New function.
9817         (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
9818         don't need to walk up the stack counting.
9819
9820 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9821
9822         * c-common.c (combine_strings): Emit a pedantic warning when a
9823         string length is greater than the minimum ANSI C is required
9824         to support.
9825
9826 Wed Jul 12 13:24:30 2000  Jeffrey A Law  (law@cygnus.com)
9827
9828         * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
9829         * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
9830
9831 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9832
9833         * c-decl.c (define_label): Warn about identifier conflicts with
9834         labels in traditional C.
9835
9836         * c-parse.in (unop +): Warn about the unary plus operator for
9837         traditional C.
9838
9839         * c-typeck.c (store_init_value): Warn about automatic aggregate
9840         initialization for traditional C.
9841
9842         * invoke.texi (-Wtraditional): Document new warnings.
9843
9844 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
9845
9846         * Makefile.in (c-errors.o): Fix thinko in dependency.
9847
9848 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
9849
9850         * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
9851         -traditional, -ftraditional, or -traditional-cpp was given.
9852         Do not pass -traditional to the preprocessor.
9853         (.S spec): Likewise.  Don't bother defining __ASSEMBLER__, the
9854         preprocessor does it automatically.
9855         * objc/lang-specs.h: Likewise.  Don't bother defining __OBJC__.
9856
9857         * ch/lang-specs.h: Always use tradcpp.  Do not pass
9858         -traditional, -trigraphs, or -pedantic to the preprocessor.
9859         * f/lang-specs.h (.F spec): Likewise.  Don't bother defining
9860         _LANGUAGE_FORTRAN.
9861
9862 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
9863
9864         * cppexp.c (LOGICAL): Delete macro.
9865         (_cpp_parse_expr): Do not use UNARY for unary +.  Implement ||
9866         and && directly.
9867
9868         * cpphash.c (HASHSIZE): Increase to 4096.
9869         (struct hashdummy): Add hash field.
9870         (eq_HASHNODE): Compare unreduced hashes, then lengths, then
9871         the string values using memcmp.
9872         (cpp_lookup): Set dummy.hash.
9873
9874 Wed Jul 12 13:15:16 2000  Marc Espie <espie@openbsd.org>
9875
9876         * configure.in (m88k-openbsd): Express configuration using new fragment
9877         style.
9878         * configure: Rebuilt.
9879         * m88k/aout-dbx.h: New.
9880         * m88k/openbsd.h: New.
9881         * m88k/xm-openbsd.h: New.
9882
9883 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9884
9885         * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
9886
9887 2000-07-12  Richard Henderson  <rth@cygnus.com>
9888
9889         * reload.c (push_secondary_reload): Make sure to add the new
9890         reload at the end, after acquiring secondary memory.
9891
9892 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9893
9894         * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
9895
9896         * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
9897         lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
9898
9899         * c-parse.in (stmt): Delete unused variables.
9900
9901         * convert.c (convert_to_vector): Likewise.
9902
9903         * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
9904
9905         * tree.c (finish_vector_type): Prototype.
9906
9907 2000-07-12  Bruce Korb  <bkorb@gnu.org>
9908
9909         * fixinc/fixfixes.c: use xmalloc
9910         * fixinc/fixincl.c(initialize): set program name for xmalloc
9911         * fixinc/fixlib.c(must_malloc): obsolete
9912         (is_cxx_header): no longer used - disabled
9913         (skip_quote): inserted and disabled for future use
9914         * fixinc/fixlib.h: reflects above
9915         * fixinc/fixtests.c: removed dinkleberries
9916
9917 2000-07-12  Neil Booth  <NeilB@earthling.net>
9918
9919         * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
9920         * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
9921
9922         * cpphash.c: (struct macro_info, alloc_macro, free_macro,
9923         struct toklist_dummy): New.
9924         (cpp_free_definition): Free macros with free_macro.
9925         (count_params): Don't save paramter spellings.  Save macro
9926         information in a struct macro_info.
9927         (parse_define): Don't allocate a token list.
9928         (save_expansion): Allocate the macro's token list, and
9929         save parameter spellings if necessary.  Use TOKEN_SPELL.
9930         (cpp_create_definition): Make list const.
9931
9932 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
9933
9934         * c-typeck.c (pedwarn_c99): Move to
9935         * c-errors.c: ... Here.
9936         * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
9937         * diagnostic.c (verror, vwarning, vpedwarn): Make static.
9938         * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
9939         (c-errors.o): List dependency.
9940
9941 2000-07-12  Mark Mitchell  <mark@codesourcery.com>
9942
9943         * c-parse.c: Remove.
9944         * c-parse.h: Likewise.
9945         * c-parse.y: Likewise.
9946         * objc/objc-parse.c: Likewise.
9947         * objc/objc-pasre.y: Likewise.
9948
9949 2000-07-11  Rodney Brown  <RodneyBrown@pmsc.com>
9950
9951         * gcc.texi: Fix minor typos
9952         * extend.texi: Fix minor typos
9953
9954 2000-07-11  Marc Espie <espie@openbsd.org>
9955
9956         * collect2.c (main): Recognize .lo as object files.
9957
9958 2000-07-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
9959
9960         * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
9961         true.
9962
9963         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
9964         with MAP_ANONYMOUS and MAP_ANON.
9965         * configure, config.in: Rebuilt.
9966
9967 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
9968
9969         * diagnostic.c (save_output_state): Remove.
9970         (restore_output_state): Likewise.
9971         (clear_text_info): New function.
9972         (clear_diagnostic_info): Likewise.
9973         (output_text_length, is_starting_newline, output_prefix,
9974         line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
9975         prefixing_policy, output_buffer_ptr_to_format_args): New macros
9976         (set_real_maximum_length, output_set_maximum_length,
9977         output_set_prefix, output_get_prefix, output_set_maximum_length,
9978         output_destroy_prefix, init_output_buffer,
9979         reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
9980         output_add_newline, output_add_character, output_add_space,
9981         output_append_r, output_append, wrap_text, output_format,
9982         output_do_printf, output_printf, output_do_verbatim,
9983         output_verbatim, verbatim): Use them.
9984         (output_clear): Split into cleat_text_info and
9985         clear_diagnostic_info.
9986         (struct output_state): Move to...
9987
9988         * diagnostic.h: ...Here
9989         (struct output_buffer): Adjust.
9990
9991 2000-07-11  Zack Weinberg  <zack@wolery.cumb.org>
9992
9993         * cpplex.c (parse_name): No longer inline (premature optimization).
9994         (do_pop_context): Fold into pop_context.
9995         (pop_context): Returns int.
9996         (lex_next): Hoist test for end of directive into pop_context.
9997         (push_macro_context): Returns int; takes just reader and token.
9998         Hoist test for excessive nesting to caller.
9999         (push_arg_context): Returns void; takes just reader and token.
10000         Do not call stringify_arg or get_raw_token.
10001         (get_raw_token): Convert tail recursion through push_arg_context
10002         to a loop at this level.  Call stringify_arg here if appropriate.
10003         (maybe_paste_with_next): Convert tail recursion to a while loop.
10004         Hoist test of paste_level to caller.
10005
10006         (stringify_arg): Push arg context at beginning.
10007         (cpp_get_token): Split out core into _cpp_get_token.  Call
10008         process_directive here.  Throw away CPP_PLACEMARKER tokens.
10009         (_cpp_get_token): Convert tail recursion through
10010         push_macro_context to a loop at this level.
10011         (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
10012         _cpp_get_raw_token): Use _cpp_get_token.
10013         (_cpp_skip_rest_of_line): Drop the context stack directly; do
10014         not call pop_context.
10015         (_cpp_run_directive): Call lex_next directly.
10016
10017         * cpphash.h: Prototype _cpp_get_token.
10018         * cppexp.c (lex): Use it.
10019         * cpphash.c (parse_define): Use it.
10020         * cpplib.c (get_define_node, do_undef, parse_include,
10021         read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
10022         do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
10023         parse_ifdef, validate_else): Use it.
10024         (cpp_push_buffer): Tweak error message; abort if anyone tries
10025         to push a buffer while macro expansions are stacked.
10026
10027 2000-07-11  Donn Terry  <donnte@microsoft.com>
10028
10029         * cpplex.c (free_macro_args, save_token): Cast arg of free
10030         and/or xrealloc to PTR.
10031         (_cpp_init_input_buffer): Clear all fields of the base context.
10032
10033 Tue Jul 11 15:28:21 CDT 2000  Clinton Popetz  <cpopetz@cygnus.com>
10034
10035         * gensupport.c (process_rtx): Make rtl checking stop
10036         complaining about the define_insn while it is being
10037         converted from a define_insn_and_split.
10038
10039 Tue Jul 11 16:26:17 2000  Clinton Popetz  <cpopetz@cygnus.com>
10040
10041         * config/mips/mips.c (simple_memory_operand): Access the
10042         INTVAL of the address, not it's containing MEM.
10043
10044 2000-07-11  Bruce Korb  <bkorb@gnu.org>
10045
10046         * fixinc/fixtests.c(double_slash): obsolete
10047         (else_endif_label): likewise
10048         * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
10049         (libc1_ifdefd_memx): correct initial comment
10050         and omit the #if/#endif pair from the memxxx declarations
10051         * fixinc/fixincl.x: regen
10052
10053 2000-07-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10054
10055         * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
10056
10057 2000-07-11  Neil Booth  <NeilB@earthling.net>
10058
10059         * cpp.texi: Update.
10060
10061 2000-07-11  Neil Booth  <NeilB@earthling.net>
10062
10063         * cppinit.c: (cpp_reader_init): Allow digraphs by default.
10064         (handle_option): Set digraphs according to standard.
10065         Merge OPT_lang_c89 handler with OPT_std_c89.
10066
10067         * cpplex.c: (lex_line, can_paste): Honour digraphs in
10068         accordance with the digraphs flag.
10069
10070         * cpplib.h: (struct cpp_options): New option digraphs.
10071
10072 2000-07-10  Hans-Peter Nilsson  <hp@axis.com>
10073             Bruce Korb  <bkorb@gnu.org>
10074
10075         * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
10076         * fixinc/fixincl.x: Regenerate.
10077         * fixinc/tests/base/testing.h: Add testcase.
10078
10079 2000-07-10  Richard Henderson  <rth@cygnus.com>
10080
10081         * config/ia64/ia64.c (got_symbolic_operand): New.
10082         (symbolic_operand, move_operand): Revert 0701 change.
10083         * config/ia64/ia64.h (PREDICATE_CODES): Update.
10084         * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
10085         * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
10086         split the offset into a 14-bit low part instead of a 13-bit low part.
10087         (load_fptr): Mark the mem as unchanging.
10088         (load_symptr): Use got_symbolic_operand.
10089
10090 2000-07-10  Nick Clifton  <nickc@cygnus.com>
10091
10092         * libgcc2.c (next_stack_level): Cast result of computation to
10093         (void **) so that the assignment does not generate a warning.
10094
10095 2000-07-10  Chandrakala Chavva  <cchavva@redhat.com>
10096
10097         * flags.h : Add new variable flag_single_precision_constant.
10098         * toplev.c (display_help) : Add -fsingle-precision-constant option.
10099         (flag_single_precision_constant): New.
10100         * c-lex.c (yylex): Convert floating point constant to single
10101         precision constant.
10102         * invoke.texi : Add documentation for this new option.
10103
10104 2000-07-10  Gabriel Dos Reis  <gdr@codesourcery.com>
10105
10106         * diagnostic.c (output_octal): Second parameter is unsigned.
10107         (output_long_octal): Likewise.
10108         (output_hexadecimal): Likewise.
10109         (output_long_hexadecimal): Likewise.
10110         (output_format): Adjust arguments extraction. Tweak.
10111         (output_verbatim, verbatim): End variable argument list.
10112         (report_diagnostic): Improve documentation.
10113
10114 2000-07-10  Benjamin Chelf  <chelf@codesourcery.com>
10115
10116         * c-common.h (build_stmt): Declare.
10117         (build_continue_stmt): Likewise.
10118         (build_break_stmt): Likewise.
10119         (build_return_stmt): Likewise.
10120
10121         * c-decl.c (do_case): Rewrite to do what previously done in
10122         c-parse.in.
10123
10124         * c-semantics.c (build_stmt): Define.
10125         (build_return_stmt): Likewise.
10126         (build_break_stmt): Likewise.
10127         (build_continue_stmt): Likewise.
10128         (build_case_label): Likewise.
10129
10130         * c-parse.in (BREAK): Change to build tree, then generate RTL.
10131         (CONTINUE): Likewise.
10132         (RETURN): Likewise.
10133         (CASE): Likewise.
10134         (DEFAULT): Likewise.
10135
10136         * c-parse.y: Regenerate.
10137         * c-pasre.c: Likewise.
10138
10139 2000-07-09  Jason Merrill  <jason@redhat.com>
10140
10141         * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
10142
10143         * tree.h (STRIP_NOPS): Check for error_mark_node.
10144         (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
10145         (dwarf2out_*): Remove duplicate declarations.
10146
10147         * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
10148         DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
10149
10150 2000-07-10  Gabriel Dos Reis  <gdr@codesourcery.com>
10151
10152         * diagnostic.c (wrap_text): New function.
10153         (maybe_wrap_text): Likewise.
10154         (output_add_string): Use it.
10155         (output_format): Likewise.
10156         (count_error): Use verbatim instead of notice.
10157         (report_error_function): Likewise. Don't use plain fprintf.
10158         (finish_diagnostic): New function.
10159         (output_do_verbatim): Tweak.  Commonalize functionalities in
10160         output_verbatim and verbatim.
10161         (output_verbatim): Adjust.
10162         (verbatim): Likewise.
10163         (report_diagnostic): Define.
10164
10165         * diagnostic.h (report_diagnostic): Prototype.
10166
10167 2000-07-09  Zack Weinberg  <zack@wolery.cumb.org>
10168
10169         * cppexp.c (_cpp_parse_expr): Don't use unary plus.
10170
10171 2000-07-09  Neil Booth  <NeilB@earthling.net>
10172
10173         * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
10174         IShspace, ISspace: Update.
10175
10176         * cppinit.c: ISTABLE: Update.
10177         V: New.
10178
10179         * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
10180         (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
10181         (skip_block_comment, skip_line_comment, parse_string,
10182         lex_line): Use is_vspace rather than IS_NEWLINE.
10183         (skip_whitespace, lex_line): Clean up to use is_nvspace.
10184         (lex_line): Use KNOWN_DIRECTIVE.  Any kind of directive
10185         gets a BOL flag.
10186         (lex_next): Unconditionally stop if within a directive.
10187         Treat directives within macro invocations as directives
10188         (after parse_args emits error), not as the argument.
10189
10190 2000-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
10191
10192         * diagnostic.c (diagnostic_args): New macro.
10193         (diagnostic_msg): Likewise.
10194         (output_formatted_integer): Likewise.
10195         (output_state): New data type.
10196         (digit_buffer): Make global.
10197         (output_add_integer): Rename to output_decimal. Squeeze
10198         digit_buffer.
10199         (output_long_decimal, output_unsigned_decimal,
10200         output_long_unsigned_decimal, output_octal, output_long_octal,
10201         output_hexadecimal, output_long_hexadecimal): New functions.
10202         (output_append_r): New function.
10203         (output_append): Tweak.
10204         (output_flush_on): Rename to output_to_stream.
10205         (output_format): Change prototype.  Improve documentation. Handle
10206         more format specifiers.
10207         (build_location_prefix): Rename to context_as_prefix.
10208         (output_notice): Rename to output_do_printf.
10209         (output_printf): Tweak.
10210         (line_wrapper_printf): Likewise.
10211         (vline_wrapper_message_with_location): Adjust call to renamed
10212         functions.
10213         (v_message_with_decl): Likewise.
10214         (default_print_error_function): Likewise.
10215         (save_output_state): New function.
10216         (restore_output_state): Likewise.
10217         (output_do_verbatim): Likewise.
10218         (output_verbatim): Define.
10219         (verbatim): Likewise.
10220
10221         * diagnostic.h (printer_fn): Change return type from void to int.
10222         Improve documentation.
10223         (output_add_integer): Rename to output_decimal.
10224         (output_flush_on, output_format): Don't export.
10225         (output_verbatim, verbatim): Declare.
10226
10227 2000-07-08  Toon Moene  <toon@moene.indiv.nluug.nl>
10228
10229         * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
10230         Check whether c divides op1 exactly if operation is not
10231         multiplication.
10232
10233 2000-07-08  Richard Henderson  <rth@cygnus.com>
10234
10235         * final.c (final): Do not abort when reg-stack introduces
10236         a new insn.
10237
10238 2000-07-08  Zack Weinberg  <zack@wolery.cumb.org>
10239
10240         * cpplib.h (struct cpp_name): Now struct cpp_string.
10241         (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
10242         CPP_HEADER_NAME): Change to type S.
10243         (struct cpp_token): Rename 'name' field to 'str'.  Add 'node'
10244         field, a cpp_hashnode *.  All references to val.name updated
10245         to use val.str or val.node as appropriate.
10246         (struct cpp_reader): Add spec_nodes field.
10247         (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
10248
10249         * cpphash.h (struct spec_nodes): New.
10250         (enum spell_type): Reorder.  Only SPELL_STRING tokens use
10251         val.str.  All references to 'spelling > SPELL_NONE' updated to
10252         match.
10253
10254         (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
10255         pfile->buffer->inc are not NULL before dereferencing them.
10256
10257         * cpplex.c (parse_name): Take a pointer to the current token,
10258         plus current position and limit as args; return the new
10259         position; don't copy the text of a name into the string
10260         buffer, instead call cpp_lookup and store the node pointer.
10261         If extending a token, copy out the text of the old into a
10262         scratch buffer, append the new, look that up and store the new
10263         node pointer.  Inline.
10264         (maybe_paste_with_next): If the result of paste is a NAME,
10265         then look up the pasted text and store its node pointer.
10266         (lex_line): Adjust for new parse_name interface.
10267         Check for L"str", L'str' using spec_nodes->n_L.
10268         (spell_token): SPELL_IDENT tokens have their spelling in
10269         val.node->name.  Handle SPELL_STRING tokens that don't have
10270         string delimiters.
10271         (_cpp_expand_name_space,
10272         (can_paste): Check for L ## "str" using spec_nodes->n_L.
10273         (cpp_get_token, special_symbol): No need to call cpp_lookup.
10274         (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
10275         return 1=equal 0=not, not a tristate.
10276
10277         * cpphash.c (var_args_str): Delete.
10278         (find_param): Compare node fields directly.
10279         (is__va_args__): Use CPP_PEDANTIC.  Just compare
10280         token->val.node with spec_nodes->n__VA_ARGS__.
10281         (dump_funlike_macro): Don't use var_args_str.
10282
10283         * cpplib.c (_cpp_check_directive): Just walk through
10284         spec_nodes->dirs comparing pointers.
10285         (get_define_node, do_pragma_poison, detect_if_not_defined,
10286         parse_ifdef): The identifier has already been looked up.
10287         (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
10288         node.
10289         (do_if): Only call detect_if_not_defined at beginning of file.
10290         (_cpp_parse_assertion): Only copy string pointers for
10291         SPELL_STRING tokens.
10292         (pragma_dispatch): Take a node pointer and examine its name
10293         field.
10294         (_cpp_init_stacks): Also initialize the spec_nodes structure.
10295
10296         * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
10297         _cpp_init_macros.
10298         (cpp_cleanup): Free pfile->spec_nodes.  Call _cpp_cleanup_* in
10299         reverse order from the corresponding _cpp_init_* routines.
10300
10301         * cppexp.c (parse_number, parse_charconst, parse_defined,
10302         lex): Check val.node->type instead of calling cpp_defined.
10303         Use spec_nodes entries where appropriate.
10304
10305         * fix-header.c, scan-decls.c: Update for interface changes.
10306
10307 2000-07-08  Geoffrey Keating  <geoffk@cygnus.com>
10308
10309         * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
10310         emitting aux_truncdfsf2.
10311
10312 2000-07-03  Donn Terry  (donnte@microsoft.com)
10313
10314         * cppinit.c (print_help): split overlong line into ISO C89
10315         maximum chunks.
10316
10317 2000-07-07  Zack Weinberg  <zack@wolery.cumb.org>
10318
10319         * cppexp.c: Update all code for new lexer interface.
10320         (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
10321         (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
10322         * cpplex.c (token_names): Trim leading CPP_ from names; make
10323         the strings unsigned.
10324         (_cpp_spell_operator): New.
10325         (is_macro_disabled): Disable all macros if rescanning
10326         preprocessed text.
10327         (_cpp_get_directive_token): Remove.
10328
10329         * cppinit.c: Don't set no_macro_expand.
10330         * cpplib.c (read_line_number, do_line): Check only for EOF,
10331         not VSPACE.
10332         * cpphash.h: Update prototypes.
10333         * cpplib.h (CPP_VSPACE): Remove.
10334         (struct cpp_reader): Remove no_macro_expand.
10335
10336 2000-07-08  Neil Booth  <NeilB@earthling.net>
10337
10338         * cpphash.c (is__va_args__): New function.
10339         (count_params): Fix line reported in error messages.  Use
10340         is__va_args__.  Don't return ')' on error.  Flag GNU style
10341         rest args macro definitions.
10342         (parse_define): Check macro name is not __VA_ARGS__.
10343         (save_expansion): Check identifier in non-varargs-macro is
10344         not __VA_ARGS__.  Don't flag GNU_VARARGS.
10345         * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
10346         (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
10347          than per-token GNU_VARARGS.
10348         * cpplib.h (GNU_VARARGS): Remove.
10349         (GNU_REST_ARGS): New.
10350
10351 Sat Jul  8 01:38:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
10352
10353         * i386.md (call_pop, call, call_value_pop): Do not set
10354         current_function_uses_pic_offset_table for calls to static
10355         functions or indirect calls.
10356
10357 2000-07-07  Jim Wilson  <wilson@cygnus.com>
10358
10359         * config/ia64/ia64.c (rws_access_reg): New local write_count.  If
10360         is_predicate_reg, then take max write_count of register pair.
10361
10362 2000-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10363
10364         * tradcpp.c (main): Rename label `include' to `add_include' to
10365         avoid conflicts with variable `include' in traditional C.
10366
10367 2000-07-07  Jakub Jelinek  <jakub@redhat.com>
10368
10369         * integrate.c (copy_insn_list): Remove REG_LABEL notes.
10370
10371 2000-07-07  Jakub Jelinek  <jakub@redhat.com>
10372
10373         * sibcall.c (uses_addressof): Add INMEM argument, check for
10374         current_function_internal_arg_pointer outside of MEM rtxs in addition
10375         to ADDRESSOFs.
10376         (sequence_uses_addressof): Update caller.
10377
10378 2000-07-07  Zack Weinberg  <zack@wolery.cumb.org>
10379
10380         * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
10381         and friends.
10382
10383 2000-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10384
10385         * system.h (UNION_INIT_ZERO): New macro for initializing union
10386         members in structs.
10387
10388         * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
10389
10390 2000-07-07  Neil Booth  <NeilB@earthling.net>
10391
10392         * cpp.texi: Update.
10393
10394 Fri Jul  7 07:47:35 2000  Jeffrey A Law  (law@cygnus.com)
10395
10396         * final.c (final): Detect out of bounds array access to
10397         the insn_lengths array.
10398
10399 2000-07-07  Kazu Hirata  <kazu@hxi.com>
10400
10401         * fold-const.c (fold): Fix a comment typo.
10402
10403 2000-07-07  Neil Booth  <NeilB@earthling.net>
10404
10405         * cpp.texi: Update to new lexer.
10406
10407 2000-07-06  Zack Weinberg  <zack@wolery.cumb.org>
10408
10409         * tradcpp.c: New file.
10410         * tradcif.y: New file.
10411         * tradcif.c: New generated file.
10412
10413         * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
10414         $(srcdir)/tradcif.c.  Add tradcpp to STAGESTUFF and
10415         dependencies of C.  Install tradcpp from install-common, in
10416         $(libsubdir).
10417
10418 2000-07-06  Zack Weinberg  <zack@wolery.cumb.org>
10419
10420         * cppinit.c: Include cppdefault.h.  Refer to
10421         cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
10422         to GCC_INCLUDE_DIR and its length.
10423         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
10424         USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
10425         STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT):  Move to
10426         cppdefault.h.
10427         (include_defaults_array): Move to cppdefault.c.
10428
10429         * cppdefault.h: New file.
10430         * cppdefault.c: New file.
10431
10432         * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
10433         (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
10434         (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
10435         this file.
10436
10437 Thu Jul  6 18:30:36 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10438
10439         * reload.c (push_reload): When seeing if can reuse a register,
10440         check extra registers against widest of INMODE and OUTMODE.
10441
10442 2000-07-06  Neil Booth  <NeilB@earthling.net>
10443
10444         * cpplib.c: (_cpp_parse_assertion):  Perform hash lookups
10445         based on full length of predicate.
10446
10447 2000-07-06  Hans-Peter Nilsson  <hp@axis.com>
10448
10449         * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
10450         [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
10451
10452 2000-07-05  Kazu Hirata  <kazu@hxi.com>
10453
10454         * h8300-proto.h: Fix formatting.
10455         * h8300.c: Likewise.
10456         * h8300.h: Likewise.
10457
10458 2000-07-05  Jim Wilson  <wilson@cygnus.com>
10459
10460         * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
10461         CCmode.
10462
10463 2000-07-05  Rodney Brown  <RodneyBrown@pmsc.com>
10464
10465         * invoke.texi: Fix minor typos
10466         * md.texi: Fix minor typos
10467
10468 2000-07-05  Zack Weinberg  <zack@wolery.cumb.org>
10469
10470         * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
10471
10472 2000-07-04  Zack Weinberg  <zack@wolery.cumb.org>
10473
10474         * cpplex.c: Don't include sys/mman.h.
10475         (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
10476
10477         * cpplib.c: Include sys/mman.h and obstack.h.
10478         (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
10479         obstack.
10480         (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
10481         (_cpp_unwind_if_stack): Now static, unwind_if_stack.  Don't
10482         bother freeing if stack entries (they will be freed with their buffer).
10483         (do_endif): Free if stack entries from the buffer obstack.
10484         (push_conditional): Allocate if stack entries from the buffer obstack.
10485
10486         (find_answer): Rename to _cpp_find_answer.
10487         (do_assert, do_unassert): Update.
10488
10489         * cpphash.h: Update prototypes.
10490         (xobnew): New convenience macro.
10491         * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
10492         Update comments.
10493         (struct cpp_hashnode): Remove disabled field.
10494
10495         * cppinit.c: Don't include hashtab.h or splay-tree.h.
10496         (report_missing_guard): Moved to cppfiles.c.
10497         (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
10498         cpp_init_includes.
10499         (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
10500         cpp_cleanup_includes.  Don't destroy hashtab or
10501         all_include_files here.
10502         (cpp_finish): Use _cpp_report_missing_guards.
10503
10504         * cppfiles.c (report_missing_guard): Moved from cppinit.c.
10505         (_cpp_init_include_table): Rename _cpp_init_includes.
10506         (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
10507
10508         * cppexp.c (parse_assertion): Update for new name of
10509         find_answer.
10510
10511         * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
10512
10513 2000-07-04  Zack Weinberg  <zack@wolery.cumb.org>
10514
10515         * cpplib.c (do_ident): s/VSPACE/EOF/
10516
10517 2000-07-05  Neil Booth  <NeilB@earthling.net>
10518
10519         * cpplex.c: Fix trigraph replacement within strings.
10520
10521 2000-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10522
10523         * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
10524
10525         * xcoffout.c (assign_type_number): Constify.
10526         (xcoffout_source_file): Add static prototype.  Don't needlessly
10527         cast away const-ness.
10528
10529 2000-07-04  Jason Merrill  <jason@redhat.com>
10530
10531         * frame.h (frame_state): Move base_offset to end.
10532
10533 Mon Jul  3 21:31:43 2000  Clinton Popetz  <cpopetz@cygnus.com>
10534
10535         * calls.c (emit_library_call_value_1): Revert previous change.
10536
10537 2000-07-03  Zack Weinberg  <zack@wolery.cumb.org>
10538
10539         * fix-header.c (struct partial_proto): Remove unnecessary fields.
10540         (recognized_extern, recognized_function, read_scan_file):
10541         Update for new scheme.
10542         (check_protection): It's still a multiple include guard even
10543         if it doesn't always trigger.
10544         * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
10545         new scheme.
10546         * scan.h: Declare struct cpp_token.  Update prototypes.
10547
10548 2000-07-03  Neil Booth  <neilb@earthling.net>
10549             Zack Weinberg  <zack@wolery.cumb.org>
10550
10551         Complete overhaul of the lexer and macro expander.
10552
10553         * cpphash.c (object_defn, funct_defn, push_macro_expansion,
10554         arg, arglist, argdata, reflist, collect_objlike_expansion,
10555         collect_funlike_expansion, collect_params,
10556         warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
10557         unsafe_chars, macarg, compare_defs, special_symbol,
10558         scan_arguments, stringify, funlike_macroexpand,
10559         _cpp_quote_string, monthnames): Delete.
10560         (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
10561         _cpp_create_definition, _cpp_dump_definition,
10562         dump_hash_helper): Adjust.
10563         (find_param, count_params, parse_define, var_args_str,
10564         check_macro_redefinition, save_expansion): New.
10565
10566         * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
10567         parse_string, output_line_command, trigraph_replace,
10568         lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
10569         cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
10570         cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
10571         _cpp_skip_rest_of_line): Modify.
10572
10573         (maybe_macroexpand, skip_comment, copy_comment, skip_string,
10574         find_position, null_warning, bump_column, expand_name_space,
10575         pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
10576         _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
10577         _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
10578         _cpp_prescan): Delete.
10579
10580         (dump_param_spelling, process_directive, lex_next,
10581         is_macro_disabled, stringify_arg, expand_context_stack,
10582         output_token, make_string_token, alloc_number_token,
10583         special_symbol, duplicate_token, maybe_paste_with_next,
10584         can_paste, prevent_macro_expansion, restore_macro_expansion,
10585         get_temp_token, release_temp_tokens, quote_string,
10586         token_names, token_spellings, _cpp_expand_name_space,
10587         _cpp_glue_header_name, _cpp_reserve_name_space,
10588         digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
10589         placemarker_token, eof_token, cpp_context, macro_args,
10590         get_raw_token, parse_arg, parse_args, save_token,
10591         push_arg_context, push_macro_context, pop_context,
10592         do_pop_context, free_macro_args, _cpp_get_line,
10593         _cpp_run_directive): New.
10594
10595         * cpplib.c (validate_else, parse_include, push_conditional,
10596         pass_thru_directive, read_line_number, parse_ifdef,
10597         detect_if_not_defined, _cpp_check_directive, do_define,
10598         do_undef, do_include, do_import, do_include_next, do_error,
10599         do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
10600         top_pragmas, do_pragma_gcc, do_pragma_implementation,
10601         do_pragma_poison, do_pragma_system_header,
10602         do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
10603         dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
10604         do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
10605         cpp_defined): Update for new scheme.
10606         (strtoul_for_line, get_define_node, dump_macro_name,
10607         _cpp_check_linemarker, _cpp_parse_assertion): New.
10608         (_cpp_handle_directive, do_pragma_default): Delete.
10609
10610         * cpphash.h (struct predicate): Now struct answer.
10611         (enum spell_type, struct token_spelling, struct directive,
10612         directive_handler): New.
10613         Update prototypes.  Remove unused macros.
10614         * cpplib.h: Update prototypes.  Remove unused macros,
10615         structure definitions, and fields.
10616
10617         * cpperror.c (print_containing_files, v_message): Adjust.
10618         * cppexp.c (parse_assertion, lex, parse_escape,
10619         _cpp_parse_expr): Adjust.
10620         * cppfiles.c (open_include_file, _cpp_execute_include,
10621         _cpp_compare_file_date, cpp_read_file, read_include_file):
10622         Adjust.
10623         * cppinit.c (dump_special_to_buffer): Delete.
10624         (append_include_chain, merge_include_chains, cpp_reader_init,
10625         cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
10626         cpp_finish, handle_option, print_help): Adjust.
10627         * cppmain.c (main): Adjust.
10628
10629 2000-07-03  Zack Weinberg  <zack@wolery.cumb.org>
10630
10631         * cppspec.c (lang_specific_driver): Use double quotes in error
10632         message.
10633
10634 Mon Jul  3 16:53:43 2000  Clinton Popetz  <cpopetz@cygnus.com>
10635
10636         * calls.c (emit_library_call_value_1): Use valreg instead
10637         of hard_libcall_value.
10638
10639 2000-07-03  Geoff Keating  <geoffk@cygnus.com>
10640
10641         * config/rs6000/rs6000.c (rs6000_emit_move): New function.
10642         * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
10643         * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
10644         (movhi): Likewise.
10645         (movqi): Likewise.
10646         (movdf): Likewise.
10647         (movsf): Likewise.
10648         (movdi): Likewise.
10649         (movti): Likewise.
10650
10651         * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
10652         mode instead of wider_mode is being used.
10653
10654 2000-07-03  Jakub Jelinek  <jakub@redhat.com>
10655
10656         * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
10657         of 'r'. Use q_regs_operand.
10658         (andsi_1+2): Use q_regs_operand.
10659
10660 2000-07-03  Jakub Jelinek  <jakub@redhat.com>
10661
10662         * builtins.c (get_memory_rtx): Always put into alias set 0.
10663
10664 2000-07-03  Nick Clifton  <nickc@cygnus.com>
10665
10666         * config/arm/arm.md: Fix post increment and pre increment
10667         peepholes so that they do not generate UNPREDICATBLE opcodes.
10668         (ie ones where the increment clobbers the source/destination).
10669
10670 2000-07-01  Marek Michalkiewicz  <marekm@linux.org.pl>
10671
10672         * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
10673         change too big for -mtiny-stack" a warning, if larger than 63.
10674         (out_set_stack_ptr): Change the logic so -mno-interrupts is
10675         always safe to use on possible future devices.
10676         (function_prologue): Write SPH before SPL, for consistency.
10677         If interrupt_func_p true, we know we have enabled interrupts.
10678         (avr_num_arg_regs): New function.  Round up to even number of
10679         bytes if no -mpack-args or if calling a libgcc function.
10680         (function_arg, function_arg_advance): Use it.
10681         (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
10682         Output "movw" if available.
10683         (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
10684         of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
10685         (asm_output_section_name): Add blanks for consistent output.
10686         (encode_section_info): Set TREE_READONLY for progmem data to
10687         avoid gas warnings about changed section attributes.
10688         (avr_hard_regno_mode_ok): Force non-QImode data to start in
10689         even numbered registers on devices with "movw".
10690         * config/avr/avr.h (MASK_*): Define bits for target_flags.
10691         (TARGET_SWITCHES): Mark help strings for translation.
10692         Add new -mpack-args and -menhanced switches.
10693         (TARGET_OPTIONS): Mark help strings for translation.
10694         (progmem_section): Add section attributes.
10695         * config/avr/avr.md (*movhi, call_insn, call_value_insn):
10696         Output "movw" if available.
10697         (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
10698         New patterns.
10699         * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
10700         call convention (arguments aligned on even registers).
10701         (_cleanup, _exit): Make weak symbols libc can override.
10702
10703 2000-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10704
10705         * fp-bit.h: New file.
10706
10707         * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
10708         Comment #endif statements.
10709         (__thenan_sf, __thenan_df): Add missing braces around initializer.
10710
10711 Mon Jul  3 00:32:47 2000  Jeffrey A Law  (law@cygnus.com)
10712
10713         * gcse.c (compute_pre_data): Compute ae_kill using other local
10714         properties instead of calling compute_ae_kill.
10715
10716         * alias.c (init_alias_analysis): Do not call
10717         prologue_epilogue_contains until after reload has completed.
10718
10719 2000-07-02  Benjamin Chelf  <chelf@codesourcery.com>
10720
10721         * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
10722         (genrtl_finish_compound_stmt): Likewise.
10723         (genrtl_compound_stmt): Change to return void.
10724
10725         * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
10726         move code from here to ...
10727         (genrtl_compound_stmt): ... here.
10728         (genrtl_finish_compound_stmt): Remove.
10729         (expand_stmt): Add comment.
10730
10731 2000-07-02  Zack Weinberg  <zack@wolery.cumb.org>
10732
10733         * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
10734         and VOID_TYPE_P.
10735
10736 2000-07-02  Jakub Jelinek  <jakub@redhat.com>
10737
10738         * cpplib.h (struct cpp_reader): New field include_depth.
10739         (struct cpp_printer): Rename last_bsd to last_id.
10740         * cppfiles.c (read_include_file): Bump include_depth.
10741         * cpplex.c (cpp_pop_buffer): Decrement include_depth.
10742         (output_line_command): Output correct #line if a header
10743         is including itself and is not protected against multiple inclusion.
10744         Use include_depth instead of buffer_stack_depth, last_id instead of
10745         last_bsd.
10746         * cppinit.c (cpp_start_read): Initialize last_id instead of
10747         last_bsd.
10748
10749 2000-07-01  Benjamin Chelf  <chelf@codesourcery.com>
10750
10751         * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
10752         (c-semantics.o): New target.
10753
10754         * c-common.h (TREE_LANG_FLAG_?): Added documentation.
10755         (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
10756         (genrtl_clear_out_block): Likewise.
10757         (genrtl_goto_stmt): Likewise.
10758         (genrtl_expr_stmt): Likewise.
10759         (genrtl_decl_stmt): Likewise.
10760         (genrtl_if_stmt): Likewise.
10761         (genrtl_while_stmt): Likewise.
10762         (genrtl_do_stmt): Likewise.
10763         (genrtl_return_stmt): Likewise.
10764         (genrtl_for_stmt): Likewise.
10765         (genrtl_break_stmt): Likewise.
10766         (genrtl_continue_stmt): Likewise.
10767         (genrtl_scope_stmt): Likewise.
10768         (genrtl_switch_stmt): Likewise.
10769         (genrtl_case_label): Likewise.
10770         (genrtl_begin_compound_stmt): Likewise.
10771         (gerntl_finish_compound_stmt): Likewise.
10772         (genrtl_compound_stmt): Likewise.
10773         (genrtl_asm_stmt): Likewise.
10774         (genrtl_decl_cleanup): Likewise.
10775         (DECL_ANON_UNION_ELEMS): Likewise.
10776         (emit_local_var): Likewise.
10777         (make_rtl_for_local_static): Likewise.
10778         (expand_cond): Likewise.
10779         (expand_stmt): Likewise.
10780         (c_expand_return): Likewise.
10781         (c_expand_start_case): Likewise.
10782         (do_case): Likewise.
10783         (COMPOUND_STMT_NO_SCOPE): Likewise.
10784         (c_expand_asm_operands): Likewise.
10785         (NEW_FOR_SCOPE_P): New macro.
10786         (expand_expr_stmt_fn): New type.
10787
10788         (set_current_function_name_declared): Likewise.
10789         (current_function_name_declared): Likewise.
10790         (lang_expand_stmt): Likewise.
10791         (stmts_are_full_exprs_p): Likewise.
10792         (anon_aggr_type_p): Likewise.
10793         (lang_expand_expr_stmt): Likewise.
10794         (build_case_label): Likewise.
10795
10796         * c-decl.c (lang_expand_expr_stmt): Initialize.
10797         (stmts_are_full_exprs_p): Define.
10798         (current_function_name_declared): Likewise.
10799         (do_case): Likewise.
10800         (lang_expand_stmt): Likewise.
10801         (set_current_function_name_declared): Likewise.
10802         (anon_aggr_type_p): Likewise.
10803
10804         * c-semantics.c: New file.
10805         (expand_cond): Moved from cp/semantics.c.
10806         (genrtl_do_pushlevel): Likewise.
10807         (genrtl_clear_out_block): Likewise.
10808         (genrtl_goto_stmt): Likewise.
10809         (genrtl_expr_stmt): Likewise.
10810         (genrtl_decl_stmt): Likewise.
10811         (genrtl_if_stmt): Likewise.
10812         (genrtl_while_stmt): Likewise.
10813         (genrtl_do_stmt): Likewise.
10814         (genrtl_return_stmt): Likewise.
10815         (genrtl_for_stmt): Likewise.
10816         (genrtl_break_stmt): Likewise.
10817         (genrtl_continue_stmt): Likewise.
10818         (genrtl_scope_stmt): Likewise.
10819         (genrtl_switch_stmt): Likewise.
10820         (genrtl_case_label): Likewise.
10821         (genrtl_begin_compound_stmt): Likewise.
10822         (genrtl_finish_compound_stmt): Likewise.
10823         (genrtl_compound_stmt): Likewise.
10824         (genrtl_asm_stmt): Likewise.
10825         (genrtl_decl_cleanup): Likewise.
10826         (make_rtl_for_local_static): Moved from cp/decl.c.
10827         (emit_local_var): Likewise.
10828         (expand_stmt): Define.
10829
10830         * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
10831         (c_expand_return): Likewise.
10832         (c_expand_start_case): Likewise.
10833
10834 2000-07-01  Richard Henderson  <rth@cygnus.com>
10835
10836         * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
10837         with the low 13 bits set.
10838         (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
10839         * config/ia64/ia64.md (movdi): Likewise.  Expand a CONST with one
10840         of the low 13 bits into a CONST plus an adddi3.
10841         (load_symptr): Set RTX_UNCHANGING_P.
10842
10843 See ChangeLog.3 for earlier changes.