1 2000-11-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3 * README.gnat: Remove file.
5 2000-11-08 Alexandre Oliva <aoliva@redhat.com>
7 * mklibgcc.in (EXTRA_MULTILIB_PARTS): Generate multilib parts
10 2000-11-07 Richard Henderson <rth@redhat.com>
12 * dwarfout.c (INSN_LABEL_FMT): Remove.
13 (output_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
14 (dwarfout_label): Remove.
15 * dwarfout.h: Remove it's prototype.
16 * dwarf2out.c (INSN_LABEL_FMT): Remove.
17 (gen_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
18 (dwarf2out_label): Remove.
19 * dwarf2out.h: Remove it's prototype.
20 * final.c (final_scan_insn): Don't call dwarf[2]out_label.
22 2000-11-07 Richard Henderson <rth@redhat.com>
24 * config/ia64/fde-glibc.c (find_fde_for_dso): Do a binary
25 search on the unwind region section.
27 * config/ia64/ia64.md (movbi): Add r/r alternative.
28 (cmovdi_internal_astep): Describe all combinations of register
29 classes for sources & destinations; remove matching constraints.
30 (cmovdi_internal): Likewise.
32 * gcc.c (default_compilers) [@cpp-output]: Add -fpreprocessed.
34 2000-11-07 Richard Henderson <rth@redhat.com>
36 * c-lang.c (start_cdtor, finish_cdtor): New functions.
37 (finish_file): Use them in building constructor/destructor functions.
39 * config/alpha/alpha.h (HAS_INIT_SECTION, LD_INIT_SWITCH,
40 LD_FINI_SWITCH): Move ...
41 * config/alpha/osf.h: ... here.
42 * config/alpha/alpha-interix.h: Don't undef them.
44 2000-11-07 Jeffrey Oldham <oldham@oz.codesourcery.com>
46 * config/mips/t-iris6 (FPBIT): New. Added so that __unorddf2 is
52 2000-11-07 Nick Clifton <nickc@redhat.com>
54 * config/m88k/m88k.h (GLOBAL_ASM_OP): Add missing tab.
55 (INTERNAL_ASM_OP): Add missing tab.
57 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
59 * alias.c (init_alias_analysis), calls.c (expand_call,
60 emit_library_call_value_1), combine.c (init_reg_last_arrays),
61 cse.c (new_basic_block), dbxout.c (dbxout_type), diagnostic.c
62 (init_output_buffer, set_diagnostic_context), dwarf2out.c
63 (equate_decl_number_to_die, build_abbrev_table), emit-rtl.c
64 (init_emit_once), fold-const.c (mul_double, div_and_round_double),
65 function.c (assign_parms), gcse.c (compute_can_copy,
66 alloc_gcse_mem, alloc_reg_set_mem, record_one_set,
67 compute_hash_table, compute_set_hash_table,
68 compute_expr_hash_table), genattrtab.c (optimize_attrs), global.c
69 (global_alloc, global_conflicts), haifa-sched.c (compute_trg_info,
70 clear_units, schedule_block), integrate.c (initialize_for_inline,
71 expand_inline_function), jump.c (thread_jumps), local-alloc.c
72 (local_alloc), loop.c (combine_movables, count_loop_regs_set,
73 load_mems_and_recount_loop_regs_set), print-tree.c (debug_tree),
74 regclass.c (init_reg_sets, init_reg_sets_1, regclass,
75 record_reg_classes, allocate_reg_info), reload.c
76 (get_secondary_mem, remove_address_replacements, find_reloads),
77 reload1.c (reload, set_initial_label_offsets, finish_spills,
78 reload_as_needed, choose_reload_regs_init,
79 reload_cse_simplify_operands), reorg.c (dbr_schedule), sbitmap.c
80 (sbitmap_zero), simplify-rtx.c (simplify_plus_minus), ssa.c
81 (rename_registers), stmt.c (expand_end_case), unroll.c
82 (unroll_loop), varray.c (varray_grow), objc/objc-act.c: Use memset
83 () instead of bzero ().
85 2000-11-07 Neil Booth <neilb@earthling.net>
87 * cp/lang-specs.h: Fix -save-temps specs under USE_CPPLIB.
89 2000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
91 * c-common.c (combine_strings): Only warn about long strings for C.
93 Tue Nov 7 19:44:30 2000 J"orn Rennecke <amylaar@redhat.com>
95 * combine.c (distribute_notes): Fix typo in last change.
97 2000-11-07 Geoff Keating <geoffk@redhat.com>
99 * config/rs6000/rs6000.md (movdi_internal32+1): Use
100 operand_subreg_force rather than gen_rtx_SUBREG.
101 (movdi_internal32+2): Likewise.
103 2000-11-07 Philip Blundell <philb@gnu.org>
105 * configure.in (arm*-*-linuxaout*): Obsolete, deleted.
106 * config/arm/linux-aout.h: Likewise.
107 * configure: Regenerate.
109 2000-11-07 Philipp Thomas <pthomas@suse.de>
111 * ABOUT-GCC-NLS: Remove the patch for gettext as it has been
112 accepted my the gettext maintainer.
114 2000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
116 * builtins.c (expand_builtin_strpbrk): New function.
117 (expand_builtin): Handle BUILT_IN_STRPBRK.
119 * builtins.def (BUILT_IN_STRPBRK): New entry.
121 * c-common.c (c_common_nodes_and_builtins): Declare builtin
124 2000-11-07 David O'Brien <obrien@dragon.nuxi.com>
126 * config/alpha/freebsd.h: New file -- FreeBSD/alpha architecture file.
127 * POTFILES.in: Add config/alpha/freebsd.h
128 * configure.in: Add alpha*-freebsd support.
129 * configure: Regenerate.
131 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
133 * tree.c (build_common_tree_nodes_2): Make va_list_type_node be a
134 copy of ptr_type_node rather than ptr_type_node itself.
136 Tue Nov 7 06:29:24 2000 J"orn Rennecke <amylaar@redhat.com>
138 * combine.c (recog_for_combine): Allocate uninitialized vector with
140 * recog.c (apply_change_group): Likewise.
142 Tue Nov 7 06:24:02 2000 J"orn Rennecke <amylaar@redhat.com>
144 * flow.c (verify_local_live_at_start): Back out last change.
145 * combine.c (distribute_notes): When parts of a hard reg are
146 neither set nor referenced in PLACE, search backwards for a
147 place to put a REG_UNUSED note; if none found, ask for flow
150 Mon Nov 6 20:08:13 2000 J"orn Rennecke <amylaar@redhat.com>
152 * reload1.c (eliminate_regs_in_insn): Allow a set to be a PARALLEL
153 with (clobber (match_scratch...)).
155 2000-11-06 Neil Booth <neilb@earthling.net>
157 * c-lex.c (init_c_lex): If cpp_start_read fails, exit with
160 2000-11-06 Neil Booth <neilb@earthling.net>
162 * tradcpp.c (special_symbol): Assign an null string rather
163 than writing to an unallocated buffer.
165 2000-11-06 Neil Booth <neilb@earthling.net>
167 * cpplex.c (_cpp_equiv_tokens): Check arg_no in the
170 2000-11-06 Neil Booth <neilb@earthling.net>
172 * c-lex.c (c_lex): Replace tok.val.aux with tok.val.c or
173 tok.val.arg_no as appropriate.
174 * cppexp.c (lex): Similarly.
175 * cpplex.c (_cpp_lex_token, cpp_spell_token, cpp_output_token,
176 cpp_equiv_tokens, cpp_can_paste, cpp_avoid_paste): Similarly.
177 * cppmacro.c (stringify_arg, replace_args, lex_expansion_token,
178 cpp_macro_definition): Similarly.
179 * cpplib.h (struct cpp_token): Replace aux with c and arg_no.
181 2000-11-06 Jakub Jelinek <jakub@redhat.com>
183 * config/sparc/sparc.md (adddi3): If operands[2] is 4096 and
184 operands[1] is constant, calculate the sum and generate movdi.
185 (addsi3): Similarly. Use SImode in call to arith_4096_operand.
186 (subsi3): Use SImode in call to arith_4096_operand.
188 2000-11-06 Jakub Jelinek <jakub@redhat.com>
190 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): On sparc64 we need to
191 adjust %o1, not %o0 if the return type is large structure.
193 2000-11-06 Jakub Jelinek <jakub@redhat.com>
195 * config/sparc/sparc.md (smulsi3_highpart_v8plus, ashldi3_v8plus+1,
196 update_return, flush, flushdi, ffssi2, ffsdi2): Fix output formatting.
198 Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
200 * expmed.c (expand_divmod): For signed divide by 2, prefer
201 a branch and fewer shifts if branches are very cheap.
203 2000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
205 * Makefile.in: Remove all targets related to building
206 distributions and diffs, or INSTALL.
207 * INSTALL, install1.texi: Remove.
208 * configure.in: Remove mention of distdir.
209 * configure: Regenerate.
210 * objc/Make-lang.in: Remove mention of distdir.
212 2000-11-04 Neil Booth <neilb@earthling.net>
214 * cpp.texi: Update for _Pragma.
216 2000-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
218 * gcc.texi (Contributing): Update URL for projects web page.
220 2000-11-04 Neil Booth <neilb@earthling.net>
222 * cpplex.c (parse_string): Don't allow multiline strings in
223 #include family directives.
225 2000-11-04 Neil Booth <neilb@earthling.net>
227 * cpplib.c (do_line): Only warn pedantically if not reading
230 2000-11-04 Alexandre Oliva <aoliva@redhat.com>
232 * calls.c (emit_call_1) [sibcall_pop]: Use n_popped instead of
235 2000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
237 * builtins.c (expand_builtin_strlen): Remove unused mode
239 * gcc.c (process_command): Remove unused variable.
240 * fold-const.c: Include expr.h.
241 * recog.c: Include reload.h.
242 * Makefile.in (recog.o, fold-const.o): Update deps.
244 2000-11-02 Geoffrey Keating <geoffk@cygnus.com>
246 * fixinc/gnu-regex.c: Change 'CYGNUS LOCAL' to 'EGCS LOCAL'.
248 Fri Nov 3 13:41:04 2000 Mark P Mitchell <mark@codesourcery.com>
250 * config/mips/iris6.h (SUBTARGET_CC1_SPEC): Remove -static
252 (STARTFILE_SPEC): Likewise.
253 (LINK_SPEC): Likewise.
255 2000-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
257 * Makefile.in (fold-const.o): Depend on $(GGC_H), not ggc.h.
258 (toplev.o): Likewise for $(LOOP_H)/loop.h and $(REGS_H)/regs.h.
259 (simplify-rtx.o): Likewise for $(GGC_H)/ggc.h.
261 2000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
263 * c-decl.c (duplicate_decls, copy_lang_decl), dwarfout.c
264 (dwarfout_line), gcc.c (main, save_string), tree.c (init_obstacks,
265 perm_calloc, get_identifier, maybe_get_identifier,
266 real_value_from_int_cst, simple_cst_equal), varasm.c
267 (assemble_name, assemble_real, immed_real_const_1,
268 compare_constant_1, decode_rtx_const, output_constant_pool): Use
269 strrchr () instead of rindex (). Use memcmp () instead of bcmp
270 (). Use memcpy () instead of bcopy (). Use memset () instead of
273 2000-11-03 Nathan Sidwell <nathan@codesourcery.com>
275 * cppfiles.c (open_file): If already read, then don't reopen.
276 Immediately close an empty file.
278 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
280 * expr.h (fold_builtin): Move declaration...
281 * tree.h (fold_builtin): ... here.
283 Fri Nov 3 05:41:07 2000 J"orn Rennecke <amylaar@redhat.com>
285 * flow.c (verify_local_live_at_start): Allow hard regs to die.
287 2000-11-02 Neil Booth <neilb@earthling.net>
290 * a29k/a29k.h, a29k/unix.h, a29k/vx29k.h,
291 alpha/alpha-interix.h, alpha/alpha.h, alpha/linux.h,
292 alpha/openbsd.h, alpha/osf.h, alpha/vms.h, alpha/vxworks.h,
293 alpha/win-nt.h, arc/arc.h, arm/arm.h, arm/conix-elf.h,
294 arm/linux-aout.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
295 arm/riscix1-1.h, arm/semiaof.h, arm/unknown-elf-oabi.h, arm/vxarm.h,
296 c4x/rtems.h, clipper/clix.h, convex/convex.h, d30v/d30v.h,
297 elxsi/elxsi.h, fr30/fr30.h, h8300/h8300.h, i370/linux.h, i370/mvs.h,
298 i370/oe.h, i386/386bsd.h, i386/aix386ng.h, i386/beos-elf.h,
299 i386/bsd386.h, i386/crtdll.h, i386/cygwin.h, i386/dgux.h,
300 i386/djgpp-rtems.h, i386/djgpp.h, i386/freebsd-aout.h, i386/freebsd.h,
301 i386/gnu.h, i386/i386-interix.h, i386/i386.h, i386/linux-aout.h,
302 i386/linux-oldld.h, i386/linux.h, i386/lynx-ng.h, i386/lynx.h,
303 i386/mach.h, i386/mingw32.h, i386/moss.h, i386/netbsd.h,
304 i386/netware.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
305 i386/osfelf.h, i386/osfrose.h, i386/ptx4-i.h, i386/rtems.h,
306 i386/rtemself.h, i386/sco.h, i386/sco4.h, i386/sco4dbx.h, i386/sco5.h,
307 i386/scodbx.h, i386/sequent.h, i386/sol2.h, i386/sun.h, i386/sysv3.h,
308 i386/sysv4.h, i386/uwin.h, i386/vsta.h, i386/vxi386.h, i386/win-nt.h,
309 i386/win32.h, i860/fx2800.h, i860/i860.h, i860/mach.h, i860/sysv3.h,
310 i860/sysv4.h, i960/i960.h, i960/rtems.h, i960/vx960-coff.h,
311 ia64/ia64.h, ia64/linux.h, m32r/m32r.h, m68k/3b1.h, m68k/3b1g.h,
312 m68k/a-ux.h, m68k/altos3068.h, m68k/amix.h, m68k/apollo68.h,
313 m68k/crds.h, m68k/ctix.h, m68k/dpx2.h, m68k/hp2bsd.h, m68k/hp320.h,
314 m68k/hp3bsd.h, m68k/hp3bsd44.h, m68k/isi.h, m68k/linux-aout.h,
315 m68k/linux.h, m68k/lynx-ng.h, m68k/lynx.h, m68k/m68kemb.h,
316 m68k/m68kv4.h, m68k/mot3300.h, m68k/netbsd.h, m68k/news.h,
317 m68k/next.h, m68k/openbsd.h, m68k/pbb.h, m68k/plexus.h, m68k/rtems.h,
318 m68k/rtemself.h, m68k/sun2.h, m68k/sun3.h, m68k/sun3mach.h,
319 m68k/tower-as.h, m68k/tower.h, m68k/vxm68k.h, m88k/dgux.h,
320 m88k/dolph.h, m88k/luna.h, m88k/m88k-aout.h, m88k/m88k-coff.h,
321 m88k/openbsd.h, m88k/sysv3.h, m88k/sysv4.h, mips/bsd-4.h,
322 mips/bsd-5.h, mips/dec-bsd.h, mips/dec-osf1.h, mips/gnu.h,
323 mips/iris3.h, mips/iris5.h, mips/iris6.h, mips/linux.h, mips/mips.h,
324 mips/netbsd.h, mips/news4.h, mips/news5.h, mips/nws3250v4.h,
325 mips/openbsd.h, mips/osfrose.h, mips/rtems64.h, mips/sni-svr4.h,
326 mips/svr3-4.h, mips/svr3-5.h, mips/svr4-4.h, mips/svr4-5.h,
327 mips/ultrix.h, ns32k/encore.h, ns32k/merlin.h, ns32k/netbsd.h,
328 ns32k/ns32k.h, ns32k/pc532-mach.h, ns32k/pc532.h, ns32k/sequent.h,
329 ns32k/tek6000.h, ns32k/tek6100.h, ns32k/tek6200.h, pa/pa-hiux.h,
330 pa/pa-hpux.h, pa/pa-hpux7.h, pa/pa-linux.h, pa/pa-osf.h,
331 pa/pa-pro-end.h, pa/pa.h, pa/rtems.h, pj/linux.h, pj/pj.h,
332 romp/romp.h, rs6000/aix.h, rs6000/aix31.h, rs6000/aix41.h,
333 rs6000/aix43.h, rs6000/beos.h, rs6000/eabi.h, rs6000/eabisim.h,
334 rs6000/linux.h, rs6000/lynx.h, rs6000/mach.h, rs6000/rtems.h,
335 rs6000/sysv4.h, rs6000/vxppc.h, sh/elf.h, sh/linux.h, sh/rtems.h,
336 sh/rtemself.h, sh/sh.h, sparc/aout.h, sparc/elf.h, sparc/linux-aout.h,
337 sparc/linux.h, sparc/linux64.h, sparc/lite.h, sparc/litecoff.h,
338 sparc/liteelf.h, sparc/lynx-ng.h, sparc/lynx.h, sparc/netbsd.h,
339 sparc/openbsd.h, sparc/pbd.h, sparc/rtems.h, sparc/rtemself.h,
340 sparc/sol2-sld-64.h, sparc/sol2.h, sparc/sp64-aout.h,
341 sparc/sp64-elf.h, sparc/sp86x-aout.h, sparc/sp86x-elf.h,
342 sparc/sparc.h, sparc/sysv4.h, sparc/vxsim.h, sparc/vxsparc.h,
343 v850/rtems.h, vax/netbsd.h, vax/openbsd.h, vax/ultrix.h, vax/vax.h,
344 vax/vaxv.h, vax/vms.h, we32k/we32k.h
346 Replace -A() with -A=, the new assertion syntax.
348 Thu Nov 2 21:52:35 2000 J"orn Rennecke <amylaar@redhat.com>
350 * combine.c (distribute_notes): Use rtx_equal_p to check elim_i2 /
352 In REG_DEAD handling: When handling parts of multi-hard-reg hard
353 registers, increment the loop counter by the size of the parts;
354 use recursion to handle individual parts.
356 2000-11-02 Neil Booth <neilb@earthling.net>
358 * configure.in: Make integrated CPP the default.
359 * configure: Regenerate.
361 Thu Nov 2 19:20:12 2000 J"orn Rennecke <amylaar@redhat.com>
363 * reload.c (find_equiv_reg): Test all hard registers for membership
364 in the requested class.
366 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
368 * collect2.c (main, write_c_file_stat), gcc.c (translate_options,
369 process_command, main), gcov.c (open_files, output_data), tlink.c
370 (frob_extension, scan_linker_output), toplev.c
371 (file_name_nondirectory): Use strchr () and strrchr () instead of
372 index () and rindex ().
374 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
376 * c-common.c (get_flag_spec, check_format_info_main,
377 check_format_types): Use strchr () instead of index (). Compare
378 against error_mark_node instead of comparing the TREE_CODE against
381 2000-11-02 Zack Weinberg <zackw@Stanford.EDU>
385 * c-lex.c (init_c_lex): Update cpp_start_read call.
386 (cb_ident): Update for new callback prototype.
387 (cb_def_pragma): Update for new cpp_get_token prototype.
388 (c_lex): Similarly. Use cpp_get_line.
390 * c-parse.in (finish_parse): Update for new cpp_finish
393 * cp/lex.c (finish_parse): Similarly.
395 2000-11-01 Geoff Keating <geoffk@cygnus.com>
397 * machmode.def: Add V16QImode.
399 2000-11-01 Richard Henderson <rth@redhat.com>
401 * dwarf2out.c (loc_descriptor_from_tree): Check for null result
402 from rtl_for_decl_location.
403 (add_location_or_const_value_attribute): Likewise.
405 2000-11-01 Neil Booth <neilb@earthling.net>
407 * cpplib.c (run_directive): Use correct line number for output
408 of _Pragma. Remember any in-progress directive.
410 * gcc.dg/cpp/vararg2.c, gcc.dg/cpp/_Pragm1.c: New tests.
412 2000-11-01 Richard Henderson <rth@redhat.com>
414 * stmt.c (expand_start_null_loop): Set continue_label.
416 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
418 * builtins.c (fold_builtin_constant_p, fold_builtin): New functions.
419 (expand_builtin_constant_p): Move parts of the code into
420 fold_builtin_constant_p.
421 (expand_builtin_strlen): Move parts of the code into fold_builtin.
422 * expr.h (fold_builtin): Declare.
423 * fold-const.c (fold): Handle builtin calls.
425 * c-typeck.c (build_function_call): Call fold on the CALL_EXPR.
427 2000-11-01 Richard Henderson <rth@redhat.com>
429 * stmt.c (expand_start_null_loop): New.
430 (expand_end_null_loop): New.
431 * c-semantics.c (genrtl_do_stmt): Use them.
432 * tree.h: Declare them.
434 2000-11-01 Richard Henderson <rth@redhat.com>
436 * cppmain.c (scan_buffer): Don't avoid paste for assembly.
438 2000-11-01 Neil Booth <neilb@earthling.net>
440 * c-parse.in (_yylex): Remove CPP_BACKSLASH case.
441 * cp/spew.c: Similarly.
442 * cpplex.c (_cpp_lex_token): Backslashes are now CPP_OTHER.
443 * cppmacro.c (stringify_arg): Similarly.
444 * cpplib.h (CPP_BACKSLASH): Delete.
446 2000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
448 * builtins.c (expand_builtin_strstr): New function.
449 (expand_builtin): Handle BUILT_IN_STRSTR and BUILT_IN_STRCHR.
451 * builtins.def (BUILT_IN_STRSTR, BUILT_IN_STRCHR): New entries.
453 * c-common.c (c_common_nodes_and_builtins): Declare builtin strstr
456 2000-10-31 Richard Henderson <rth@redhat.com>
458 * config/i386/i386.c (fcmov_comparison_operator): Check for
459 CCFPmode or CCFPUmode instead of CCmode.
460 (ix86_expand_fp_movcc): Call ix86_expand_setcc for most
461 unordered operations as well.
463 2000-10-31 Richard Henderson <rth@redhat.com>
465 * c-semantics.c (genrtl_do_stmt): Use integer_zerop instead
466 of integer_zero_node.
468 2000-10-31 Richard Henderson <rth@redhat.com>
470 * c-semantics.c (genrtl_do_stmt): Special case do/while(0).
472 2000-10-31 Nick Clifton <nickc@redhat.com>
474 * config/arm/unknown-elf.h (UNIQUE_SECTION_P): Do not allow
475 -fdata-sections to override the section attribute of a DECL.
477 2000-10-31 Chris Demetriou <cgd@sibyte.com>
479 * libgcc2.c (__shtab): Remove __shtab variable.
480 * libgcc-std.ver (GCC_3.0): Remove __shtab from symbol list.
481 * Makefile.in (LIB2FUNCS): Remove _shtab from list of library
484 2000-10-31 Jim Wilson <wilson@redhat.com>
486 * defaults.h (ASM_OUTPUT_DEBUG_LABEL): New.
487 * tm.texi (ASM_OUTPUT_DEBUG_LABEL): Document.
488 * dwarf2out.c (dwarf2out_begin_block): Use ASM_OUTPUT_DEBUG_LABEL
489 instead of ASM_OUTPUT_INTERNAL_LABEL.
490 (dwarf2out_end_block, dwarf2out_label): Likewise.
491 * final.c (final_scan_insn, case NOTE_INSN_DELETED_LABEL): Likewise
492 * config/ia64/ia64.h (ASM_OUTPUT_DEBUG_LABEL): Define.
494 2000-10-31 Richard Henderson <rth@redhat.com>
496 * dwarf2out.c (struct dw_loc_descr_struct): Add dw_loc_addr.
497 (size_of_locs): Set it.
498 (output_loc_operands): Use it to compute branch displacement.
499 (int_loc_descriptor): New.
500 (mem_loc_descriptor): Dereference memory in the proper size.
501 Use DW_OP_plus_uconst when possible. Use int_loc_descriptor.
502 (loc_descriptor_from_tree): New.
503 (rtl_for_decl_location): Break out from ...
504 (add_location_or_const_value_attribute): ... here.
505 (add_bound_info): Use loc_descriptor_from_tree.
507 2000-10-31 Neil Booth <neilb@earthling.net>
509 * cpp.texi: Update for new command line assertion syntax.
510 * cpplib.c (cpp_define): Simplify a bit.
511 (cpp_assert, cpp_unassert): Use handle_assertion.
512 (handle_assertion): New function; accept new command line
514 * testsuite/gcc.dg/cpp/assert3.c: New tests.
516 2000-10-31 Neil Booth <neilb@earthling.net>
518 * cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if
519 undefined. Remove #ifdef check.
520 * config/i386/sol2.h, config/rs6000/sol2.h, config/sparc/sol2.h:
521 Define STDC_0_IN_SYSTEM_HEADERS to 1.
523 2000-10-31 Jan Hubicka <jh@suse.cz>
524 Jakub Jelinek <jakub@redhat.com>
526 * config/i386/i386.h: Clarify CCNOmode description in comment.
527 (EXTRA_CC_MODES): Remove CCRCmode.
528 * config/i386/i386.c (ix86_comparison_operator): Remove CCRCmode.
529 (put_condition_code, ix86_match_ccmode): Likewise.
530 (ix86_cc_mode): Likewise. Fix comment.
531 (ix86_expand_strlensi_unroll_1): *rc patterns are gone.
532 * config/i386/i386.md: Add unspec 12 description.
533 (adddi3 split): Use unspec 12 instead of CCRCmode.
534 (addsi3_carry_rc): Remove.
535 (addsi3_cc, addqi3_cc): New patterns.
536 (addsi_3): Swap operands, match CCZmode.
537 (addsi_4): Rewritten.
538 (addsi_5): Renamed from addsi_6.
540 (addhi_3): Swap operands, match CCZmode.
541 (addhi_4): Rewritten.
542 (addhi_5): Renamed from addhi_6.
544 (addqi_3): Swap operands, match CCZmode.
545 (addqi_4): Rewritten.
546 (addqi_5): Renamed from addqi_6. Use =q constraint for clobber.
547 (subsi3_carry_rc): Removed.
548 (iorqi_3): Use =q constraint for clobber.
549 (xorqi_cc_2): Likewise.
550 (negdi2_1 split): Don't use CCRCmode, use ltu instead of gtu.
551 (x86_movsicc_0_m1_rc): Removed.
552 (cmp?i peepholes): Remove neg. Use CCGCmode instead of CCRCmode.
554 2000-10-31 Joseph S. Myers <jsm28@cam.ac.uk>
556 * c-typeck.c (build_unary_op): If pedantic, pedwarn for increment
557 and decrement of complex types.
559 2000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
561 * builtins.c (expand_builtin_fputs): When deleting NOP calls to
562 builtin fputs, ensure we still evaluate the stream in case it
565 2000-10-31 Jakub Jelinek <jakub@redhat.com>
567 * expr.c (do_store_flag): Pass operand_mode instead of GET_MODE (op0)
570 Tue Oct 31 15:33:27 2000 J"orn Rennecke <amylaar@redhat.com>
572 * sh-protos.h (reg_no_subreg_operand, emit_fpscr_use): Don't declare.
573 (fp_extended_operand, emit_fpscr_use): Likewise.
574 * sh.c (reg_no_subreg_operand, fp_extended_operand): Delete functions.
575 (fpul_operand): New function.
576 * sh.h (PREDICATE_CODES): Remove reg_no_subreg_operand and
577 fp_extended_operand. Add fpul_operand.
578 * sh.md (mulsf3, mulsf3_i4): Use fp_arith_reg_operand for "f" operands.
579 (mulsf3_ie, macsf3, cmpgtsf_t, cmpeqsf_t, ieee_ccmpeqsf_t): Likewise.
580 (cmpgtsf_t_i4, cmpeqsf_t_i4, ieee_ccmpeqsf_t_4, negsf2): Likewise.
581 (negsf2_i, sqrtsf2, sqrtsf2_i, abssf2, abssf2_i, adddf3): Likewise.
582 (adddf3_i, subdf3, subdf3_i, muldf3, muldf3_i, divdf3): Likewise.
583 (divdf3_i): Likewise.
584 (floatsisf2): Likewise. Use fpul_operand for 'y' operand.
585 (floatsisf2_i4, floatsisf2_ie, fix_truncsfsi2): Likewise.
586 (fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i): Likewise.
587 (fix_truncdfsi2, fix_truncdfsi2_i, extendsfdf2): Likewise.
588 (extendsfdf2_i4, truncdfsf2, truncdfsf2_i4): Likewise.
590 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
592 * config/i386/i386.c (ix86_init_builtins): Correct return type
593 building v4hi_ftype_v4hi_int_int tree node.
594 (ix86_expand_builtin): Use correct operand numbers 0 and 1.
595 Copy operand 0 into a Pmode register, don't generate a MEM rtx.
597 * config/i386/i386.md (sse_movntdi): Use mmx register constraint
599 (mmx__uavgv8qi3): Correct insn mnemonic.
600 (mmx_psadbw): Correct insn mnemonic. Use V8QI mode for operands 1 and 2.
601 (mmx_punpckhwd): Correct insn mnemonic.
602 (mmx_punpckhdq): Likewise.
603 (mmx_punpcklwd): Likewise.
604 (mmx_punpckldq): Likewise.
605 (prefetch): Use immediare_operand and 'n' constraint for operand 1.
606 Renumber case labels to match the _mm_prefetch constants defined in
609 * recog.c (split_all_insns): Don't try to call cleanup_subreg_operands
610 if the splitter didn't emit new insns.
611 Make sure we call cleanup_subreg_operands even when splitting the last
612 insn in a basic block.
614 * invoke.texi (Debugging Options): Describe -do.
615 * toplev.c (enum_dump_file_index): New entry DFI_postreload.
616 (dump_file): Likewise.
617 (rest_of_compilation): Split .greg dump into .greg and .postreload.
619 2000-10-30 Neil Booth <neilb@earthling.net>
621 * cppfiles.c (stack_include_file): Check for stacked contexts
623 * cpphash.h (_cpp_do__Pragma): New prototype.
624 * cppinit.c (cpp_reader_init): Add _Pragma keyword to hash table.
626 * cpplex.c (skip_escaped_newlines): Only process trigraphs and
627 escaped newlines if !(buffer->from_stage3).
628 (_cpp_lex_token): Warn about missing newlines iff
629 !buffer->from_stage3.
631 * cpplib.c (get__Pragma_string, destringize,
632 _cpp_do__Pragma): New functions.
633 (run_directive): Set output_line for _Pragma to avoid line
634 markers in output. Set from_stage3 and prevent macro expansion
635 for _Pragma and command-line options. Check buffer exhaustion.
636 (cpp_push_buffer): Don't check for stacked macro contexts, as
637 this is perfectly legitimate for _Pragma. Move the check to
638 stack_include_file instead. Set from_stage3 iff buffer is
641 * cpplib.h (struct cpp_buffer): Make warned_cplusplus_comments
642 unsigned. New boolean from_stage3.
643 (struct spec_nodes): Add n__Pragma.
645 * cppmacro.c (enter_macro_context): Flip sense of return value.
646 (_cpp_get_token): Handle _Pragma operator.
648 2000-10-30 Phil Edwards <pme@sources.redhat.com>
650 * gcc.texi: The C++ standard isn't "draft" anymore.
652 2000-10-30 Mark Mitchell <mark@codesourcery.com>
654 * cppmacro.c (builtin_macro): Use NT_VOID, not T_VOID.
656 2000-10-29 Neil Booth <neilb@earthling.net>
658 * cpplib.c (skip_rest_of_line): Use _cpp_get_token.
660 2000-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
662 * toplev.c, flags.h, fold-const.c, real.c, rtl.c,
663 fixinc/inclhack.def: Change comments mentioning C9X to refer to
666 * invoke.texi: Document that -V will only work for very similar
667 versions of driver and compiler.
669 2000-10-29 Neil Booth <neilb@earthling.net>
671 * cppmacro.c (_cpp_create_definition): Optimize the case of
672 a macro defined to itself.
674 2000-10-29 Neil Booth <neilb@earthling.net>
676 * cpplex.c (save_comment): Don't store new lines in C++ comments.
678 2000-10-29 Michael Hayes <mhayes@redhat.com>
680 * integrate.c (copy_insn_list): Copy the unchanging flag for calls.
682 2000-10-28 Geoffrey Keating <geoffk@cygnus.com>
684 * cpphash.c (cpp_forall_identifiers): Add context variable
685 for callback routine.
686 * cppmain.c (dump_macro): Update to match cpp_forall_identifiers
688 (main): Call cpp_forall_identifiers with null context.
689 * cpplib.h (cpp_forall_identifiers): Update prototype.
691 * cppmain.c: Make `parse_in' and `print' static.
693 2000-10-28 Alan Modra <alan@linuxcare.com.au>
695 * c-decl.c (finish_function): Clear c_function_name_declared_p.
697 2000-10-28 Richard Henderson <rth@redhat.com>
699 * regrename.c (scan_rtx_address): Frob action, not class,
700 when trying to disable optimization.
702 2000-10-28 Mark Mitchell <mark@codesourcery.com>
704 * c-semantics.c (make_rtl_for_local_static): Don't clobber
707 2000-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
709 * configure.in: Determine and substitute gcc_version_full.
710 * configure: Regenerate.
711 * gccbug.in: Use it to give full version. Don't allow
714 2000-10-28 Richard Henderson <rth@redhat.com>
716 * recog.c (split_all_insns): Run cleanup_subreg_operands
719 * regrename.c (regrename_optimize): Verify that all registers of
720 a multiple register mode are available.
721 (scan_rtx_address): Accept the mode of the address; all callers
724 * cpplib.c (run_directive): Fix prototype.
726 2000-10-28 Bernd Schmidt <bernds@redhat.co.uk>
728 * reload.c (find_reloads): Distinguish "wins" so that we know whether
729 a given operand won because of a matching constraint or not; then use
730 that information to compute goal_alternative_matched properly.
731 * reload1.c (choose_reload_regs): Never set reload_override_in for an
734 * config/ia64/ia64.h (RTX_COSTS): A few more entries, and a more
735 accurate value for MULT.
736 * config/ia64/ia64.c (ia64_print_operand): Require probability to be
737 2% or > 98% before using static branch prediction bits.
739 2000-10-28 Neil Booth <neilb@earthling.net>
743 * cpplib.c (struct answer): New.
744 (struct if_stack): Use cpp_lexer_pos rather than line and col.
745 Rename cmacro mi_cmacro.
746 (struct directive, KANDR, STDC89, EXTENSION, COND, IF_COND, INCL,
747 IN_I): New directive and flags.
748 (skip_rest_of_line, check_eol, run_directive, glue_header_name,
749 parse_answer, parse_assertion, find_answer): New functions.
750 (parse_ifdef, detect_if_not_defined, validate_else): Remove.
751 (lex_macro_node): New function to replace parse_ifdef and
754 (_cpp_handle_directive): New function, combines _cpp_check_directive
755 and _cpp_check_linemarker.
757 (do_define, do_undef, parse_include, do_include, do_import,
758 do_include_next, read_line_number, do_line, do_ident, do_pragma,
759 do_pragma_once, do_pragma_poison, do_pragma_dependency):
760 Update for new token getting interface.
762 (do_ifdef, do_ifndef, do_if, do_else, do_endif, push_conditional)
763 : Update for new multiple-include optimisation technique.
764 (do_elif): Don't forget to invalidate controlling macros.
766 (unwind_if_stack, cpp_defined, cpp_push_buffer, cpp_pop_buffer): Update.
767 (parse_assertion, parse_answer, find_answer, _cpp_test_assertion):
768 Functions to handle assertions with the new token interface.
769 (do_assert, do_unassert): Use them.
771 (cpp_define, _cpp_define_builtin, cpp_undef, cpp_assert, cpp_unassert):
774 (_cpp_init_stacks): Register directive names. Don't register special
777 * cpperror.c (print_containing_files, _cpp_begin_message): Update to
778 new position recording regime.
779 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
780 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
781 cpp_pedwarn_with_file_and_line): Update for _cpp_begin_message changes.
782 (cpp_type2name): Move to cpplex.c.
784 * cppexp.c (parse_charconst): spec_nodes is no longer a pointer.
785 (parse_defined): Update to handle new multiple include optimisation
786 method. Remove poisoned identifier warning.
787 (parse_assertion, TYPE_NAME): Delete.
788 (lex): Update for multiple include optimisation, removal of
789 CPP_DEFINED, to use _cpp_test_assertion for assertions and
791 (_cpp_parse_expr): Update for MI optimisation, and to use op_as_text.
792 (op_as_text): New function, to wrap cpp_token_as_text.
794 * cppfiles.c (stack_include_file, _cpp_pop_file_buffer):
795 Update for MI optimisation.
796 (_cpp_execute_include): Take a token rather than 3 arguments. Fix
797 segfault on diagnostic.
798 (_cpp_compare_file_date): Take a token rather than 3 args.
799 (cpp_read_file): Work correctly for zero-length files.
801 * cpphash.c (_cpp_init_macros, _cpp_cleanup_macros): Rename
802 _cpp_init_hashtable and _cpp_cleanup_hashtable.
803 (cpp_lookup): Place identifiers at front of identifier pool
804 for _cpp_lookup_with_hash.
805 (_cpp_lookup_with_hash): Require identifiers to be at the front of
806 the identifier pool. Commit the memory if not already in the
809 * cppinit.c (cpp_reader_init): Move cpp_init_completed test to top.
810 Initialise various members of cpp_reader, memory pools, and the
812 (cpp_printer_init): Delete.
813 (cpp_cleanup): Update.
814 (struct builtin, builtin_array, initialize_builtins): Update for new
815 hashnode definition and builtin handling.
816 (cpp_start_read, cpp_finish): Don't take or initialise a
819 * cpplib.h (cpp_printer, cpp_toklist, CPP_DEFINED, BOL,
820 PASTED, VAR_ARGS, BEG_OF_FILE, IN_DIRECTIVE, KNOWN_DIRECTIVE,
821 T_VOID, T_SPECLINE, T_DATE, T_FILE, T_BASE_FILE, T_INCLUDE_LEVEL,
822 T_TIME, T_STDC, T_OPERATOR, T_POISON, T_MACRO, T_ASSERTION): Delete.
823 (struct cpp_pool, struct cpp_macro, struct cpp_lexer_pos,
824 struct cpp_lookahead, CPP_DHASH, enum mi_state, enum mi_ind,
825 NO_EXPAND, VARARGS_FIRST, struct cpp_token_with_pos,
826 struct toklist, struct cpp_context, struct specnodes,
827 TOKEN_LOOKAHEAD, TOKEN_BUFFSIZE, NODE_OPERATOR, NODE_POISONED,
828 NODE_BUILTIN, NODE_DIAGNOSTIC, NT_VOID, NT_MACRO, NT_ASSERTION,
829 enum builtin_type, cpp_can_paste): New.
830 (struct cpp_token): Delete line and col members.
831 (struct cpp_buffer): New member output_lineno.
832 (struct lexer_state): Delete indented, in_lex_line, seen_dot.
833 Add va_args_ok, poisoned_ok, prevent_expansion, parsing_args.
834 (struct cpp_reader): New members lexer_pos, macro_pos, directive_pos,
835 ident_pool, temp_string_pool, macro_pool, argument_pool, string_pool,
836 base_context, context, directive, mi_state, mi_if_not_defined,
837 mi_lexed, mi_cmacro, mi_ind_cmacro, la_read, la_write, la_unused,
838 mlstring_pos, macro_buffer, macro_buffer_len.
839 Delete members mls_line, mls_column, token_list, potential_control_macro,
840 temp_tokens, temp_cap, temp_alloced, temp_used, first_directive_token,
841 context_cap, cur_context, no_expand_level, paste_level, contexts, args,
842 save_parameter_spellings, need_newline, .
843 Change type of date, time and spec_nodes members.
844 Change prototypes for include and ident callbacks.
845 (struct cpp_hashnode): Change type of name. Remove union members
846 expansion and code. Add members macro, operator and builtin.
848 (cpp_token_len, cpp_token_as_text, cpp_spell_token, cpp_start_read,
849 cpp_finish, cpp_avoid_paste, cpp_get_token, cpp_get_line,
850 cpp_get_output_line, cpp_macro_definition, cpp_start_lookahead,
851 cpp_stop_lookahead): New prototypes.
852 (cpp_printer_init, cpp_dump_definition): Delete prototypes.
854 (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr, ufputs):
857 * cpphash.h (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr,
858 ufputs): Move to cpplib.h.
859 (enum spell_type, struct token_spelling, _cpp_token_spellings, TOKEN_SPELL,
860 TOKEN_NAME, struct answer, FREE_ANSWER, KANDR, STDC89, EXTENSION,
861 COND, EXPAND, INCL, COMMENTS, IN_I, struct directive, directive_handler,
862 struct spec_nodes, _cpp_digraph_spellings, _cpp_free_temp_tokens,
863 _cpp_init_input_buffer, _cpp_grow_token_buffer, _cpp_init_toklist,
864 _cpp_clear_toklist, _cpp_expand_token_space, _cpp_expand_name_space,
865 _cpp_equiv_tokens, _cpp_equiv_toklists, _cpp_process_directive,
866 _cpp_run_directive, _cpp_get_line, _cpp_get_raw_token, _cpp_glue_header_name,
867 _cpp_can_paste, _cpp_check_directive, _cpp_check_linemarker,
868 _cpp_parse_assertion, _cpp_find_answer): Delete.
869 (VALID_SIGN, ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE, POOL_SIZE,
870 POOL_USED, POOL_COMMIT, struct cpp_chunk, _cpp_lex_token, _cpp_init_pool,
871 _cpp_free_pool, _cpp_pool_reserve, _cpp_pool_alloc, _cpp_next_chunk,
872 _cpp_lock_pool, _cpp_unlock_pool, _cpp_test_assertion,
873 _cpp_handle_directive, DSC): New.
874 (struct include_file): New member defined.
876 (DO_NOT_REREAD, _cpp_begin_message, _cpp_execute_include,
877 _cpp_compare_file_date): Update.
878 (_cpp_pop_context, _cpp_get_token, _cpp_free_lookaheads, _cpp_push_token): New.
879 (_cpp_init_macros, _cpp_cleanup_macros): Rename to _cpp_init_hashtable,
880 _cpp_cleanup_hashtable.
882 * Makefile.in: Remove cppoutput.c.
884 * cppoutput.c: Delete
886 * fixheader.c (read_scan_file): Update for new cpp_get_token
888 (recognized_function): New argument LINE.
890 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
891 new cpp_get_token prototype.
893 * scan.h (recognized_function): Update prototype.
895 * po/POTFILES.in: Remove cppoutput.c.
897 2000-10-27 Mark Mitchell <mark@codesourcery.com>
899 * c-typeck.c (check_init_type_bitfields): Remove.
900 (constructor_incremental): Likewise.
901 (struct constructor_stack): Remove incremental bit.
902 (struct initializer_stack): Likewise.
903 (start_init): Don't play with constructor_incremental.
904 (finish_init): Likewise.
905 (really_start_incremental_init): Likewise.
906 (push_init_level): Likewise.
907 (pop_init_level): Likewise.
908 (output_init_level): Likewise.
909 (output_pending_init_elements): Likewise.
911 2000-10-21 Mike Coleman <mcoleman2@kc.rr.com>
913 * c-pragma.c (handle_pragma_pack): Initialize align to -1.
914 Improve error messages. Correct parsing of
915 #pragma pack(pop [,id]). Do not check the user-supplied
916 alignment if we're popping.
918 * gcc.dg/pack-test-1.c: New test case.
919 * gcc.dg/pack-test-2.c: New test case.
920 * gcc.dg/pack-test-1.h: New file.
922 2000-10-27 Neil Booth <neilb@earthling.net>
926 2000-10-27 Kelley Cook <kelley.cook@home.com>
928 * invoke.texi: Document -mintel-syntax
930 2000-10-27 Richard Henderson <rth@redhat.com>
932 * invoke.texi: Document -frename-registers. Add it to -O3.
933 * toplev.c (rest_of_compilation): Run regrename before ifcvt2.
934 (enum dump_file_index, dump_file): Update order.
935 (main): Set flag_rename_registers at -O3.
937 2000-10-27 Richard Henderson <rth@redhat.com>
939 * config/alpha/alpha.h (enum reg_class): Add PV_REG.
940 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
941 (REG_CLASS_FROM_LETTER): Assign it to 'c'.
942 * config/alpha/alpha.md (call_osf_1): Use it.
943 (call_value_osf_1): Likewise.
945 * config/ia64/ia64.c: Revert 10-23 patch.
946 (ia64_hard_regno_rename_ok): New.
947 * config/ia64/ia64-protos.h: Declare it.
948 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK): Use it.
950 2000-10-27 Bernd Schmidt <bernds@redhat.co.uk>
951 Richard Henderson <rth@redhat.com>
953 * regrename.c: Rewrite to handle multi-register modes and
954 cond_exec instructions.
955 * Makefile.in (regrename.o): Update dependancies.
956 * recog.h (struct operand_alternative): Add is_address.
957 * recog.c (preprocess_constraints) [case 'p']: Set it.
959 2000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
961 * configure.in: If not NO_MINUS_C_MINUS_O, substitute
962 OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
963 top level. Kill oldstyle_subdirs. Do not include
964 $srcdir/$s/Makefile.in in all_lang_makefiles, but do include
965 $outputs. Do not run configure.lang from config.status.
966 Rearrange warning-flag logic to correspond to what the
967 makefile wants. Put special vax stage1 options in
968 @stage1_flags@ not @stage1_warn_cflags@. Don't do anything
969 with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
970 (--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
971 switch is given, nothing otherwise.
972 * configure.lang: Delete.
974 * Makefile.in: Expunge all traces of extra_c_objs,
975 extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
976 @maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
977 warning options via a three level scheme so that -pedantic and
978 -Wtraditional are not used for non-C front ends: LOOSE_WARN,
979 STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
980 WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
981 Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
982 Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
983 LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
984 generation rules. Wrap all rules that change the current
985 directory in parentheses; pmake doesn't spawn a new shell for
986 each command. Expunge all references to $(P). When one
987 command depends on another and they're run all at once, use &&
988 to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
989 deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
992 * objc/Make-lang.in: Wrap all rules that change the current
993 directory in parentheses. Expunge all references to $(P).
994 When one command depends on another and they're run all at
995 once, use && to separate them, not ;. Add OUTPUT_OPTION to
996 all object-file generation rules. Delete obsolete variables.
997 * objc/Makefile.in: Delete.
999 2000-10-27 Jakub Jelinek <jakub@redhat.com>
1001 * calls.c (expand_call): If sibcall_failure is set during pass 1,
1002 clear tail_call_insns as well.
1004 2000-10-27 Nick Clifton <nickc@redhat.com>
1006 * config/arm/arm-protos.h (arm_function_ok_for_sibcall): Add
1009 2000-10-26 Richard Henderson <rth@redhat.com>
1011 * calls.c (expand_call): Supress sibcall if we have a
1012 BLKmode return in registers.
1014 2000-10-26 Bernd Schmidt <bernds@redhat.co.uk>
1016 * ia64.h (PREFERRED_RELOAD_CLASS): Force floating point constants
1019 2000-10-26 Nathan Sidwell <nathan@codesourcery.com>
1021 * tree.c (make_node, case 't'): Set alignment to that of
1023 * expr.c (move_by_pieces_ninsns): Abort if some length remains.
1025 2000-10-25 Mark Mitchell <mark@codesourcery.com>
1027 * Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
1028 * configure.in (enable-libstdcxx-v3): Arrange to have
1029 HAVE_LIBSTDCXX_V3 substituted into the output files.
1031 2000-10-25 Richard Henderson <rth@redhat.com>
1033 * recog.c (constrain_operands): Initialize which_alternative
1034 before no alternatives early exit.
1036 * cse.c (find_comparison_args): Check that we can reverse a
1037 comparison if needed before accepting the substitution.
1039 * reload.c (find_reloads_address_part): Kill rtx obstack hackery.
1041 * simplify-rtx.c (simplify_relational_operation): Sign extend
1042 low words before sign extending to high words.
1044 2000-10-25 Nick Clifton <nickc@redhat.com>
1046 * config/mcore/mcore.c: Include config.h before system.h.
1048 2000-10-25 Ray Essick <essick@ddna.labs.mot.com>
1050 * config/mcore/mcore.md (return): Force function epilogue to
1051 always be generated to work around epilogue suppression bug in
1054 2000-10-25 Joseph S. Myers <jsm28@cam.ac.uk>
1056 * c-decl.c (grokdeclarator): Move warning for qualified void
1057 return types with -pedantic to when the function type is
1058 constructed. At -W, warn in general for qualified function return
1059 types, except for volatile void.
1060 * invoke.texi: Document this new warning at -W.
1062 2000-10-25 Neil Booth <neilb@earthling.net>
1064 * cpp.texi: Update with implementation-defined behavior and
1067 2000-10-25 Jakub Jelinek <jakub@redhat.com>
1069 * stor-layout.c (layout_type): If TYPE_ALIAS_SET was already set on the
1070 incomplete type force it into alias set 0.
1072 Wed Oct 25 01:02:44 EDT 2000 John Wehle (john@feith.com)
1074 * alias.c: Include basic-block.h.
1075 (loop_p): New function.
1076 (mark_constant_function): Use it.
1077 * Makefile.in (alias.o): Update dependencies.
1079 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
1081 * config/mn10300/mn10300.c (secondary_reload_class): Treat pseudos
1084 2000-10-24 Jim Wilson <wilson@cygnus.com>
1086 * expmed.c (store_bit_field): Move integer pun code down after
1087 code that calls emit_move_insn for entire register move.
1088 * stor-layout.c (compute_record_mode): Revert Mar 25, Aug 18, and
1089 Oct 20 changes. Only store mode in TYPE_MODE if RECORD_TYPE.
1091 2000-10-24 Richard Henderson <rth@cygnus.com>
1093 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Don't consider pic
1094 register stable if PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
1096 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
1098 * gcse.c (cprop_insn): do not propagate constants into jump_insn
1099 for machines with CC0 more than once.
1101 2000-10-24 Richard Henderson <rth@cygnus.com>, Aldy <aldyh@cygnus.com>
1103 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS): Treat
1104 pseudos just like memory.
1106 2000-10-24 Alexandre Oliva <aoliva@redhat.com>
1108 * combine.c (distribute_notes): Discard REG_LIBCALL and REG_RETVAL
1109 when deleting libcall sequence collapsed to a single instruction.
1111 2000-10-24 Andrew Haley <aph@cygnus.co.uk>
1113 * expr.c (do_store_flag): Don't crash if either side of a
1114 comparison is error_mark_node.
1116 2000-10-24 Jakub Jelinek <jakub@redhat.com>
1118 * sibcall.c (purge_mem_unchanging_flag): New function.
1119 (optimize_sibling_and_tail_recursive_calls): Call it.
1121 2000-10-24 Philipp Thomas <pthomas@suse.de>
1123 * Makefile.in (check-po): New target for doing checks in the po
1124 subdir if all languages configured.
1125 (CHECK_TARGETS): Add @CHECK_PO@, replaced with check-po via
1126 configure if NLS is enabled.
1127 * configure.in: If NLS is enabled, substitute CHECK_PO by check-po,
1128 otherwise leave empty.
1129 * configure: Regenerate.
1131 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
1133 * i386.c (print_operand): Handle new 'A' formatting code.
1134 387 opcodes need suffixes even with -mintel-syntax.
1135 Check for explicit size override (codes 'b', 'w' and 'k').
1136 (print_operand_address): Check if register prefix is needed when
1137 emitting `ds' segment override.
1138 * i386.h: Add comment about new 'A' formatting code.
1139 * i386.md (jump and call patterns): Emit absolute references using %A.
1141 2000-10-23 Richard Henderson <rth@cygnus.com>
1143 * config/ia64/ia64.c (ia64_expand_prologue): Mark extra
1144 output registers as fixed.
1145 (ia64_function_epilogue): Undo output fixation.
1147 2000-10-23 Richard Henderson <rth@cygnus.com>
1149 * config/alpha/alpha.md: Add names for all unnamed insns; use
1150 define_insn_and_split in some obvious places.
1152 (zero_extendqihi2): Use an expander w/ nonimmediate_operand for BWX.
1153 (zero_extendqisi2, zero_extendqidi2): Likewise.
1154 (zero_extendhisi2, zero_extendhidi2): Likewise.
1155 (abs splitters): Fix match_scratch operand number.
1156 (bcc_reverse): Swap pc & label instead of non-canonical compare.
1158 2000-10-23 Jim Wilson <wilson@cygnus.com>
1160 * ia64.c (ia64_print_operand, case 'r'): Correct comment. Handle
1162 * ia64.md (cmpsi_adjusted): Use %r3.
1163 (cmpdi_adjusted): Likewise.
1165 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
1167 * config/i386/att.h (ASM_FILE_START): Define.
1169 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
1171 * config/i386/linux.h (ASM_FILE_START): Define.
1173 Wed Oct 18 11:16:40 2000 Donald Lindsay <dlindsay@cygnus.com>
1175 * gcc/configure.in: m68k-coff tm_file should not have libgloss.h,
1176 since this (only) drags in a crt0.o reference that the .ld files
1179 2000-10-23 Geoff Keating <geoffk@cygnus.com>
1181 * reload1.c (reload_reg_reaches_end_p): A RELOAD_OTHER can
1182 overwrite the value in a RELOAD_FOR_INPUT and other kinds of
1183 reloads just like an RELOAD_FOR_OUTPUT would.
1185 * local-alloc.c (update_equiv_regs): Add an abort(). When
1186 deleting or moving insns, update reg_equiv[regno].init_insns.
1188 2000-10-23 Mark Mitchell <mark@codesourcery.com>
1190 * c-tree.texi: Improve documentation for IF_STMTs and related
1191 conditional statements.
1193 2000-10-22 Mark Mitchell <mark@codesourcery.com>
1195 * expr.c (do_preexpand_calls): Remove.
1196 (same_from_p): Don't use CALL_EXPR_RTL.
1197 (expand_expr): Don't call preexpand_calls, or use CALL_EXPR_RTL.
1198 (preexpand_calls): Remove.
1199 * tree.c (first_rtl_op): Remove CALL_EXPR case.
1200 (unsave_expr_1): Likewise.
1201 * tree.def (CALL_EXPR): Give it only two slots.
1202 * tree.h (CALL_EXPR_RTL): Remove.
1204 2000-10-21 Chandrakala Chavva <cchavva@redhat.com>
1206 * libgcc-std.ver (__addvsi3, __addvdi3, __subvsi3, __subvdi3,
1207 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
1210 2000-10-22 Alexandre Oliva <aoliva@redhat.com>
1212 * calls.c (combine_pending_stack_adjustment_and_call): Don't
1213 adjust stack when unadjusted_alignment ends up as zero.
1215 2000-10-22 Joseph S. Myers <jsm28@cam.ac.uk>
1217 * fixinc/genfixes: Remove EGCS reference.
1218 * install.texi: Remove EGCS reference.
1219 * INSTALL: Regenerate.
1221 2000-10-22 Mark Mitchell <mark@codesourcery.com>
1223 * tree.h (TYPE_IS_SIZETYPE): Add more documentation.
1225 2000-10-21 Joseph S. Myers <jsm28@cam.ac.uk>
1227 * diagnostic.c: Remove EGCS reference in comment.
1229 Sat Oct 21 08:24:25 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1231 * loop.c (strength_reduce): Fix error in last change.
1233 2000-10-20 David Edelsohn <edelsohn@gnu.org>
1235 * Makefile.in (SHLIB_NM_FLAGS): New.
1236 (libgcc.mk): Pass it.
1237 * mklibgcc.in (libgcc.map): Use it.
1239 * rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_LIBS,
1240 SHLIB_MKMAP, SHLIB_MAPFILES, SHLIB_NM_FLAGS): New.
1242 2000-10-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1244 * mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.
1246 * sparc.c (load_pic_register): Delete unused varaible.
1248 * libgcc2.c (__addvsi3): Delete unused variable.
1250 * libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
1251 __subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
1252 __negvdi2): Prototype.
1254 * ssa.c (apply_delayed_renames): Avoid undefined operation.
1256 * toplev.c (display_target_options): Make static to match
1257 prototype. Delete empty declaration.
1259 2000-10-20 Tom Tromey <tromey@cygnus.com>
1261 * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
1262 * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
1264 Fri Oct 20 17:05:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1266 * expr.c (expand_expr, case SAVE_EXPR): Set RTX_UNCHANGING_P on
1268 (expand_expr_unaligned, case ARRAY_REF): Check that index is
1269 a constant before comparing it; use tree_low_cst.
1270 * tree.c (save_expr): Set TREE_READONLY.
1271 (substitute_expr): Return inside of NON_LVALUE_EXPR.
1272 (build, build1): Set TREE_READONLY if all operands are.
1273 (build_index_type): If upper bound is a negative number, lower
1274 bound is zero and sizetype is unsigned, use upper bound of one and
1277 2000-10-20 David Edelsohn <edelsohn@gnu.org>
1279 * gcc.c (process_command, main): Use "because" instead of
1280 "since" in error messages.
1282 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1284 * stor-layout.c (compute_record_mode): Use tree_low_cst.
1285 Don't use mode of field for record unless sizes are the same.
1286 (layout_type, case ARRAY_TYPE): Remove special bounds handling
1287 previously added for Ada; also change to using host_integerp
1290 * loop.c (strength_reduce): Show when new register made for
1291 giv is known to be a pointer and its aligment if so and known.
1292 (loop_dump_aux): Show VERBOSE parameter unused.
1294 * gcse.c (set_hash_table_size): Now unsigned.
1295 * sdbout.c (template_name_p): Add "const" to avoid warnings.
1296 (sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
1297 (sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
1298 (sdbout_end_epilogue): Remove variable NAME.
1299 * system.h (getopt): Add default definition.
1300 * config/alpha/alpha.c (print_operand): Don't continue processing
1301 after issuing error.
1302 (summarize_insn): Avoid use of UL in constant.
1304 * function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
1306 * fold-const.c (force_fit_type): Unsigned values can overflow
1307 if they are sizetype.
1308 (int_const_binop): Don't use cache if overflows.
1310 2000-10-20 Richard Henderson <rth@cygnus.com>
1312 * function.c (locate_and_pad_parm): Zero alignment_pad.
1314 * regrename.c (rr_replace_reg): Rewrite to use recog_data to
1315 perform substitutions, and apply_change_group to see if it worked.
1317 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1319 * dwarf2out.c (add_bound_info): Also ignore COND_EXPR.
1321 * combine.c (struct undo): Change int to unsigned int.
1322 (do_SUBST_INT): Args are unsigned int.
1323 (make_extraction, force_to_mode): Use proper type when forming mask.
1324 (make_field_assignment): Likewise.
1326 2000-10-20 Joseph S. Myers <jsm28@cam.ac.uk>
1328 * c-common.c (check_format_info_recurse): Extract string constant
1329 initializers from non-volatile constant arrays and check them as
1331 * c-typeck.c (decl_constant_value): Don't check pedantic or check
1332 for DECL_MODE (decl) != BLKmode.
1333 (decl_constant_value_for_broken_optimization): New function which
1334 includes these checks.
1335 (default_conversion, convert_for_assignment, digest_init): Use
1336 decl_constant_value_for_broken_optimization instead of
1337 decl_constant_value.
1339 2000-10-20 Mark Mitchell <mark@codesourcery.com>
1341 * tree.h (DECL_ALIGN_UNIT): New macro.
1343 2000-10-14 Marek Michalkiewicz <marekm@linux.org.pl>
1345 * config/avr/avr-protos.h (avr_output_bld): New.
1346 (out_shift_with_cnt): Add t_len argument.
1347 * config/avr/avr.c (avr_num_arg_regs): Remove -mpack-args.
1348 (output_movqi, output_movhi, output_movsisf): Optimize loading
1349 any constant with exactly one bit set to NO_LD_REGS.
1350 (out_shift_with_cnt): Optimize output code for size or speed,
1351 depending on optimize_size. Handle small shift counts as well
1352 (if not hand-optimized in ?sh??i3_out). Shifts can be done
1353 with or without a scratch register, with help of __tmp_reg__
1354 or __zero_reg__ if necessary. Add T_LEN argument to pass the
1355 length of TEMPLATE in words, return total insn length in *LEN.
1356 (ashlqi3_out, ashrqi3_out, lshrqi3_out): Change all calls to
1357 out_shift_with_cnt to work with the above change.
1358 (ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out, lshrhi3_out,
1359 lshrsi3_out): Likewise. Optimize more known shift count cases.
1360 Remove cases already well optimized in out_shift_with_cnt.
1361 (avr_output_bld): New function.
1362 * config/avr/avr.h (MASK_PACK_ARGS, TARGET_PACK_ARGS): Remove.
1363 (TARGET_SWITCHES): Remove -mpack-args backward compatibility.
1364 * config/avr/avr.md (*reload_inqi, *reload_inhi, *reload_insi):
1365 Add reload_completed to insn condition - only for peepholes.
1366 (ashlqi3, ashrqi3, lshrqi3): Correct insn length for shift counts
1367 in a register or memory.
1368 (ashlhi3, ashlsi3, ashrhi3, ashrsi3, lshrhi3, lshrsi3): Likewise.
1369 Do not require a scratch register.
1370 (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
1371 *lshrhi3_const, *lshrsi3_const): New insns and matching peepholes.
1372 Optimize shifts by known count using a scratch register, but only
1373 if one is still available after register allocation.
1375 2000-10-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1377 * t-vax: New file. Don't build modules from libgcc1.c.
1379 Fri Oct 20 00:57:00 EDT 2000 John Wehle (john@feith.com)
1381 * alias.c: (mark_constant_function): Don't check pure functions.
1382 Initialize and end alias analysis.
1383 (nonlocal_mentioned_p): Rename from nonlocal_reference_p.
1384 Don't make a special exception for recursion. Handle
1385 UNSPEC_VOLATILE. Don't assume ASM_OPERANDS is non-local
1386 unless it's volatile.
1388 * local-alloc.c (equivalence): New structure.
1389 (reg_equiv): Define.
1390 (contains_replace_regs): Remove array and use
1392 (memref_referenced_p): Likewise.
1393 (no_equiv): Likewise.
1394 (update_equiv_regs): Likewise.
1396 (equiv_init_varies_p,
1397 equiv_init_movable_p): New functions.
1398 (update_equiv_regs): Use them. Use rtx_varies_p
1399 instead of function_invariant_p. Process insns
1400 from end to beginning. Allow a REG_EQUIV insn
1401 within the same loop as a use to be moved, also
1402 allow it to be moved out of a loop. Update
1403 REG_DEAD notes when substituting into an insn.
1405 2000-10-19 Jim Wilson <wilson@cygnus.com>
1407 * c-decl.c (start_decl): Check for error_mark_node type before using
1409 (finish_decl): Likewise. Don't give an error if decl type is
1410 already error_mark_node.
1412 * haifa-sched.c (compute_trg_info): Add explanatory comments.
1413 New local update_blocks. Use update_blocks to remove duplicates
1414 when computing update blocks. Check for bblst_table overflow.
1415 (schedule_block): Add explanatory comment. Reduce bblst_size by
1417 * config/ia64/ia64.md (movdi_symbolic): Document loss of REG_LABEL
1420 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
1422 * libgcc2.c (_mulvsi3): Change variables u and v to a and b.
1424 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
1426 * expmed.c: Minor corrections in comments.
1427 * invoke.texi: Added desciption for the new option -ftrapv.
1429 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
1431 * libgcc2.c: Added the missing #endif.
1433 Thu Oct 19 14:25:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
1435 * i386.h (CONST_OK_FOR_LETTER): Re-add 'N'; document.
1437 2000-10-18 Chandrakala Chavva <cchavva@redhat.com>
1439 * expmed.c (expand_mult): Don't do synth_mult optimization for -ftrapv.
1440 Use smulv_optab for -ftrapv.
1441 (expand_mult_highpart): Use unsigned multiply.
1442 (expand_divmod): Special-case division by -1.
1443 For EXACT_DIV_EXPR, do right shift first, then the multiply.
1444 For complex divide, use abs with unsigned result.
1445 * expr.c (force_operand): Use unsigned multiply.
1446 (expand_expr): Use overflow-trapping optabs for signed types if
1448 If flag_trapv, don't generate a recursive call with EXPAND_SUM
1449 if the type is signed and the original call wasn't EXPAND_SUM or
1451 * expr.h (addv_optab, subv_optab, smulv_optab, sdivv_optab): Declare.
1452 (negv_optab, absv_optab): Declare.
1453 * flags.h (flag_trapv): Declare.
1454 * genopinit.c (optabs): Add entries for addv_optab, subv_optab,
1455 smulv_optab, sdivv_optab, negv_optab and absv_optab.
1456 (gen_insn): Interpret '$P' as requiring an integer mode,
1457 including partial integer modes.
1458 * loop.c (emit_iv_add_mult): Use unsigned expand_mult_add.
1459 (product_cheap_p): Use unsigned expand_mult.
1460 * optabs.c (addv_optab, subv_optab, smulv_optab, sdivv_optab): Define.
1461 (negv_optab, absv_optab): Define.
1462 (expand_binop): Use overflow-trapping optabs for signed types if
1464 Handle negv_optab libe neg_optab.
1465 (expand_abs): Take result_unsignedp argument instead of unsignedp one.
1466 Use overflow-trapping optabs for signed result if flag_trapv.
1467 (expand_complex_abs): Use overflow-trapping optabs for signed types if
1469 Don't open-code complex absolute-value operation for flag_trapv.
1470 (init_optabs): Initialize addv_optab, subv_optab, smulv_optab,
1471 sdivv_optab, negv_optab and absv_optab.
1472 * toplev.c (flag_trapv): Define.
1473 (lang_independent_options f_options): Include flag_trapv.
1474 * tree.h (TYPE_TRAP_SIGNED): Define.
1475 * libgcc2.c (__addvsi3, __addvdi3, __subvsi3,__subvsi3, __subvdi3,
1476 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
1478 * Makefile.in: add _absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3
1479 _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2.
1481 2000-10-18 Geoffrey Keating <geoffk@cygnus.com>
1482 David V. Henkel-Wallace <gumby@cygnus.com>
1484 * config/i386/t-netware: Bring in from the Red Hat tree.
1485 * config/i386/netware.h: Likewise.
1486 * config/netware.h: Likewise.
1487 * config/rs6000/netware.h: Delete.
1488 * configure.in: Add i[34567]86-*-netware.
1489 * configure: Hand-edit to match configure.in change.
1491 2000-10-18 Mark Mitchell <mark@codesourcery.com>
1493 * c-common.h (flag_no_builtin): Declare.
1494 (flag_no_nonansi_builtin): Likewise.
1495 (c_common_nodes_and_builtins): Change prototype.
1496 * c-common.c (flag_no_builtin): New variable.
1497 (flag_no_nonansi_builtin): Likewise.
1498 (c_common_nodes_and_builtins): Remove parameters. Adjust
1500 * c-decl.c (flag_no_builtin): Remove.
1501 (flag_no_nonansi_builtin): Likewise.
1502 (init_decl_processing): Adjust call to
1503 c_common_nodes_and_builtins.
1505 2000-10-18 Marc Espie <espie@openbsd.org>
1507 * tm.texi (LIBGCC_SPEC): Synch with reality.
1509 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
1511 * c-common.c (check_format_types): Check for writing through a
1512 NULL pointer argument.
1514 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
1516 * tm.texi (Exception Region Output): Document
1517 DWARF_CIE_DATA_ALIGNMENT.
1518 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Wrap definition in
1520 [ENABLE_CHECKING] (reg_save): Abort if offset is not a multiple of
1521 DWARF_CIE_DATA_ALIGNMENT.
1523 2000-10-18 Michael Hayes <mhayes@cygnus.com>
1525 * basic-block.h (struct loop): Delete fields pre_header_root
1526 and pre_header_trace and replace with pre_header_edges
1527 and num_pre_header_edges.
1528 * flow.c (flow_loop_dump): Dump pre_header_edges.
1529 (flow_loops_free): Free pre_header_edges.
1530 (flow_loop_pre_header_scan): Calculate pre_header_edges.
1532 2000-10-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1534 * contrib.texi: Update references to steering committee members
1535 and Jeff Law's entry.
1537 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
1539 * c-common.c (CPLUSPLUS_STD_VER, C_STD_VER, C_STD_NAME): Define.
1540 (maybe_read_dollar_number, check_format_info_main): Use them for
1541 pedantic warning messages.
1543 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
1545 * c-common.c (check_format_info_main): Minor cleanup: move
1546 variables into inner scopes; initialize declarations where
1547 appropriate; don't hardcode "scanf" name on warning for zero
1550 2000-10-17 Mark Mitchell <mark@codesourcery.com>
1552 * c-common.c (back_end_hook): New variable.
1553 * c-common.h (back_end_hook): Declare it.
1554 * c-lang.c (finish_file): Use it.
1556 * emit-rtl.c (init_emit_once): Initialize the const_int_htab
1559 2000-10-18 Jan Hubicka <jh@suse.cz>
1561 * i386.c (ix86_comparison_operator, put_condition_code,
1562 ix86_match_ccmode, ix86_cc_mode): Handle CCRCmode.
1563 (ix86_expand_strlensi_unroll_1): Use CCRCmode.
1564 * i386.h (EXTRA_CC_MODES): Add CCRCmode.
1565 * i386.md (adddi and negdi splitter): Use CCRCmode.
1566 (add?i_3, add?i_4, add?i_5): Use CCRCmode; swap operands
1567 (subsi3_carry): add '*'
1568 (addsi3_carry_rc, subsi3_carry_rc, x86_movsicc_0_m1_rc): New.
1569 (cmp to add peep2): Use CCRCmode; swap operands.
1571 2000-10-18 Kazu Hirata <kazu@hxi.com>
1573 * h8300.c: Fix a comment typo.
1574 (round_frame_size): New.
1575 (compute_saved_regs): Likewise.
1578 (push_order): Remove.
1579 (pop_order): Likewise.
1580 (function_prologue): Rearrange code for readability.
1581 (function_epilogue): Likewise.
1583 * config/h8300/h8300.md: Remove an unnecessary sign_extend
1584 expander that is used when not optimizing. Output a tab after
1585 each assembly insns.
1587 * reorg.c: Fix formatting.
1589 2000-10-17 Joern Rennecke <amylaar@redhat.co.uk>
1591 * reload1.c (move2add_note_store): Check for simple
1592 auto-inc in destination.
1594 2000-10-17 Michael Chastain <chastain@redhat.com>
1596 * config/i386/i386-aout.h: define INT_ASM_OP.
1598 Tue Oct 17 20:11:08 2000 Alan Modra <alan@linuxcare.com.au>
1600 * pa.c (print_operand): Handle case 'c' for .vtable_inherit
1602 Tue Oct 17 20:05:51 2000 Martin Buchholz <martin@xemacs.org>
1604 * i370.md: Fix spelling typo.
1606 2000-10-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1608 * function.c (locate_and_pad_parm): Don't align stack unconditionally.
1609 Fixes execute/20001017-1.c on powerpc-linux-gnu.
1611 * expr.c (store_constructor): Apply MEM_ALIAS_SET to MEMs only.
1612 * rs6000/rs6000.c (rs6000_hash_constant): Use X0INT to access a
1615 * rs6000/rs6000.h (NO_DOLLAR_IN_LABEL, DOLLARS_IN_IDENTIFIERS,
1616 ENCODE_SECTION_INFO, ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Move from
1618 * rs6000/aix.h: ...to here.
1619 * rs6000/linux.h (ASM_APP_ON, ASM_APP_OFF): Define to Linux-style.
1621 2000-10-17 Jakub Jelinek <jakub@redhat.com>
1623 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.
1625 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Always use call, make
1626 sure linker can relax even the delay slot mov %g1,%o7, fix output
1629 2000-10-17 Kazu Hirata <kazu@hxi.com>
1631 * config/h8300/h8300.md: Remove an unnecessary zero_extend
1632 expander that is used when not optimizing. Output a tab after
1633 each assembly insns.
1635 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
1637 * gcc.c: New options --target-help.
1638 (process_command): Added code to parse this new option.
1639 * toplev.c (display_target_options): New function to support the
1641 * cppinit.c (new_pending_directive) : New option OPT_target__help.
1642 (cpp_handle_option): Support this new option.
1643 * invoke.texi: Added notes about --target-help option.
1645 2000-10-17 Graham Stott <grahams@redhat.com>
1647 * config/i386/i386.md (testqi_1): Add missing operand prefix
1649 * config/i386/i386-protos.h: Add missing prototype.
1651 2000-10-17 Diego Novillo <dnovillo@cygnus.com>
1653 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Symbol
1654 _GLOBAL_OFFSET_TABLE should not have a $ prefix when
1655 using -mintel-syntax.
1657 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
1659 * c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
1660 (format_types): Use it for printf.
1661 (maybe_read_dollar_number): Add parameter for the kind of format
1662 involved. Warn for multiple use for arguments if this is
1663 inappropriate for the kind of format involved.
1664 (check_format_info_main): Update calls to maybe_read_dollar_number.
1666 2000-10-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1668 * inclhack.def (hpux_maxint): Also apply fix to values.h.
1669 * fixincl.x: Rebuilt.
1671 2000-10-17 Alexandre Oliva <aoliva@redhat.com>
1673 * genrecog.c (write_switch): Return the first condition that needs a
1676 2000-10-17 Bernd Schmidt <bernds@redhat.co.uk>
1678 * c-tree.h (warn_sequence_point): Move declaration to...
1679 * c-common.h (warn_sequence_point): ... here.
1680 * c-decl.c (warn_sequence_point): Move definition to...
1681 * c-common.c (warn_sequence_point): ... here.
1682 (struct reverse_tree): New.
1683 (reverse_list, reverse_max_depth): New static variables.
1684 (build_reverse_tree, common_ancestor, modify_ok
1685 verify_sequence_points): New functions.
1686 (c_expand_expr_stmt): Call verify_sequence_points if -Wsequence-point.
1687 * c-typeck.c (check_modify_expr): Delete.
1688 (build_modify_expr): Don't call it.
1690 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
1692 * c-common.h (warn_missing_format_attribute): New variable.
1693 * c-decl.c (warn_missing_format_attribute): New variable.
1694 (c_decode_option): Decode -Wmissing-format-attribute and
1695 -Wno-missing-format-attribute.
1696 * c-common.c (check_function_format): If
1697 -Wmissing-format-attribute, give a warning where a vprintf or
1698 vscanf function is called by a function without its own printf or
1700 * toplev.c (documented_lang_options): Add
1701 -Wmissing-format-attribute.
1702 * invoke.texi: Document -Wmissing-format-attribute.
1704 2000-10-17 Marc Espie <espie@openbsd.org>
1706 * invoke.texi (-shared): Insist on requiring code generation flags
1707 to be used along with -shared, and document the subtle failure that
1708 may occur otherwise.
1710 2000-10-16 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1712 * pa.md (return_internal): Move `use' after `return'.
1714 2000-10-16 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
1716 * machmode.def: Correct comment.
1718 2000-10-16 Rodney Brown <RodneyBrown@mynd.com>
1720 * print-rtl.c (print_rtx_head): Constify.
1721 * rtl.h (print_rtx_head): Similarly.
1723 * config/pa/pa/pa-protos.h (output_64bit_and, output_64bit_ior):
1724 Constify char * return value.
1726 (output_64bit_and, output_64bit_ior): Constify char * return value.
1727 (pa_can_combine_p): Make static.
1728 (function_arg): Decorate unused `named' argument. Fix comment typo.
1729 (function_arg_partial_nregs): Decorate unused `named' argument.
1731 2000-10-16 Joseph S. Myers <jsm28@cam.ac.uk>
1733 * c-common.c (format_check_results): New structure.
1734 (finish_dollar_format_checking): Adjust to take a
1735 format_check_results * parameter.
1736 (check_format_info, check_format_info_recurse,
1737 check_format_info_main): Split check_format_info into three
1738 functions, the main checking going in check_format_info_main.
1739 Recurse when any reduction of the format string argument towards a
1740 string literal is done; go down both branches of a conditional
1741 expression. Don't warn for extra format arguments or empty format
1742 strings if they only occur in some branches of a conditional
1745 2000-10-16 Kazu Hirata <kazu@hxi.com>
1747 * config/h8300/h8300.c: Remove obstack. Include ggc.h.
1749 2000-10-16 Jakub Jelinek <jakub@redhat.com>
1751 * rtlanal.c (may_trap_p): Check operand modes of COMPARE.
1753 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
1755 * i386.md (*movsi_or): Switch operand order for intel syntax.
1757 2000-10-14 Joseph S. Myers <jsm28@cam.ac.uk>
1761 * gcc.texi (Contributing): Update.
1763 2000-10-13 Diego Novillo <dnovillo@cygnus.com>
1765 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Output final jump using
1766 appropriate assembler dialect.
1768 2000-10-13 Alexandre Oliva <aoliva@redhat.com>
1770 * c-common.c (c_expand_builtin): PARAMS-ize prototype.
1772 2000-10-12 Marek Michalkiewicz <marekm@linux.org.pl>
1774 * config/avr/avr.c (output_movhi, output_movsisf): Fix loading
1775 constants 1 and 2 to NO_LD_REGS.
1777 2000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1779 * Makefile.in (c-parse.c, tradcif.c): Create atomically.
1781 * objc/Make-lang.in (objc-parse.c): Likewise.
1783 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
1785 * arm.c: Include obstack.h
1786 (minipool_obstack, minipool_startobj): Define.
1787 (arm_add_gc_roots): Initialize them.
1788 (create_fix_barrier): Use our new obstack.
1789 (push_minipool_barrier, push_minipool_fix): Likewise.
1790 (arm_reorg): Release obstack memory.
1792 2000-10-13 Jakub Jelinek <jakub@redhat.com>
1794 * config/sparc/sparc.md (nonlocal_goto_receiver): Remove.
1795 (prologue, exception_receiver, builtin_setjmp_receiver): New
1797 * config/sparc/sparc.h (FINALIZE_PIC): Remove.
1798 * config/sparc/sparc-protos.h (finalize_pic): Remove.
1799 (load_pic_register): New prototype.
1800 * config/sparc/sparc.c (pic_setup_code): Remove.
1801 (finalize_pic): Rename to...
1802 (load_pic_register): ...this function.
1803 Don't look for nonlocal_goto_receivers and emit pic setup code
1804 directly. Don't check current_function_uses_pic_offset_table.
1806 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
1808 * tree.h (struct obstack): Declare.
1810 2000-10-12 Mark Mitchell <mark@codesourcery.com>
1813 * Makefile.in (ggc-callbacks.o): Remove target.
1814 (flow.o): Depend on GGC_H.
1815 * alias.c (init_alias_analysis):
1816 Remove ggc_p conditionals.
1817 (end_alias_analysis): Likewise.
1818 * basic-block.h (init_flow): New function.
1819 (allocate_reg_life_data): Declare.
1820 * bb-reorder.c (function_obstack): Replace with ...
1821 (flow_obstack): ... new variable.
1822 (fixup_reorder_chain): Use it.
1823 * c-decl.c (ggc_p): Remove.
1824 (caller-save.c): Don't call oballoc/obfree.
1826 undobuf): Remove storage.
1827 (try_combine): Don't call oballoc.
1828 (undo_all): Don't call obfree.
1829 * cse.c (insert): Use xmalloc, not
1831 (cse_main): Adjust accordingly.
1832 * dwarf2out.c (save_rtx): Remove
1834 (dwarf2out_init): Remove ggc_p conditionals.
1835 * emit-rtl.c (rtl_obstack): Remove.
1836 (gen_rtx_CONST_INT): Remove ggc_p conditionals.
1837 (make_insn_raw): Likewise.
1838 (emit_insn_before): Likewise.
1839 (emit_insn_after): Likewise.
1840 (emit_insn): Likewise.
1841 (gen_sequence): Likewise.
1842 (copy_insn_1): Remove handling of `b' RTL components.
1843 (init_emit_once): Remove ggc_p conditionals.
1844 * except.c (create_rethrow_ref): Don't fool with obstacks.
1845 (add_partial_entry): Likewise.
1846 (call_get_eh_context): Likewise.
1847 (begin_protect_partials): Likewise.
1848 (protect_with_terminate): Likewise.
1850 (plus_constant_wide): Likewise.
1851 * expr.c (init_expr_once):
1853 (emit_block_move): Likewise.
1854 (clear_storage): Likewise.
1855 (expand_expr): Likewise.
1856 * flow.c (function_obstack): Remove.
1857 (flow_obstack): New variable.
1858 (flow_firstobj): Likewise.
1859 (create_base_block): Use the flow_obstack.
1860 (split_block): Likewise.
1861 (split_edge): Likewise.
1862 (calculate_global_regs_live): Likewise.
1863 (allocate_bb_life_data): Make it static. Likewiwse.
1864 (init_flow): New function.
1865 (size_int_type_wide): Remove ggc_p conditionals.
1867 (push_function_context_to): Don't call save_tree_status.
1868 (pop_function_context_from): Or restore_tree_status.
1869 (assign_stack_local_1): Don't call push_obstacks.
1870 (find_fixup_replacement): Use xmalloc.
1871 (fixup_var_refs_insns): Free the storage.
1872 (insns_for_mem_walk): Don't mess with obstacks.
1873 (instantiate_decls): Likewise.
1874 (trampoline_address): Likewise.
1875 (expand_function_end): Likewise.
1876 * function.h (sturct function):
1877 Remove obstack-related variables.
1878 (save_tree_status): Don't declare.
1879 (restore_tree_status): Likewise.
1880 * gcse.c (compute_can_copy):
1881 Don't call oballoc/obfree.
1882 * genattrtab.c (operate_exp): Remove
1884 (simplify_cond): Likewise.
1885 (simplify_test_exp): Don't mess with obstacks.
1886 (optimize_attrs): Likewise.
1887 * gengenrtl.c (gendef): Don't include
1889 * ggc-callbacks.c (ggc_p): Remove.
1890 * ggc-none.c (ggc_p): Remove.
1891 * ggc.h (ggc_p): Don't declare.
1892 * integrate.c (save_for_inline): Don't mess with obstacks.
1893 (integrate_decl_tree): Likewise.
1894 (output_inline_function): Likewise.
1896 (init_EXPR_INSN_LIST_cache): Likewise.
1897 * loop.c (temp_obstack):
1899 (rtl_obstack): Likewise.
1900 (init_loop): Don't mess with obstacks.
1901 (reg_address_cost): Free BIVs and GIVs.
1902 (check_insns_for_bivs): Use xmalloc, not oballoc.
1903 (find_mem_givs): Likewise.
1904 (record_biv): Likewise.
1905 (general_induction_var): Likewise.
1906 (product_cheap_p): Likewse.
1907 * optabs.c (init_one_libfunc): Remove
1909 * print-tree.c (debug_tree): Don't use
1911 (print_node): Likewise.
1912 * profile.c (output_func_start_profiler):
1913 Remove call to temporary_allocation.
1915 (eliminate_regs_in_insn): Don't mess with obstacks.
1917 (mark_target_live_regs): Use xmalloc.
1918 (free_resource_info): Free the memory.
1919 * rtl.c (rtl_obstack):
1921 (rtvec_alloc): Don't mess with obstacks.
1922 (rtx_alloc): Likewise.
1924 (copy_rtx): Don't handle `b' cases.
1925 (read_rtx): Use a local rtl_obstack.
1926 * rtl.h (oballoc): Remove.
1928 (pop_obstacks): Likewise.
1929 (push_obstacks): Likewise.
1930 (allocate_bb_life_data): Likewise.
1931 (allocate_reg_life_data): Likewise.
1932 (rtx_free): Likewise.
1933 * sdbout.c (sdbout_queue_anonymous_type):
1934 Use tree_cons, not saveable_tree_cons.
1936 (cselib_init): Don't mess with obstacks.
1938 (mark_block_nesting): Mark the label_chain.
1939 (epxand_label): Use ggc_alloc, not oballoc.
1940 (clear_last_expr): Don't mess with obstacks.
1941 (expand_decl_cleanup): Likewise.
1942 (expand_dcc_cleanup): Likewise.
1943 (expand_dhc_cleanup): Likewise.
1944 (expand_anon_union_decl): Likewise.
1945 (add_case_node): Use xmalloc, not oballoc.
1946 (free_case_nodes): New function.
1947 (expand_end_case): Call it.
1948 * stor-layout.c (layout_type): Don't
1950 (layout_type): Likewise.
1951 * toplev.c (wrapup_global_declarations):
1953 (compile_file): Remove ggc_p conditionals.
1954 (rest_of_compilation): Call init_flow. Remove ggc_p conditionals.
1955 (decode_f_option): Remove ggc_p conditionals.
1957 (function_maybepermanent_obstack): Remove.
1958 (maybepermanent_obstack): Likewise.
1959 (function_obstack): Likewise.
1960 (tmeporary_obstack): Likewise.
1961 (momentary_obstack): Likewise.
1962 (temp_decl_obstack): Likewise.
1963 (saveable_obstack): Likewise.
1964 (rtl_obstack): Likewise.
1965 (current_obstack): Likewise.
1966 (expression_obstack): Likewise.
1967 (struct obstack_stack): Likewise.
1968 (obstack_stack): Likewise.
1969 (obstack_stack_obstack): Likewise.
1970 (maybepermanent_firstobj): Likewise.
1971 (temporary_firstobj): Likewise.
1972 (momentary_firstobj): Likewise.
1973 (temp_decl_firstobj): Likewise.
1974 (momentary_function_firstobj): Likewise.
1975 (all_types_permanent): Likewise.
1976 (struct momentary_level): Likewise.
1977 (momentary_stack): Likewise.
1978 (init_obstacks): Remove initialization of removed obstacks.
1979 (save_tree_status): Remove.
1980 (restore_tree_status): Likewise.
1981 (temporary_allocation): Liekwise.
1982 (end_temporary_allocation): Liekwise.
1983 (resume_temporary_allocation): Likewise.
1984 (saveable_allocation): Likewise.
1985 (push_obstacks): Likewise.
1986 (push_obstacks_nochange): Likewise.
1987 (pop_obstacks): Likewise.
1988 (allocation_temporary_p): Likewise.
1989 (permanent_allocation): Likewise.
1990 (preserve_data): Likewise.
1991 (preserve_initializer): Likewise.
1992 (rtl_in_current_obstack): Likewise.
1993 (rtl_in_saveable_obstack): Likewise.
1994 (oballoc): Likewise.
1996 (savealloc): Likewise.
1997 (expralloc): Likewise.
1998 (print_obstack_name): Likewise.
1999 (debug_obstack): Likewise.
2000 (object_permanent_p): Likewise.
2001 (push_momentary): Likewise.
2002 (perserve_momentary): Likewise.
2003 (clear_momentary): Likewise.
2004 (pop_momentary): Likewise.
2005 (pop_momentary_nofree): Likewise.
2006 (suspend_momentary): Likewise.
2007 (resume_momentary): Likewise.
2008 (make_node): Don't set TREE_PERMANENT.
2009 (copy_node): Remove ggc_p conditionals. Don't set TYPE_OBSTACK.
2010 Don't set TREE_PERMANENT.
2011 (get_identifier): Remove ggc_p conditionals.
2012 (build_string): Likewise.
2013 (make_tree_vec): Likewise.
2014 (build_decl_list): Remove.
2015 (build_expr_list): Likewise.
2016 (tree_cons): Remove ggc_p conditionals.
2017 (decl_tree_cons): Remove.
2018 (expr_tree_cons): Likewise.
2019 (perm_tree_cons): Likewise.
2020 (temp_tree_cons): Likewise.
2021 (saveable_tree_cons): Likewise.
2022 (build1): Remove ggc_p conditionals.
2023 (build_parse_node): Likewise.
2024 (build_type_attribute_variant): Don't mess with obstacks.
2025 (build_type_copy): Likewise.
2026 (type_hash_canon): Likewise.
2027 (build_pointer_type): Likewise.
2028 (build_reference_type): Likewise.
2029 (build_index_type): Likewise.
2030 (build_range_type): Likewise.
2031 (dump_tree_statistics): Don't print obstack information.
2033 (struct tree_common): Remove permanent_flag.
2034 (TREE_PERMANENT): Remove.
2035 (TREE_SET_PERMANENT): Likewise.
2036 (TYPE_OBSTACK): Likewise.
2037 (struct tree_type): Remove obstack.
2039 (savealloc): Likewise.
2040 (build_decl_list): Likewise.
2041 (build_expr_list): Likewise.
2042 (perm_tree_cons): Likewise.
2043 (temp_tree_cons): Likewise.
2044 (saveable_tree_cons): Likewise.
2045 (decl_tree_cons): Likewise.
2046 (expr_tree_cons): Likewise.
2047 (suspend_momentary): Likewise.
2048 (allocation_temporary_p): Likewise.
2049 (resume_momentary): Likewise.
2050 (push_obstacks_nochange): Likewise.
2051 (permanent_allocation): Likewise.
2052 (push_momentary): Likewise.
2053 (clear_momentary): Likewise.
2054 (pop_momentary): Likewise.
2055 (end_temporary_allocation): Likewise.
2056 (pop_obstacks): Likewise.
2057 (push_obstacks): Likewise.
2058 (pop_momentary_nofree): LIkewise.
2059 (preserve_momentary): Likewise.
2060 (saveable_allocation): Likewise.
2061 (temporary_allocation): Likewise.
2062 (resume_temporary_allocation): Likewise.
2063 (perserve_initializer): Likewise.
2064 (debug_obstack): Likewise.
2065 (rtl_in_current_obstack): Likewise.
2066 (rtl_in_saveable_obstack): Likewise.
2068 * varasm.c (current_obstack): Remove.
2069 (saveable_obstack): Remove.
2070 (rtl_obstack): Remove.
2071 (immed_double_const): Don't mess with obstacks.
2072 (immed_real_cons): Likewise.
2073 (output_constant_def): Likewise.
2074 (init_varasm_status): Use xcalloc.
2075 (mark_pool_constant): Mark the pool constant itself.
2076 (free_varasm_status): Free memory.
2077 (decode_rtx_const): Call bzero directly, rather than expanding it
2079 (record_rtx_const): Don't mess with obstacks.
2080 (force_const_mem): Likewise.
2081 * config/arm/arm.c (arm_encode_call_attribute): Remove ggc_p
2083 (aof_pic_entry): Likewise.
2084 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2085 * config/m32r/m32r.c (m32r_encode_section_info): Likewise.
2086 * config/pa/pa.c (saveable_obstack): Remove.
2087 (rtl_obstack): Likewise.
2088 (current_obstack): Likewise.
2089 (output_call): Don't mess with obstacks.
2090 (hppa_encode_label): Remove ggc_p conditionals.
2091 * config/romp/romp.c (get_symref): Don't mess with obstacks.
2092 * config/rs6000/rs6000.c (output_toc): Remove ggc_p conditional.
2093 (rs6000_encode_section_info): Likewise.
2094 * config/sh/sh.c (get_fpscr_rtx): Likewise.
2096 Thu Oct 12 16:02:31 MET DST 2000 Jan Hubicka <jh@suse.cz>
2098 * i386.md (adddi3, subdi3 splitters): Update for new pattern.
2099 (addsi3_cc, addqi3_cc, subsi3_cc): Remove
2100 (addsi3_carry): Canonicalize.
2101 (addqi_5): Remove '*'.
2102 (sbb pattern): Canonicalize.
2104 * i386.md (cmp to inc/add peep2): New.
2106 2000-10-12 Richard Earnshaw <rearnsha@arm.com>
2108 * bb-reorder.c (reorder_basic_blocks): Allocate an aux block for
2111 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
2113 * gcc.texi: Merge in contents of README.TRAD and TESTS.FLUNK.
2114 * README.TRAD, TESTS.FLUNK: Remove.
2116 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
2118 * c-common.c (decl_attributes): Don't allow strftime formats with
2119 first_arg_num nonzero.
2120 (check_format_info): Set wanted_type and wanted_type_name to zero
2121 before they are possibly assigned and used.
2123 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
2125 * c-common.c (scanf_flag_specs): Add flags ' and I.
2126 (strftime_flag_pairs): Disallow any pair of the _, - and 0 flags,
2127 or the ^ and # flags together.
2128 (scan_char_table): Handle the ' and I flags.
2129 (format_types): Add ' and I flags for scanf.
2131 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
2133 * c-common.c (print_char_table): Use the unpromoted type for
2134 lengths "h" and "hh" with conversions dioxXu.
2135 (check_format_types): Apply the default argument promotions where
2136 the wanted type is not a pointer target.
2138 2000-10-11 Michael Meeks <mmeeks@gnu.org>
2139 Joseph S. Myers <jsm28@cam.ac.uk>
2141 * c-typeck.c (check_modify_expr): New function.
2142 (build_modify_expr): Call it if warn_sequence_point.
2143 * c-decl.c (warn_sequence_point): New variable.
2144 (c_decode_option): Handle -Wsequence-point and
2145 -Wno-sequence-point. Enable -Wsequence-point as part of -Wall.
2146 * c-tree.h (warn_sequence_point): Declare.
2147 * invoke.texi (-Wsequence-point): Document.
2148 * toplev.c (documented_lang_options): Add -Wsequence-point and
2149 -Wno-sequence-point.
2150 Original work by Michael Meeks, 16 Jun 1998.
2152 Wed Oct 11 06:15:41 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2154 * tree.c (get_narrower): Don't look at precision of field if
2157 Tue Oct 10 23:14:33 2000 Denis Chertykov <denisc@overta.ru>
2159 * config/avr/avr.c (valid_machine_decl_attribute): Allow `extern'
2160 declaration for data with "progmem" attribute.
2162 2000-10-09 Marek Michalkiewicz <marekm@linux.org.pl>
2164 * config/avr/avr.c (out_shift_with_cnt): Use AS2 macro.
2165 Correct insn length if shift count is a memory operand.
2166 * config/avr/avr.md: New define_peephole2 to use *reload_inqi.
2167 (*iorhi3_clobber): Change lo8 to hi8.
2168 (zero_extendhisi2): Change %B0 to %A1.
2169 (ashlhi3, ashrhi3): Correct insn length.
2170 (andhi3, abssf2, extendqisi2, extendhisi2): Change "cc"
2171 from "clobber" to "set_n" in some alternatives.
2173 2000-10-10 Jakub Jelinek <jakub@redhat.com>
2175 * reload1.c (calculate_needs_all_insns): If deleting an instruction,
2176 remove its insn_chain structure as well.
2178 2000-10-09 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2180 * dbxout.c (dbxout_source_line): Remove extra tab.
2182 2000-10-09 Hans-Peter Nilsson <hp@bitrange.com>
2184 * config/elfos.h (UNIQUE_SECTION): Apply STRIP_NAME_ENCODING on name.
2186 2000-10-09 Richard Henderson <rth@cygnus.com>
2188 * Makefile.in (LANG_LIB2FUNCS): Remove.
2189 (LIB2FUNCS): Remove _pure.
2190 (LIB2ADD): Remove LANG_LIB2FUNCS.
2191 (stage_a): Don't set LANG_LIB2FUNCS.
2192 * libgcc2.c (__terminate): Mark noreturn.
2193 (__pure_virtual): Remove.
2194 * mklibgcc.in: Remove LIB2ADD .txt processing.
2196 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
2198 * arm.md (push_multi): Revert unintended change.
2200 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
2202 * arm.c: Miscellaneous white space and comment clean-ups. No
2206 2000-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2208 * c-common.c (c_expand_builtin_printf): Set the TREE_TYPE of a new
2209 STRING_CST by calling combine_strings.
2211 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
2213 * arm.c (thumb_expand_movstrqi): Rewrite to support SSA form.
2214 (thumb_output_move_mem_multiple): Support new insn format.
2215 * arm.md (movmem12b): Use SSA compatible format.
2216 (movmem8b): Likewise.
2218 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
2220 * arm.md (predicable): New attribute, default to "no".
2221 (all patterns): Mark as predicable if appropriate.
2222 (conditional execution splits): Split using predication format.
2223 (define_cond_exec): Define.
2224 * arm.c (arm_print_operand): handle insn predicate.
2226 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2228 * README.NS32K: Remove file.
2230 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2232 * README-bugs: Remove file.
2234 2000-10-08 Philipp Thomas <pthomas@suse.de>
2235 * aclocal.m4 (AM_GNU_GETTEXT): Fix non portable use of == operator
2237 * configure: Rebuilt.
2239 2000-10-08 Philipp Thomas <pthomas@suse.de>
2240 * aclocal.m4 (AM_WITH_NLS): When not using included gettext,
2241 disable catalog building if no suitable program was found.
2242 Move warning message from here
2243 (AM_GNU_GETTEXT): To here.
2244 * configure: Rebuilt.
2246 2000-10-08 Philipp Thomas <pthomas@suse.de>
2247 * aclocal.m4 (GCC_PATH_PROG): New. Like AC_PATH_PROG but uses
2248 different cache variables.
2249 (GCC_PATH_PROG_WITH_TEST): New. Like AM_PATH_PROG_WITH_TEST but
2250 uses different cache variables.
2251 (AM_WITH_NLS): Use GCC_PATH_PROG and GCC_PATH_PROG_WITH_TEST.
2252 * configure: Regenerated.
2254 2000-10-08 Richard Henderson <rth@cygnus.com>
2256 * Makefile.in (libgcc.mk): Pass SHLIB_EXT, not SHLIB_LIBS.
2257 * configure.in (sparc*-*-solaris*): Use t-slibgcc{,-sld}.
2258 * mklibgcc.in: Consider SHLIB_LINK the entire shlib build command.
2261 * config/t-linux (SHLIB_EXT): New.
2262 (SHLIB_LINK): Use the entire build command, with substitutions.
2263 (SHLIB_LIBS): Remove.
2264 * config/alpha/t-osf4: Likewise.
2265 * config/mips/t-iris6: Likewise.
2266 * config/sparc/t-sol2: Likewise, but move shlib stuff...
2267 * config/sparc/t-slibgcc-sld: ...here.
2268 * config/sparc/t-slibgcc: New file.
2270 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
2272 * tm.texi (INTMAX_TYPE, UINTMAX_TYPE): Define.
2273 * c-common.h (enum c_tree_index): Add CTI_INTMAX_TYPE and
2275 (intmax_type_node, uintmax_type_node): Define.
2276 * c-common.c (decl_attributes): If pedantic, warn if `mode'
2277 attributes create a type wider than intmax_t.
2278 (T_IM, T_UIM): Define properly.
2279 * c-decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
2281 (init_decl_processing): Initialize intmax_type_node and
2283 * c-lex.c (lex_number): When pedantic and warning for integer
2284 constants that are too large, in C99 mode warn for those that have
2285 a type wider than long long.
2287 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
2289 * c-common.c (FMT_FLAG_ARG_CONVERT, FMT_FLAG_SCANF_A_KLUDGE,
2290 FMT_FLAG_FANCY_PERCENT_OK): Define.
2291 (format_char_info): Add flag "4" to comment.
2292 (format_flag_spec, format_flag_pair): New structures.
2293 (format_kind_info): Add additional fields to control format
2295 (printf_flag_specs, printf_flag_pairs, scanf_flag_specs,
2296 scanf_flag_pairs, strftime_flag_specs, strftime_flag_pairs): New
2298 (time_char_table): Use "4" flag to handle %Ey.
2299 (format_types): Add entries for new fields.
2300 (get_flag_spec): New function.
2301 (check_format_info): Increase size of flag_chars[] to 256.
2302 Control format checking using the new fields of a format_kind_info
2303 and the new tables; remove all conditionals on printf_format_type,
2304 scanf_format_type or strftime_format_type. Handle all details of
2305 bad combinations of flags (including width, precision and strftime
2306 modifiers) through data rather than ad hoc code. Handle all
2307 details of standard versions in which flags appeared through
2308 data. Use the "4" flag.
2310 2000-10-07 Will Cohen <wcohen@redhat.com>, Kazu Hirata <kazu@hxi.com>
2312 * config/h8300/h8300.md: Remove the memory alternative and correct
2313 the insn lengths in the templates for sign extention and zero
2316 2000-10-07 Richard Henderson <rth@cygnus.com>
2318 * calls.c (expand_call): Disallow sibcalls to noreturn functions.
2319 * flow.c (make_edges): Revert last change.
2321 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Don't test
2323 * config/pa/pa.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
2325 2000-10-06 David O'Brien <obrien@dragon.nuxi.com>
2327 * config/alpha/elf.h: Standardize the formatting.
2329 2000-10-06 David O'Brien <obrien@FreeBSD.org>
2331 * config/alpha/elf.h: Protect the ASM_OUTPUT_IDENT definition with an
2334 2000-10-06 Richard Henderson <rth@cygnus.com>
2336 * function.c (diddle_return_value): Examine
2337 current_function_return_rtx instead of the DECL_RESULT.
2338 (expand_function_end): Handle reloading DECL_RESULT from memory
2339 into a hard register. Query promote_mode for sign of mismatched
2342 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
2344 * haifa-sched.c (schedule_insns): Fix typo in freeing
2345 forward_dependency_cache.
2347 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
2349 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): Add
2350 `TARGET_SH2' as a condition.
2352 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
2354 * haifa-sched.c (anti_dependency_cache, output_dependency_cache,
2355 forward_dependency_cache): New variables.
2356 (add_dependence, remove_dependence): Use anti_dependency_cache and
2357 output_dependency_cache.
2358 (compute_block_forward_dependences): Use forward_dependency_cache.
2359 (schedule_insns): Allocate and free memory for anti/output/forward
2360 dependencies caches.
2362 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
2364 * config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
2365 `! TARGET_SH1'. Reindent.
2367 2000-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2369 * builtins.c (is_valid_printf_arglist, expand_builtin_printf):
2370 Move functions from here ...
2372 * c-common.c (is_valid_printf_arglist, c_expand_builtin_printf):
2374 (c_expand_builtin): New function.
2375 (init_function_format_info): Don't set `check_function_format_ptr'.
2376 (c_common_nodes_and_builtins): Set built_in_class type for
2377 printf/__builtin_printf to BUILT_IN_FRONTEND.
2378 (c_expand_expr): Handle CALL_EXPRs that are front-end builtins.
2380 * c-common.h (build_function_call): Declare.
2382 * expr.c (expand_expr): Pass builtins with class BUILT_IN_FRONTEND
2383 to `lang_expand_expr' rather than `expand_builtin'.
2385 * tree.c (check_function_format_ptr): Delete.
2387 * tree.h (check_function_format_ptr): Likewise.
2389 2000-10-06 Hans-Peter Nilsson <hp@bitrange.com>
2391 * dwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or
2392 DW_OP_bregx when cfa->reg > 31.
2394 * frame-dwarf2.c (decode_stack_op) [case DW_OP_regx]: Add missing
2397 2000-10-05 Richard Henderson <rth@cygnus.com>
2399 * c-decl.c (warn_missing_noreturn): Remove.
2400 (c_expand_body): Don't set or check can_reach_end.
2401 * c-tree.h (warn_missing_noreturn): Move ...
2402 * flags.h: ... here.
2403 (can_reach_end): Remove.
2404 * flow.c (check_function_return_warnings): New.
2405 (make_edges): No edge to exit for noreturn sibcalls.
2406 * function.c (expand_function_end): Save the return value
2407 clobber instruction.
2408 (mark_function_status): Mark it.
2409 * function.h (struct function): Add x_clobber_return_insn.
2410 * jump.c (can_reach_end): Remove.
2411 (calculate_can_reach_end): Remove.
2412 (jump_optimize_1): Don't call it.
2413 * output.h (check_function_return_warnings): Declare.
2414 * toplev.c (warn_missing_noreturn): Move from c-decl.c
2415 (rest_of_compilation): Call check_function_return_warnings.
2417 2000-10-05 Richard Henderson <rth@cygnus.com>
2419 * Makefile.in (NM_FOR_TARGET): New.
2420 (libgcc.mk): Pass SHLIB_MKMAP, SHLIB_MAPFILES.
2421 (libgcc.a, stmp-multilib): Pass NM_FOR_TARGET.
2422 * mklibgcc.in: If SHLIB_MKMAP, build libgcc.map. Depend the
2423 shared library build on that and EXTRA_MULTILIB_PARTS.
2424 * mkmap-flat.awk: New file.
2425 * mkmap-symver.awk: New file.
2426 * libgcc-std.ver: New file.
2427 * config/libgcc-glibc.ver: New file.
2428 * config/ia64/libgcc-ia64.ver: New file.
2429 * config/t-linux (SHLIB_MKMAP, SHLIB_MAPFILES): New.
2430 (SHLIB_LINK): Add --version-script.
2431 * config/ia64/t-ia64 (SHLIB_MAPFILES): Add libgcc-ia64.ver.
2432 * config/mips/t-iris6 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
2433 * config/sparc/t-sol2 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
2434 (SHLIB_LINK): Add -M.
2436 2000-10-05 Richard Henderson <rth@cygnus.com>
2438 * Makefile.in (LIB2FUNCS): Add _clz.
2439 * libgcc2.c (__ffsdi2): Use count_trailing_zeros.
2440 (__clz_tab): Put in its own unit, non-static.
2441 * libgcc2.h: Always include longlong.h.
2443 * longlong.h [alpha] (count_leading_zeros): Use cmpbge with
2444 a zero instead of -1.
2445 (count_trailing_zeros): Likewise.
2447 2000-10-05 Richard Henderson <rth@cygnus.com>
2449 * config/alpha/alpha.c (alpha_emit_setcc): Don't swap GT tests
2450 when second op1 is const0_rtx. Validate op0 as a register.
2451 * config/alpha/alpha.md (setcc_internal): Don't allow constants
2452 in the first argument of the compare.
2453 (setcc_swapped_internal): Likewise.
2454 (setne_internal): Likewise.
2456 2000-10-05 Geoff Keating <geoffk@cygnus.com>
2458 * tree.c (tree_size): New function split out of copy_node.
2459 (make_node): Remove obstack handling. Use tree_size.
2460 (copy_node): Use tree_size.
2461 * tree.h: Prototype tree_size.
2463 2000-10-05 Richard Henderson <rth@cygnus.com>
2465 * diagnostic.c (output_format): Add missing break.
2467 2000-10-05 Jim Wilson <wilson@cygnus.com>
2469 * function.c (fixup_var_refs_1, case SET): When gen_move_insn returns a
2470 SEQUENCE, call emit_insn_before, copy PATTERN and REG_NOTES of last
2471 sequence insn to INSN, and delete last sequence insn.
2473 2000-10-05 Phil Edwards <pme@gcc.gnu.org>
2475 * gcc.c (main): Include generated configargs.h header
2476 and use arguments in '-v' output.
2478 Thu Oct 5 16:16:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2480 * gcc.c: Move data on prefixes forward in file and reorganize.
2481 (md_exec_prefix, md_startfile_prefix, md_startfile_prefix_1):
2482 Always define, but make null if no value.
2483 (static_specs): Add "md_exec_prefix", "md_startfile_prefix",
2484 and "md_startfile_prefix_1".
2485 (main): Check whether md_exec_prefix and the others are the
2486 null string rather than whether the macro is defined.
2488 Thu Oct 5 19:04:18 2000 J"orn Rennecke <amylaar@redhat.co.uk>
2490 * (convert_move): Use zero_extendpsisi2 to do an unsigned extension
2491 from PSImode to SImode.
2493 2000-10-05 Jakub Jelinek <jakub@redhat.com>
2495 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETICS]: Fix conversion
2496 from float to integral mode with HOST_BITS_PER_WIDE_INT 64.
2497 * dwarf2out.c (add_const_value_attribute): Divide by 4, not
2500 Thu Oct 5 09:31:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2502 * fold-const.c (fold, case MINUS_EXPR, case EQ_EXPR): Perform
2503 negation in proper type.a
2505 2000-10-04 Richard Henderson <rth@cygnus.com>
2507 * configure.in (enable-shared): New.
2508 * Makefile.in (LIBGCC_DEPS): Depend on EXTRA_PARTS as well.
2509 (libgcc.mk): Pass SHLIB_LINK, SHLIB_LIBS, SHLIB_MULTILIB to mklibgcc.
2510 * mklibgcc.in: Use them to link shared a libgcc.
2511 * config/t-linux (SHLIB_LINK, SHLIB_LIBS): New.
2512 * config/alpha/t-ieee (SHLIB_MULTILIB): New.
2513 * config/mips/t-iris6 (SHLIB_LINK, SHLIB_LIBS): New.
2514 * config/sparc/t-sol2 (SHLIB_LINK, SHLIB_LIBS): New.
2516 * configure.in (alpha-osf*): Use t-osf and x-osf.
2517 * config/alpha/t-osf: New file.
2518 * config/alpha/t-osf4: New file.
2519 * config/alpha/x-osf: New file.
2520 * config/alpha/x-alpha: Remove file.
2522 2000-10-04 Will Cohen <wcohen@redhat.com>
2524 * c-typeck.c (process_init_element): Added warning for zero-length
2527 * extend.texi (Zero Length): State that static initializers for
2528 zero-length arrays are not allowed.
2530 Mon Oct 2 14:50:14 MET DST 2000 Jan Hubicka <jh@suse.cz>
2532 * rtlanal.c (single_set_1): Do not require USE and CLOBBERs
2535 2000-10-03 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2537 * config/float-c4x.h: New.
2538 * configure.in (c4x-*): Set float_format to c4x.
2539 * configure: Regenerate.
2541 2000-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2543 * configure.in (sparc-*-solaris2*): Disable 32-to-64 cross
2544 compilation for solaris versions 2.7 and greater.
2546 2000-10-02 Marc Espie <espie@openbsd.org>
2548 * config/alpha.h (WORD_SWITCH_TAKES_ARG): add -rpath to default,
2549 instead of redefining from scratch.
2551 2000-10-02 David O'Brien <obrien@dragon.nuxi.com>
2553 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Define.
2555 2000-10-01 Mark Mitchell <mark@codesourcery.com>
2557 * config/ns32k/genix.h: Remove.
2558 * config/ns32k/x-genix: Likewise.
2559 * config/ns32k/xm-genix.h: Likewise.
2560 * config/fx80: Remove all filee in directory.
2561 * config/pyr: Likewise.
2562 * config/tahoe: Likewise.
2563 * config/gmicro: Likewise.
2564 * config/spur: Likewise.
2565 * configure.in: Remove configury bits for above targets.
2566 * configure: Regenerated.
2568 * configure.in: Don't configure chill by default.
2569 * configure: Regenerated.
2571 * c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
2572 (lang_mark_false_label_stack): Remove.
2573 * c-lex.c (init_c_lex): Add file_info_tree as GC root. Allocate
2574 <top level> string in GC area.
2575 (mark_splay_tree_node): New function.
2576 (mark_splay_tree): Likewise.
2577 * except.c (mark_eh_status): Only call lang_mark_false_label_stack
2579 * ggc-callbacks.c (lang_mark_false_label_stack): Remove.
2580 * ggc-common.c (lang_mark_false_label_stack): Change type.
2581 * ggc.h (ggc_alloc_string): Add comment.
2582 (ggc_strdup): New function.
2584 Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru>
2586 * config/avr/avr.h (BRANCH_COST): Define as 0.
2588 * config/pdp11/pdp11.c: #include "tree.h" added.
2590 2000-09-30 Marek Michalkiewicz <marekm@linux.org.pl>
2592 * config/avr/avr.c (ashlhi3_out, ashlsi3_out, ashrhi3_out,
2593 ashrsi3_out, lshrhi3_out, lshrsi3_out): Optimize more cases
2594 with known shift count.
2595 * config/avr/avr.md (ashlsi3, ashrsi3, lshrsi3):
2596 New alternative for shift count 2 with no scratch register.
2597 (ashlhi3, ashlsi3): Change "cc" attribute from "clobber" to
2598 "set_n" for shift counts 1 and 2.
2600 2000-09-30 Geoff Keating <geoffk@cygnus.com>
2602 * config/rs6000/rs6000.md (movsi_to_cr): Remove the USE. Calculate
2603 the mask value from the individual SET operations.
2604 (return_internal_si): Move the USE after the RETURN.
2605 (return_internal_di): Likewise.
2606 (return_and_restore_fpregs_si): Likewise.
2607 (return_and_restore_fpregs_di): Likewise.
2608 (return_eh_si): Likewise.
2609 (return_eh_di): Likewise.
2610 * config/rs6000/rs6000.c (mtcrf_operation): Don't look for,
2612 (rs6000_emit_prologue): Don't emit the USE for movsi_to_cr.
2613 Don't generate a PARALLEL around a single operation movsi_to_cr.
2614 Generate the RETURN first in any PARALLELs.
2616 * rtlanal.c (single_set_1): Use fatal_insn to display the
2617 invalid insn. Check for more cases when a USE or CLOBBER occurs
2619 * Makefile.in: Update dependencies for rtlanal.o.
2621 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
2623 * i386.c: Move include of "config.h" to before that of <setjmp.h>.
2625 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
2627 * c-tree.texi, contrib.texi, gcc.texi, install.texi, invoke.texi:
2628 Consistently use @email for formatting email addresses.
2630 2000-09-29 Richard Henderson <rth@cygnus.com>
2632 * cse.c (notreg_cost): New argument outer.
2633 (COST): Pass in SET to notreg_cost
2635 (fold_rtx): Use COST_IN. Prefer constants when costs
2638 2000-09-29 David Edelsohn <edelsohn@gnu.org>
2640 * fixinc/inclhack.def (broken_cabs): Generalize regex.
2641 * fixinc/fixincl.x: Regenerate.
2643 2000-09-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2645 * loop.c (check_final_value): A GIV is not replaceable if used
2648 Fri Sep 29 10:04:12 2000 Jeffrey A Law (law@cygnus.com)
2650 * version.c: Bump to gcc-2.97.
2652 Frs Sep 29 13:37:59 MET DST 2000 Jan Hubicka <jh@suse.cz>
2654 * final.c (final_scan_insn): Remove extra extract_insn call;
2655 Use caching for constrain_operands.
2656 (cleanup_subreg_operands): Use caching for extract_insn.
2657 * recog.c (constrain_operands_cached): New.
2658 * recog.h (constrain_operands_cached): Declare.
2659 * i386.c (ix86_attr_length_immediate_default,
2660 ix86_attr_length_address_default, ix86_agi_dependant): Cache
2663 * recog.c (asm_noperands): Tweak.
2664 (extract_insn): Do not call asm_noperads for non-asm instructions.
2666 Fri Sep 29 13:20:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
2668 * recog.c (recog_memoized): Rename to recog_memoized_1.
2669 * recog.h (recog_memoized): Rename to recog_memoized_1.
2670 (recog_memoized): New macro.
2671 * rtl.h (single_set): Rename to single_set_1
2672 (single_set): New macro.
2673 * rtlanal.c (single_set): Rename to single_set_1; expect clobbers
2676 * i386.md (strmovsi_1, strmovhi_1 strmovqi_1):
2677 Do not use match_dup of input operands at outputs.
2678 Use register_operand for memory expression.
2679 (rep_movsi): Put use last, canonicalize.
2680 Use register_operand for memory expression.
2681 (rep_movqi): Put use last.
2682 Use register_operand for memory expression.
2683 (strsetsi_1, strset_hi_1, strsetqi_1): Do not use match_dup
2684 of input operands at outputs. Use register_operand for memory
2686 (rep_stossi): Put use last; canonicalize; fix match_dup in
2687 the address expression
2688 (rep_stosqi): Likewise.
2689 (memcmp expander): Update calls.
2690 (cmpstrsi_nz_1, cmpstrsi_1, strlensi_1): Avoid match_dups in
2693 * i386.md (fp_jcc_3, fp_jcc_4, jp_fcc_5): if_then_else operand is
2695 (fp_jcc_4, fp_jcc_3): Refuse unordered comparisons.
2697 2000-09-28 David O'Brien <obrien@FreeBSD.org>
2699 * config/i386/freebsd-aout.h: New, FreeBSD a.out config file.
2700 Contains the old contents of config/i386/freebsd.h
2701 * config/i386/freebsd.h: Now the ELF rather than a.out config file.
2702 Contains the old contents of config/i386/freebsd-elf.h
2703 * config/i386/freebsd-elf.h: Retire this file -- contents moved to
2704 config/i386/freebsd.h.
2705 * configure.in: Adjust for above changes.
2706 * po/POTFILES.in: Likewise.
2707 * po/en_GB.po: Likewise.
2708 * po/gcc.pot: Likewise.
2709 * configure: Rebuilt.
2711 2000-09-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2713 * doloop.c (doloop_modify): Prevent delete_insn() from
2714 deleting too much. Prefer loop->top over loop->start as
2715 target for the new JUMP insn.
2716 (doloop_valid_p): Ignore loop with exit_count != 0.
2718 2000-09-28 Philipp Thomas <pthomas@suse.de>
2720 * invoke.texi (i386 Options): Add athlon to table of possible
2723 2000-09-28 Gabriel Dos Reis <gdr@codesourcery.com>
2725 * diagnostic.h (output_clear_message_text): New function.
2726 (output_message_text): New macro.
2728 * diagnostic.c (clear_text_info): Rename to
2729 output_clear_message_text.
2730 (output_clear): Adjust.
2731 (output_finish): Rename to output_finalize_message. Tweek.
2732 (output_to_stream): Adjust.
2734 2000-09-28 Neil Booth <neilb@earthling.net>
2736 * cpperror.c (_cpp_begin_message): Do the test for suppression
2737 of warnings and pedantic warnings before the "is a warning an
2739 * cppinit.c (cpp_handle_option): Remove surplus \n.
2740 * cpplex.c (ON_REST_ARG): Delete.
2741 (skip_block_comment): Initialise prevc.
2742 (parse_args): Improve error messages.
2743 (maybe_paste_with_next): Use CONTEXT_VARARGS rather
2745 * cpplib.c (cpp_push_buffer): Fix grammar in message.
2746 * cppmain.c (main): Set callbacks for #ident and #pragma
2747 only if no_output option is false.
2748 (do_pragma_implementation): Only call the #pragma handler
2749 if it is set in the cpp_reader structure.
2751 Wed Sep 27 14:00:07 2000 Donald Lindsay <dlindsay@cygnus.com>
2753 * integrate.c (copy_insn_list): if an ignored return value
2754 is being clobbered, skip cloning that into the inline copy.
2756 2000-09-27 Joseph S. Myers <jsm28@cam.ac.uk>
2758 * extend.texi, invoke.texi, gcc.texi, install.texi: Consistently
2759 use @uref for formatting URLs.
2761 2000-09-27 Mark Elbrecht <snowball3@bigfoot.com>
2763 * config/i386/djgpp.h (UNIQUE_SECTION): Constify the variables
2766 Tue 26-Sep-2000 18:25:38 BST Neil Booth <neilb@earthling.net>
2768 * gcc.c (cpp_options): Add spec for -ftabstop=.
2769 (invoke_as): New spec that handles invoking as.
2770 Update specs to handle -save-temps and -traditional.
2771 * ch/lang-specs.h, f/lang-specs.h, java/lang-specs.h:
2773 * cp/lang-specs.h, objc/lang-specs.h: Update to use
2774 invoke_as, and handle -save-temps and -traditional (if
2777 2000-09-26 Jakub Jelinek <jakub@redhat.com>
2779 * config/sparc/sparc.c (sparc_emit_set_const64): Don't abort when
2781 (function_arg_slotno): Accept TImode/CTImode.
2782 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): If IN_LIBGCC2 define
2785 2000-09-26 Michael Hayes <mhayes@cygnus.com>
2787 * flow.c (flow_loop_pre_header_scan): Punt if loop enters
2790 2000-09-25 Jim Wilson <wilson@cygnus.com>
2792 * config/ia64/ia64.h (INDEX_REG_CLASS): Define to GENERAL_REGS.
2793 (REGNO_OK_FOR_INDEX_P): Define to REGNO_OK_FOR_BASE_P.
2794 (LEGITIMATE_ADDRESS_DISP): Use LEGITIMATE_ADDRESS_REG.
2795 (REG_OK_FOR_INDEX): Define to REG_OK_FOR_BASE_P.
2797 Tue 26-Sep-2000 00:16:22 BST Neil Booth <neilb@earthling.net>
2799 * cpplex.c (parse_args): Don't set VOID_REST flag.
2800 (CONTEXT_VARARGS): New flag.
2801 (maybe_paste_with_next): Set context earlier in loop. Use
2802 it. Do varargs test with CONTEXT_VARARGS flag.
2803 (push_arg_context): Set CONTEXT_VARARGS flag if we're
2804 pushing an argument context for a varargs argument.
2805 * cpplib.h (VOID_REST): Delete.
2806 * gcc.dg/cpp/vararg1.c: Add test case.
2808 2000-09-25 Branko Cibej <branko.cibej@hermes.si>
2810 * flags.h: Declare warning flag warn_system_headers.
2811 * toplev.c: Define it.
2812 (W_options): Add option -Wsystem-headers.
2813 * diagnostic.c (count_error): Test warn_system_headers.
2814 * invoke.texi: Add description for -Wsystem-headers.
2815 * cpplib.h (cpp_options): New member warn_system_headers.
2816 * cpphash.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Don't test
2817 CPP_IN_SYSTEM_HEADER.
2818 * cpplib.c (do_import, do_pragma_once): Likewise.
2819 * cpperror.c (_cpp_begin_message): Test warn_system_headers
2820 and CPP_IN_SYSTEM_HEADER.
2821 * cppinit.c (handle_option): Recognize -Wsystem_headers.
2822 (print_help): Describe -Wsystem_headers.
2823 * cpplex.c (lex_line): Reorganize condition so that warnings
2824 about C++ comments in system headers can be enabled. Remove
2825 label do_line_comment.
2827 Mon 25-Sep-2000 23:38:27 BST Neil Booth <neilb@earthling.net>
2829 * cpplex.c (save_comment): Only store the initial '/'
2831 (lex_token): Combine handling of the two comment types.
2832 Pass everything but the initial '/' to save_comment.
2834 Mon 25-Sep-2000 23:31:45 BST Neil Booth <neilb@earthling.net>
2836 * cpphash.h (_cpp_digraph_spellings, _cpp_process_directive,
2837 _cpp_can_paste): New library-internal prototypes.
2838 * cpplex.c (dump_param_spelling, output_line_command,
2839 output_token, cpp_scan_buffer, cpp_scan_buffer_nooutput,
2840 cpp_printf, cpp_output_list): Move to cppoutput.c.
2841 (process_directive, can_paste, digraph_spellings): Add _cpp_ prefix.
2842 * cppmacro.c (dump_macro_args, cpp_dump_definition) Move to
2844 * cppoutput.c (dump_macro_args, cpp_dump_definition, output_token,
2845 dump_param_spelling, output_line_command, cpp_scan_buffer,
2846 cpp_scan_buffer_nooutput, cpp_printf, cpp_output_list): Moved
2848 * Makefile.in: Add cppoutput.c.
2849 * po/POTFILES.in: Add cppoutput.c.
2851 2000-09-25 Richard Henderson <rth@cygnus.com>
2853 * config/ia64/ia64.c (ia64_print_operand): Define 'e' as 64-n.
2854 * config/ia64/ia64.md (rotrsi3): Allow variable rotates; don't
2855 split until after reload.
2856 (rotlsi3, rotldi3): New.
2858 2000-09-25 Gabriel Dos Reis <gdr@codesourcery.com>
2860 * diagnostic.c (output_last_position): Define.
2861 (set_real_maximum_length): Tweek.
2862 * diagnostic.h (output_last_position): Declare.
2864 2000-09-25 Kazu Hirata <kazu@hxi.com>
2866 * config/i386/i386.c: Fix formatting.
2868 2000-09-24 Alan Lehotsky <alehotsky@cygnus.com>
2870 * emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when
2871 UNITS_PER_WORD is small.
2873 2000-09-25 Joseph S. Myers <jsm28@cam.ac.uk>
2875 * c-common.c (format_char_info): Add flags2; update comments.
2876 (print_char_table, scan_char_table, time_char_table): Split some
2877 flags out into flags2.
2878 (check_format_info): Use flags2 for those flags, for identifying
2879 the initial character of a scanf scanset, and for identifying
2880 printf formats where the '0' flag is ignored with precision.
2882 2000-09-25 Hans-Peter Nilsson <hp@axis.com>
2884 Changes below marked "here" add TABs on either or both sides,
2885 covering start of line, up to any operand for all noted .*ASM.*_OP
2886 definitions. All callers changed.
2887 * tm.texi: Make documented *_ASM.*_OP:s include spacing
2888 (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, SHARED_SECTION_ASM_OP,
2889 BSS_SECTION_ASM_OP, SHARED_BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
2890 ASM_BYTE_OP, FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
2891 ASM_STABS_OP, ASM_STABD_OP, ASM_STABN_OP).
2892 Fix typos in description for LONG_LONG_TYPE_SIZE and
2893 FINI_SECTION_ASM_OP.
2894 * crtstuff.c (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Explain
2895 why these defaults don't have leading spacing.
2896 * dbxout.c (ASM_STABS_OP, ASM_STABN_OP): Here.
2897 * dwarf2out.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2898 UNALIGNED_DOUBLE_INT_ASM_OP, SECTION_ASM_OP, ASM_BYTE_OP): Here.
2899 * dwarfout.c (FILE_ASM_OP, VERSION_ASM_OP,
2900 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, ASM_BYTE_OP,
2901 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP): Here.
2902 * defaults.h (ASM_STABD_OP, EH_FRAME_SECTION_ASM_OP): Here.
2903 * varasm.c (ASM_STABS_OP): Here.
2904 * xcoffout.h (ASM_STABS_OP): Here.
2905 * config/elfos.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
2906 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
2907 INT_ASM_OP, ASCII_DATA_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP,
2908 STRING_ASM_OP): Here.
2909 * config/freebsd.h (IDENT_ASM_OP): Here.
2910 * config/linux-aout.h (SET_ASM_OP): Here.
2911 * config/linux.h (SET_ASM_OP): Here.
2912 * config/lynx.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
2914 * config/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
2915 * config/nextstep.h (EH_FRAME_SECTION_ASM_OP, ALIGN_ASM_OP): Here.
2916 * config/openbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
2917 * config/psos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
2919 * config/ptx4.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
2920 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
2921 INT_ASM_OP, ASCII_DATA_ASM_OP, CONST_SECTION_ASM_OP,
2922 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
2923 FINI_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP STRING_ASM_OP): Here.
2924 * config/svr3.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
2925 CONST_SECTION_ASM_OP, ASM_BYTE_OP): Here.
2926 * config/a29k/udi.h (INT_ASM_OP): Here.
2927 * config/alpha/alpha-interix.h (CONST_SECTION_ASM_OP,
2928 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
2930 * config/alpha/alpha.h (TEXT_SECTION_ASM_OP,
2931 READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2932 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2933 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_STABS_OP, ASM_STABN_OP,
2934 ASM_STABD_OP): Here.
2935 * config/alpha/elf.h (IDENT_ASM_OP, SKIP_ASM_OP, ALIGN_ASM_OP,
2936 COMMON_ASM_OP, INT_ASM_OP, ASCII_DATA_ASM_OP,
2937 CONST_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
2938 BSS_SECTION_ASM_OP, SBSS_SECTION_ASM_OP, SDATA_SECTION_ASM_OP,
2939 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, TYPE_ASM_OP,
2940 SIZE_ASM_OP, STRING_ASM_OP): Here.
2941 * config/alpha/vms.h (LINK_SECTION_ASM_OP,
2942 READONLY_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP,
2943 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, COMMON_ASM_OP): Here.
2944 * config/arc/arc.h (ASM_BYTE_OP, SET_ASM_OP): Here.
2945 (PUSHSECTION_ASM_OP): Define this, not PUSHSECTION_FORMAT.
2946 * config/arm/aof.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP):
2948 * config/arm/aout.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2949 BSS_SECTION_ASM_OP, SET_ASM_OP): Here.
2950 * config/arm/coff.h (INT_ASM_OP): Here.
2951 * config/arm/conix-elf.h (UNALIGNED_WORD_ASM_OP): Here.
2952 * config/arm/elf.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP): Here.
2953 * config/arm/linux-elf.h (IDENT_ASM_OP, CONST_SECTION_ASM_OP,
2954 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Here.
2955 * config/arm/unknown-elf.h (UNALIGNED_WORD_ASM_OP): Here.
2956 * config/avr/avr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2957 ASM_BYTE_OP, TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP,
2958 STRING_ASM_OP): Here. Update documentation copy in comments.
2959 * config/c4x/c4x.h (ASM_STABS_OP, BSS_SECTION_ASM_OP): Here.
2960 * config/clipper/clipper.h (TEXT_SECTION_ASM_OP,
2961 DATA_SECTION_ASM_OP): Here.
2962 * config/clipper/clix.h (BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP):
2964 * config/convex/convex.h (TEXT_SECTION_ASM_OP,
2965 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
2966 * config/d30v/d30v.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2967 BSS_SECTION_ASM_OP): Here.
2968 * config/fr30/fr30.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2969 BSS_SECTION_ASM_OP): Here.
2970 * config/fx80/fx80.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
2972 * config/gmicro/gmicro.h (TEXT_SECTION_ASM_OP,
2973 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
2974 * config/h8300/h8300.h (ASM_WORD_OP): Here.
2975 * config/i370/i370.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2976 BSS_SECTION_ASM_OP): Here.
2977 * config/i386/aix386.h (INIT_SECTION_ASM_OP): Here.
2978 * config/i386/bsd.h (ASM_BYTE_OP): Here.
2979 * config/i386/cygwin.h (SET_ASM_OP, INT_ASM_OP): Here.
2980 * config/i386/dgux.h (CONST_SECTION_ASM_OP): Here.
2981 * config/i386/djgpp.h (IDENT_ASM_OP, INT_ASM_OP, SET_ASM_OP):
2983 * config/i386/freebsd-elf.h (SET_ASM_OP): Here.
2984 * config/i386/freebsd.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP):
2986 * config/i386/i386-coff.h (CTORS_SECTION_ASM_OP,
2987 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
2988 * config/i386/i386-interix.h (STRING_ASM_OP, CONST_SECTION_ASM_OP,
2989 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
2991 * config/i386/i386elf.h (BSS_SECTION_ASM_OP): Here.
2992 * config/i386/netbsd.h (INT_ASM_OP): Here.
2993 * config/i386/openbsd.h (INT_ASM_OP): Here.
2994 * config/i386/osfrose.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP,
2995 IDENT_ASM_OP): Here.
2996 * config/i386/sco5.h (ALIGN_ASM_OP, ASCII_DATA_ASM_OP,
2997 ASM_BYTE_OP, IDENT_ASM_OP, COMMON_ASM_OP, SET_ASM_OP,
2998 LOCAL_ASM_OP, INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, STRING_ASM_OP,
2999 SKIP_ASM_OP, GLOBAL_ASM_OP): Here.
3000 * config/i386/seq-sysv3.h (SHARED_SECTION_ASM_OP,
3001 SHARED_BSS_SECTION_ASM_OP): Here.
3002 * config/i386/sequent.h (SHARED_SECTION_ASM_OP): Here.
3003 * config/i386/sun386.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
3004 DATA_SECTION_ASM_OP): Here.
3005 * config/i386/svr3gas.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
3006 CONST_SECTION_ASM_OP): Here.
3007 * config/i386/sysv3.h (INIT_SECTION_ASM_OP): Here.
3008 * config/i386/unix.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3009 BSS_SECTION_ASM_OP): Here.
3010 * config/i860/bsd-gas.h (ASCII_DATA_ASM_OP): Here.
3011 * config/i860/bsd.h (ASCII_DATA_ASM_OP): Here.
3012 * config/i860/fx2800.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP,
3013 BSS_ASM_OP): Here, but use trailing spaces.
3014 * config/i860/i860.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
3015 DATA_SECTION_ASM_OP): Here.
3016 * config/i860/paragon.h (ASCII_DATA_ASM_OP, BSS_SECTION_ASM_OP):
3018 * config/i860/sysv3.h (ASCII_DATA_ASM_OP, CTORS_SECTION_ASM_OP,
3019 DTORS_SECTION_ASM_OP, TDESC_SECTION_ASM_OP): Here.
3020 * config/i860/sysv4.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
3021 TDESC_SECTION_ASM_OP): Here.
3022 * config/i960/i960-coff.h (CTORS_SECTION_ASM_OP,
3023 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
3024 * config/i960/i960.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3026 * config/ia64/ia64.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3027 BSS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
3028 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
3029 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
3030 * config/ia64/sysv4.h (ASM_BYTE_OP, STRING_ASM_OP, SKIP_ASM_OP,
3031 COMMON_ASM_OP, ASCII_DATA_ASM_OP, INIT_SECTION_ASM_OP,
3032 FINI_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
3033 SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Here.
3034 * config/m32r/m32r.h (SCOMMON_ASM_OP): Here.
3035 * config/m68hc11/m68hc11.h (GLOBAL_ASM_OP): Here.
3036 * config/m68k/auxas.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
3037 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
3039 * config/m68k/coff.h (BSS_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
3040 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
3041 * config/m68k/crds.h (BSS_SECTION_ASM_OP): Here.
3042 * config/m68k/dpx2.h (ASM_BYTE_OP, GLOBAL_ASM_OP): Here.
3043 * config/m68k/hp320.h (ASCII_DATA_ASM_OP, GLOBAL_ASM_OP): Here.
3044 * config/m68k/linux.h (BSS_SECTION_ASM_OP): Here.
3045 * config/m68k/lynx.h (BSS_SECTION_ASM_OP): Here.
3046 * config/m68k/m68k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3047 GLOBAL_ASM_OP): Here.
3048 * config/m68k/m68kelf.h (SWBEG_ASM_OP, BSS_ASM_OP,
3049 BSS_SECTION_ASM_OP): Here.
3050 * config/m68k/m68kv4.h (BSS_ASM_OP): Here.
3051 * config/m68k/mot3300.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3052 ASCII_DATA_ASM_OP, SET_ASM_OP, CTORS_SECTION_ASM_OP,
3053 DTORS_SECTION_ASM_OP, GLOBAL_ASM_OP, ASM_BYTE_OP, ALIGN_ASM_OP,
3055 * config/m68k/newsgas.h (SET_ASM_OP): Here.
3056 * config/m68k/rtemself.h (INIT_SECTION_ASM_OP,
3057 FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
3058 * config/m68k/sgs.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
3059 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
3060 SET_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here,
3061 but use trailing spaces.
3062 * config/m68k/tower-as.h (TEXT_SECTION_ASM_OP,
3063 DATA_SECTION_ASM_OP, GLOBAL_ASM_OP, INIT_SECTION_ASM_OP,
3064 FINI_SECTION_ASM_OP, CONST_SECTION_ASM_OP, BSS_SECTION_ASM_OP):
3066 * config/m88k/dgux.h (FINI_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
3067 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
3068 * config/m88k/m88k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3069 CONST_SECTION_ASM_OP, TDESC_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
3070 DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
3071 IDENT_ASM_OP, FILE_ASM_OP, SECTION_ASM_OP, SET_ASM_OP,
3072 GLOBAL_ASM_OP, ALIGN_ASM_OP, SKIP_ASM_OP, COMMON_ASM_OP,
3073 BSS_ASM_OP, FLOAT_ASM_OP, DOUBLE_ASM_OP, INT_ASM_OP, SHORT_ASM_OP,
3074 CHAR_ASM_OP, ASCII_DATA_ASM_OP, SBSS_ASM_OP, SCOMM_ASM_OP,
3075 SDATA_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, INTERNAL_ASM_OP,
3076 VERSION_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
3077 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP, REQUIRES_88110_ASM_OP,
3079 * config/m88k/openbsd.h (SET_ASM_OP): Here.
3080 * config/m88k/sysv4.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
3081 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
3082 * config/mcore/mcore-elf.h (UNALIGNED_INT_ASM_OP,
3083 UNALIGNED_SHORT_ASM_OP, CTORS_SECTION_ASM_OP,
3084 DTORS_SECTION_ASM_OP): Here.
3085 * config/mcore/mcore-pe.h (CTORS_SECTION_ASM_OP,
3086 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
3087 * config/mips/elf.h (TYPE_ASM_OP, SIZE_ASM_OP,
3088 BSS_SECTION_ASM_OP): Here.
3089 * config/mips/elf64.h (TYPE_ASM_OP, SIZE_ASM_OP): Here.
3090 * config/mips/iris5.h (ABICALLS_ASM_OP): Here.
3091 * config/mips/iris6.h (TYPE_ASM_OP, SIZE_ASM_OP,
3092 POPSECTION_ASM_OP, BSS_SECTION_ASM_OP, CONST_SECTION_ASM_OP_32,
3093 CONST_SECTION_ASM_OP_64, CTORS_SECTION_ASM_OP,
3094 DTORS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
3095 * config/mips/mips.c (ABICALLS_ASM_OP): Here.
3096 * config/mips/mips.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP):
3098 * config/mips/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP):
3100 * config/mips/osfrose.h (SET_ASM_OP): Here.
3101 * config/mips/sni-svr4.h (ABICALLS_ASM_OP): Here.
3102 * config/ns32k/encore.h (SHARED_SECTION_ASM_OP): Here.
3103 * config/ns32k/merlin.h (SHARED_SECTION_ASM_OP): Here.
3104 * config/ns32k/ns32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3106 * config/ns32k/sequent.h (SHARED_SECTION_ASM_OP): Here.
3107 * config/ns32k/tek6000.h (SHARED_SECTION_ASM_OP): Here.
3108 * config/pa/pa-64.h (INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP): Here.
3109 * config/pa/pa.h (ASM_STABS_OP, ASM_STABN_OP): Here.
3110 * config/pj/pj.h (SET_ASM_OP, BSS_SECTION_ASM_OP): Here.
3111 * config/pyr/pyr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3113 * config/romp/romp.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3115 * config/rs6000/rs6000.h (SET_ASM_OP): Here.
3116 * config/rs6000/sol2.h (ASM_STABN_OP): Here.
3117 * config/rs6000/sysv4.h (SKIP_ASM_OP, LOCAL_ASM_OP, LCOMM_ASM_OP):
3119 * config/sh/sh.h (SET_ASM_OP, BSS_SECTION_ASM_OP,
3120 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here.
3121 * config/sparc/linux.h (COMMON_ASM_OP): Here.
3122 * config/sparc/linux64.h (COMMON_ASM_OP,
3123 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
3124 * config/sparc/litecoff.h (BSS_SECTION_ASM_OP,
3125 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
3126 * config/sparc/lynx.h (BSS_SECTION_ASM_OP): Here.
3127 * config/sparc/pbd.h (ASM_INT_OP): Here.
3128 * config/sparc/sp64-elf.h (UNALIGNED_LONGLONG_ASM_OP): Here.
3129 * config/sparc/sparc.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
3130 DATA_SECTION_ASM_OP, IDENT_ASM_OP): Here.
3131 * config/sparc/sun4gas.h (UNALIGNED_DOUBLE_INT_ASM_OP,
3132 UNALIGNED_INT_ASM_OP, UNALIGNED_SHORT_ASM_OP): Here.
3133 * config/sparc/sysv4.h (STRING_ASM_OP, COMMON_ASM_OP, SKIP_ASM_OP,
3134 UNALIGNED_DOUBLE_INT_ASM_OP, UNALIGNED_INT_ASM_OP,
3135 UNALIGNED_SHORT_ASM_OP, PUSHSECTION_ASM_OP, POPSECTION_ASM_OP,
3136 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
3137 CONST_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
3138 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
3139 EH_FRAME_SECTION_ASM_OP): Here.
3140 * config/sparc/vxsim.h (COMMON_ASM_OP): Here.
3141 * config/spur/spur.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3143 * config/tahoe/tahoe.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3145 * config/v850/v850.h (SCOMMON_ASM_OP, ZCOMMON_ASM_OP,
3146 TCOMMON_ASM_OP): Here.
3147 * config/vax/vax.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3149 * config/we32k/we32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3152 2000-09-25 Richard Henderson <rth@cygnus.com>
3154 * expmed.c (store_bit_field): Adjust last change to not consider
3155 any word-sized field naturally aligned.
3157 2000-09-24 Richard Henderson <rth@cygnus.com>
3159 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
3160 TFmode unordered compares properly. Revalidate integer compare
3162 (alpha_emit_setcc): New.
3163 (alpha_emit_conditional_move): Revalidate integer compare operands.
3164 * config/alpha/alpha-protos.h: Update.
3165 * config/alpha/alpha.md (cmpdi): Allow general operands.
3166 (sne): Use alpha_emit_setcc.
3167 (seq, slt, sle, sgt, sge, sltu, sleu, sgtu, sgeu): Likewise.
3168 (sunordered, sordered): New.
3170 2000-09-24 Richard Henderson <rth@cygnus.com>
3172 * config/ia64/ia64-protos.h: Update.
3173 * config/ia64/ia64.c (call_multiple_values_operation): Remove.
3174 (ia64_expand_call): New.
3175 (ia64_expand_prologue): Emit an alloc if we need extra input
3177 (ia64_expand_epilogue): New arg sibcall_p; don't emit the return
3178 instruction if true.
3179 (struct reg_flags): Add is_sibcall.
3180 (rtx_needs_barrier): A sibcall does not use CFM et al. Ignore USEs.
3181 (emit_insn_group_barriers): Set flags.is_sibcall. Remove hacks
3182 for CODE_FOR_gr_spill_internal/CODE_FOR_gr_restore_internal.
3183 * config/ia64/ia64.h (PREDICATE_CODES): Update.
3184 * config/ia64/ia64.md (call): Use ia64_expand_call.
3185 (call_value): Likewise.
3186 (sibcall, sibcall_value): New.
3187 (call patterns): Remove extra expanders; tidy.
3188 (sibcall_epilogue): New.
3189 (set_bsp): Remove the extra USE. Put the operand inside the UNSPEC.
3191 2000-09-24 Richard Henderson <rth@cygnus.com>
3193 * emit-rtl.c (gen_lowpart_common): Use trunc_int_for_mode.
3195 * sibcall.c (skip_pic_restore): New.
3196 (identify_call_return_value): Use it.
3198 2000-09-24 Mark Mitchell <mark@codesourcery.com>
3200 * c-tree.texi: Moved here from cp/ir.texi. Documented nested
3201 functions. Generalize to handle both C and C++.
3202 * Makefile.in (c-tree.info): New target.
3203 (info): Add c-tree.info.
3205 Sun Sep 24 09:15:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3207 * expr.c (store_field): If BITSIZE is negative, use size of type.
3208 (expand_expr, case COMPONENT_EXPR): Likewise.
3210 Sun 24-Sep-2000 11:40:23 BST Neil Booth <NeilB@earthling.net>
3212 * cpplex.c: Update TODO comment.
3213 * cpplib.c (do_error, do_warning): Merge common code of
3214 do_error and do_warning into do_diagnostic. Use it.
3215 (do_diagnostic): New function.
3216 * cpplib.h: Fix comment typo.
3218 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
3220 * c-common.c (check_format_info): Warn for a wide character string
3221 used as a non-wide format argument.
3223 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
3225 * builtins.def (BUILT_IN_LLABS): Add.
3226 * builtins.c (expand_builtin): Also abort on BUILT_IN_LLABS.
3227 * c-common.c (c_common_nodes_builtins): Create builtin functions
3228 __builtin_llabs, and plain llabs unless no_nonansi_builtins
3229 outside of C99 mode.
3230 (expand_tree_builtin): Handle BUILT_IN_LLABS.
3232 Sat 23-Sep-2000 22:39:18 BST Neil Booth <NeilB@earthling.net>
3234 * cpphash.h (CPP_RESERVE, CPP_PUTS_Q, CPP_PUTS, CPP_PUTC_Q,
3235 CPP_PUTC, DUMMY_TOKEN, NO_DUMMY_TOKEN): Delete.
3236 * cpplex.c (_cpp_expand_token_space, _cpp_init_toklist,
3237 _cpp_free_toklist): No need to worry about extra dummy token
3238 at the start of token lists any more.
3239 (trigraph_ok): Only warn outside comments.
3240 (skip_block_comment): Set and clear lexing_comment.
3241 (skip_line_comment): Take a cpp_reader not cpp_buffer.
3242 Set and clear lexing_comment.
3243 (parse_number): Handle leading '.' indicated by pfile->seen_dot.
3244 (check_long_token): Delete.
3245 (lex_percent, lex_dot): New subroutines of lex_token to
3246 handle lexing of '.' and '%' without lookback.
3247 (lex_token): Use lex_dot and lex_percent.
3248 (lex_line): Don't check for LIST_OFFSET.
3249 (_cpp_init_input_buffer): Update for new _cpp_init_toklist.
3250 * cpplib.c (_cpp_parse_assertion): Similarly.
3251 (cpp_push_buffer): Initialize extra_char.
3252 * cpplib.h (LIST_OFFSET): Delete.
3253 (struct cpp_buffer): New member extra_char.
3254 (struct lexer_state): New members lexing_comment and seen_dot.
3256 2000-09-23 Jason Merrill <jason@redhat.com>
3258 * config/rs6000/x-aix41 (CLIB): Define here.
3259 * config/rs6000/t-aix43: Not here.
3260 * config/rs6000/t-aix41: Or here. Remove.
3261 * configure.in: Don't use it.
3263 2000-09-22 Jason Merrill <jason@redhat.com>
3265 * configure.in: Add test for HAVE_LD_DWARF_LINKONCE.
3266 * toplev.c: Use it to initialize flag_eliminate_dwarf2dups.
3267 * config.in: Regenerate.
3269 * configure.in: Fix checks for assembler features when using a
3270 one-tree assembler that has not yet been built.
3271 Fix --disable-threads.
3273 2000-09-19 Geoff Keating <geoffk@cygnus.com>
3275 * stmt.c (expand_asm_operands): Allow # in constraints.
3277 2000-09-22 Jason Merrill <jason@redhat.com>
3279 * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
3281 * dbxout.c (dbxout_symbol_name): Just use DECL_NAME for
3282 function-local names.
3284 2000-09-22 Brad Lucier <lucier@math.purdue.edu>
3285 Mark Mitchell <mark@codesourcery.com>
3287 * toplev.c (warn_disabled_optimization): Declare new warning flag.
3288 * flags.h (warn_disabled_optimization): Add it here.
3289 * gcse.c (gcse_main): Add warning when disabled.
3290 * invoke.texi: Document -Wdisabled-optimization.
3292 2000-09-21 Jason Merrill <jason@redhat.com>
3294 * dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.
3296 * dwarf2out.c (tree_add_const_value_attribute): New fn.
3297 (gen_variable_die): Call it for non-definitions.
3299 * dwarf2out.c (die_struct): Add die_mark field.
3300 (mark_dies, unmark_dies): New fns.
3301 (clear_die_sizes): Remove.
3302 (print_die): Check die_symbol rather than die_offset.
3303 (build_abbrev_table, output_pubnames, output_aranges): Check
3304 die_mark rather than die_offset.
3305 (output_comp_unit): Move calc_die_sizes after build_abbrev_table.
3308 Thu 21-Sep-2000 18:19:05 BST Neil Booth <NeilB@earthling.net>
3310 * cppfiles.c (lookup_include_file): Rename to open_file.
3311 Always create a splay tree value, even on syscall failures.
3312 Negative entries indicated by fd == -2.
3313 Re-open files closed in the meantime.
3314 (_cpp_fake_include): Create a negative splay tree entry.
3315 (find_include_file, cpp_read_file): Update for function name
3317 * gcc.gd/cpp/mi4.c: Testcase.
3319 2000-09-21 Nick Clifton <nickc@redhat.com>
3321 * config/arm/t-arm-elf (MULTILIB_DIRNAMES): Enable multilibs for
3322 ARM and THUMB modes.
3324 * config/mcore/mcore.c: Fix compile time warnings.
3325 * config/mcore/mcore-protos.h: Fix compile time warnings.
3327 2000-09-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3329 * configure.in: Correct test of gcc_cv_glibc.
3330 * configure: Rebuilt.
3331 * config.in: Rebuilt.
3333 2000-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3335 * builtins.c (expand_builtin_fputs): Also expand when length!=1.
3336 (expand_builtin): Handle BUILT_IN_FWRITE.
3338 * builtins.def (BUILT_IN_FWRITE): New entry.
3340 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_fwrite.
3342 Wed Sep 20 15:39:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3344 * gcc.c (modify_target): New variable and struct.
3345 (process_command): Handle MODIFY_TARGET_NAME.
3346 * tm.texi (MODIFY_TARGET_NAME): Add documentation for new macro.
3347 * config/pa/pa.h (MODIFY_TARGET_NAME): New macro.
3349 * c-decl.c (finish_decl): Add else's to avoid referencing
3350 TYPE_DOMAIN of an ERROR_MARK.
3352 Wed Sep 20 21:44:31 2000 Denis Chertykov <denisc@overta.ru>
3354 * config/avr/avr.c (adjust_insn_length): Adjust lengths of
3357 2000-09-19 Marek Michalkiewicz <marekm@linux.org.pl>
3359 * config/avr/avr.md (neghi2): Add alternative for input and output
3360 operands in different registers, as in negsi2.
3361 (*negsi2): Remove '*' from the name. Use "movw" if available.
3363 2000-09-19 Jim Wilson <wilson@cygnus.com>
3365 * config/ia64/crtbegin.asm (__dso_handle): Delete use of
3366 HAVE_GAS_HIDDEN macro.
3368 Tue 19-Sep-2000 22:38:57 BST Neil Booth <NeilB@earthling.net>
3370 * cpplex.c (lex_line): Drop the EOF token for unknown
3371 directives in assembler.
3373 2000-09-19 David Edelsohn <edelsohn@gnu.org>
3375 * configure.in: Allow enable_threads_flag value of "aix". Define
3376 thread_file as "aix" for AIX 4.3 and above.
3377 * configure: Regenerated.
3379 * gthr-aix.h: New file.
3381 * rs6000/t-aix43: Replace soft-float multilib with pthread.
3382 Remove 403 processor multilib match. Fix rios2 processor multilib
3385 * rs6000/aix.h (ASM_DECLARE_FUNCTION_NAME): Use function_section
3386 to return to appropriate csect.
3388 2000-09-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3390 * builtins.c (is_valid_printf_arglist, expand_builtin_printf): New
3392 (expand_builtin_fputs): Set `target' parameter for `expand_expr'.
3393 (expand_builtin): Handle BUILT_IN_PUTCHAR, BUILT_IN_PUTS and
3396 * builtins.def (BUILT_IN_PUTCHAR, BUILT_IN_PUTS, BUILT_IN_PRINTF):
3399 * c-common.c (init_function_format_info): Handle __builtin_printf.
3400 Set `check_function_format_ptr'.
3401 (c_common_nodes_and_builtins): Set `puts_ftype' and
3402 `printf_ftype'. Declare __builtin_putchar, __builtin_puts,
3403 __builtin_printf and printf.
3405 * tree.c, tree.h (check_function_format_ptr): Declare.
3407 Tue 19-Sep-2000 18:26:57 BST Neil Booth <NeilB@earthling.net>
3409 * cppfiles.c (read_include_file): Take no special action for
3412 2000-09-19 Bernd Schmidt <bernds@redhat.co.uk>
3414 * final.c (insn_current_reference_address): Use INSN_SHUID of seq
3415 rather than that of branch.
3416 (shorten_branches): Don't increment insn_current_address twice.
3418 Undo most of the Wed Jan 27 23:39:53 1999 patch:
3419 * loop.h (struct induction): Delete members derived, ix and last_use.
3420 (struct loop_ivs): Delete members first_increment_giv and
3422 * loop.c (verify_dominator, find_life_end, cmp_recombine_givs_stats,
3423 recombine_givs): Delete functions.
3424 (find_and_verify_loops): Don't initialize cont_dominator.
3425 (strength_reduce): Lose code to try to find bivs that can be
3426 expressed as givs of another biv, and to convert biv increments
3428 Lose loop_scan_start variable, always use loop->scan_start.
3429 Don't call recombine_givs. Don't handle derived givs.
3430 (record_giv): Don't initialize derived and last_use fields.
3431 (biv_eliminiation_giv_has_0_offset): Lose code to handle derived
3433 * unroll.c (derived_regs): Delete static variable.
3434 (unroll_loop): Don't initialize it.
3435 (copy_loop_body): Lose code to handle derived givs.
3436 (find_splittable_givs): Don't check for givs made from biv
3438 Don't set derived_regs.
3440 Fix misapplied earlier patch:
3441 * config/sh/sh.md (floatsisf_ie): Reenable. Remove explicit reference
3443 (floatsisf2): Generate floatsisf_ie by default.
3444 (floatsisf_i4): Conditional on TARGET_SH4.
3446 (floatsisf2, floatsidf2, extendsfdf2): Also use reg_no_subreg_operand
3447 predicate for the expanders.
3449 2000-09-19 Richard Henderson <rth@cygnus.com>
3451 * config/i386/i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols
3452 in addition to pentium and pentiumpro symbols.
3453 (CPP_CPU_DEFAULT_SPEC): Likewise.
3455 * c-typeck.c (c_expand_asm_operands): Restore the output tree
3458 * stmt.c (expand_expr_stmt): Only call warn_if_unused_value
3459 if the tree has side effects.
3460 (warn_if_unused_value): Do not warn about void constructs.
3462 * c-decl.c (poplevel): Invoke warn_about_unused_variables.
3464 * unroll.c (copy_loop_body): Update LABEL_NUSES before
3465 calling invert_jump.
3467 2000-09-18 Geoff Keating <geoffk@cygnus.com>
3469 * combine.c (can_combine_p): Don't substitute an ASM_OPERANDS
3472 2000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3474 * Makefile.in (c-common.o): Depend on diagnostic.h.
3476 * c-common.c: Include diagnostic.h.
3478 (status_warning): New function.
3479 (check_format_info, maybe_read_dollar_number, check_format_types,
3480 finish_dollar_format_checking, check_function_format): Accept a
3481 `status' parameter. All callers changed.
3483 * c-common.h (check_function_format): Accept a `status' parameter.
3485 * c-typeck.c: Update call to `check_function_format'.
3487 2000-09-18 Richard Henderson <rth@cygnus.com>
3489 * c-decl.c (c_expand_body): Call mark_varargs before
3490 expand_function_start.
3492 2000-09-18 Geoff Keating <geoffk@cygnus.com>
3494 * config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #.
3495 * config/rs6000/eabi-ci.asm: Likewise.
3497 2000-09-18 Richard Henderson <rth@cygnus.com>
3499 * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx
3502 2000-09-18 Jim Wilson <wilson@cygnus.com>
3504 * unroll.c (loop_iterations): Pass increment to extend_for_giv_value
3505 before passing it to fold_rtx_mult_add.
3507 * unroll.c (final_giv_value): Pass increment through
3508 extend_value_for_giv before passing it to emit_iv_add_mult.
3510 * function.c (fixup_var_refs_1, case ZERO_EXTRACT): If we have a
3511 paradoxical subreg, then directly substitute the replacement and
3514 Mon 18-Sep-2000 22:12:44 BST Neil Booth <NeilB@earthling.net>
3516 * cpp.texi: Update documentation, including some clarifications,
3517 the treatment of various newline combinations, and space between
3518 backslash and newline.
3520 Mon Sep 18 21:00:47 2000 J"orn Rennecke <amylaar@redhat.co.uk>
3522 * sdbout.c (PUT_SDB_DEF, PUT_SDB_TAG, PUT_SDB_EPILOGUE_END):
3523 Replace ASM_OUTPUT_LABELREF with assemble_name.
3525 Mon Sep 18 20:26:50 2000 J"orn Rennecke <amylaar@redhat.co.uk>
3527 * sh.c (addsubcosts): CONST is not cheap.
3528 (find_barrier): For Sh1, take alignment after jumps into account.
3530 2000-09-15 Andrew Haley <aph@redhat.com>
3532 * toplev.c (rest_of_compilation): Call purge_hard_subreg_sets to
3533 remove all SETs of SUBREGs of hard registers.
3534 * function.c (purge_hard_subreg_sets): New function.
3535 (purge_single_hard_subreg_set): New function.
3536 * rtl.h: (purge_hard_subreg_sets): New function.
3538 2000-09-18 Richard Henderson <rth@cygnus.com>
3540 * config/ia64/ia64-protos.h: Update.
3541 * config/ia64/ia64.c (signed_inequality_operator): New.
3542 (ia64_expand_compare): New.
3543 (ia64_register_move_cost): Handle PR_REGS moves.
3544 (ia64_secondary_reload_class): Require a GR when moving to a PR.
3545 (struct reg_write_state): Add written_by_and/or.
3546 (struct reg_flags): Add is_and/or.
3547 (rws_update): Set them.
3548 (rws_access_regno): Test them to allow parallel comparisons.
3549 (rtx_needs_barrier): Recognize parallel comparisons.
3550 (emit_insn_group_barriers): Set prev_insn after a call stop bit.
3551 Call recog_memoized; ignore pred_rel_mutex.
3552 (emit_predicate_relation_info): Don't call find_basic_blocks here.
3553 (ia64_reorg): Do it here instead.
3554 * config/ia64/ia64.h: s/CCmode/BImode/g
3555 (MODES_TIEABLE_P): Don't tie BImode.
3556 (PREFERRED_RELOAD_CLASS): Do not reload operations into AR regs.
3557 (CONST_COSTS): Pick sensible values for CONST_INT based on context.
3558 (RTX_COSTS): Make multiply 4 insns.
3559 (MEMORY_MOVE_COST): New.
3560 (PREDICATE_CODES): Update.
3561 * config/ia64/ia64.md: s/CCmode/BImode/g
3562 (movcci, movbi): New.
3563 (andbi3, andcmbi3, iorbi3, iorcmbi3, one_cmplbi2): New.
3564 (cmpsi_and_0, cmpsi_and_1, cmpsi_andnot_0, cmpsi_andnot_1): New.
3565 (cmpdi_and_0, cmpdi_and_1, cmpdi_andnot_0, cmpdi_andnot_1): New.
3566 (tbit_and_0, tbit_and_1, tbit_and_2, tbit_and_3): New.
3567 (cmpsi_or_0, cmpsi_or_1, cmpsi_orcm_0, cmpsi_orcm_1): New.
3568 (cmpdi_or_0, cmpdi_or_1, cmpdi_orcm_0, cmpdi_orcm_1): New.
3569 (tbit_or_0, tbit_or_1, tbit_or_2, tbit_or_3): New.
3570 (mulsi, muldi): Use xmpy not xma.
3572 (movcc, movcc_internal): Remove.
3573 (branch expanders): Use ia64_expand_compare.
3574 (setcc expanders): Likewise.
3575 (cmov insns): Use move_operand and ia64_move_ok.
3576 (pred_rel_mutex): Use unspec not unspec_volatile. Prevent the
3577 scheduler from moving it past a use.
3578 * config/ia64/build.hacks: Remove.
3580 Mon 18-Sep-2000 19:21:35 BST Neil Booth <NeilB@earthling.net>
3582 * cpphash.h (HASHSTEP): Take character rather than pointer
3584 (_cpp_check_directive, _cpp_check_linemarker): Update prototypes.
3586 * cpphash.c (cpp_loookup): Update for new HASHSTEP.
3588 * cpplex.c (auto_expand_name_space, trigraph_replace,
3589 backslash_start, handle_newline, parse_name, INIT_TOKEN_STR,
3590 IMMED_TOKEN, PREV_TOKEN_TYPE, PUSH_TOKEN, REVISE_TOKEN,
3591 BACKUP_TOKEN, BACKUP_TRIGRAPH, MIGHT_BE_DIRECTIVE,
3592 KNOWN_DIRECTIVE): Delete.
3594 (handle_newline, check_long_token, skip_escaped_newlines,
3595 unterminated): New functions.
3596 (ACCEPT_CHAR, SAVE_STATE, RESTORE_STATE): New macros.
3598 (parse_identifier): Was parse_name, new implementation.
3599 (skip_line_comment, skip_block_comment, skip_whitespace,
3600 parse_number, parse_string, trigraph_ok, save_comment,
3601 adjust_column, _cpp_get_line): New implementations.
3603 (lex_token): New function. Lexes a token at a time, looking
3604 forwards. Contains most of the guts of the old lex_line.
3605 (lex_line): New implementation, using lex_token to obtain
3607 (cpp_scan_buffer): Use the token's line, not the list's line.
3609 * cpplib.c (_cpp_check_directive, _cpp_check_linemarker):
3610 New implementations.
3611 (do_assert): Don't bother setting the answer's list's line.
3612 (cpp_push_buffer): Initialise new pfile and read_ahead members
3613 of struct cpp_buffer.
3615 * cpplib.h (cppchar_t): New typedef.
3616 (struct cpp_buffer): read_ahead, pfile and col_adjust are
3618 (struct lexer_state): New structure that determines the state
3619 and behaviour of the lexer.
3620 (IN_DIRECTIVE, KNOWN_DIRECTIVE): New macros.
3621 (struct cpp_reader): New member "state". Rename
3622 multiline_string_line and multiline_string_column. Delete
3623 col_adjust, in_lex_line members.
3624 (CPP_BUF_COLUMN): Update.
3626 2000-09-18 Richard Henderson <rth@cygnus.com>
3628 * combine.c (simplify_comparison): Shift a NOT out of a single
3631 * combine.c (if_then_else_cond): Canonicalize BImode true to
3633 * explow.c (trunc_int_for_mode): Likewise.
3635 * combine.c (combine_simplify_rtx): Use gen_unary to distribute
3636 the NOT for De Morgan's rule.
3637 * simplify-rtx.c (simplify_unary_operation): Simplify a BImode NOT
3638 of a comparison to the reverse comparison.
3640 * combine.c (try_combine): Allow split to create a single insn.
3642 * machmode.def: Add BImode. Add a column for bitsize.
3643 * machmode.h (DEF_MACHMODE): Adjust for extra column.
3644 (GET_MODE_BITSIZE): Use it.
3645 * rtl.c (DEF_MACHMODE): Adjust for extra column.
3646 (mode_bitsize): New.
3647 (mode_mask_array): Use bitsize.
3648 * combine.c (combine_simplify_rtx): Require inner and outer
3649 modes to match on nonzero_bits optimizations.
3651 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
3653 * reload1.c (forget_old_reloads_1): If a hard reg is stored, clear
3654 its entry in spill_reg_store.
3655 * config/sh/lib1funcs.ams (movstr_i4 functions): Always compile in.
3656 * sh.c (reg_no_subreg_operand): New function.
3657 * sh-protos.h (reg_no_subreg_operand): Declare it.
3658 * sh.h (PREDICATE_CODES): Add it.
3659 * sh.md (floatsisf2_i4, floatsidf2_i, extendsfdf2_i4): Use it for
3660 input operand that needs to be in fpul.
3661 (fix_truncsfsi2, fix_truncsfsi2_i4): Use register_operand for output.
3662 * sh.c (find_barrier): Take into account that machine_dependent_reorg
3663 might add new insns.
3665 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
3667 * config/sh/sh.c (sh_expand_prologue): Mark GOTaddr2picreg as
3669 (sh_expand_epilogue): Take the PIC register into account when
3670 computing the frame size.
3672 * config/sh/sh.c (nonpic_symbol_mentioned_p): Check LABEL_REFs.
3673 * config/sh/sh.md (sym_label2reg, symPLT_label2reg): Protect
3674 LABEL_REFs with a PIC-safe unspec.
3676 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
3678 * c-common.c (check_format_info): Properly save the argument
3679 number and parameter for $ operand number formats in case width
3680 and precision arguments are also used. Allow printf width and
3681 precision arguments to have operand numbers even if none was
3682 specified for the main format, since this is OK for %*.*m. Only
3683 object to missing $ operand number if the format used requires an
3686 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
3688 * c-common.c (format_char_info): Add 'W' flag to comment.
3689 (print_char_table, scan_char_table): Use it.
3690 (check_format_info): Use the 'W' flag to determine whether a
3691 format argument is written into.
3693 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
3695 * c-common.c (check_format_types): Reorganise and clean up,
3696 checking earlier for ERROR_MARKs and making cur_type into its
3697 TYPE_MAIN_VARIANT where convenient.
3699 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
3701 * gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
3703 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
3705 * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call.
3707 * i386-protos.h (ix86_init_builtins, ix86_expand_builtin): Declare.
3708 * i386.c (struct builtin_description): New.
3709 (bdesc_comi, bdesc_2arg, bdesc_1arg): New arrays.
3710 (mmx_reg_operand): Declare MODE arg as unused.
3711 (ix86_expand_sse_comi, ix86_expand_sse_compare, safe_vector_operand,
3712 ix86_expand_unop1_builtin, ix86_expand_unop_builtin,
3713 ix86_expand_binop_builtin, ix86_expand_store_builtin,
3714 ix86_init_builtins, ix86_expand_builtin): New functions.
3715 * i386.h (ix86_builtins): New enumeration.
3716 (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): New macros.
3717 * i386.md (attr length_immediate): 0 for mmx/sse types.
3718 (attr prefix_0f): 1 for mmx/sse types.
3719 (setcc_2): Remove "*" so we get gen_setcc_2.
3720 (emms): Account for changed register numbering. Set "memory" attr
3722 (sfence): Set "memory" attr to unknown.
3724 2000-09-18 Andreas Jaeger <aj@suse.de>
3726 * configure.in: Define _GNU_SOURCE only when using the GNU C
3728 * configure: Regenerated.
3729 * config.in: Regenerated.
3731 2000-09-17 Mark Mitchell <mark@codesourcery.com>
3733 * cppinit.c (cpp_init): Don't use ANSI prototypes.
3734 * flow.c (flow_dump_loop): Likewise.
3735 (flow_loops_dump): Likewise.
3737 * c-typeck.c (c_start_case): Fix typo.
3739 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
3741 * c-decl.c (grokdeclarator): Don't give a warning about defaulting
3742 to int for plain complex which defaults to complex double. Do
3743 warn about defaulting to complex double if pedantic. Warn about
3744 complex integer types if pedantic. Warn about complex types if
3745 pedantic and not in C99 mode.
3746 * c-typeck.c (build_unary_op): If pedantic, warn about use of ~
3747 for complex conjugation.
3749 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
3751 * contrib.texi: Update my entry.
3753 Sun Sep 17 18:48:32 2000 Denis Chertykov <denisc@overta.ru>
3755 * config/avr/avr.md (mcu_enhanced): New attribute.
3756 (mcu_mega): Likewise.
3757 (extendhisi2): Use mcu_enhanced.
3758 (zero_extendhisi2): Likewise.
3759 (call_insn): Use mcu_enhanced and mcu_mega.
3760 (call_value_insn): Likewise.
3761 (*sbrx_branch): Use mcu_mega.
3762 (*sbrx_and_branchsi): Likewise.
3763 (*sbrx_and_branchhi): Likewise.
3764 (*tablejump_lib): Likewise.
3766 Sun Sep 17 10:46:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3768 * alias.c (true_dependence): Allow non-unchanging read to conflict
3769 with unchanging write.
3771 * expr.c (store_constructor_field): Accept ALIAS_SET arg.
3772 (store_constructor): Pass alias_set to it.
3774 * c-decl.c (grokdeclarator): Reorder tests to avoid looking at
3775 TYPE_MAIN_VARIANT of ERROR_MARK.
3776 * c-lex.c (readescape): Avoid using printf syntax we don't recognize.
3778 * simplify-rtx.c (simplify_unary_operation): Add cases
3779 FLOAT_EXTEND and FLOAT_TRUNCATE to ones that return 0.
3781 2000-09-17 Bernd Schmidt <bernds@redhat.co.uk>
3783 * expr.h (emit_library_call, emit_library_call_value): Delete
3785 * rtl.h (enum libcall_type): New.
3786 (emit_library_call, emit_library_call_value): Change fn_type arg to
3787 be of type enum libcall_type.
3788 * calls.c: Likewise for the function definitions. Several callers
3789 throughout changed to use the new enumeration appropriately.
3790 (emit_library_call_value_1): Likewise. Put back code to make libcall
3791 blocks of equal form, but only use it for the two new higher
3794 2000-09-16 Mark Mitchell <mark@codesourcery.com>
3796 Convert the C front-end to use function-at-a-time mode.
3797 * c-common.h: Include splay-tree.h.
3798 (C_DECLARED_LABEL_FLAG): New macro.
3799 (struct language_function): Add x_scope_stmt_stack and
3800 x_function_name_declared_p.
3801 (RECHAIN_STMTS): Move definition.
3802 (lang_statment_code_p): Likewise.
3803 (lang_expand_stmt): Likewise.
3804 (lang_expand_decl_stmt): New variable.
3805 (lang_expand_function_end): Likewise.
3806 (current_scope_stmt_stack): New function.
3807 (add_decl_stmt): Likewise.
3808 (add_scope_stmt): Likewise.
3809 (mark_stmt_tree): Likewise.
3810 (struct c_lang_decl): New structure.
3811 (DECL_SAVED_TREE): Define.
3812 (c_mark_lang_decl): New function.
3813 (c_expand_start_cond): Change prototype.
3814 (c_finish_then): New function.
3815 (c_finish_else): Likewise.
3816 (current_function_name_declared): Remove.
3817 (set_current_function_name_declared): Likewise.
3818 (mark_c_language_function): Declare.
3819 (case_compare): Likewise.
3820 (c_add_case_label): Likewise.
3821 (c_expand_expr): Likewise.
3822 (c_safe_from_p): Likewise.
3823 * c-common.c (lang_expand_function_end): New variable.
3824 (struct if_elt): Add if_stmt.
3825 (c_expand_start_cond): Add the if-statement to the statement-tree,
3826 rather than generating RTL.
3827 (c_finish_then): New function.
3828 (c_expand_start_else): Don't generate RTL.
3829 (c_finish_else): New function.
3830 (c_expand_expr_stmt): Don't generate RTL.
3831 (statement_code_p): Add SCOPE_STMT.
3832 (case_compare): New function.
3833 (c_add_case_label): Likewise.
3834 (mark_stmt_tree): Likewise.
3835 (c_mark_lang_decl): Likewise.
3836 (mark_c_language_function): Likewise.
3837 (c_expand_expr): Likewise.
3838 (c_safe_from_p): Likewise.
3839 * c-decl.c (c_stmt_tree): New variable
3840 (c_scope_stmt_stack): Likewise.
3841 (c_function_name_declared_p): Likewise.
3842 (lang_expand_expr_stmt): Remove.
3843 (poplevel): Don't call output_inline_function for nested
3845 (pushdecl): Don't set DECL_CONTEXT for a local declaration of an
3847 (redeclaration_error_message): Change means of computing whether
3848 or not a function is nested.
3849 (lookup_label): Don't call label_rtx.
3850 (init_decl_processing): Add more GC roots.
3851 (start_decl): Add DECL_STMTs to the statement-tree, rather than
3852 calling rest_of_decl_compilation.
3853 (finish_decl): Don't call expand_decl.
3854 (store_parm_decls): Begin the statement-tree, but don't generate
3856 (finish_function): Tie off the statement-tree. Call c_expand_body
3858 (c_expand_body): New function.
3859 (push_c_function_context): Save more information.
3860 (pop_c_function_contxt): Likewise.
3861 (copy_lang_decl): Now that we use DECL_LANG_SPECIFIC, copy it.
3862 (lang_mark_tree): Mark it.
3863 (current_stmt_tree): Adjust.
3864 (current_scope_stmt_stack): New function.
3866 (set_current_name_declared): Likewise.
3867 (c_begin_compound_stmt): Define.
3868 (c_expand_decl_stmt): Likewise.
3869 * c-lang.c: Include rtl.h and expr.h.
3870 (lang_init): Set more language-specific hooks.
3871 * c-lex.c: Include expr.h.
3872 * c-parse.in: Changes throughout to add statements to the
3873 statement-tree, rather than generating RTL after every statement.
3874 * c-semantics.c (lang_expand_decl_stmt): Define.
3875 (add_decl_stmt): New function.
3876 (add_scope_stmt): Likewise.
3877 (finish_stmt_tree): Tweak.
3878 (genrtl_expr_stmt): Likewise.
3879 (genrtl_decl_stmt): Handle local labels, and call
3880 lang_expand_decl_stmt if required.
3881 (genrtl_for_stmt): Fix line-number handling.
3882 (genrtl_case_label): Handle cleanups.
3883 (genrtl_asm_stmt): Don't call combine_strings.
3884 (genrtl_compound_stmt): Simplify.
3885 (expand_stmt): Handle SCOPE_STMTs.
3886 * c-tree.h (struct lang_decl): New structure.
3887 (C_DECLARED_LABEL_FLAG): Remove.
3888 (c_begin_compound_stmt): Declare.
3889 (c_expand_decl_stmt): Likewise.
3890 (c_expand_start_case): Rename to c_start_case.
3891 (c_finish_case): New function.
3892 * c-typeck.c (start_init): Tweak setting of
3893 constructor_incremental.
3894 (c_expand_asm_operands): Tweak error-handling. Add to the
3896 (c_expand_return): Add to the statement-tree.
3897 (c_expand_start_case): Rename to ...
3898 (c_start_case): ... this.
3899 (struct c_switch): New type.
3900 (switch_stack): New variable.
3901 (do_case): Simplify.
3902 (c_finish_case): New function.
3903 * dependence.c: Include expr.h.
3904 (enum dependence_type): Change spelling of enumerals.
3905 (check_node_dependence): Adjust.
3906 * expr.h (lang_safe_from_p): Declare.
3907 (safe_from_p): Likewise.
3908 * expr.c (lang_safe_from_p): New variable.
3909 (safe_from_p): Give it external linkage. Use lang_safe_from_p.
3910 * stmt.c (expand_expr_stmt): Avoid clobberring of last_expr_type.
3911 * toplev.c (rest_of_decl_compilation): Robustify.
3912 * tree.c (contains_placeholder_p): Likewise.
3913 * Makefile.in: Update dependencies.
3914 * objc/objc-act.h: Adjust calculation of value for dummy_tree_code.
3915 * objc/objc-act.c: Include rtl.h, expr.h, and c-common.h.
3916 (objc_expand_function_end): New function.
3917 (finish_method_def): Use it.
3918 (init_objc): Initialize more language-specific hooks.
3919 * objc/Make-lang.in: Update dependencies.
3921 2000-09-16 Geoffrey Keating <geoffk@cygnus.com>
3923 * configure.in: Define macros that affect features before
3924 testing for features. Don't define _XOPEN_SOURCE.
3925 * configure: Regenerated.
3926 * config.in: Regenerated.
3928 Sat Sep 16 19:42:50 EDT 2000 John Wehle (john@feith.com)
3930 * rtlanal.c (rtx_varies_p): Volatile asms vary.
3931 (rtx_unstable_p): Restructure code. Volatile asms
3934 Sat Sep 16 14:35:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3936 * function.h (no_debugging_symbols): New field.
3937 * integrate.c (save_for_inline): Renamed from save_for_inline_nocopy.
3938 Initialize no_debugging_symbols.
3939 (output_inline_function): Save and restore write_symbols and set from
3940 no_debugging_symbols.
3941 * toplev.c (rest_of_compilation): Call save_for_inline.
3942 * tree.h: Update comment.
3944 * stor-layout.c (place_field): Don't do anything if field or
3945 its type are ERROR_MARK.
3947 Sat Sep 16 19:14:00 2000 Laurynas Biveinis <lauras@softhome.net>
3949 * cppfiles.c (purge_cache): Use munmap only if MMAP_THRESHOLD defined.
3950 (read_include_file): Ensure inc->mmaped is initialized.
3952 2000-09-16 Richard Henderson <rth@cygnus.com>
3954 * cppiles.c (purge_cache): Use PTR not caddr_t.
3956 2000-09-16 Hans-Peter Nilsson <hp@axis.com>
3958 * gcc.c: In description for %{<S}, say the option removed is -S.
3959 * invoke.texi (Spec Files): Ditto.
3961 2000-09-16 Andreas Jaeger <aj@suse.de>
3963 * configure.in: Always define _GNU_SOURCE to make interfaces
3964 visible that were hidden by only defining _GNU_SOURCE.
3965 * configure: Regenerated.
3967 Sat 16-Sep-2000 08:13:45 BST Neil Booth <NeilB@earthling.net>
3969 * cpplex.c (push_macro_context): Set an argument's level after
3970 calling parse_args. We could loop infinitely otherwise.
3972 2000-09-15 Tom Tromey <tromey@cygnus.com>
3974 * configure, config.in: Rebuilt.
3975 * configure.in: Check for iconv.h. Define _XOPEN_SOURCE.
3977 2000-09-15 Greg McGary <greg@mcgary.org>
3979 * cppmacro.c (check_trad_stringification): Check token
3980 text pointers against limit before dereferencing.
3982 2000-09-15 Joseph S. Myers <jsm28@cam.ac.uk>
3984 * c-common.c (format_wanted_type): New structure.
3985 (check_format_types): New function.
3986 (check_format_info): Pass all checking of types of format
3987 arguments, including width and precision arguments, to this new
3990 2000-09-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3992 * BUGS: Remove file.
3994 2000-09-15 Jakub Jelinek <jakub@redhat.com>
3996 * config/alpha/alpha.c (override_options): ev6 cache latencies
3997 from Richard Henderson. Don't allow -mmemory-latency=L0.
3999 * config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
4000 (TARGET_OPTIONS): Add tune=.
4001 (alpha_tune_string): Declare.
4002 * config/alpha/alpha.c (override_options): Add cpu_table.
4003 Use alpha_cpu_string first to set both alpha_cpu and target_flags
4004 and then alpha_tune_string to set alpha_cpu only.
4005 Replace tests for PROCESSOR_EV* with TARGET_CPU_EV* tests.
4006 * config/alpha/elf.h (ASM_FILE_START): Likewise.
4007 * config/alpha/osf.h (ASM_FILE_START): Likewise.
4008 * config/alpha/openbsd.h (ASM_FILE_START): Likewise.
4010 Fri Sep 15 19:45:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
4012 * i386-protos.h (no_comparison_operator, uno_comparison_operator):
4014 (ix86_comparison_operator, ix86_cc_mode): Declare
4015 * i386.h (CCGC, CCGCO): New modes.
4016 (SELECT_CC_MODE): Move offline to ....
4017 * i386.c (ix86_cc_mode): .... here; use new modes.
4018 (ix86_comparison_operator): New.
4019 (fcmov_comparison_operator): Ensure proper mode.
4020 (put_condition_mode): More sanity checking.
4021 (ix86_match_ccmode): Handle new modes.
4022 (ix86_expand_fp_compare): GEU requires CCmode.
4023 (ix86_expand_strlensi_unroll_1): Use emit_cmp_and_jump_insn instead of
4025 * i386.md (cmp?i_ccz_1): Remove
4026 (cmp?i_ccno_1): Use ix86_match_ccmode.
4027 (cmp?i_minus_1): New.
4028 (cmpsi_1): New expander.
4029 (cmpqi_ext_1): Use match_ccmode
4030 (cmpqi_ext_3): New expander.
4031 (cmpqi_ext_3_insn): Rename from cmpqi_ext_3.
4032 (cmpqi_ext_4): Use match_ccmode.
4033 (add?i_?): Use match_ccmode.
4035 (test?i_ccz_1): Remove
4037 (testsi_ccno_1, testqi_ccz_1, testqi_ext_ccno_0): New expander.
4038 (testqi_ext_0): Use ix86_match_ccmode.
4039 (*xorqi_cc_ext_1): Use ix86_match_ccmode.
4040 (xorqi_cc_ext_1): New expander.
4041 (shift patterns): Use CCGOCmode for all shifts except for sar.
4042 (setcc_?, jcc_?, miv?icc_nic): Use ix86_comparison_operator.
4043 (setcc_3, jcc_3, miv?icc_c): Remove.
4045 2000-09-15 Will Cohen <wcohen@redhat.com>
4047 * dwarf2out.c (add_const_value_attribute): Changed array into a
4048 xmalloced object, so it exists after function exit.
4049 (free_AT): Added case for dw_val_class_float to free allocated
4052 2000-09-15 Kazu Hirata <kazu@hxi.com>
4054 * config/i386/i386.md: Fix a comment typo.
4055 * gcc.c: Fix formatting.
4057 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
4059 * optabs.c (emit_libcall_block): If target is a user variable,
4060 copy to a temporary first.
4061 * expr.c (convert_move): When generating a libcall, make a libcall
4063 * calls.c (emit_library_call_value_1): Don't create a libcall
4064 sequence here; our caller will in most cases do it.
4066 * sh.h (SECONDARY_INPUT_RELOAD_CLASS): Handle moving T, MACL or
4068 (SECONDARY_OUTPUT_RELOAD_CLASS): Similar case.
4069 * sh.md (reload_outsf): Generate recognizable patterns for
4071 (floatsisf2, floatsisf2_ie, floatsisf2_i4, fix_truncsfsi2,
4072 fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i, fix_truncdfsi2,
4073 fix_truncdfsi2_i, extendsfdf2, extendsfdf2_i4, truncdfsf2,
4074 truncdfsf2_i4): Change not to use explicit references to fpul.
4075 (floatsisf2_ie): Remove USE of fpscr.
4076 (floatsisf2): Change default expansion to match this.
4077 (fix_truncsfsi2_i4_2, fix_truncdfsi2_i4 & splitters): Comment out
4080 2000-09-15 Richard Henderson <rth@cygnus.com>
4082 * expmed.c (store_bit_field): Consider naturally aligned
4083 memory for direct reference.
4085 2000-09-15 Richard Henderson <rth@cygnus.com>
4087 * config/alpha/alpha.c (alpha_expand_unaligned_load): Force all
4088 AND addresses into alias set 0.
4089 (alpha_expand_unaligned_store): Likewise.
4090 (alpha_expand_unaligned_load_words): Likewise.
4091 (alpha_expand_unaligned_store_words): Likewise.
4093 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
4095 * config/sh/sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
4096 * config/sh/lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__
4098 * config/mips/mips.c (mips_va_arg): Args passed by reference have a
4099 rsize of UNITS_PER_WORD.
4101 Fri 15-Sep-2000 06:49:07 BST Neil Booth <NeilB@earthling.net>
4103 * cpplex.c (ON_REST_ARG): Correct the test.
4104 (maybe_paste_with_next): Duplicate a token that fail pasting,
4105 and clear its PASTE_LEFT flag, so that nested pasting attempts
4108 2000-09-14 Richard Henderson <rth@cygnus.com>
4110 * calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
4111 * cse.c (rtx_cost): Likewise.
4112 * optabls.c (expand_binop): Likewise.
4113 (expand_twoval_binop, prepare_cmp_insn): Likewise.
4114 * regclass.c (copy_cost): Likewise.
4115 * reload1.c (reload_cse_move2add): Likewise.
4117 2000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
4119 * c-parse.in (reswords): Add _Complex.
4121 2000-09-14 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4123 * gcc.1: Delete documentation for -undef preprocessor option.
4125 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4127 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
4128 STARTFILE_SPEC, ENDFILE_SPEC): Remove define.
4129 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
4130 Remove undefine before config/elfos.h.
4131 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out.
4133 2000-09-14 Kazu Hirata <kazu@hxi.com>
4135 * invoke.texi (H8/300 Options): Add -ms2600.
4136 * config/h8300.c (h8300_init_once): Output an error when -ms2600
4137 is used without -ms.
4138 * config/h8300.h (TARGET_MAC): New.
4139 (TARGET_SWITCHES): Add -ms2600 and -mno-s2600.
4140 (CONDITIONA_REGISTER_USAGE): Disable the mac register on any
4141 machine other than H8/S2600.
4142 * config/h8300.md: Accept mac instructions on the H8/S2600 instead
4145 2000-09-14 Alexandre Oliva <aoliva@redhat.com>, Bernd Schmidt <bernds@redhat.co.uk>
4147 * reload.c (find_reloads_address_1): Generate reloads for auto_inc
4148 pseudos that refer to the original pseudos, not only to their
4149 equivalent memory locations.
4151 Thu Sep 14 12:10:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4153 * expr.c (expand_expr, case COMPONENT_EXPR): Copy memory attributes
4154 when making new MEM.
4156 * Makefile.in (LN): Remove duplicate definition.
4158 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
4160 From Joern Rennecke:
4161 * local-alloc.c (update_equiv_regs): If there is no REG_EQUAL note
4162 on an insn and function_invariant_p returns nonzero for the source,
4163 add a REG_EQUAL note.
4165 Thu Sep 14 00:51:57 EDT 2000 John Wehle (john@feith.com)
4167 * alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
4168 conflict with frame_pointer_rtx.
4170 2000-09-13 Kazu Hirata <kazu@hxi.com>
4172 * loop.c: Fix formatting.
4175 2000-09-13 Richard Henderson <rth@cygnus.com>
4177 * config/ia64/ia64.md (divsf3): New.
4178 (divsf3_internal_lat, divsf3_internal_thr): New.
4179 (divdf3, divdf3_internal_lat, divdf3_internal_thr): New.
4180 (divtf3, divtf3_internal_lat, divtf3_internal_thr): New.
4181 (adddf3_trunc, subdf3_trunc, muldf3_trunc): New.
4182 (madddf4_trunc, msubdf4_trunc, nmuldf3_trunc): New.
4183 (nmadddf4_alts, nmadddf4_trunc): New.
4184 (addtf3_truncsf, addtf3_truncdf, subtf3_truncsf): New.
4185 (subtf3_truncdf, multf3_truncsf, multf3_truncdf): New.
4186 (multf3_truncsf_alts, multf3_truncdf_alts): New.
4187 (maddtf4_truncsf, maddtf4_truncdf, maddtf4_alts_truncdf): New.
4188 (msubtf4_truncsf, msubtf4_truncdf, nmultf3_truncsf): New.
4189 (nmultf3_truncdf, nmaddtf4_truncsf, nmaddtf4_truncdf): New.
4190 (nmaddtf4_truncdf_alts): New.
4191 (recip_approx): Don't predicate.
4193 2000-09-13 Richard Henderson <rth@cygnus.com>
4195 * config/ia64/lib1funcs.asm (__divsf3): Protect fnorm.s with p6.
4197 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4199 * flags.h (flag_dump_rtl_in_asm): Declare.
4200 * toplev.c (flag_dump_rtl_in_asm): Define.
4201 (decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name
4202 if -dP is specified.
4203 * rtl.h (print_rtx_head): Declare.
4204 * print-rtl.c (print_rtx_head): Define.
4205 (print_rtx): Print the string pointed to by print_rtx_head
4206 at beginning of each dump line.
4207 (print_rtl): Likewise.
4208 (print_rtl_single): Likewise.
4209 * final.c (final_scan_insn): Dump the insn in the assembly
4211 * gcc.1: Document -dP option.
4212 * invoke.texi (Debugging Options): Likewise.
4214 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4216 * md.texi (Machine Constraints): Document the 68HC11 constraints.
4217 * install.texi (Configurations): Document the 68HC11&68HC12 port.
4218 * invoke.texi (Option Summary, M68hc1x Options): Document the options.
4220 Tue Sep 12 13:51:13 2000 Denis Chertykov <denisc@overta.ru>
4222 * config/avr/avr.h (ASSEMBLER_DIALECT): New macro declared.
4223 * config/avr/avr.md (*movstrqi_insn): Cleanup output template.
4224 (*clrstrqi): Likewise.
4225 (xorhi3,xorsi3,absqi2): Likewise.
4226 (one_cmplhi2,one_cmplsi2): Likewise.
4227 (addsi3): Two stupid constraint alternatives removed.
4228 (extendhisi2): Use `movw' for enhanced avr cores.
4229 (zero_extendhisi2): Likewise.
4231 Wed Sep 13 02:31:23 EDT 2000 John Wehle (john@feith.com)
4233 * alias.c (find_base_term): Use frame_pointer_rtx
4234 when handling an ADDRESSOF.
4236 * cse.c (canon_hash): Handle USE of BLKmode memory.
4237 (cse_insn): Outgoing arguments for a libcall don't
4238 affect any recorded expressions.
4240 2000-09-12 Tom Tromey <tromey@cygnus.com>
4242 * configure, config.in: Rebuilt.
4243 * configure.in: Check for iconv, nl_langinfo, langinfo.h.
4245 2000-09-12 Jakub Jelinek <jakub@redhat.com>
4247 * c-lex.c (lex_string): Use charwidth to compute bytemask.
4248 * expr.c (expand_expr): Don't optimize constant array references
4249 initialized with wide string constants.
4251 2000-09-13 Michael Hayes <mhayes@cygnus.com>
4253 * loop.c (note_set_pseudo_multiple_uses): Correct.
4255 2000-09-12 Jim Wilson <wilson@cygnus.com>
4257 * ifcvt.c (noce_process_if_block): If A and B are the same, and no
4258 else block, and X has side-effects, then fail.
4260 2000-09-12 Greg McGary <greg@mcgary.org>
4262 * config/mips/mips-protos.h
4263 (trap_cmp_op, mips_gen_conditional_trap): New func decls.
4264 * config/mips/mips.h (ISA_HAS_COND_TRAP): New macro.
4265 (PREDICATE_CODES): Add "trap_cmp_op".
4266 * config/mips/mips.c
4267 (trap_cmp_op, mips_gen_conditional_trap): New functions.
4268 * config/mips/mips.md (trap, conditional_trap): New patterns.
4270 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
4272 * flow.c (try_pre_increment_1): Don't do anything to sets of the stack
4275 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4277 * builtins.c (built_in_decls): New array.
4278 (expand_builtin_fputs): New function.
4279 (expand_builtin): Handle BUILT_IN_FPUTC and BUILT_IN_FPUTS.
4281 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTS): New members.
4283 * c-common.c (c_common_nodes_and_builtins): Handle fputc/fputs.
4285 * tree.h (built_in_decls): New array.
4287 Tue Sep 12 08:53:57 2000 Jeffrey A Law (law@cygnus.com)
4289 * convex.md: Use "+" instead of "=" for outputs wrapped in a
4291 * i370.md, i386.md, ns32k.md, sh.md, vax.md: Likewise.
4293 2000-09-12 Kazu Hirata <kazu@hxi.com>
4295 * haifa-sched.c: Fix formatting.
4297 * genattrtab.c: Fix formatting.
4299 * unroll.c: Fix formatting.
4301 2000-09-12 Bruce Korb <bkorb@gnu.org>
4303 * fixinc/fixfixes.c: make a type for the fix procedure & use it,
4304 remove obsolete code
4305 * fixinc/fixincl.c: Use PARAMS, not _P_. Add no-op default to switch.
4306 * fixinc/fixincl.tpl: make non-exported arrays static scope
4307 * fixinc/fixincl.x: regenerate
4308 * fixinc/fixlib.h: Use PARAMS, not _P_
4309 * fixinc/fixtests.c: make a type for the test proc & use it
4310 * fixinc/server.h: Use PARAMS, not _P_
4312 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4314 * c-typeck.c (process_init_element): Avoid union init warnings on
4315 floating point zero. Don't crash on unions containing structs.
4317 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4319 * config/sh/sh.h (PREDICATE_CODES): Add CONST_DOUBLE to
4320 general_movsrc_operand, and remove CONST_INT from
4321 general_movdst_operand.
4323 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
4325 * cse.c (approx_reg_cost): If SMALL_REGISTER_CLASSES, return INT_MAX
4326 if a reference to non-fixed hardreg is seen. Otherwise, count hard
4327 regs with a higher cost.
4328 (preferrable): Deal with cases where either cost or regcost is
4330 (cse_insn): Use MAX_COST rather than 10000. Always initialize
4332 (COSTS_N_INSNS): Move definition...
4334 (MAX_COST): New macro.
4335 * loop.c (init_loop): Use COSTS_N_INSNS macro instead of hardcoded
4338 2000-09-11 Mark Mitchell <mark@codesourcery.com>
4340 * c-common.h (genrtl_clear_out_block): Remove.
4341 * c-semantics.c (genrtl_clear_out_block): Remove.
4342 (genrtl_while_stmt): Don't call it.
4343 (genrtl_for_stmt): Likewise.
4345 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
4347 * cppfiles.c: Move all default-#defines to top of file.
4348 (open_include_file): Replace by lookup_include_file.
4349 (read_with_read, read_file): Merged into read_include_file.
4350 (stack_include_file, purge_cache): New functions.
4351 (close_cached_fd): Delete.
4352 (lookup_include_file, read_include_file, _cpp_pop_file_buffer):
4353 Cache the in-memory buffer, not the file descriptor.
4355 * cpphash.h (struct include_file): Add buffer, st, refcnt,
4357 (xcnew): New utility macro.
4358 (DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
4359 * cpplib.h (struct cpp_buffer): Remove mapped field.
4361 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
4363 * cpplex.c (parse_string): Accept backslash space newline as a
4365 (lex_line): Likewise.
4366 (_cpp_get_token): Remove hard limit on macro nesting.
4368 2000-09-12 Philipp Thomas <pthomas@suse.de>
4370 * aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
4371 * configure: Rebuilt.
4373 2000-09-13 Michael Hayes <mhayes@cygnus.com>
4375 * flow.c (split_block): Fix update of registers live at
4378 Tue Sep 12 01:51:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
4380 * i386.md (add?i_3, add?i_5): New.
4381 (add?i_4): Rename from add?i_3; Fix compare pattern.
4382 (sub?i_3, xor?i_3, ior?i_3): New.
4384 * genrecog.c (write_tree): Output code to clear insn_extract cache.
4385 * genattrtab.c (write_attr_case): Gen call to extract_insn_cache
4386 instead of extract_insn and extract_constrain_insn_cache instead of
4387 extract_insn and constrain_operands.
4388 * recog.c (extract_insn_cached, extract_constrain_insn_cached):
4390 (extract_insn): Clear which_alternative.
4391 (constrain_operands): Set which_alternative to -1 when failed.
4392 * recog.h (extract_constrain_insn_cached, extract_insn_cached):
4395 2000-09-11 Matthew Hiller <hiller@redhat.com>
4397 * config/h8300/h8300.md (movstrictqi): Changed constraint modifier
4398 on operand 0 to '+'.
4399 (movstricthi): Likewise.
4401 2000-09-12 Michael Hayes <mhayes@cygnus.com>
4403 * loop.h (LOOP_IVS): New macro.
4404 (REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
4405 (struct loop_ivs): New.
4406 (struct loop_info): Add ivs field.
4407 (reg_iv_type, reg_iv_info): Delete prototype.
4408 (reg_biv_class, loop_iv_list): Likewise.
4409 * loop.c (record_biv, find_life_end): Pass loop argument.
4410 (reg_iv_type): Remove global array and use
4411 field in loop_regs structure within loop_ivs structure.
4412 (reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
4413 (first_increment_giv, last_increment_giv): Use entry in
4415 (record_initial): Pass ivs pointer.
4416 * unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.
4418 2000-09-12 Michael Hayes <mhayes@cygnus.com>
4420 * loop.h (LOOP_REGS): New macro.
4421 (struct loop_regs): New.
4422 (struct loop_info): Add regs field.
4423 * loop.c (set_in_loop): Remove global array and store
4424 in loop_regs structure as part of loop_info structure.
4425 (n_times_set, may_not_optimize): Likewise.
4426 (reg_single_usage, moved_once): Likewise.
4427 (count_one_set): Add regs argument.
4428 (combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
4429 (set_pseudo_multiple_uses): Pass regs pointer.
4431 2000-09-12 Michael Hayes <mhayes@cygnus.com>
4433 * unroll.c (iteration_info): Subsume into loop_iterations.
4434 * loop.h (loop_info): New field iv.
4436 2000-09-12 Michael Hayes <mhayes@cygnus.com>
4438 * basic-block.h (LOOP_TREE, LOOP_PRE_HEADER, LOOP_EDGES): New.
4439 (LOOP_EXITS_DOMS, LOOP_ALL): Likewise.
4440 (flow_loops_update): New prototype.
4441 (flow_loops_find): Add flags to prototype.
4442 (struct loop): Add `pre_header_root' and `pre_header_trace' fields.
4443 * flow.c (flow_loop_pre_header_scan): New.
4444 (flow_loop_dump): Dump pre-header root and trace and exit dominators.
4445 (flow_loop_free): Free pre-header root and trace and exit dominators.
4446 (flow_loops_find): New argument flags.
4447 (flow_loops_update): New function.
4448 * toplev.c (rest_of_compilation): Add flag argument to flow_loops_find.
4450 2000-09-12 Michael Hayes <mhayes@cygnus.com>
4452 * basic-block.h (split_block, update_bb_for_insn): New prototypes.
4453 * flow.c (split_block, update_bb_for_insn): New functions.
4455 2000-09-11 Richard Henderson <rth@cygnus.com>
4457 * cse.c (fold_rtx): Honor NO_FUNCTION_CSE.
4459 2000-09-11 Richard Henderson <rth@cygnus.com>
4461 * config/ia64/ia64-protos.h (fr_nonimmediate_operand): Declare.
4462 * config/ia64/ia64.c (fr_nonimmediate_operand): New.
4463 (ia64_override_options): Prevent optimizing division for both
4464 latency and throughput.
4465 (rtx_needs_barrier): Handle frcpa.
4466 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): New.
4467 (MASK_INLINE_DIV_THR, TARGET_INLINE_DIV_LAT): New.
4468 (TARGET_INLINE_DIV_THR, TARGET_INLINE_DIV): New.
4469 (TARGET_SWITCHES): Add -minline-divide-min-latency and
4470 -minline-divide-max-throughput.
4471 (PREDICATE_CODES): Update.
4472 * config/ia64/ia64.md (extendsidi2): Remove * from f case.
4473 (zero_extendsidi2): Likewise. Fix typo in f case insn.
4474 (extendsfdf2): Add cases for gr<->fr and fr<->mem.
4475 (extendsftf2): Likewise.
4476 (extenddftf2): Likewise.
4477 (fix_trunctfdi2_alts): New.
4478 (fixuns_trunctfdi2_alts): New.
4479 (madd*4): Rename from madd*3.
4480 (divsi3, modsi3, udivsi3, umodsi3): New.
4481 (divsi3_internal): New.
4482 (divdi3, moddi3, udivdi3, umoddi3): New.
4483 (divdi3_internal_lat, divdi3_internal_thr): New.
4484 (multf3_alts, maddtf4_alts, nmaddtf4_alts): New.
4485 (recip_approx): New.
4487 2000-09-11 Alexandre Oliva <aoliva@redhat.com>
4489 * print-rtl.c (debug_call_placeholder_verbose): New variable.
4490 (print_rtx) [CALL_PLACEHOLDER]: Dump all call sequences if it is
4492 * integrate.c (copy_rtx_and_substitute): Don't share
4493 LEAF_REG_REMAPpable registers with the inlined function. Don't
4494 share the function value with calling sequences.
4496 2000-09-11 Jakub Jelinek <jakub@redhat.com>
4498 * c-decl.c (do_case): Fix a typo.
4500 * combine.c (simplify_if_then_else): Don't convert a == b ? b : a
4501 to a if the comparison is floating mode and not -ffast-math.
4502 * simplify-rtx.c (simplify_ternary_operation): Likewise.
4504 Mon Sep 11 20:07:48 2000 J"orn Rennecke <amylaar@redhat.co.uk>
4506 * sh.h (INITIALIZE_TRAMPOLINE): Remove stray call to
4507 gen_ic_invalidate_line.
4509 2000-09-11 Philip Blundell <pb@futuretv.com>
4511 * config/arm/elf.h (SUBTARGET_CPP_SPEC): Don't define `arm_elf'.
4513 Mon Sep 11 10:48:41 2000 Ulrich Drepper <drepper@redhat.com>
4515 * install.texi (LANGUAGES): Update to include new languages.
4518 2000-09-11 DJ Delorie <dj@redhat.com>
4520 * gcc.c (main): Don't warn about unused -B prefixes
4521 (unused_prefix_warnings): remove
4523 2000-09-11 Kazu Hirata <kazu@hxi.com>
4525 * final.c: Fix formatting.
4527 * integrate.c: Fix formatting.
4529 2000-09-11 Geoff Keating <geoffk@cygnus.com>
4531 * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry.
4533 2000-09-11 Bernd Schmidt <bernds@redhat.co.uk>
4535 * reload.c (regno_clobbered_p): Fix thinko in previous change.
4537 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4539 * gcc.1: Document 68hc11 specific options.
4541 2000-09-10 Geoff Keating <geoffk@cygnus.com>
4543 * config/rs6000/sysv4.h (MASK_LONG_DOUBLE_128): Define.
4544 (TARGET_LONG_DOUBLE_128): Define.
4545 (SUBTARGET_SWITCHES): Add -mlong-double-64 and -mlong-double-128.
4546 (LONG_DOUBLE_TYPE_SIZE): Redefine.
4547 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
4548 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on definition
4549 of __LONG_DOUBLE_128__.
4550 (CPP_SYSV_SPEC): Define __LONG_DOUBLE_128__ if -mlong-double-128
4552 (CPP_LONGDOUBLE_DEFAULT_SPEC): Define.
4553 (CPP_SYSV_DEFAULT_SPEC): Define.
4554 (SUBTARGET_EXTRA_SPECS): Add cpp_longdouble_default.
4555 (INIT_TARGET_OPTABS): Define.
4557 * config/rs6000/aix.h (RS6000_ITRUNC): Moved from rs6000.h.
4558 (RS6000_UITRUNC): Likewise.
4559 (INIT_TARGET_OPTABS): New macro.
4560 * config/rs6000/rs6000.c (rs6000_trunc_used): Delete.
4561 (trunc_defined): Delete.
4562 (output_prolog): Don't output .extern definitions for fp->int
4563 conversion routines, ASM_OUTPUT_EXTERNAL_LIBCALL will do it.
4564 * config/rs6000/rs6000.h (rs6000_trunc_used): Delete.
4565 (trunc_defined): Delete.
4566 (RS6000_ITRUNC): Moved to aix.h.
4567 (RS6000_UITRUNC): Likewise.
4568 * config/rs6000/rs6000.md (fix_truncdfsi2): Fail if it would
4569 only emit a libcall.
4570 (fixuns_truncdfsi2): Delete.
4571 (trunc_call): Delete.
4572 (trunc_call_rtl): Delete.
4574 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
4576 * varasm.c (make_decl_rtl): Restore leading star on
4577 DECL_ASSEMBLER_NAME set for decls with an asmspec.
4579 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
4581 * c-pragma.c (handle_pragma_pack): Correct parsing logic so it
4582 won't give a spurious error for '#pragma pack()'. Simplify
4583 control flow for readability. 'reset' action is not necessary.
4585 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
4587 * defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
4588 SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
4589 LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
4590 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
4592 * cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
4593 profile.c, sdbout.c, tradcif.y, tree.c:
4594 Include defaults.h if not already included.
4595 Don't define the above macros.
4597 * Makefile.in: Update dependencies.
4599 2000-09-10 Mark Mitchell <mark@codesourcery.com>
4601 * c-common.h (add_stmt): Change prototype.
4602 (RECHAIN_STMTS): New macro.
4603 (CASE_LABEL_DECL): Likewise.
4604 (genrtl_case_label): Change prototype.
4605 (c_expand_start_case): Remove prototype.
4606 (build_case_label): Change prototype.
4607 (decl_constant_value): Declare.
4608 * c-common.c (check_case_value): Handle C++'s extensions to C
4610 * c-commnon.def (CASE_LABEL): Add room for the CASE_LABEL_DECL
4612 * c-parse.in (stmt): Adjust handling of return statements and case
4614 * c-semantics.c (add_stmt): Return the new statement.
4615 (genrtl_return_stmt): Take the RETURN_STMT as input, not the
4616 returned expression. Directly generate RTL, rather than calling
4618 (genrtl_switch_stmt): Don't call c_expand_start_case.
4619 (build_case_label): Take the LABEL_DECL as input, too.
4620 (genrtl_case_label): Just call add_case_node.
4621 (expand_stmt): Adjust calls to genrtl_return_stmt and
4623 * c-tree.h (c_expand_start_case): Declare.
4624 * c-typeck.c (decl_constant_value): Give it external linkage.
4625 (c_expand_return): Don't call expand_return or expand_null_return;
4626 use genrtl_return_stmt instead.
4627 * stmt.c (struct nesting): Remove num_ranges field.
4628 (add_case_node): Give it external linkage.
4629 (expand_start_case): Don't set num_ranges.
4630 (expand_start_case_dummy): Don't clear it.
4631 (pushcase): Rely on add_case_node to handle `default' labels.
4632 (add_case_node): Handle `default' labels.
4633 * tree.c (tree_int_cst_compare): New function.
4634 * tree.h (tree_int_cst_compare): Declare.
4635 (add_case_node): Likewise.
4637 2000-09-10 Richard Henderson <rth@cygnus.com>
4639 * c-parse.in: Revert last change.
4640 (init_reswords): Do not enter disabled keywords into the ridpointers
4641 table, modulo objc weirdness.
4642 (_yylex): Return the canonical spelling for a keyword.
4644 2000-09-10 Philip Blundell <philb@gnu.org>
4646 * config/arm/arm.h (CPP_ISA_SPEC): Don't define `arm' or `thumb'.
4647 * config/arm/linux-elf.h (CPP_PREDEFINES): Don't define `__arm__'.
4649 Sun Sep 10 14:30:28 EDT 2000 John Wehle (john@feith.com)
4651 * alias.c (find_base_term): Handle ADDRESSOF.
4652 (memrefs_conflict_p): An ADDRESSOF doesn't conflict.
4654 2000-09-10 Denis Chertykov <denisc@overta.ru>
4656 * genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
4657 outputting templates with many lines.
4659 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4661 * libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
4662 to decide whether 64-bit support must be generated.
4664 2000-09-10 Richard Henderson <rth@cygnus.com>
4666 * c-parse.in (asm patterns): Fix volatile check.
4668 2000-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4670 * cppmacro.c (check_trad_stringification): New function.
4671 (save_expansion): If -Wtraditional, warn about stringification of
4674 2000-09-11 Michael Hayes <mhayes@cygnus.com>
4676 * loop.h (struct loop_mem_info): Move from loop.c
4677 (struct loop_info): Add fields store_mems, mems, mems_idx,
4678 mems_allocated, unknown_address_altered,
4679 unknown_constant_address_altered, num_mem_sets, and
4680 first_loop_store_insn.
4682 * loop.c (loop_store_mems): Replace with field in loop_info struct.
4683 (loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
4684 (unknown_address_altered, unknown_constant_address_altered): Likewise.
4685 (num_mem_sets): Likewise.
4686 (replace_loop_mems, replace_loop_regs): New.
4687 (struct loop_replace_args): New.
4688 (load_mems): Use replace_loop_mems.
4689 (try_copy_prop): Use replace_loop_regs.
4690 (replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
4692 2000-09-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4694 * configure.in: Recognize m6811-elf and m6812-elf.
4695 * configure: Regenerate.
4697 2000-09-09 Geoff Keating <geoffk@cygnus.com>
4699 * recog.c (validate_replace_rtx_1): Correct MODE parameter in call
4702 2000-09-10 Michael Hayes <mhayes@cygnus.com>
4704 * loop.c (struct movables): New.
4705 (num_movables): Move into struct movables.
4706 (the_movables): Change type to struct movables.
4707 (ignore_some_movables): Change struct movable arg to struct movables.
4708 (force_movables, combine_movables, regs_match_p): Likewise.
4709 (rtx_equal_for_loop_p, move_movables): Likewise.
4710 (scan_loop): Change movables to be of type struct movables.
4711 Replace last_movable with field in movables structure.
4713 2000-09-08 Zack Weinberg <zack@wolery.cumb.org>
4715 * c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
4716 (init_pragma): Avoid warning if pfile happens to be unused.
4717 * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS. Never
4718 define init_pragma to nothing. Always prototype
4719 init_pragma. Prototype dispatch_pragma if !USE_CPPLIB.
4721 * c-lex.c (process_directive): Always call dispatch_pragma.
4722 Initialize entering_c_header to 0.
4724 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4726 * config/m68hc11/m68hc11.md: New file, machine description for
4728 * config/m68hc11/m68hc11.h: New file, definitions for 68HC11 & 68HC12.
4729 * config/m68hc11/m68hc11.c: New file, functions for 68HC11 & 68HC12.
4730 * config/m68hc11/m68hc12.h: New file, definitions for 68HC12.
4731 * config/m68hc11/m68hc11-protos.h: New file.
4732 * config/m68hc11/m68hc11-crt0.S: New file, startup code.
4733 * config/m68hc11/t-m68hc11-gas: New file, makefile fragment.
4734 * config/m68hc11/xm-m68hc11.h: New file, target defs.
4735 * config/m68hc11/larith.asm: New file, libgcc routines.
4737 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4739 * Makefile.in (DPBIT_FUNCS): Add _usi_to_df.
4740 (FPBIT_FUNCS): Add _usi_to_sf.
4741 * config/fp-bit.c (usi_to_float): New function.
4742 * config/fp-bit.h (L_usi_to_sf, L_usi_to_df): Define.
4743 (usi_to_float): Add appropriate #define.
4745 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
4747 * i386-protos.h (sse_comparison_operator, mmx_reg_operand): Declare
4749 * i386.c (sse_comparison_operator, mmx_reg_operand): New functions.
4750 * i386.md (attr "type"): Add sse and mmx types.
4751 (attr "memory"): Handle them without a crash.
4752 (movsi_1, movdi_2): Allow MMX regs.
4753 (movdi splits): Don't split moves involving MMX regs.
4754 (setcc_4): Remove '*' from pattern name so we get a gen_setcc4.
4755 (movv4sf_internal, movv4si_internal, movv8qi_internal,
4756 movv4hi_internal, movv2si_internal, movv8qi, movv4hi, movv2si,
4757 movv4sf, movv4si, pushv4sf, pushv4si, pushv8qi, pushv4hi, pushv2si,
4758 sse_movaps, sse_movups, sse_movmskps, mmx_pmovmskb, mmx_maskmovq,
4759 sse_movntv4sf, sse_movntdi, sse_movhlps, sse_movlhps, sse_movhps,
4760 sse_movlps, sse_loadss, sse_movss, sse_storess, sse_shufps,
4761 addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, mulv4sf3, vmmulv4sf3,
4762 divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2, rsqrtv4sf2, vmrsqrtv4sf2,
4763 sqrtv4sf2, vmsqrtv4sf2, sse_andti3, sse_nandti3, sse_iorti3,
4764 sse_xorti3, maskcmpv4sf3, maskncmpv4sf3, vmmaskcmpv4sf3,
4765 vmmaskncmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
4766 smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
4767 cvttps2pi, cvtsi2ss, cvtss2si, cvttss2si, addv8qi3, addv4hi3,
4768 addv2si3, ssaddv8qi3, ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3,
4769 subv4hi3, subv2si3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
4770 mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
4771 mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3, mmx_uavgv8qi3,
4772 mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw, mmx_pshufw,
4773 eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3, gtv2si3, umaxv8qi3,
4774 smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3, ashrv2si3, lshrv4hi3,
4775 lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3, mmx_ashldi3,
4776 mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
4777 mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
4778 mmx_punpckldq, emms, sfence, ldmxcsr, prefetch, stmxcsr, sse_clrti,
4779 mmx_clrdi): New patterns.
4781 2000-09-08 Richard Earnshaw <rearnsha@arm.com>
4783 * arm.c: Don't include tm.h directly.
4785 Fri Sep 8 14:34:56 MET DST 2000 Jan Hubicka <jh@suse.cz>
4787 * recog.c (validate_replace_rtx_1): Fix confusion about equality
4788 testing; simplify subregs of constants and nested subregs.
4790 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
4792 * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
4794 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
4796 * combine.c (combine_simplify_rtx): Try to simplify VEC_SELECT of a
4798 * rtl.texi (description of USE): Add note about possible pitfalls
4800 From Richard Henderson:
4801 * reload1.c (choose_reload_regs): Compute need_mode properly.
4803 2000-09-07 Richard Henderson <rth@cygnus.com>
4805 * config/ia64/lib1funcs.asm (__divsi3): Use .s1 for frcpa.
4806 (__modsi3, __umodsi3): Likewise.
4807 (__udivsi3): Likewise. Normalize the TFmode values.
4809 2000-09-07 Geoff Keating <geoffk@cygnus.com>
4811 * config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
4813 * config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
4816 Fri Sep 8 03:26:38 2000 J"orn Rennecke <amylaar@redhat.co.uk>
4818 * sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
4819 (cmpeqdi_t): Add output pattern.
4820 (cmpeqdi_t+1): Don't split when not optimizing.
4821 Restore proper splitting operation.
4823 2000-09-07 Richard Henderson <rth@cygnus.com>
4825 * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
4826 do not call dispatch_pragma.
4828 2000-09-07 Jim Wilson <wilson@cygnus.com>
4830 * reload.c (push_reload): Use CLASS_CANNOT_CHANGE_MODE_P in addition
4831 to CLASS_CANNOT_CHANGE_MODE.
4832 * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE_P): True only if the
4833 mode classes are different.
4835 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
4837 * cpplib.h (struct cpp_options): Add user_label_prefix member,
4838 left out of commit which removed cppulp.c.
4840 2000-09-07 Richard Henderson <rth@cygnus.com>
4842 * bb-reorder.c (fixup_reorder_chain): Add jump in new block
4843 after switch for CASE_DROPS_THROUGH.
4845 2000-09-07 Richard Henderson <rth@cygnus.com>
4847 * loop.c (strength_reduce): Call check_ext_dependant_givs.
4848 Properly extend the biv initial value for the giv.
4849 (record_biv): Zero ext_dependant.
4850 (record_giv): New argument ext_val. Update all callers.
4851 (general_induction_var): Likewise.
4852 (consec_sets_giv): Likewise.
4853 (simplify_giv_expr): Likewise. Fill in ext_val if we find
4854 a sign-extend, zero-extend, or truncate.
4855 (combine_givs_p): Make sure modes are compatible.
4856 (check_ext_dependant_givs): New.
4857 (extend_value_for_giv): New.
4858 * loop.h (struct induction): Add ext_dependant.
4859 * unroll.c (iteration_info): Extend the biv initial value for the giv.
4860 (find_splittable_givs): Likewise.
4861 (final_giv_value): Likewise.
4863 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
4865 * c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
4866 REGISTER_TARGET_PRAGMAS is defined. Duplicate some
4867 definitions from cpplib.h.
4868 * cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
4870 * tm.texi: Document HANDLE_PRAGMA as no longer supported. Add
4871 documentation for REGISTER_TARGET_PRAGMAS.
4873 * c-lex.c: Include cpplib.h before c-pragma.h. Define a
4874 default-pragma callback to implement -Wunknown-pragmas if
4876 * c-parse.in: Move all includes to top of file.
4877 * c-pragma.c: Include cpplib.h before c-pragma.h. Include
4879 (dispatch_pragma): Put the namespace in the -Wunknown-pragmas
4881 (init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
4883 * arm.h, arm-protos.h, arm.c,
4884 c4x.h, c4x-protos.h, c4x.c,
4885 h8300.h, h8300-protos.h, h8300.c,
4886 i370.h, i370-protos.h, i370.c,
4887 i960.h, i960-protos.h, i960.c,
4888 sh.h, sh-protos.h, sh.c,
4889 v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
4890 pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
4892 * d30v.h: Don't mention HANDLE_PRAGMA in comment. Add
4893 multiple include guard.
4894 * i370.md (untyped_call): Use GEN_CALL.
4895 (umodsi3): Remove unused variable.
4896 * sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
4897 * v850.c (output_move_single, output_move_double): Constify
4899 (print_operand): Constify a char *.
4900 * v850.h (struct small_memory_info): Constify name member.
4902 2000-09-07 Kazu Hirata <kazu@hxi.com>
4904 * config/h8300.h: Fix comment typos.
4905 * config/h8300/h8300.md: Likewise.
4906 * config/h8300/lib1funcs.asm: Likewise.
4908 Thu 07-Sep-2000 21:29:00 BST Neil Booth <NeilB@earthling.net>
4910 * Makefile.in: Remove references to cppulp.{c,o}.
4911 * cppinit.c (initialize_builtins, cpp_start_read,
4912 cpp_handle_option): Update to use cpp_options structure.
4915 2000-09-07 Joseph S. Myers <jsm28@cam.ac.uk>
4917 * c-common.c (time_char_table): Allow %#b and %#h.
4919 2000-09-07 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4921 * reorg.c (find_end_label): If the basic block reorder pass moves the
4922 return insn to some other place try to locate it again and put our
4923 end_of_function_label there.
4924 * reorg.c (relax_delay_slots): Check if find_end_label created a
4925 new label that invalidates the current optimazation.
4927 2000-09-07 Catherine Moore <clm@redhat.com>
4929 * unroll.c (unroll_loop): Check for unconditional jumps
4930 to loop continuation. Delete if n_iterations is 1.
4931 (ujump_to_loop_cont): New routine.
4933 2000-09-07 Bernd Schmidt <bernds@redhat.co.uk>
4935 * rtl.c (class_narrowest_mode): Add entries for MODE_VECTOR_INT and
4937 * reload.c (regno_clobbered_p): Accept new arg, MODE, and use it
4938 to handle multiword modes correctly. All callers and the declaration
4941 2000-09-06 Mark Mitchell <mark@codesourcery.com>
4943 * c-common.h (prep_stmt): Declare.
4944 (lang_expand_stmt): Likewise.
4945 * c-decl.c (lang_expand_stmt): Remove.
4946 * c-semantics.c (lang_expand_stmt): Define.
4947 (prep_stmt): New function.
4948 (expand_stmt): Handle common statement types here.
4950 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4952 * configure.in (sh-*-linux*): Added.
4953 * configure: Rebuilt.
4954 * config/sh/t-linux: New file.
4955 * config/sh/sh.h (USERMODE_BIT): Define.
4956 (TARGET_USERMODE): Likewise.
4957 (TARGET_SWITCHES): New switches for the bits above.
4958 (INITIALIZE_TRAMPOLINE): Call __ic_invalidate in USERMODE.
4959 * config/sh/linux.h: New file.
4960 * config/sh/lib1funcs.asm (GLOBAL): Don't prefix symbols with
4961 underscore on linux.
4962 (L_sdivsi3, L_udivsi3): Define for linux.
4963 (L_ic_invalidate): Define.
4964 * invoke.texi (SH Options): Document -musermode.
4966 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
4968 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
4969 CSE unless generating PIC.
4971 * config/sh/sh.md (symPLT_label2reg): Force the initialization of
4974 2000-09-06 H.J. Lu (hjl@gnu.org)
4976 * Makefile.in (clean_s1): Depend on stage_b.
4977 (clean_s2): Depend on stage_d. Don't remove $(VOL_FILES) in
4978 stage2. They are used for "make compare".
4980 2000-09-06 Mark Mitchell <mark@codesourcery.com>
4982 Move statement-tree facilities from C++ to C front-end.
4983 * c-common.h (c_tree_index): Add CTI_VOID_ZERO.
4984 (void_zero_node): New macro.
4985 (struct stmt_tree_s): New type.
4986 (stmt_tree): New typedef.
4987 (struct language_function): New type.
4988 (last_tree): New macro.
4989 (last_expr_type): Likewise.
4990 (walk_tree_fn): New typedef.
4991 (current_stmt_tree): New function.
4992 (begin_stmt_tree): Likewise.
4993 (add_stmt): Likewise.
4994 (finish_stmt_tree): Likewise.
4995 (statement_code_p): Likewise.
4996 (lang_statement_code_p): New variable.
4997 (walk_stmt_tree): New function.
4998 (STMT_IS_FULL_EXPR_P): New macro.
4999 * c-common.c (lang_statement_code_p): New variable.
5000 (c_common_nodes_and_builtins): Initialize void_zero_node.
5001 (statement_code_p): New function.
5002 (walk_stmt_tree): Likewise.
5003 * c-decl.c (language_function): Rename to ...
5004 (c_language_function): ... this. Include language_function.
5005 (push_c_function_context): Adjust accordingly.
5006 (pop_c_function_context): Likewise.
5007 (mark_c_function_context): Likewise.
5008 (current_stmt_tree): Define.
5009 * c-semantics.c (begin_stmt_tree): New function.
5010 (add_stmt): Likewise.
5011 (prune_unused_decls): Likewise.
5012 (finish_stmt_tree): Likewise.
5014 2000-09-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5016 * flow.c (insn_dead_p): Detect dead memory stores with auto increments.
5018 2000-09-06 Kazu Hirata <kazu@hxi.com>
5020 * calls.c: Fix formatting.
5022 2000-09-06 Graham Stott <grahams@cygnus.co.uk>
5024 * config/i386/i386.h (ADDRESS_COST): Fix typo.
5026 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
5028 Integrated preprocessor.
5030 * Makefile.in: Remove all references to c-parse.gperf,
5031 c-gperf.h, and c-parse.h. Remove -d from yacc command line
5032 generating c-parse.c. Update dependencies.
5033 * c-parse.gperf, c-gperf.h: Delete.
5035 * c-common.c: Don't define parse_options, cpp_token, yy_cur,
5036 yy_lim, or yy_get_token. Don't define get_directive_line if
5038 * c-common.h: Add multiple include guard. Define RID values
5039 for every keyword in C, C++, and Objective C. Put all the
5041 (struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
5042 * c-decl.c (c_decode_option): Handle -lang-objc here.
5043 (print_lang_identifier): Handle C_IS_RESERVED_WORD case.
5044 (grokdeclarator): Adjust for new RID scheme.
5045 (extract_interface_info): New stub.
5046 * c-lang.c: Don't declare yy_cur or parse_options.
5047 (lang_init_options): Call cpp_init. Don't call
5049 (lang_init): Don't call check_newline if USE_CPPLIB.
5051 * c-lex.c: Don't include c-parse.h. Do include timevar.h.
5052 Elide lots of unnecessary code if USE_CPPLIB. Delete code
5053 rendered unnecessary by new architecture. Move routines not
5054 shared with C++ to c-parse.in. Maintain a local idea of the
5055 line number. Handle C++ as well as C.
5056 [USE_CPPLIB]: Declare and register callbacks for #ident and
5057 for entering/leaving files.
5058 (init_c_lex, c_lex): Are now the entry points to this file.
5059 (check_newline): Break out directive handling to
5061 (read_ucs, is_extended_char, utf8_extend_token): Moved here
5063 (readescape, parse_float): Overhaul.
5064 (lex_number, lex_string, lex_charconst): Break out of c_lex
5066 (get_fileinfo, update_header_times, dump_one_header,
5067 dump_time_statistics): New and/or moved here from C++.
5068 Support per-file data needed by C++ and per-header timing
5069 statistics (C++ only, at the moment).
5070 * c-lex.h: Update prototypes. Add multiple include guard.
5071 * c-tree.h (struct lang_identifier): Add rid_code field.
5072 (C_IS_RESERVED_WORD, C_RID_CODE): New.
5074 * c-parse.in: Include c-pragma.h. Remove unnecesary calls to
5075 reinit_parse_for_function and/or position_after_white_space.
5076 (save_filename, save_lineno): Look ahead before saving.
5077 (label -> identifier ':'): Save file and line before shifting ':'.
5078 (reservedwords): No need to call get_identifier.
5079 (init_parse, finish_parse, yyerror, yylex, yyprint,
5080 make_pointer_declarator): Are now here for C/ObjC.
5081 (rid_to_yy): Conversion table from RID constants to Yacc codes.
5083 * c-pragma.c: Rewrite parsing logic to fit with cpplib's
5084 #pragma registry. Provide dummy implementation of that
5085 interface if !USE_CPPLIB.
5086 * c-pragma.h: Update to match.
5088 * flags.h: Add multiple include guard.
5089 (flag_detailed_statistics): Moved here from C++.
5090 * toplev.c: Define flag_detailed_statistics.
5092 * gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
5094 * timevar.def (TV_CPP, TV_LEX): New.
5095 * timevar.h: Add multiple include guard.
5097 * objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
5099 * objc/objc-act.c: Don't mention yy_cur or parse_options.
5100 Initialize cpplib properly. Force lineno to 0 after first
5101 call to check_newline. Don't handle -lang-objc here.
5102 Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
5104 2000-09-06 David Edelsohn <edelsohn@gnu.org>
5106 * rs6000.md: Correct function unit definitions for cr_logical and
5108 (sCOND): Additionally fail for sgt, slt, sge, sle if !TARGET_POWER
5109 and use portable method for >=0 and floating point >=. Remove
5110 associated matchers.
5112 2000-09-06 Mark Mitchell <mark@codesourcery.com>
5114 * extend.texi: Mark named return value extension as deprecated.
5116 2000-09-06 Geoff Keating <geoffk@cygnus.com>
5118 * config/rs6000/rs6000.c (rs6000_reverse_condition): Return
5121 2000-09-06 Gabriel Dos Reis <gdr@codesourcery.com>
5123 * toplev.c (display_help): Fix thinko in documentation.
5125 * diagnostic.h (output_buffer::indent_skip): New fields.
5126 (output_indentation): New macro.
5128 * diagnostic.c (output_indent): New function.
5129 (output_set_prefix, clear_diagnostic_info): Use.
5130 (output_emit_prefix): Predict future indentation.
5132 2000-09-06 DJ Delorie <dj@redhat.com>
5134 * Makefile.in (stage_*): add more dependencies to ensure parallel
5135 builds build correctly
5137 2000-09-06 Manfred Hollstein <manfredh@redhat.com>
5139 * Makefile.in (bootstrap-lean): Depend on bootstrap-lean_g,
5140 not bootstrap-lean_f.
5142 2000-09-06 Andreas Schwab <schwab@suse.de>
5144 * mklibgcc.in: Emit rule for libgcc-stage-start.
5145 * Makefile.in (stage1-start, stage2-start, stage3-start,
5146 stage4-start): Don't handle libgcc here, use libgcc.mk instead.
5148 2000-09-06 Bernd Schmidt <bernds@redhat.co.uk>
5150 * local-alloc.c (local_alloc): Ignore CLASS_LIKELY_SPILLED.
5151 (update_equiv_regs): Likewise, except for the mn10200 kludge.
5152 (combine_regs): Likewise.
5154 * Makefile.in (cse.o): Depend on $(BASIC_BLOCK_H).
5155 * cse.c: Include "basic-block.h".
5156 (struct table_elt): New field REGCOST.
5157 (CHEAP_REG): Delete macro.
5158 (COST): Return 0 for REGs.
5159 (approx_reg_cost_1, approx_reg_cost, preferrable): New functions.
5160 (notreg_cost): Return 0 for appropriate SUBREGs.
5161 (COSTS_N_INSNS): Return N * 2.
5162 (rtx_cost): Return 0 for REGs, and use cost of nested rtx for cheap
5164 (CHEAPER): Use new function preferrable.
5165 (insert): Initialize REGCOST member.
5166 (find_best_addr): Use approx_reg_cost for estimation of register
5168 (cse_insn): Likewise.
5169 * loop.c (iv_add_mult_cost): New function.
5170 (add_cost, shift_cost, mult_cost): Delete variables.
5171 (init_loop): Don't initialize add_cost; reduce copy_cost by half.
5172 (strength_reduce): Use iv_add_mult_cost instead of fixed add_cost.
5173 Make code that detects autoinc opportunities slightly less optimistic.
5174 (simplify_giv_expr): If expression contains other reg that is also a
5175 giv, only increment benefit if this is the only use of that reg.
5176 (consec_sets_giv): Take that change into account.
5177 (combine_givs): Slightly more verbose output.
5179 * i386.h (RTX_COSTS): For MULT, return true cost of multiplication,
5180 not the cost of an equivalent shift.
5181 * sh-protos.h (addsubcosts): Declare.
5182 * sh.c (addsubcosts): New function.
5183 * sh.h (CONST_COSTS): If CONST_OK_FOR_I, then return 0.
5184 (RTX_COSTS): Tweak. Use addsubcosts.
5185 (ADDRESS_COST): Return higher cost for reg+reg addressing.
5187 2000-09-06 Geoff Keating <geoffk@cygnus.com>
5189 * config/rs6000/rs6000.c (validate_condition_mode): New function.
5190 (branch_comparison_operator): Call validate_condition_mode to
5191 abort rather than returning 0.
5192 (branch_positive_comparison_operator): New function.
5193 (scc_comparison_operator): Call validate_condition_mode to abort
5194 rather than returning 0.
5195 (ccr_bit): Call validate_condition_mode. Update for
5197 (print_operand): Delete %C modifier. Update %E case
5198 to use EQ bit not SO bit.
5199 (rs6000_reverse_condition): New function.
5200 (rs6000_generate_compare): New function.
5201 (rs6000_emit_sCOND): New function.
5202 (rs6000_emit_cbranch): New function.
5203 (output_cbranch): The length of a long branch insn is
5204 now only 8 bytes. Add validate_condition_mode. Use
5205 rs6000_reverse_condition. Remove cror generation.
5207 * config/rs6000/rs6000.h: Update comments.
5208 (PREDICATE_CODES): Add new predicate. Update codes used
5209 by branch_comparison_operator and scc_comparison_operator.
5210 * config/rs6000/rs6000-protos.h: Add prototypes for
5211 new external functions.
5212 * config/rs6000/rs6000.md: Add new scheduling parameters
5213 for cr_logical instructions. Change length of branch
5215 (bCOND patterns): Call rs6000_emit_cbranch.
5216 (sCOND patterns): Call rs6000_emit_sCOND.
5217 (branch patterns): Change lengths to 4.
5218 (cr logical patterns): New.
5220 2000-09-06 Richard Henderson <rth@cygnus.com>
5222 * config/i386/i386.md (call_pop): Fix test for setting
5223 current_function_uses_pic_offset_table.
5224 (call, call_value_pop, call_value): Likewise.
5226 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
5228 * timevar.c (timevar_add): Delete.
5229 (timevar_get): Also count time since the selected timer was
5230 last updated. Do not examine the timevar stack if the
5231 selected timer is standalone.
5233 2000-09-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5235 * gthr-dce.h (__gthread_objc_mutex_deallocate): Free mutex->backend.
5237 2000-09-05 Jason Merrill <jason@redhat.com>
5239 * c-decl.c (finish_incomplete_decl): Don't call complete_array_type
5240 for 'extern' arrays.
5242 2000-09-05 Richard Henderson <rth@cygnus.com>
5244 * config/ia64/lib1func.asm (__divtf3): Rebundle for Itanium.
5245 Eliminate final copy from non-trapping case.
5246 (__divdf3, __divsf3): Likewise.
5248 2000-09-05 Richard Henderson <rth@cygnus.com>
5250 * config/ia64/ia64.md (mulhi3): Fix typo last change.
5251 * config/ia64/lib1func.asm (__divdi3, __udivdi3, __umodsi3): Likewise.
5253 2000-09-03 Donn Terry <donn@interix.com>, Laurynas Biveinis <lauras@softhome.net>
5255 * Makefile.in: Restructure bootstrap stages to allow clean
5256 restart after failure.
5258 2000-09-05 Richard Henderson <rth@cygnus.com>
5260 * config/ia64.md (movsi and movdi patterns): Allow moves from
5261 8-bit constants to AR registers.
5263 2000-09-05 Richard Henderson <rth@cygnus.com>
5265 * config/ia64/ia64.md (mulhi3): New.
5267 2000-09-05 Richard Henderson <rth@cygnus.com>
5269 * config/ia64/ia64.h (INIT_TARGET_OPTABS): Remove.
5270 * config/ia64/lib1funcs.asm (__divdi3): Update from Intel IA-64
5271 Optimization Guide, minimum latency alternative.
5272 (__moddi3, __udivdi3, __umoddi3): Likewise.
5273 (__divsi3, __modsi3, __udivsi3, __umodsi3): Likewise.
5275 2000-09-05 Bruce Korb <bkorb@gnu.org>
5277 * fixinc/fixincl.c (load_file): always read header files
5278 with sizes that are a multiple of the page size.
5279 & use libiberty's getpagesize for determining that.
5281 2000-09-05 Alexandre Oliva <aoliva@redhat.com>
5283 * gcse.c (hash_string_1): Add prototype.
5284 * cse.c (canon_hash_string): Likewise.
5286 2000-09-04 Craig Newell <CraigN@ieee.org>
5288 * gcc.c: Undefine "__WCHAR_TYPE__" before redefining it.
5290 2000-09-04 Andreas Schwab <schwab@suse.de>
5292 * Makefile.in (STAGESTUFF): Remove libgcc.
5293 (stage1-start, stage2-start, stage3-start): Copy the contents of
5294 the libgcc directory explicitly.
5295 (mostlyclean): Clean libgcc.
5297 2000-09-04 Andrew Haley <aph@redhat.com>
5299 * dwarf2out.c: (stack_adjust_offset): New prototype.
5301 Wed Jan 1 00:23:59 MET 1997 Jan Hubicka <jh@suse.cz>
5303 * combine.c (make_extraction): Fix rtx_cost comparison to
5306 Wed Jan 1 00:17:32 MET 1997 Jan Hubicka <jh@suse.cz>
5308 * i386.md (pushsi2, pushhi2, pophi2, swapsf, swapdf,
5309 umulsi3_highpart, smulsi3_highpart, testqi_ccno_1, xorqi_ext_1):
5310 Add '*' to insn pattern name.
5312 2000-09-04 Jakub Jelinek <jakub@redhat.com>
5314 * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
5315 use posn - 1 to index into tokens array.
5316 (maybe_paste_with_next): Adjust caller.
5318 2000-09-03 Geoff Keating <geoffk@cygnus.com>
5320 * invoke.texi: Document the -mvxworks option for rs6000 ELF.
5322 * config/rs6000/rs6000.h: Update various comments about XER_REGNO.
5323 (REGNO_REG_CLASS): Use symbolic register
5326 2000-09-03 Richard Earnshaw <rearnsha@arm.com>
5328 * arm.c (final_prescan_insn): If the form of a jump insn isn't
5329 recognized, don't try to conditionally execute it.
5331 Sun Sep 3 13:10:56 2000 Denis Chertykov <denisc@overta.ru>
5333 * config/avr/avr.md ("*tablejump_lib"): New pattern.
5334 (call_value_insn): Right length claculation.
5335 (call_insn): Likewise.
5337 2000-09-02 Marek Michalkiewicz <marekm@linux.org.pl>
5339 * config/avr/avr-protos.h, config/avr/avr.c (unique_section,
5340 gas_output_limited_string, gas_output_ascii, output_movqi,
5341 output_movhi, out_movqi_r_mr, out_movqi_mr_r, out_movhi_r_mr,
5342 out_movhi_mr_r, out_movsi_r_mr, out_movsi_mr_r, output_movsisf,
5343 out_tstsi, out_tsthi, ret_cond_branch, ashlqi3_out, ashlhi3_out,
5344 ashlsi3_out, ashrqi3_out, ashrhi3_out, ashrsi3_out, lshrqi3_out,
5345 lshrhi3_out, lshrsi3_out, output_reload_inhi, output_reload_insisf,
5346 out_shift_with_cnt, ptrreg_to_str, cond_string, encode_section_info):
5347 Add "const" as needed to remove warnings.
5349 * config/avr/avr.c (avr_override_options, avr_init_once,
5350 function_prologue, function_epilogue, frame_pointer_required_p,
5351 class_likely_spilled_p, order_regs_for_local_alloc,
5352 avr_address_cost, avr_ret_register): Use K&R style arguments.
5353 (initial_elimination_offset, gas_output_limited_string):
5354 Remove ATTRIBUTE_UNUSED from the used arguments.
5355 (output_mov*, out_mov*_r_mr, out_mov*_mr_r, output_reload_insisf):
5356 Use local variables src, dest, base to access operands[].
5357 Rename reg_dest to reg_src if that's what it is.
5358 (output_movhi, output_movsisf): Optimize loading 8-bit immediate
5359 constants to LD_REGS if reg_was_0.
5360 (output_reload_insisf): Change arg 3 to insn length and set it.
5361 (out_movhi_r_mr, out_movhi_mr_r): Use in/out for more efficient
5362 access to 16-bit I/O register pairs.
5363 (avr_address_cost): Lower cost for the above case.
5364 (out_tsthi): Use "or" (faster) instead of "sbiw" if the operand
5365 may be clobbered, also for LD_REGS.
5366 (adjust_insn_length): Correct insn length for iorhi3 and iorsi3
5369 * config/avr/avr.h (PTRDIFF_TYPE): Make signed.
5371 * config/avr/avr.md: Change all uses of the TEST_HARD_REG_CLASS
5372 macro to test_hard_reg_class function.
5373 (*movsi, *movsf): Change "cc" attribute from "clobber" to "none"
5374 for loading immediate constants to LD_REGS.
5375 (andsi3, cmphi, cmpsi): Add return statements to avoid warnings.
5378 Sat Sep 2 13:58:23 2000 Marek Michalkiewicz <marekm@linux.org.pl>
5380 * config/avr/avr.md ("*negsi2"): substitute %@ to __zero_reg__
5381 * config/avr/libgcc.S: Lost part of the previous patch.
5383 2000-08-31 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5385 * gthr-dce.h (__gthread_objc_mutex_allocate): Create a pthread_mutex_t
5386 object before calling pthread_mutex_init.
5388 2000-09-02 Alexandre Oliva <aoliva@redhat.com>
5390 * config/sh/t-elf, config/sh/crt1.asm, config/sh/crti.asm,
5391 config/sh/crtn.asm: New files.
5392 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Set.
5393 (crt1.o, crti.o, crtn.o): New targets.
5394 * configure.in [sh-*-elf*, sh-*-rtemself*] (tmake_file): Added
5396 * configure: Rebuilt.
5397 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
5398 STARTFILE_SPEC, ENDFILE_SPEC, CRT_CALL_STATIC_FUNCTION): Define.
5399 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
5400 Undefine for config/elfos.h to redefine.
5401 (STARTFILE_SPEC, ENDFILE_SPEC): Redefine after config/elfos.h.
5403 2000-09-02 Alexandre Oliva <aoliva@redhat.com>, Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
5405 * config/sh/sh-protos.h (nonpic_symbol_mentioned_p,
5406 legitimize_pic_address, output_pic_addr_const): Declare.
5407 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Fix PIC register.
5408 (PREFERGOT_BIT, TARGET_PREFERGOT): Likewise.
5409 (TARGET_SWITCHES): New switch -mprefergot.
5410 (OVERRIDE_OPTIONS): Set flag_no_function_cse unless -mprefergot.
5411 (PIC_OFFSET_TABLE_REGNUM): Define.
5412 (GOT_SYMBOL_TABLE): Likewise.
5413 (LEGITIMIZE_ADDRESS): Use legitimize_pic_address.
5414 (ENCODE_SECTION_INFO): Define.
5415 (FINALIZE_PIC): New macros.
5416 (LEGITIMATE_PIC_OPERAND_P, SYMBOLIC_CONST_P): New macro.
5417 (ASM_OUTPUT_INT, ASM_OUTPUT_SHORT): Use output_pic_addr_const.
5418 * config/sh/sh.c (print_operand_address): Use output_pic_addr_const.
5419 (prepare_move_operands): Call emit_pic_move or
5420 emit_pic_const_move if appropriate.
5421 (output_far_jump): For PIC, use braf and output long offset.
5422 (machine_dependent_reorg):
5423 (sh_expand_prologue): Save and initialize the PIC register.
5424 (sh_expand_epilogue): Restore it.
5425 (initial_elimination_offset): Account for it.
5426 (nonpic_symbol_mentioned_p): New function.
5427 (legitimize_pic_address): Likewise.
5428 (output_pic_addr_const): Likewise.
5429 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): New insns.
5430 (call, call_value): Use them.
5431 (GOTaddr2picreg, sym_label2reg, symGOT2reg, symGOTOFF2reg,
5432 symPLT_label2reg): New expands.
5433 * invoke.texi (SH Options): Document -mprefergot.
5435 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
5437 * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
5438 * gcse.c (hash_string_1): New function.
5439 (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
5440 (expr_equiv_p) <ASM_OPERANDS>: Likewise.
5441 * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
5442 (canon_hash_string): New function.
5443 (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
5444 (exp_equiv_p) <ASM_OPERANDS>: Likewise.
5445 (fold_rtx): Use ASM_OPERANDS accessor macros.
5446 * emit-rtl.c (copy_insn_1): Likewise.
5447 * integrate.c (copy_rtx_and_substitute): Likewise.
5448 * stmt.c (expand_asm_operands): Likewise. Give an
5449 ASM_OPERANDS rtx the mode of the output reg being set from it.
5451 2000-09-01 Fred Fish <fnf@be.com>
5453 * fix-header.c (write_rbrac): Add putc and getc to list of
5454 functions to protect against prior definition as a macro.
5456 2000-09-01 Joseph S. Myers <jsm28@cam.ac.uk>
5458 * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
5459 (c_size_type_node): Define.
5460 * c-decl.c (init_decl_processing): Initialize c_size_type_node.
5461 * c-common.c (enum format_lengths, enum format_std_version,
5462 format_length_info, format_type_detail, BADLEN, NOLENGTHS,
5463 format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
5464 T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
5465 T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
5466 T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
5467 TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
5468 format_types): Define.
5469 (format_char_info, print_char_table, scan_char_table,
5470 time_char_table): Rearrange for new organization of information
5471 about format length modifiers and standard versions.
5472 (T_ST): Redefine to use c_size_type_node.
5473 (check_format_info): Obtain information about length modifiers and
5474 standard versions from tables. Adjust warning message wordings.
5475 Use the name from the user's program for `ll' and `hh' length
5476 modifiers in warning messages. Use more informative names for
5477 wanted types where available (for wchar_t, wint_t, size_t, signed
5478 size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).
5480 2000-09-01 Jim Wilson <wilson@cygnus.com>
5482 * calls.c (emit_call_1): Add REG_NORETURN note to call if ECF_NORETURN.
5483 * combine.c (distribute_notes): Handle REG_NORETURN.
5484 * rtl.c (reg_note_name): Add REG_NORETURN.
5485 * rtl.h (enum reg_note): Likewise.
5487 * config/ia64/ia64-protos.h (emit_safe_across_calls): Renamed from
5489 * config/ia64/ia64.c (emit_safe_across_calls): Likewise.
5490 (rtx_needs_barrier): Handle unspec_volatile 8 and 9.
5491 (emit_predicate_relation_info): Handle conditional calls with
5493 * config/ia64/ia64.h (ASM_FILE_START): Call emit_safe_across_calls
5494 instead of ia64_file_start.
5495 * config/ia64/sysv4.h (ASM_FILE_START): Likewise.
5496 * config/ia64/ia64.md (safe_across_calls_all,
5497 save_across_calls_normal): New patterns.
5499 * loop.c (check_final_value): Check for biv use before checking for
5500 giv use. Check for both biv and giv uses. Always set last_giv_use
5501 if there is a giv use.
5503 2000-09-01 Richard Henderson <rth@cygnus.com>
5505 * config/ia64/ia64.md (mulsi3): Use grfr_register_operand.
5506 (madddi3): Likewise.
5509 Fri Sep 1 10:59:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5511 * expr.c (clear_storage): Don't use emit_move_insn unless
5512 either BLKmode or proper size.
5513 (store_constructor): Don't call clear_storage if REG of wrong size.
5515 * flow.c (init_propagate_block_info): Don't mark frame dead at end
5516 of function if returns wiht stack pointer depressed.
5518 2000-09-01 Andrew Haley <aph@redhat.com>
5520 * dwarf2out.c (stack_adjust_offset): New function.
5521 (dwarf2out_stack_adjust): Break out stack adjust logic into
5522 new stack_adjust_offset function. Look inside parallels and
5523 sequences for stack adjustments.
5525 2000-08-31 Jeff Law <law@cygnus.com>
5527 * arm.md: Use no_new_pseudos to determine when it is safe
5528 to create new pseudo registers.
5530 * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
5531 when we can safely allocate new registers.
5533 2000-08-31 Geoffrey Keating <geoffk@cygnus.com>
5535 * stmt.c (expand_asm_operands): Twiddle generating_concat_p
5536 so that CONCATs are not generated for ASMs.
5537 * emit-rtl.c (gen_reg_rtx): Don't generate CONCATs when
5538 not generating_concat_p.
5539 * function.c (pop_function_context_from): Reset
5540 generating_concat_p.
5541 (prepare_function_start): Likewise.
5542 * rtl.c (generating_concat_p): Define.
5543 * rtl.h (generating_concat_p): Declare.
5544 * toplev.c (rest_of_compilation): No CONCATs after RTL generation.
5546 2000-08-22 Philipp Thomas <pthomas@suse.de>
5547 Masanobu Yuhara <yuhara@flab.fujitsu.co.jp>
5549 * gmicro.h (TARGET_SWITCHES): Add descriptions and mark them
5552 2000-08-30 Greg McGary <greg@mcgary.org>
5554 * Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
5555 * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC).
5556 * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE.
5558 2000-08-30 Greg McGary <greg@mcgary.org>
5560 * tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
5561 (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct.
5562 (TREE_INT_CST): New macro.
5563 * varasm.c (const_hash, compare_constant_1, record_constant_1):
5564 Use new macro TREE_INT_CST.
5566 Wed 30-Aug-2000 23:18:59 BST Neil Booth <NeilB@earthling.net>
5568 * contrib.texi: Add self.
5570 2000-08-30 Alexandre Oliva <aoliva@redhat.com>
5572 * config/sh/sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): New insns.
5573 (cmpeqdi_t splitter): Use cmpeqsi_and_t instead of emitting jumps
5576 2000-08-30 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5578 * fixinc/gnu-regex.c: Don't define `const'.
5580 Tue Aug 29 22:09:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5582 * expr.c (store_constructor): Allow variable bounds of array type.
5583 (expand_expr): Don't blow up if type is ERROR_MARK.
5584 * varasm.c (output_constructor): Don't access lower bound of array
5585 type unless need it if index is supplied (so it can be a variable
5586 if no index is supplied).
5587 Use tree_low_cst; use HOST_WIDE_INT for sizes; change BITPOS to POS.
5588 Other minor cleanups.
5590 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5592 * Makefile.in: Revamp handling of cflags to allow different WARN_CFLAGS
5593 for compilations in stage 1 and subsequent stages, respectively.
5594 * configure.in (vax): Add compiler-dependent CFLAGS for stage 1.
5595 * configure: Rebuilt.
5596 * x-vax, x-vax-gcc: Deleted.
5598 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
5600 * c-common.c (declare_function_name): Use func_id_node,
5601 function_id_node, and pretty_function_id_node. Do not make
5602 __func__ visible at file scope.
5603 * c-common.h (c_tree_index): Add CTI_FUNCTION_ID,
5604 CTI_PRETTY_FUNCTION_ID, and CTI_FUNC_ID.
5605 (function_id_node, pretty_function_id_node, func_id_node): New
5607 * c-decl.c (init_decl_processing): Initialize function_id_node,
5608 pretty_function_id_node, and func_id_node.
5609 (c_make_fname_decl): Correct comment.
5611 * tree.h (struct tree_identifier): Constify pointer member.
5613 * c-decl.c (pushdecl, implicit_decl_warning): Constify a char *.
5614 * c-pragma.h (struct weak_syms): Constify name and value members.
5615 (add_weak): Constify arguments.
5617 * calls.c (special_function_p): Constify a char *.
5618 (expand_call): Remove variable which is initialized and then
5620 * dependence.c (struct def_use, struct induction, struct subscript):
5621 Constify 'variable' member.
5622 (get_low_bound, have_induction_variable): Constify char * argument.
5623 (find_induction_variable): Add braces to avoid dangling else.
5624 (classify_dependence): Constify char * arrays.
5625 * profile.c (output_func_start_profiler): Constify a char *.
5626 * stor-layout.c (finalize_record_size): Constify a char *.
5627 * tree.c (is_attribute_p): Constify a char *.
5628 * varasm.c (add_weak, remove_from_pending_weak_list): Constify argument.
5630 * varasm.c (make_function_rtl, make_decl_rtl): Rearrange code
5631 for comprehensibility. Do not call get_identifier if we did
5632 not change the DECL_ASSEMBLER_NAME of the decl. Use alloca to
5633 create temporary string constants, not ggc_alloc_string. No
5634 need to copy result of ASM_FORMAT_PRIVATE_NAME. Use const
5635 char * to hold IDENTIFIER_POINTERs.
5637 2000-08-29 Richard Henderson <rth@cygnus.com>
5639 * config/ia64/ia64.md (muldi3): Use grfr_register_operand
5642 2000-08-29 Richard Henderson <rth@cygnus.com>
5644 * reload.c (push_secondary_reload): Allow class == reload_class
5645 if we're using a reload_in/out pattern.
5647 * config/ia64/ia64.md (reload_inti): Use a TImode scratch. Use
5648 the half that does not conflict with the reload register.
5649 (reload_outti): Likewise.
5651 2000-08-29 Kazu Hirata <kazu@hxi.com>
5653 * reload.c: Fix formatting.
5655 * stmt.c: Fix formatting.
5657 * gcc.c: Fix formatting.
5659 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
5661 * flags.h (time_report, mem_report): New global flags.
5662 * toplev.c: Define time_report and mem_report.
5663 (f_options): Add -ftime-report and -fmem-report.
5664 (compile_file): Turn on time_report if quiet_flag is off.
5665 Call ggc_print_statistics at very end if mem_report is on.
5666 * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
5668 * ggc-common.c (ggc_print_statistics): Rename to
5669 ggc_print_common_statistics; all callers changed. Scale
5670 quantities above 10K to kilobytes and above 10M to megabytes.
5671 * ggc-page.c (ggc_page_print_statistics): Rename to
5672 ggc_print_statistics. Report memory consumed by internal data
5673 structures for each allocation bucket. Scale quantities above
5674 10K to kilobytes and above 10M to megabytes.
5675 * ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
5676 Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
5677 Define tally_leaves always.
5678 (ggc_print_statistics): New function.
5679 * ggc.h: Adjust for renamed functions.
5681 Wed Aug 30 00:11:42 2000 Denis Chertykov <denisc@overta.ru>
5683 * config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
5684 output_movsisf instead of which_alternative.
5686 * config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
5688 Tue Aug 29 22:29:58 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
5690 * config/avr/avr-protos.h: (avr_output_ascii) Removed.
5691 (avr_progmem_p): New prototype.
5692 (output_movsisf): Prototype declaration changed.
5693 (output_movqi): New prototype.
5694 (output_movhi): New prototype.
5695 (call_insn_operand): Likewise.
5696 (final_prescan_insn): Likewise.
5697 (avr_simplify_comparision_p): Likewise.
5698 (avr_normalize_condition): Likewise.
5699 (compare_eq_p): Likewise.
5700 (out_shift_with_cnt): Likewise.
5701 (const_int_pow2_p): Likewise.
5702 (output_reload_inhi): Prototype declaration changed.
5704 * config/avr/avr.c: (debug_hard_reg_set): Prototype declared.
5705 (ldi_reg_rtx): New. rtx for r31.
5706 (avr_init_stack): Initialize as "__stack".
5707 (function_prologue): Use it.
5708 Replace all TARGET_ENHANCED with AVR_ENHANCED.
5709 (avr_mcu_name): Initialize as "avr2".
5710 (avr_enhanced_p, avr_mega_p): New variables.
5711 (mcu_types, avr_override_options): Handle all known MCU types.
5712 Also handle avr1 (only preprocess, assemble and link).
5713 (print_operand): Using of `%K' in output template removed.
5714 (out_movqi_r_mr): Optimized.
5715 (out_movhi_r_mr): Likewise.
5716 (output_movqi): New function.
5717 (output_movhi): Likewise.
5718 (out_movsi_r_mr): Optimized.
5719 (output_movsisf): Compute insn length for `adjust_insn_length'
5720 (out_movqi_mr_r): Optimized.
5721 (out_movhi_mr_r): Optimized.
5722 (adjust_insn_length): Use output_movsisf, output_movqi,
5723 output_movhi for insn length adjusting.
5724 (reg_unused_after): Use dead_or_set_p.
5725 (preferred_reload_class): Now havn't any restriction.
5726 (reg_was_0): New function.
5727 (io_address_p): Likewise.
5728 (const_int_pow2_p): Likewise.
5729 (output_reload_inhi): Likewise.
5730 (output_reload_insisf): Likewise.
5732 * config/avr/avr.h (MULTILIB_DEFAULTS): Define.
5733 (LIB_SPEC): Use -lc for all supported devices.
5734 (LIBGCC_SPEC): Use -lgcc for all supported devices.
5735 (AVR_MEGA): Define as avr_mega_p.
5736 (AVR_ENHANCED): New, define as avr_enhanced_p.
5737 (TARGET_SWITCHES): Remove -menhanced, now handled by -mmcu=...
5738 (CPP_SPEC, LINK_SPEC): Handle all known MCU types.
5739 (CRT_BINUTILS_SPECS): Handle all known MCU types.
5740 Rename gcrt1-*.o to make file names unique on 8.3 filesystems.
5741 (EXTRA_SPECS): Add CPP_AVR[1-5]_SPEC.
5742 (ASM_SPEC): Pass -mmcu=... to the assembler.
5743 Change all -DAVR_* to -D__AVR_*__.
5744 (INIT_TARGET_OPTABS), config/avr/libgcc.S:
5745 Rename library functions to start with two underscores.
5746 (ASM_OUTPUT_COMMON): Outputs `.comm VAR,VAR-SIZE,1' to avoid
5748 (ASM_WEAKEN_LABEL): Declared for __attribute__((weak)).
5749 (SUPPORTS_WEAK): Likewise.
5750 (LDI_REG_REGNO): New. Register r31 will be used as temporary
5751 register for loading constants to r0-r14.
5753 * config/avr/avr.md: Replace all TARGET_ENHANCED with
5755 (*mov_r_sp): Removed. Handled by output_movhi.
5756 (*mov_sp_r): Likewise.
5757 (*mov_sp_r_no_interrupts): Likewise
5758 (*mov_sp_r_tiny): Likewise.
5759 (*movqi): Use output_movqi.
5760 (*reload_inqi): New.
5761 (*movhi): Use output_movhi.
5762 (*reload_inhi): New.
5763 (*negsi2): Optimized.
5764 (*negsf2): Likewise.
5765 Added peepholes (define_peephole2) for loading constants to r0-r14
5766 and for using `cpse' command.
5768 * config/avr/libgcc.S: Rename library functions to start with two
5770 Add support for enhanced core.
5771 (_moqhi3): Fix typo, now _modqi3.
5772 (__divsi_raw): Use __zero_reg__ as loop counter, smaller by 1 word.
5773 (__prologue_saves__): Remove test for stack adjust by 0.
5774 (__tablejump__): New.
5776 * config/avr/t-avr: Build libgcc2 with -mcall-prologues.
5777 Add multilib support.
5779 Tue Aug 29 15:17:54 EDT 2000 John Wehle (john@feith.com)
5781 * loop.c (prescan_loop): Don't check unknown_address_altered
5782 when deciding if insert_loop_mem is safe. Add BLKmode MEMs
5783 to loop_store_mems as necessary.
5784 (loop_invariant_p): Don't check unknown_address_altered
5785 or unknown_constant_address_altered.
5787 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5789 * vax.md (sltu, sgeu): Delete sltu and sgeu insn patterns.
5791 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
5793 * cpperror.c (print_file_and_line): If line is (unsigned int)-1,
5794 print just the filename.
5795 * cpplex.c (_cpp_run_directive): Add additional argument, the
5796 name to give the synthetic buffer. This defaults to
5797 translated "<command line>".
5798 * cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
5800 (_cpp_define_builtin): New function.
5801 * cppinit.c (initialize_builtins): Use _cpp_define_builtin.
5802 * cpphash.h: Update prototypes.
5804 * tradcpp.c (main): Process -D and -U simultaneously, in the
5805 order they appeared on the command line.
5807 2000-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5809 * c-decl.c (define_label): Call warning_with_file_and_line and
5810 error_with_file_and_line instead of plain warning or error.
5812 * c-parse.in (label): Use save_filename/save_lineno to ensure
5813 correct values for calls to define_label.
5815 2000-08-29 Mark Mitchell <mark@codesourcery.com>
5817 * calls.c (expand_call): Don't create a VAR_DECL just to throw it
5819 * expr.c (expand_expr, case TARGET_EXPR): Don't call
5821 * tree.h (get_file_function_name): Remove two duplicate
5824 2000-08-28 Kazu Hirata <kazu@hxi.com>
5826 * tree.c: Fix formatting.
5828 * xcoffout.c: Fix formatting.
5830 2000-08-28 Jason Merrill <jason@redhat.com>
5832 * dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
5834 2000-08-28 Daniel Berlin <dberlin@redhat.com>
5836 * dwarf2out.c (dwarf2out_finish): Don't bother calling
5837 break_out_includes if it won't do anything.
5839 2000-08-28 Richard Henderson <rth@cygnus.com>
5841 * reload.c (push_secondary_reload): Revert 2000-08-16 change.
5842 (find_reloads): Likewise.
5843 * config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
5844 (reload_inhi): Likewise.
5846 2000-08-28 Richard Henderson <rth@cygnus.com>
5848 * config/i386/i386.c: Don't error on EXTRA_CONSTRAINT defined.
5849 (call_insn_operand): Don't expect a surrounding mem.
5850 (constant_call_address_operand): Likewise.
5851 * config/i386/i386.h (PREDICATE_CODES): Update.
5852 * config/i386/i386.md (call patterns): Move the match_operand
5853 for the call destination inside the mem.
5855 2000-08-28 Richard Henderson <rth@cygnus.com>
5857 * local-alloc.c (requires_inout): Don't use reserved range for
5858 EXTRA_CONSTRAINTS; use anything not matched by REG_CLASS_FROM_LETTER.
5859 * recog.c (asm_operand_ok): Likewise.
5860 (preprocess_constraints, constrain_operands): Likewise.
5861 * regclass.c (record_reg_classes): Likewise.
5862 * reload.c (find_reloads): Likewise.
5863 * reload1.c (maybe_fix_stack_asms): Likewise.
5864 (reload_cse_simplify_operands): Likewise.
5865 * stmt.c (expand_asm_operands): Likewise.
5867 * md.texi: Update constraints documentation.
5868 * tm.texi (EXTRA_CONSTRAINT): Update.
5870 2000-08-28 Daniel Berlin <dberlin@redhat.com>
5872 * dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
5873 (print_die): If we don't know the offset of the
5874 target die, try the symbol. Add a trailing newline.
5875 (reverse_all_dies): New fn.
5876 (dwarf2out_finish): Call it.
5877 (break_out_includes): Reorganize for clarity.
5878 (add_sibling_attributes): Don't call reverse_die_lists.
5879 (output_comp_unit): Rename from output_comdat_comp_unit. Use for
5881 * flags.h: Add flag_eliminate_dwarf2_dups.
5882 * toplev.c (f_options): Support -feliminate-dwarf2-dups.
5884 2000-08-28 Jason Merrill <jason@redhat.com>
5886 * dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
5887 * dwarf2out.c: #include "md5.h".
5888 (DIE_LABEL_PREFIX): New macro.
5889 (dw_val_struct): Add 'external' flag to val_die_ref.
5890 (add_AT_die_ref, AT_ref): Adjust.
5891 (AT_ref_external, set_AT_ref_external): New fns.
5892 (build_abbrev_table): Call set_AT_ref_external.
5893 (value_format): Call AT_ref_external.
5894 (die_struct): Add die_symbol field.
5895 (new_die): Clear it.
5896 (dwarf_tag_name): Handle BINCL/EINCL.
5897 (dwarf2out_start_source_file): Add BINCL DIE.
5898 (dwarf2out_end_source_file): Add EINCL DIE.
5899 (push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
5900 (loc_checksum, attr_checksum, die_checksum): New fns.
5901 (is_type_die, is_comdat_die, is_symbol_die): New fns.
5902 (compute_section_prefix, assign_symbol_names): New fns.
5903 (gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
5904 (output_die): Call output_die_symbol and AT_ref_external.
5905 (output_comdat_comp_unit): New fn, split out from...
5906 (dwarf2out_finish): ...here. Also call add_sibling_attributes for
5908 (output_pubnames, output_aranges): Abort if we see entries from
5910 * toplev.h: Declare file_name_nondirectory.
5911 * toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
5912 (rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
5913 (debug_start_source_file): Call dwarf2out_start_source_file
5914 regardless of debug verbosity.
5915 (debug_end_source_file): Similarly.
5916 * tree.h: Declare clean_symbol_name.
5917 * tree.c (clean_symbol_name): Split out from...
5918 (get_file_function_name_long): ...here.
5920 * dwarf2out.c (new_loc_descr): Use calloc.
5921 (splice_child_die): Remove the die from the right parent.
5922 (gen_struct_or_union_die): Don't add AT_name to a specification DIE.
5924 Mon Aug 28 19:02:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5926 * toplev.c (decode_g_option): Don't give warning for unknown -g
5927 option; return 0 instead.
5928 (main): If -g option is not recognized by front end or
5929 language-independent code, give warning.
5931 2000-08-28 Greg McGary <greg@mcgary.org>
5933 * config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
5934 * config/i386/i386.c (ix86_expand_compare): Remove `static'.
5935 * config/i386/i386.md (trap, conditional_trap): New insn & expand.
5937 2000-08-27 Greg McGary <greg@mcgary.org>
5939 * cpplex.c (parse_string): Don't look for backslash
5940 before first char in `namebuf'.
5941 * loop.c (strength_reduce): Skip NOTEs.
5943 2000-08-27 Jason Merrill <jason@redhat.com>
5945 * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
5946 DECL_EXTERNAL on a local extern. Don't set DECL_IGNORED_P or
5947 TREE_ASM_WRITTEN, either.
5948 (finish_decl): Adjust.
5950 2000-08-28 Philipp Thomas <pthomas@suse.de>
5952 * ABOUT-GCC-NLS: Remove gettext patches from Paul Eggert as
5953 they have been incorporated into the gettext CVS. Change the text to
5954 reflect the current status of NLS. Add instructions for accessing
5955 the gettext CVS and add the patch from Martin v. Loewis.
5957 2000-08-27 Geoff Keating <geoffk@cygnus.com>
5959 * config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
5960 by using gen_lowpart_common.
5961 (movdi_internal64+6): Likewise.
5963 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
5965 * tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
5968 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register
5969 numbers to the ranges used by GDB.
5971 2000-08-25 Richard Henderson <rth@cygnus.com>
5973 * config/ia64/ia64.h (struct machine_function): Add n_varargs.
5974 * config/ia64/ia64.c (ia64_compute_frame_size): Use it.
5975 (ia64_expand_prologue): Likewise.
5976 (ia64_setup_incoming_varargs): Set it. Properly skip the current
5977 argument for stdargs.
5979 2000-08-25 Jason Merrill <jason@redhat.com>
5981 * integrate.c (expand_inline_function): Pull out the original decl.
5983 2000-08-25 Jim Wilson <wilson@cygnus.com>
5985 * cse.c (cse_insn): Don't pass label subtraction to force_const_mem.
5987 * function.c (gen_mem_addressof): Clear MEM_ALIAS_SET if no decl.
5989 2000-08-25 Greg McGary <greg@mcgary.org>
5991 * flow.c (dump_edge_info): Use ARRAY_SIZE.
5992 * config/alpha/alpha.c (alpha_expand_block_move): Likewise.
5994 2000-08-25 Richard Earnshaw <rearnsha@arm.com>
5996 * arm.h (STRUCT_VALUE): Define to 0, not NULL.
5998 Fri Aug 25 12:52:49 EDT 2000 John Wehle (john@feith.com)
6000 * i386.c (ix86_find_base_term): New.
6001 * i386-protos.h (ix86_find_base_term): Prototype.
6002 * i386.h (FIND_BASE_TERM): Define.
6003 * alias.c (find_base_term): Use it.
6004 * tm.texi (FIND_BASE_TERM): Document it.
6006 * alias.c (true_dependence, write_dependence_p): Unchanging
6007 memory can't conflict with non-unchanging memory.
6009 * alias.c (memrefs_conflict_p): A BLKmode reference
6010 to a symbol (or CONST_INT address) always conflicts
6011 with a reference to another symbol.
6013 2000-08-25 Joseph S. Myers <jsm28@cam.ac.uk>
6015 * c-common.c (time_char_table): Don't allow width and flags with
6018 2000-08-25 Jakub Jelinek <jakub@redhat.com>
6020 * config/i386/i386.c (ix86_expand_branch): Treat GE and GEU the same
6021 way as LT and LTU when the second operand has 0 in low word.
6023 2000-08-26 Michael Hayes <mhayes@cygnus.com>
6025 * basic-block.h (struct loop): Rename `exits' field to
6026 `exit_edges'. Add `entry_edges' and `num_entries' fields.
6028 * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
6029 (flow_loop_entry_edges_find): Add.
6030 (flow_edge_list_print): Rename from flow_exits_print.
6031 (flow_loops_find): Call flow_loop_entry_edges_find.
6032 (flow_loop_dump): Dump entry_edges list.
6033 (flow_loops_free): Free entry_edges.
6035 2000-08-26 Michael Hayes <mhayes@cygnus.com>
6037 * loop.c (loop_dump_aux, debug_loop): New functions.
6038 (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros.
6040 * flow.c (flow_loops_dump): Add callback parameter.
6041 (flow_loop_dump): Add callback parameter and call it. Move
6042 loop note debugging code to loop_dump_aux.
6044 * basic-block.h (flow_loop_dump): Add callback parameter
6045 (flow_loops_dump): Likewise.
6047 * toplev.c (rest_of_compilation): Add NULL callback function pointer
6048 to call to flow_loops_dump.
6050 2000-08-26 Michael Hayes <mhayes@cygnus.com>
6052 * loop.c (count_loop_regs_set): Replace start and end arguments
6053 with loop argument. All callers udated.
6055 2000-08-26 Michael Hayes <mhayes@cygnus.com>
6057 * loop.c (constant_high_bytes): Delete.
6059 2000-08-26 Michael Hayes <mhayes@cygnus.com>
6061 * loop.c (prescan_loop): Move checks for NOTE_INSN_LOOP_CONT
6062 and NOTE_INSN_LOOP_VTOP to...
6063 (find_and_verify_loops) ...here.
6065 Fri Aug 25 04:21:13 2000 Alexandre Oliva <aoliva@redhat.com>
6067 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
6068 (fini_dummy, init_dummy): Use it.
6070 Fri 25-Aug-2000 08:03:27 BST Neil Booth <NeilB@earthling.net>
6072 * cpplex.c (is_macro_disabled): Caller has already checked
6073 that we're not a preprocessed file.
6075 2000-08-24 Mark Mitchell <mark@codesourcery.com>
6077 * Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
6078 (c-iterate.o): Remove target.
6079 * gcc/c-common.h (enum rid): Remove RID_ITERATOR.
6080 * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
6081 (finish_decl): Don't handle iterators.
6082 (grokdeclarator): Likewise.
6083 * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
6084 * gcc/c-gperf.h: Regenerated.
6085 * gcc/c-iterate.c: Removed.
6086 * gcc/c-lex.c (init_lex): Don't handle iterators.
6087 * gcc/c-parse.in (primary): Remove pop_iterator_stack call.
6088 (compstmt_primary_start): Remove push_iterator_stack call.
6089 (stmt): Don't allow iterator statements. Replace iterator_expand
6090 with expand_expr_stmt.
6091 (all_iter_stmt): Remove.
6092 (all_iter_stmt_simple): Likewise.
6093 (all_iter_stmt_with_decl): Likewise.
6094 * gcc/c-tree.h (ITERATOR_P): Remove.
6095 (ITERATOR_BOUND_P): Likewise.
6096 (init_iterators): Remove declaration.
6097 (iterator_expand): Likewise.
6098 (iterator_for_loop_start): Likewise.
6099 (iterator_for_loop_end): Likewise.
6100 (iterator_for_loop_record): Likewise.
6101 (push_iterator_stack): Likewise.
6102 (pop_iterator_stack): Likewise.
6103 * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
6104 (readonly_warning): Likewise.
6105 * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
6107 2000-08-24 Jim Wilson <wilson@cygnus.com>
6109 * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
6110 Copy type in a TYPE_DECL, just like pushdecl does.
6112 2000-08-24 Richard Henderson <rth@cygnus.com>
6114 * toplev.c (main): Enable flag_reorder_blocks at -O2.
6116 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
6118 * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
6119 asked for one page, allocate GGC_QUIRE_SIZE of them and put
6120 the extras on the free list.
6121 (release_pages): Clean up.
6122 (ggc_set_mark): Don't adjust G.allocated here...
6123 (sweep_pages): ... do it here.
6125 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
6127 * cppfiles.c (read_include_file): Rearrange initializations.
6129 2000-08-24 Richard Henderson <rth@cygnus.com>
6131 * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
6133 * config/ia64/ia64-protos.h: Update.
6134 * config/ia64/ia64.c (gr_register_operand): New.
6135 (fr_register_operand, grfr_register_operand): New.
6136 (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
6137 (grfr_reg_or_8bit_operand): New.
6138 (gr_reg_or_0_operand): Rename from reg_or_0_operand and
6139 use gr_register_operand.
6140 (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
6141 (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
6142 (gr_reg_or_8bit_and_adjusted_operand): Likewise.
6143 (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
6144 (fr_reg_or_fp01_operand): Likewise.
6145 (not_postinc_memory_operand): New.
6146 (ia64_split_timode): Remove unused variables.
6147 (rtx_needs_barrier): Check arguments to cmpxchg.
6148 (builtin_description): Remove.
6149 (bdesc_2argsi, bdesc_2argdi): Remove.
6150 (ia64_init_builtins): Declare all builtins directly.
6151 (ia64_expand_fetch_and_op): Rewrite to be called from
6152 ia64_expand_builtin directly. Use expand_binop and co.
6153 (ia64_expand_op_and_fetch): Likewise.
6154 (ia64_expand_compare_and_swap): Likewise.
6155 (ia64_expand_binop_builtin): Remove.
6156 (ia64_expand_lock_test_and_set): New.
6157 (ia64_expand_lock_release): New.
6158 (ia64_expand_builtin): Use them.
6159 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
6160 (EXTRA_CONSTRAINT): Use it.
6161 (PREDICATE_CODES): Update.
6162 * config/ia64/ia64.md (*): Use gr_register_operand and co.
6163 (mf): Indicate that we set memory as well as use it.
6164 (fetchadd_acq_si): Show memory being modified as well.
6165 (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
6166 (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
6167 (lock_test_and_set_si, lock_test_and_set_di): Remove.
6168 (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
6169 (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
6170 (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
6171 (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
6172 (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
6173 (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
6174 (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
6175 (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
6176 * config/ia64/ia64intrin.h (*): Cast result to the appropriate
6177 return type. Pretty print definitions.
6179 2000-08-24 Jim Wilson <wilson@cygnus.com>
6181 * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
6182 we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
6184 2000-08-24 Jason Merrill <jason@redhat.com>
6186 * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
6187 AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
6188 (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
6189 get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
6191 2000-08-24 Greg McGary <greg@mcgary.org>
6193 * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
6194 and extendtab within their proper array boundaries.
6195 * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
6196 for the entire array.
6198 * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
6199 * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
6200 * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
6201 * config/fr30/fr30.c (fr30_print_operand): Likewise.
6202 * config/i386/dgux.c (output_options): Likewise.
6203 * config/i386/dgux.h (ASM_FILE_START): Likewise.
6204 * config/m88k/m88k.c (output_options): Likewise.
6205 * config/m88k/m88k.h (ASM_FILE_START): Likewise.
6206 * config/mcore/mcore.c (mcore_output_inline_const_forced,
6207 layout_mcore_frame, handle_structs_in_regs): Likewise.
6208 * config/mips/mips.c (output_block_move): Likewise.
6209 * config/rs6000/rs6000.c (rs6000_override_options,
6210 rs6000_file_start): Likewise.
6211 * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
6212 * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
6213 * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
6214 * builtins.c (expand_builtin_setjmp): Likewise.
6215 * expr.c (safe_from_p): Likewise.
6216 * flow.c (life_analysis): Likewise.
6217 * fold-const.c (size_int_type_wide): Likewise.
6218 * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
6219 * genattrtab.c (make_length_attrs): Likewise.
6220 * genopinit.c (gen_insn): Likewise.
6221 * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
6222 * global.c (global_alloc): Likewise.
6223 * local-alloc.c (find_free_reg): Likewise.
6224 * mips-tdump.c (print_symbol): Likewise.
6225 * mips-tfile.c (parse_def, parse_input): Likewise.
6226 * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
6227 * stmt.c (expand_nl_goto_receiver): Likewise.
6228 * stor-layout.c (set_sizetype): Likewise.
6229 * varasm.c (decode_reg_name): Likewise.
6230 * toplev.c (decode_f_option, decode_W_option,
6231 set_target_switch, print_switch_values): Likewise.
6232 (NUM_ELEM): Remove macro.
6233 (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
6235 2000-08-24 Greg McGary <greg@mcgary.org>
6237 * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
6238 (MAIN_NAME_P, main_identifier_node): New macros.
6239 * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
6240 * c-decl.c (start_decl, grokdeclarator, start_function,
6241 store_parm_decls, finish_function): Use MAIN_NAME_P.
6242 * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
6243 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
6244 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
6245 * config/pdp11/pdp11.c (output_function_prologue): Likewise.
6247 2000-08-24 Greg McGary <greg@mcgary.org>
6249 * cppfiles.c (actual_directory): Don't write beyond `dir'
6250 when it contains "".
6251 * real.c (asctoeg): Stay within bounds of etens[][].
6253 2000-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6255 * dependence.c (dependence_string, direction_string,
6256 dump_one_node, dump_node_dependence): Hide unused identifiers.
6257 (get_low_bound, normalize_coefficients): Match definition to
6259 (get_one_coefficient): Initialize variables `value0_is_idx' and
6261 (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
6262 (ziv_test): Delete variable `idx', use parameter `sub' instead.
6263 (direction_merge): Avoid automatic aggregate initialization.
6264 (have_dependence_p): Use `src' not `dest' to set `src_idx'.
6265 Initialize variables `dest_idx' and `src_idx'.
6266 (end_dependence_analysis): Avoid C89 style function definition.
6268 2000-08-24 Joseph S. Myers <jsm28@cam.ac.uk>
6270 * c-common.c (time_char_table): Don't allow width with %F.
6271 (check_format_info): Don't allow "Z" length with scanf.
6273 2000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
6275 * diagnostic.c (finish_diagnostic): Define.
6276 (output_do_printf): Use wrap_text instead of output_add_string.
6277 (default_print_error_function): Avoid embedded '\n'.
6279 * diagnostic.h (flush_diagnostic_buffer): Declare.
6281 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
6283 * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
6285 2000-08-23 Hans-Peter Nilsson <hp@axis.com>
6287 * Makefile.in (GCC_PASSES): Add specs.
6289 2000-08-23 Jim Wilson <wilson@cygnus.com>
6291 * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
6292 * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
6293 EHANDLER nor UHANDLER bit is set.
6294 (__get_except_table): Likewise.
6296 2000-08-23 Nick Clifton <nickc@redhat.com>
6298 * config/arm/lib1funcs.asm: Replace upper case condition codes
6299 with lower case versions.
6301 * config/arm/arm.h (STRUCT_VALUE): Define.
6302 (STRUCT_VALUE_REGNUM): Delete.
6304 2000-08-23 Zack Weinberg <zack@wolery.cumb.org>
6306 * cpphash.h (IN_I): New flag for directive table.
6307 * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
6309 (_cpp_check_directive): If -fpreprocessed, execute directives
6310 marked with IN_I. Issue no warnings in this case.
6311 * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
6313 2000-08-23 Joseph S. Myers <jsm28@cam.ac.uk>
6315 * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
6317 (check_format_info): Support printf 'I' flag; warn about it with
6320 2000-08-23 Richard Earnshaw (rearnsha@arm.com)
6322 * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
6323 barrier can't be ignored by the alias analysis code.
6325 2000-08-12 Eli Zaretskii <eliz@is.elta.co.il>
6327 * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
6328 works inside fixincl.
6330 Wed Aug 23 04:55:48 2000 Alexandre Oliva <aoliva@redhat.com>
6332 * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
6333 simplify_relational_operation() unless both operands are of
6335 * cse.c (fold_rtx): Likewise.
6337 Tue Aug 22 23:53:27 EDT 2000 John Wehle (john@feith.com)
6339 * rtlanal.c (rtx_unstable_p): The pic register is stable
6340 (within one function) and the actual rtx should be used
6341 when checking the registers.
6342 (rtx_addr_can_trap_p): Pic memory addresses can't trap.
6344 * alias.c (true_dependence, write_dependence_p): Fix
6345 bug in previous patch.
6347 * i386.c (ix86_GOT_alias_set): New.
6348 (legitimize_pic_address): Use it.
6350 * rtlanal.c (rtx_unstable_p): An unchanging MEM is
6351 only stable if its address is stable.
6352 (rtx_varies_p): An unchanging MEM can't vary if
6353 its address doesn't vary.
6355 2000-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6357 * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
6359 2000-08-22 J. David Anglin <dave@hiauly1.hia.nrc.ca>
6361 * vax.h (ASM_SPEC): Pass `-J' to assembler.
6362 * x-vax-gcc: New file for bootstrapping with gcc.
6363 * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
6364 * configure.in: Use x-vax-gcc with gcc.
6365 * configure: Rebuilt.
6367 Tue Aug 22 21:21:05 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6369 * toplev.c (rest_of_compilation): Rebuild label notes after
6370 post-reload splitting pass if new labels have been created.
6372 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
6374 * diagnostic.h (output_buffer_state): New macro.
6375 * diagnostic.c (diagnostic_for_decl, sorry,
6376 default_print_error_function, output_do_verbatim,
6377 report_diagnostic, report_problematic_module): Use it.
6379 (output_format): Use wrap_text instead of maybe_wrap_text.
6381 2000-08-22 Nick Clifton <nickc@redhat.com>
6383 * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
6384 Common code for ARM divide and modulus functions.
6385 (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
6387 (FUNC_END): New macro: Common code at the end of the division and
6389 (THUMB_FUNCTION_START): New macro: Common code at the start of
6391 (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
6393 Tue Aug 22 20:34:52 2000 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6395 * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
6397 * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
6398 sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
6401 2000-08-22 Nick Clifton <nickc@redhat.com>
6403 * config/arm/lib1funcs.asm (__umodsi3): Before performing any
6404 restorative additions, test for bottom bits of IP being set,
6405 rather than relying upon the RORs not matching.
6408 2000-08-22 David Edelsohn <edelsohn@gnu.org>
6410 * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
6411 text_section() as appropriate instead of emitting text csect
6413 (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
6414 (UNIQUE_SECTION): Define macro.
6415 (ASM_OUTPUT_SECTION_NAME): Define macro.
6416 * rs6000.c (rs6000_override_options): Disable -ffunction-sections
6417 on AIX if debugging and -fdata-sections always.
6419 2000-08-22 Steven King <sxking@uswest.net>
6421 * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
6423 (LDBL_MAX): Same here.
6425 2000-08-22 Richard Henderson <rth@cygnus.com>
6427 * flow.c (tidy_fallthru_edge): Update b->end properly.
6429 2000-08-22 Stan Cox <scox@redhat.com>
6431 * Makefile.in (OBJS): Add dependence.o.
6432 * dependence.c: New file.
6434 2000-08-22 Alexandre Oliva <aoliva@redhat.com>, John David Anglin <dave.anglin@nrc.ca>
6436 * calls.c (check_sibcall_argument_overlap_1): Adjust for
6438 (check_sibcall_argument_overlap): Likewise.
6440 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
6442 * invoke.texi (SH Options): Document -m4-nofpu,
6443 -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
6444 -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
6446 2000-08-22 Joseph S. Myers <jsm28@cam.ac.uk>
6448 * c-common.c (check_format_info): Give the 'some locales' warning
6449 for strftime %Ey rather than the unconditional 'only last 2 digits
6452 2000-08-22 Richard Henderson <rth@cygnus.com>
6454 * alias.c (init_alias_analysis): Do not register
6455 struct_value_incoming_rtx or static_chain_rtx as pointing
6458 Tue Aug 22 01:44:43 2000 Jeffrey A Law (law@cygnus.com)
6460 * protoize.c (munge_compile_params): Fix typo and formatting buglets.
6462 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
6464 * diagnostic.h (report_problematic_module): Declare.
6465 * diagnostic.c (report_problematic_module): New function.
6466 (report_error_function): Tweak.
6468 Tue Aug 22 02:31:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6470 * stmt.c (expand_goto_internal, fixup_gotos): Only check
6471 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
6473 2000-08-21 Richard Henderson <rth@cygnus.com>
6475 * flow.c (calculate_global_regs_live): Mark frame pointer live
6476 everywhere before reload.
6478 2000-08-21 Jim Wilson <wilson@cygnus.com>
6480 * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
6481 INTEL_EXTENDED_IEEE_FORMAT.
6482 (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support. Unconditionally
6483 clear last two bytes of output FP value.
6485 2000-08-21 Graham Stott <grahams@cygnus.co.uk>
6487 * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
6489 2000-08-21 Jakub Jelinek <jakub@redhat.com>
6491 * unroll.c (loop_find_equiv_value): If ret is modified between
6492 insn and loop_start, ret might not be equivalent to reg.
6494 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
6496 * c-common.c (init_dollar_format_checking,
6497 maybe_read_dollar_number, finish_dollar_format_checking): New
6499 (dollar_arguments_used, dollar_arguments_count,
6500 dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
6502 (check_format_info): Support $ formats for scanf and printf width
6503 and precision. Always increment format_chars to advance past the
6504 '*' of precision, not just when the format parameters are
6507 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6509 * mips.c (block_move_loop, expand_block_move,
6510 function_arg_partial_nregs, save_restore_insns, function_prologue,
6511 mips_expand_prologue, RA_MASK): Avoid using the `U' integer
6513 (function_arg_advance, function_arg): Match argument to format
6516 2000-08-21 Nix <nix@esperi.demon.co.uk>
6518 * gcc.c (do_spec_1): Implement %j spec flag.
6519 Remove dead comment.
6521 * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
6522 * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
6523 * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
6524 * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
6526 * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
6527 writable) instead of hardcoded value.
6529 * toplev.c (compile_file): Output to a file even if -fsyntax-only.
6531 * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
6534 * gcc.c (cc1_options): Do not process -o or run the assembler if
6536 * objc/lang-spec.h: Likewise.
6538 2000-08-21 Eli Zaretskii <eliz@is.elta.co.il>
6540 * fixinc/fixincl.c (fix_with_system): Pipe the output of
6541 "external" fixes through `cat', to avoid truncating the input
6542 file by redirection.
6544 2000-08-21 Jakub Jelinek <jakub@redhat.com>
6546 * config/i386/i386.md (lea_general_1): Copy insn condition to split
6548 (lea_general_2, lea_general_3): Likewise.
6550 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6552 * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
6553 warnings to user code.
6555 * c-lex.c (readescape, yylex): Likewise.
6557 * c-typeck.c (store_init_value, process_init_element): Likewise
6558 (c_expand_start_case): Format.
6560 2000-08-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6562 * mips/linux.h (LINK_SPEC): Use %(endian_spec).
6564 * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
6565 and linker_endian_spec to endian_spec.
6566 (ENDIAN_SPEC): Add %{EB} and %{EL}.
6567 (LINK_SPEC): Remove %{EB} and %{EL}.
6568 (ASM_SPEC): Likewise. Use %(endian_spec).
6570 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
6572 * c-tree.h (flag_hosted): Move declaration from here...
6573 * c-common.h (flag_hosted): ... to here.
6574 (flag_noniso_default_format_attributes): New declaration.
6575 * c-decl.c (flag_noniso_default_format_attributes): New variable.
6576 (c_decode_option): Set it appropriately for options choosing
6577 language standard variant.
6578 * c-common.c (init_function_format_info): Only provide default
6579 format attributes if flag_hosted. Only provide the gettext
6580 formats if flag_noniso_default_format_attributes. Update
6582 (check_format_info): Disable treatment of %a as a scanf flag in
6585 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
6587 * c-common.c (scan_char_table): Add 'w' to flags for all formats
6589 (check_format_info): Set 'wide' for scanf format widths. Warn for
6590 a zero scanf width. Make the check for writing into a constant
6591 object at the first level of indirection; at later levels, warn if
6592 any type qualifiers are encountered.
6594 Mon Aug 21 07:41:12 2000 Jeffrey A Law (law@cygnus.com)
6596 * reload.c (reload_inner_reg_of_subreg): New function broken out of
6598 (push_reload): Use reload_inner_reg_of_subreg.
6599 (combine_reloads): Do not combine reloads if the input reload
6600 is a SUBREG in which the inner part will need reloading.
6602 * global.c (global_alloc): Avoid passing dumpfile argument to
6604 * toplev.c (rest_of_compilation): Likewise.
6605 * reload.h (reload): Remove dumpfile argument. Callers changed.
6606 (debug_reload, debug_reload_to_stream): Move prototypes here.
6607 * rtl.h (reload): Remove dumpfile argument.
6608 * reload.c (debug_reload): Remove prototype.
6609 (debug_reload_to_stream): Likewise.
6610 * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
6613 2000-08-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6615 * diagnostic.c (context_as_prefix): Export.
6616 (need_error_newline): Remove.
6617 (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
6618 (error_module_changed, record_last_error_module,
6619 error_function_changed, record_last_error_function): New functions.
6620 (initialize_diagnostics): Default intialize
6621 lang_diagnostic_starter, lang_diagnostic_finalizer.
6622 (init_output_buffer): Tweak.
6623 (file_name_as_prefix): New function.
6624 (announce_function, default_print_error_function,
6625 report_error_function, set_diagnostic_context): Tweak.
6627 2000-08-21 Richard Earnshaw <rearnsha@arm.com>
6629 * flow.c (init_propagate_block_info): Handle SUBREG in a jump
6630 condition expression.
6632 2000-08-20 Richard Henderson <rth@cygnus.com>
6634 * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
6636 2000-08-20 Zack Weinberg <zack@wolery.cumb.org>
6638 * cppinit.c (cpp_init): Set global flag when called.
6639 (cpp_reader_init): Bomb out if cpp_init hasn't been called.
6641 Sun Aug 20 01:41:35 2000 Dennis Chernoivanov <cdi@sparc.spb.su>
6643 * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
6644 before `process_directive' so that newlines won't be missed
6646 (cpp_printf): Increment `print->lineno' when newline is emitted.
6648 * cppmain.c (cb_ident): Likewise.
6649 (cb_define): Likewise.
6650 (cb_undef): Likewise.
6651 (cb_include): Likewise.
6652 (cb_def_pragma): Likewise.
6653 (dump_macros_helper): Likewise.
6655 2000-08-20 Richard Henderson <rth@cygnus.com>
6657 * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
6658 assigned before a loop.
6660 * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
6661 (ashrsi3, lshrsi3): Likewise.
6663 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
6665 * c-lang.c: #include diagnostic.h
6666 (c_tree_printer): New function.
6667 (lang_init): Initialize lang_printer.
6669 * Makefile.in (c-lang.o): Depends on diagnostic.h
6671 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
6673 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
6675 * diagnostic.c (default_diagnostic_starter,
6676 default_diagnostic_finalizer): New functions.
6677 (diagnostic_for_asm, diagnostic_for_decl): Tweak.
6678 (pedwarn, pedwarn_with_file_and_line, error,
6679 error_with_file_and_line, fatal, warning,
6680 warning_with_file_and_line): Adjust call to report_diagnostic.
6681 (report_diagnostic): Rework.
6682 (set_diagnostic_context): New function.
6684 * diagnostic.h (struct diagnostic_context): New data structure.
6685 (diagnostic_message, diagnostic_argument_list,
6686 diagnostic_file_location, diagnostic_line_location,
6687 diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
6688 diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
6689 (set_diagnostic_context): Declare.
6690 (report_diagnostic): Change prototype.
6692 Sun 20-Aug-2000 09:25:45 BST Neil Booth <NeilB@earthling.net>
6694 * fix-header.c (main): Initialize cpplib.
6696 2000-08-19 Michael Meissner <meissner@redhat.com>
6698 * ifcvt.c (find_if_block): Do not assume that a THEN block has any
6699 instructions in it before checking for indirect jumps.
6701 * ifcvt.c (find_if_block): Do not consider a THEN block that ends
6702 in a indirect jump as a potential for conditional execution.
6704 * d30v.h (d30v_init_expanders): Don't declare here.
6705 * d30v-protos.h (d30v_init_expanders): Declare here with a valid
6708 Sat 19-Aug-2000 21:11:45 BST Neil Booth <NeilB@earthling.net>
6710 * cpp.texi: Add @section for assertions.
6712 Sat Aug 19 12:37:08 EDT 2000 John Wehle (john@feith.com)
6714 * loop.c (scan_loop): Use CONST_CALL_P instead of
6715 checking for REG_LIBCALL / REG_RETVAL.
6717 Sat Aug 19 09:18:47 2000 Jeffrey A Law (law@cygnus.com)
6719 * reload1.c (reload_as_needed): Accept dumpfile argument,
6720 pass it to emit_reload_insns.
6721 (emit_reload_insns): Add new dumpfile argument. If non-null
6722 then dump the reloads for each insn into the dumpfile.
6723 (reload): Pass dumpfile to reload_as_needed.
6725 * invoke.texi: Clean up linux-gnu vs linux comments.
6727 2000-08-19 Richard Henderson <rth@cygnus.com>
6729 * config/ia64/ia64.c (reg_or_5bit_operand): New.
6730 (ia64_depz_field_mask): New.
6731 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
6732 (PREDICATE_CODES): Update.
6733 * config/ia64/ia64.md: Update commentary.
6734 (depz_internal): New.
6735 (ashlsi3): Implement directly.
6736 (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
6737 (ashldi3): Use shladd.
6738 * config/ia64/ia64-protos.h: Update.
6740 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
6742 * toplev.c (independent_decode_option): Always process -g.
6743 Remove third argument, now unused. Adjust caller to match.
6745 2000-08-18 Richard Henderson <rth@cygnus.com>
6747 * combine.c (make_compound_operation): Break after creating
6750 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
6752 * cpplib.c (cpp_register_pragma_space): Just return if the
6753 namespace is already registered.
6755 2000-08-18 Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton <nickc@redhat.com>
6757 * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
6758 constant amount. Do not generate ROTL instruction.
6760 Fri Aug 18 16:22:20 2000 Alexandre Oliva <aoliva@redhat.com>
6762 * config/sh/elf.h: Do not include sh/sh.h.
6763 * config/sh/rtems.h: Likewise.
6764 * config/sh/rtemself.h: Do not include sh/elf.h.
6765 * configure.in: Get them included with `tm_file's.
6766 * configure: Rebuilt.
6768 * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
6769 * config/sh/sh.c (fpscr_set_from_mem): Use them.
6771 Fri Aug 18 14:23:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6773 * stor-layout.c (compute_record_type): Don't use mode of single
6774 field as mode of record if not integer mode of same type.
6776 * regmove.c (perhaps_ends_bb_p): New function.
6777 (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
6778 (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
6779 (fixup_match_1): Likewise.
6780 (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
6781 avoid signed/unsigned warnings.
6783 * function.c (fixup_var_refs_1, case MEM): Update CODE after
6786 Fri 18-Aug-2000 18:33:45 BST Neil Booth <NeilB@earthling.net>
6788 * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
6789 (_cpp_trigraph_map): Declaration moved from cpplex.c
6791 * cppinit.c: Define _cpp_trigraph_map. Use UCHAR_MAX + 1
6792 instead of 256. Use consistent test for designated initializers.
6793 (cpp_init): Initialize trigraph_map.
6794 (initialize_standard_includes, parse_option): Use memcmp
6797 * cpplex.c (init_trigraph_map): Remove.
6798 (trigraph_ok, trigraph_replace, lex_line): Refer to
6801 * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
6802 (do_unassert): Remove unused "next" local.
6804 * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
6806 2000-08-18 Emmanuel Marty <emarty@suntech.fr>
6808 * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
6811 2000-08-17 Richard Henderson <rth@cygnus.com>
6813 * config/ia64/ia64.c (spill_restore_mem): Handle emitting
6814 the first insn in a sequence.
6816 Thu Aug 17 22:40:05 EDT 2000 John Wehle (john@feith.com)
6818 * alias.c (true_dependence, write_dependence_p): A read
6819 involving a label_ref or the constant pool doesn't create
6822 * rtl.h (unchanging): Improve documentation.
6824 2000-08-17 Rodney Brown <RodneyBrown@mynd.com>
6826 * cse.c (insert_regs): Remove unused `regno'.
6828 2000-08-17 Neil Booth <NeilB@earthling.net>
6830 * (cppinit.c) merge_include_chains: Use remove_dup_dir,
6831 remove_dup_dirs. If qtail == brack, remove brack not
6833 (remove_dup_dir, remove_dup_dirs): New functions.
6835 2000-08-17 Neil Booth <NeilB@earthling.net>
6837 * cppinit.c (cpp_cleanup): Free include dir chains.
6838 * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
6839 (do_unassert): Free the assert with _cpp_free_definition.
6840 * cppmacro.c (_cpp_free_definition): Free memory allocated for
6841 assertions. Make the node a T_VOID node.
6843 2000-08-17 Neil Booth <NeilB@earthling.net>
6845 * cppinit.c (path_include, append_include_chain):
6846 Remove 2nd parameter (struct cpp_pending *).
6847 (path_include, initialize_standard_includes, cpp_handle_option):
6848 Update callers appropriately.
6849 (cpp_handle_option): Use pend.
6851 2000-08-17 Neil Booth <NeilB@earthling.net>
6853 * cppinit.c (sort_options): Remove, put functionality in
6856 (initialize_builtins): Free memory.
6857 (cpp_start_read): Move init_IStable to cpp_init.
6859 * cpplib.h (cpp_init): New prototype.
6860 * cppmain.c (main): Call cpp_init.
6862 Thu Aug 17 13:20:32 EDT 2000 John Wehle (john@feith.com)
6864 * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
6865 (rtx_unstable_p, rtx_varies_p): Process vectors.
6867 2000-08-16 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
6869 * config/sh/lib1funcs.asm (GLOBAL): Define. Use for all
6870 references to GLOBAL symbols. Use LOCAL where appropriate.
6872 2000-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6874 * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld. Always
6875 use t-aix41 when host == target.
6877 2000-08-16 Richard Henderson <rth@cygnus.com>
6879 * reload.c (push_secondary_reload): Revert last change.
6880 If we use a reload_in/out pattern, make the when the same
6881 as the primary reload.
6882 (find_reloads): Likewise.
6884 2000-08-16 Manfred Hollstein <manfredh@redhat.com>
6886 * configure.in (libstdcxx-v3): Fix test.
6887 * configure: Regenerate.
6889 Wed Aug 16 08:10:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6891 * calls.c (calls_function_1, expand_call): Only test
6892 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
6893 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6895 2000-08-16 Richard Henderson <rth@cygnus.com>
6897 * combine.c (simplify_shift_const): Revert previous two
6898 changes. If SHIFT_COUNT_TRUNCATED, crop the shift count
6899 before the main loop.
6901 2000-08-15 Richard Henderson <rth@cygnus.com>
6903 * combine.c (simplify_shift_const): Bound shift count when
6906 Tue Aug 15 17:33:05 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6908 * calls.c (ECF_SP_DEPRESSED): New macro.
6909 (calls_function_1): Treat calling sp-depressed function as alloca.
6910 (emit_call_1): Don't adjust SP if calling sp-depressed function.
6911 (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
6912 If sp-depressed, ensure block saves and restores SP.
6913 * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
6915 * function.c (keep_stack_depressed): New function.
6916 (thread_prologue_and_epilogue_insns): Call it.
6917 * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
6918 to print DECL_OFFSET_ALIGN.
6919 Print no-force-blk and transparent-union flags properly.
6920 * stmt.c (expand_goto_internal): Don't restore stack if last block
6921 and function returns with sp depressed.
6922 (fixup_gotos): Likewise.
6923 (save_stack_pointer): New function, from code in expand_decl.
6924 (expand_decl): Call new function.
6925 * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
6926 (TYPE_RETURNS_STACK_DEPRESSED): New macro.
6927 (save_stack_pointer): New declaration.
6929 * diagnostic.c (fatal_function): New variable.
6930 (set_fatal_function): New function.
6932 * diagnostic.h (set_fatal_function): New declaration.
6934 2000-08-15 William Cohen <wcohen@redhat.com>
6936 * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
6937 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
6938 (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
6940 2000-08-15 Richard Henderson <rth@cygnus.com>
6942 * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
6944 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
6946 * arm.c (arm_function_ok_for_sibcall): New function.
6947 * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
6948 * arm.md (call expanders): Don't check here for calls that can't
6951 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
6953 * arm.md (splits generating cond_exec): Disable.
6955 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
6957 * arm/linux-elf.h (text_section): Delete declaration.
6959 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
6961 ARM support for unordered FP operations.
6962 * arm-protos.h (arm_comparison_operator): Declare.
6963 * arm.c (arm_comparison_operator): New function.
6964 (arm_select_cc_mode): Add unordered comparison codes.
6965 (get_arm_condition_code): Likewise.
6966 (arm_final_prescan_insn): Can't handle unordered jumps that can't
6967 be done in one insn.
6968 * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
6969 * arm.md (all uses of comparison_operator): Replace with
6970 arm_comparison_operator.
6971 (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
6973 (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
6976 Tue Aug 15 00:36:36 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
6978 * gthr-posix.h: Conditionally include <sched.h>; include
6979 <config.h> from libobjc/.
6981 2000-08-14 Richard Henderson <rth@cygnus.com>
6983 * config/i386/i386.c (legitimize_pic_address): Use Pmode
6986 2000-08-14 Richard Henderson <rth@cygnus.com>
6988 * configure.in (ia64-*): Set float_format for i386 long double.
6990 * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
6991 as we would for i386 XFmode.
6992 (PUT_REAL): Likewise.
6993 (endian, ereal_atof, real_value_truncate): Likewise.
6994 (ereal_isneg, toe64, etens, make_nan): Likewise.
6995 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
6997 * config/ia64/ia64-protos.h: Update.
6998 * config/ia64/ia64.c (general_tfmode_operand): New.
6999 (destination_tfmode_operand): New.
7000 (tfreg_or_fp01_operand): New.
7001 (ia64_split_timode): New.
7002 (spill_tfmode_operand): New.
7003 (ia64_expand_prologue): Use TFmode not XFmode.
7004 (ia64_expand_epilogue): Likewise.
7005 (ia64_function_arg): Likewise.
7006 (ia64_function_arg_advance): Likewise.
7007 (ia64_return_in_memory): Likewise.
7008 (ia64_function_value): Likewise.
7009 (ia64_print_operand): Likewise.
7010 (ia64_register_move_cost): Set GR<->FR to 5.
7011 (ia64_secondary_reload_class): Get GR for TImode memory op.
7012 * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
7013 (ROUND_TYPE_ALIGN): Remove.
7014 (LONG_DOUBLE_TYPE_SIZE): Set to 128.
7015 (INTEL_EXTENDED_IEEE_FORMAT): Define.
7016 (HARD_REGNO_NREGS): Use TFmode, not XFmode.
7017 (HARD_REGNO_MODE_OK): Likewise. Disallow TImode in FRs.
7018 (MODES_TIEABLE_P): Use TFmode, not XFmode.
7019 (CLASS_MAX_NREGS): Likewise.
7020 (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
7021 (PREDICATE_CODES): Update.
7022 * config/ia64/ia64.md (movti): New.
7023 (movti_internal): Use a clobber for memory alternatives.
7024 (reload_inti, reload_outti): New.
7025 (movsfcc_astep): Predicate properly.
7026 (movdfcc_astep): Likewise.
7029 (extendsftf2, extenddftf2): New.
7030 (trunctfsf2, trunctfdf2): New.
7031 (floatditf2, fix_trunctfdi2): New.
7032 (floatunsditf2, fixuns_trunctfdi2): New.
7033 (addtf3, subtf3, multf3, abstf2): New.
7034 (negtf2, nabstf2, mintf3, maxtf3): New.
7035 (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
7037 (fr_spill): Use TFmode, not XFmode.
7038 (fr_restore): Likewise.
7039 * config/ia64/lib1funcs.asm (__divtf3): New.
7040 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
7042 2000-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7044 * cse.c (fold_rtx): Avoid empty body in an if-statement.
7046 * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
7047 `U' integer constant suffix.
7049 * dwarf2out.c (add_subscript_info): Avoid empty body in an
7052 * sparc/sol2.h (__enable_execute_stack): Prototype.
7054 2000-08-14 David Edelsohn <edelsohn@gnu.org>
7056 * collect2.c: Remove use of AIX import file.
7058 * longlong.h: Test ARCH_PWR not ARCH_POWER.
7060 * rs6000.c (print_operand, case 'E'): Add else.
7062 2000-08-14 Richard Henderson <rth@cygnus.com>
7064 * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
7065 (movdi_symbolic): New.
7067 2000-08-14 Jim Wilson <wilson@cygnus.com>
7069 * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
7070 to GNU as. For Intel as, pass -M const_gp and -M no_plabel.
7071 * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
7074 2000-08-14 Richard Henderson <rth@cygnus.com>
7076 * expr.c (emit_group_load): Don't force constants into registers.
7077 Special case source already in the correct mode.
7079 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
7081 * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
7082 * fixinc/inclhack.def: Likewise.
7083 * fixinc/mkfixinc.sh: Likewise.
7084 * configure: Regenerate.
7085 * fixinc/fixincl.x: Regenerate.
7086 * install.texi: Document equivalence of linux and linux-gnu.
7088 Mon Aug 14 18:51:44 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7090 * cse.c (insert_regs): Also in REG case: When finding an invalid
7091 value, and we make a new quantity, make sure that it won't be
7092 mistaken by for a valid one by mention_regs.
7094 2000-08-13 Ralf Gütlein <ralf.guetlein@aranea.de>
7096 * h8300.md: Remove obsolete peepholes.
7098 2000-08-13 Kazu Hirata <kazu@hxi.com>
7100 * invoke.texi (H8/300 Options): Fix typos.
7101 * config/h8300.c: Fix formatting.
7102 * config/h8300.h: Fix comment typos.
7103 (OVERRIDE_OPTIONS): Fix formatting.
7105 * function.c: Fix formatting.
7107 * cse.c: Fix formatting.
7109 2000-08-13 Geoff Keating <geoffk@cygnus.com>
7111 * flow.c (attempt_auto_inc): Remove unused variable `bb'.
7112 (attempt_auto_inc): Suppress parentheses warning.
7113 * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
7114 * loop.c (load_mems): Remove `u' suffix in two places.
7115 * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
7117 * config/rs6000/rs6000.h: Likewise.
7118 * config/rs6000/sol-c0.c: Prototype some functions. Remove the
7119 __eabi dummy routine.
7120 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
7123 * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
7124 not put stuff in .sdata unnecessarily.
7125 (rs6000_unique_section): New function.
7126 * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
7127 * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
7129 * c-typeck.c (build_array_ref): Don't complain about non-lvalue
7130 arrays in C99. Don't try to look at DECL_REGISTER of a
7131 COMPONENT_REF. Don't complain twice about the same error.
7133 * fixinc/inclhack.def (aix_pthread): New fix.
7134 (aix_sysmachine): New fix.
7135 * fixinc/fixincl.x: Regenerate.
7137 * expr.c (expand_expr): Call convert_modes when turning a large
7138 multiply into a small one.
7140 2000-08-12 Geoff Keating <geoffk@cygnus.com>
7142 * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
7143 the tree structure an exponent rather than an explicit alignment
7144 so it doesn't overflow.
7145 (SET_DECL_OFFSET_ALIGN): New macro.
7146 * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
7147 rather than DECL_OFFSET_ALIGN.
7148 (place_field): Likewise.
7149 * expmed.c (store_bit_field): Abort on align==0 to avoid
7150 antisocial machine behaviour.
7152 2000-08-12 Richard Henderson <rth@cygnus.com>
7154 * sibcall.c (uses_addressof): Accept both addressof and
7155 current_function_internal_arg_pointer inside a mem.
7156 (optimize_sibling_and_tail_recursive_call): Fail tail recursion
7157 if current_function_uses_addressof.
7158 * stmt.c (expand_return): Kill tail recursion and HAVE_return
7161 2000-08-11 Richard Henderson <rth@cygnus.com>
7163 * config/ia64/ia64.md (addsi3): Remove expander.
7164 (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
7165 (*addsi3_shladd): New.
7167 2000-08-11 Richard Henderson <rth@cygnus.com>
7169 * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
7170 (do_restore): Likewise.
7171 (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
7172 (ia64_expand_prologue, ia64_expand_epilogue): Use them.
7173 (rtx_needs_barrier): Track actual bit manipulation for
7174 ar.unat moves, gr_spill, and gr_restore.
7175 (emit_insn_group_barriers): Special case gr_spill/gr_restore.
7176 (process_set): Don't handle varargs spills.
7177 * config/ia64/ia64.md (gr_spill): Accept cfa offset. Emit
7178 .mem.offset here instead of in process_set.
7179 (gr_restore): Likewise.
7181 2000-08-11 Richard Henderson <rth@cygnus.com>
7183 * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
7185 2000-08-11 Mark Elbrecht <snowball3@bigfoot.com>
7187 * gcc.texi (The Configuration File): Document
7188 COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
7189 UPDATE_PATH_HOST_CANONICALIZATION.
7191 2000-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7193 * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
7194 unprototyped function pointer casts on integer constants.
7196 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
7198 * fixproto: Recognize DOS paths with drive letters as absolute paths.
7200 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
7202 * extend.texi (Volatiles): Fix typos.
7204 2000-08-11 Kazu Hirata <kazu@hxi.com>
7206 * flow.c: Fix formatting.
7208 2000-08-11 Richard Henderson <rth@cygnus.com>
7210 * reload.c (push_secondary_reload): When invoking a reload_{in,out}
7211 pattern, always allocate a tertiary scratch register.
7213 * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
7214 (reload_inhi): Likewise.
7216 2000-08-11 Richard Henderson <rth@cygnus.com>
7218 * function.c (put_reg_into_stack): Allow type to be NULL.
7219 (schedule_fixup_var_refs): Likewise.
7220 (gen_mem_addressof): Allow decl to be NULL.
7221 (put_addressof_into_stack): Likewise.
7223 * flow.c (merge_blocks_nomove): Be more careful about
7224 locating the beginning of block A.
7226 * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
7228 Thu Aug 10 22:47:09 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
7233 * config.in: Reverted the check for <sched.h>.
7235 2000-08-10 Chris Demetriou <cgd@sibyte.com>
7237 * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
7238 macros define the name of CTOR and DTOR sections.
7239 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
7240 DTOR_LIST_END): Change to use attributes to specify
7242 * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
7243 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
7244 DTOR_LIST_END): Same as in mips/elf.h.
7246 2000-08-10 Drew Moseley <dmoseley@redhat.com>
7248 * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
7249 disabling just crt0.o.
7251 2000-08-10 Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton <nickc@cygnus.com>
7253 * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
7254 (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
7255 (EXTRA_SPECS): Add them.
7256 * arm/lib1funcs.asm: Support builds for interworking.
7257 Use macros to eliminate duplicated pieces of code.
7259 2000-08-10 Kazu Hirata <kazu@hxi.com>
7261 * h8300.c (expand_a_rotate): New.
7262 (emit_a_rotate): Likewise.
7263 (h8300_adjust_insn_length): Add support for the rotate insns.
7264 * h8300.md (rotlqi3): New.
7265 (*rotlqi3_1): Likewise.
7266 (rotlhi3): Likewise.
7267 (*rotlhi3_1): Likewise.
7268 (rotlhi3): Likewise.
7269 (*rotlhi3_1): Likewise.
7270 * h8300-proto.h: Add prototypes for expand_a_rotate and
7273 * h8300.c: Fix comment typos.
7274 (dosize): Declare the variable amount as unsigned.
7275 (get_shift_alg): Fix a comparison between signed and unsigned.
7276 (emit_a_shift): Likewise.
7277 (h8300_adjust_insn_length): Simplify the code.
7279 * c-decl.c: Fix formatting.
7281 2000-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7283 * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
7284 warning about non-traditional numeric constant suffixes.
7286 * cppexp.c (parse_number): Likewise.
7288 * invoke.texi: (-Wtraditional): Document new behavior.
7290 Thu Aug 10 00:11:04 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
7292 * gthr-posix.h: Include auto-host.h. Conditionally include
7294 * configure.in: Check for the <sched.h> header file.
7295 * config.in: Added define for HAVE_SCHED_H.
7297 2000-08-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7299 * c-typeck.c (process_init_element): For -Wtraditional, warn about
7300 initialization of unions.
7302 * invoke.texi (-Wtraditional): Document new behavior.
7304 2000-08-09 Zack Weinberg <zack@wolery.cumb.org>
7306 * configure.in (--enable-c-cpplib): Uncomment. Use AC_DEFINE
7307 instead of extra_c_flags.
7308 (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
7309 * configure: Regenerate.
7310 * config.in: Regenerate.
7312 * cpperror.c (cpp_type2name): New function.
7313 * cpplex.c (lex_line): If we issued an error for an invalid
7314 preprocessing directive, discard that logical line.
7315 * cpplib.c (do_line): Call a hook function if the current file
7316 is renamed by #line.
7317 (do_ident): Pass the contents of the string, not the entire
7318 token, to the callback function.
7319 * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
7320 (cb.rename_file): New hook function.
7321 (cb.ident): Adjust prototype.
7322 (cpp_type2name): Prototype.
7323 * cppmacro.c (dump_macro_args): Correct precedence lossage.
7325 * cppmain.c (cb_ident): Update for changed interface.
7326 (cb_rename_file): New function.
7327 (main): Set rename callback.
7329 2000-08-09 Alexandre Oliva <aoliva@redhat.com>
7331 * caller-save.c (mark_referenced_regs): Mark partially-overwritten
7332 multi-word registers.
7334 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
7336 * c-common.c (combine_strings, check_format_info): Refer to ISO C
7337 or ISO C89 instead of ANSI C.
7338 * c-decl.c (grokdeclarator, xref_tag, finish_struct,
7339 build_enumerator, do_case): Likewise.
7340 * c-lex.c (parse_float, yylex): Likewise.
7341 * c-parse.in: Likewise.
7342 * c-typeck.c (common_type, build_array_ref, build_binary_op,
7343 build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
7344 build_c_cast, convert_for_assignment, set_init_index,
7345 set_init_label, c_expand_start_case): Likewise.
7346 * toplev.c (documented_lang_options, display_help): Likewise.
7348 2000-08-08 Kazu Hirata <kazu@hxi.com>
7350 * h8300.c: Fix formatting.
7351 * h8300.h: Likewise.
7352 * h8300.md: Likewise.
7353 (movsi_h8300hs): Fix formatting of the resulting assembly code.
7355 * reload1.c: Fix formatting.
7357 2000-08-08 Rodney Brown <RodneyBrown@mynd.com>
7359 * alpha/alpha.c (alpha_emit_xfloating_libcall):
7360 Use GEN_CALL_VALUE define.
7361 * alpha/alpha.md (untyped_call): Use GEN_CALL define.
7362 * clipper/clipper.md (untyped_call): Likewise.
7363 * dsp16xx/dsp16xx.md (untyped_call): Likewise.
7364 * fx80/fx80.md (untyped_call): Likewise.
7365 * mips/mips.md (untyped_call): Likewise.
7366 * ns32k/ns32k.md (untyped_call): Likewise.
7367 * pa/pa.md (untyped_call): Likewise.
7368 * romp/romp.md (untyped_call): Likewise.
7369 * sparc/sparc.md (untyped_call): Likewise.
7371 2000-08-08 Jason Eckhardt <jle@cygnus.com>
7373 * config/i860/i860.c (singlemove_string): Do not generate assembler
7374 pseudo instructions that must be expanded (that is, with signed
7375 constants larger than 16 bits).
7377 2000-08-08 Richard Henderson <rth@cygnus.com>
7379 * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
7380 PROP_AUTOINC at -O0. Don't collect alias info at -O0.
7381 (init_propagate_block_info): Don't kill memory stores at -O0.
7382 (mark_set_1, mark_used_regs): Likewise.
7384 2000-08-08 David Edelsohn <edelsohn@gnu.org>
7386 * rs6000.c (optimization_options): Decorate 'level' as
7388 (mask64_operand): Remove sign-extend thinko.
7389 (rldic_operand): New function.
7390 (load_multiple_operation): regno's are unsigned ints.
7391 (store_multiple_operation): Likewise.
7392 (lmw_operation): Likewise.
7393 (stmw_operation): Likewise.
7394 (includes_lshift_p): shift_mask is unsigned int.
7395 (includes_lshift64_p): New function.
7396 (addrs_ok_for_quad_peep): unsigned int reg1.
7397 (print_operand): Consistently add "else" after
7398 output_operand_lossage().
7399 (print_operand, case 'b'): Fold in case 'W'.
7400 (print_operand, case 'W'): Print rldic MB value.
7401 (output_epilogue): Update Objective-C language string.
7402 (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
7403 * rs6000.h (PREDICATE_CODES): Add rldic_operand.
7404 * rs6000.md (ashldi3): Add rldic instruction.
7405 (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
7406 (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
7409 2000-08-08 Richard Henderson <rth@cygnus.com>
7411 * config/ia64/ia64-protos.h: Remove duplicates. Update
7412 for massive code rearrangements.
7413 * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
7414 (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
7415 (ia64_local_regs, ia64_need_regstk): Remove.
7416 (ar_ccv_reg_operand): New.
7417 (ia64_gp_save_reg): New.
7418 (struct ia64_frame_info): Combine most of the size elements;
7419 add new gr save elements.
7420 (find_gr_spill): New.
7421 (next_scratch_gr_reg): New.
7422 (mark_reg_gr_used_mask): New.
7423 (ia64_compute_frame_size): Rewrite. Allocate special AR regs
7424 to GR backing store regs when possible.
7425 (ia64_initial_elimination_offset): New.
7426 (ia64_rap_fp_offset): Remove.
7427 (save_restore_insns): Remove.
7428 (setup_spill_pointers): New.
7429 (finish_spill_pointers): New.
7430 (spill_restore_mem): New.
7431 (do_spill, do_restore): New.
7432 (ia64_expand_prologue): Rewrite to use them.
7433 (ia64_expand_epilogue): Likewise.
7434 (ia64_direct_return): Update for current_frame_info changes.
7435 (ia64_function_prologue): Simplify .prologue emission. Emit
7437 (ia64_setup_incoming_varargs): Don't ever emit rtl.
7438 (ia64_dbx_register_number): New.
7439 (ia64_initialize_trampoline): New.
7440 (ia64_secondary_reload_class): Request GR_REGS for integer
7441 arithmetic destined for FR_REGS.
7442 (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
7443 (ia64_mark_machine_status): Mark ia64_gp_save.
7444 (rws_access_regno): Rename from rws_access_reg; don't treat
7445 predicates specially.
7446 (rws_access_reg): New. Update all callers.
7447 (rtx_needs_barrier): Remove dead unspecs.
7448 (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
7449 (ia64_encode_section_info): Silence signed/unsigned warnings.
7450 (spill_offset, sp_offset, spill_offset_emitted): Remove.
7451 (tmp_reg, tmp_saved): Remove.
7452 (process_set): Rewrite to expect complicated bits via
7453 REG_FRAME_RELATED_EXPR.
7454 (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
7455 in the use of ar.ccv; never set RTX_UNCHANGING_P.
7456 (ia64_expand_op_and_fetch): Likewise.
7457 (ia64_expand_compare_and_swap): Likewise.
7458 (ia64_expand_builtin): Likewise.
7459 * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
7460 (FIRST_PSEUDO_REGISTER): Update.
7461 (AR_M_REGNO_P): Update.
7462 (FIXED_REGS): Don't mark three local registers as used.
7463 (EXTRA_CC_MODES): New.
7464 (SELECT_CC_MODE): New.
7465 (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
7466 (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
7467 (FRAME_GROWS_DOWNWARD): Unset.
7468 (STARTING_FRAME_OFFSET): Zero.
7469 (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
7470 (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
7471 (HARD_FRAME_POINTER_REGNUM): New.
7472 (CAN_DEBUG_WITHOUT_FP): Define.
7473 (TRAMPOLINE_TEMPLATE): Remove.
7474 (TRAMPOLINE_SIZE): Lower to 32.
7475 (TRAMPOLINE_ALIGNMENT): Lower to 64.
7476 (INITIALIZE_TRAMPOLINE): Defer to out of line function.
7477 (PREDICATE_CODES): Update.
7478 (struct machine_function): Add ia64_gp_save.
7479 * config/ia64/ia64.md: Purge unused unspecs.
7480 (movsi patterns): Allow moves to/from AR_M_REGS.
7481 (movdi patterns): Allow moves to/from p0.
7482 (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
7483 (gr_spill, gr_restore): Indicate ar.unat read/written.
7484 (nonlocal_goto): Don't pass old frame_pointer.
7485 (nonlocal_goto_receiver): Remove.
7486 (exception_receiver): New.
7487 (builtin_setjmp_setup): New.
7488 (builtin_setjmp_receiver): New.
7489 * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
7490 (__ia64_nonlocal_goto): Bundle. Don't kill r7.
7491 (__ia64_restore_stack_nonlocal): Likewise.
7492 (__ia64_trampoline): New.
7493 * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
7495 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
7497 2000-08-08 Richard Henderson <rth@cygnus.com>
7499 * frame.h (ia64_frame_state): Add my_psp.
7500 * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
7501 (__throw): Pass it in. Don't clobber r7.
7502 * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
7503 (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
7504 and nothing to do with sp.
7505 (normalize_reg_loc): Use frame->my_psp.
7506 (frame_translate): Handle frame-pointer-less functions. Set
7507 spill_base correctly, in absence of being told.
7508 (__build_ia64_frame_state): New sp argument. Fill in frame->my_sp.
7509 (__ia64_backtrace_helper): New sp argument. Use
7510 builtin_return_address instead of label addresses.
7511 (print_record) [mem_stack_v]: No size member.
7513 2000-08-08 Richard Henderson <rth@cygnus.com>
7515 * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
7517 2000-08-08 Richard Henderson <rth@cygnus.com>
7519 * tm.texi (LOCAL_REGNO): Document.
7520 * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
7521 (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
7522 * reload1.c (reload): Likewise when considering nonlocal labels.
7524 * config/ia64/ia64.h (LOCAL_REGNO): New.
7525 * config/sparc/sparc.h (LOCAL_REGNO): New.
7527 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
7529 * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
7531 2000-08-07 Nick Clifton <nickc@redhat.com>
7533 * config/mips/mips.c: Fix compile time warning messages.
7534 * config/mips/mips-protos.h: Add prototype for equality_op.
7536 * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
7538 2000-08-07 Graham Stott <grahams@cygnus.co.uk>
7540 * mn10300.md: Use nonimmediate_operand instead of general_operand
7543 * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
7545 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
7547 * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
7548 * sh.c (expand_block_move): Break long lines.
7549 (expand_ashiftrt, fpscr_set_from_mem): Likewise.
7550 * sh.md (mulsi3): Likewise.
7551 (movdi): Adjust spacing.
7553 2000-08-07 Richard Henderson <rth@cygnus.com>
7555 * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
7556 * expr.c (emit_group_store): Don't set it.
7558 2000-08-07 Kazu Hirata <kazu@hxi.com>
7560 * invoke.texi (Options for Debugging Your Program or GCC): Remove
7561 duplicate entries for 'w' and 'z'.
7563 * flow.c: Fix a comment typo.
7565 Sun Aug 6 23:47:35 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
7567 * c-parse.in: Changed the language string for Objective-C to "GNU
7570 Sun Aug 6 11:54:03 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
7572 * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
7573 to improve the Posix thread support for Objective-C.
7575 2000-08-06 Joseph S. Myers <jsm28@cam.ac.uk>
7577 * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
7578 CTI_UNSIGNED_PTRDIFF_TYPE.
7579 (signed_size_type_node): Define.
7580 (unsigned_ptrdiff_type_node): Define.
7581 * c-decl.c (init_decl_processing): Create the
7582 signed_size_type_node and unsigned_ptrdiff_type_node types.
7583 * c-common.c (T_SC): Define.
7586 (print_char_table): Use T_SST for %zd, %zi, %zn. Use T_UPD for
7587 %to, %tu, %tx, %tX. Allow %hhn (T_SC). Add "c" to the flags for
7589 (scan_char_table): Use T_SC for %hhd, %hhi, %hhn. Use T_SST for
7590 %zd, %zi, %zn. Use T_UPD for %to, %tu, %tx, %tX. Add "c" to the
7591 flags for %c, %s and %[.
7592 (check_format_info): Only allow leniency for signedness of targets
7593 of character pointers (when pedantic) for formats flagged with
7594 "c", so for strings but not for %hh formats. When pedantic, don't
7595 allow character pointers to substitute for void pointers if a
7596 second level of indirection is present.
7598 2000-08-06 Kazu Hirata <kazu@hxi.com>
7600 * invoke.texi (Options for Debugging Your Program or GCC): Update
7601 the names of dump files.
7603 * h8300.c (dosize): Rearrange code for conciseness.
7604 (split_adds_subs): Likewise.
7606 * loop.c: Fix formatting.
7608 * dwarf2out.c: Fix formatting.
7610 * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
7612 * expr.c: Fix formatting.
7614 2000-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7616 * rs6000.c (rs6000_maybe_dead): Prototype.
7618 2000-08-06 Richard Henderson <rth@cygnus.com>
7620 * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
7621 HAVE_nonlocal_goto as well.
7622 * config/i960/i960.md (nonlocal_goto): Don't do it here.
7623 * config/pj/pj.md (nonlocal_goto): Likewise.
7625 2000-08-07 Michael Hayes <mhayes@cygnus.com>
7627 * loop.c (try_swap_copy_prop): New function.
7628 (load_mems): Rename copies to load_copies and add new regset
7629 store_copies. Check for sets of shadow registers and mark
7630 in store_copies. Call try_swap_copy_prop for registers
7631 marked in store_copies.
7633 Sun Aug 6 00:54:42 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
7635 * objc/objc-act.c: New command line option -fconstant-string-class
7636 to allow specifying a user defined constant string class,
7637 different from NXConstantString.
7639 * toplev.c: Moved the Objective-C specific options to
7640 objc/lang-options.h.
7642 * objc/lang-options.h: Moved the Objective-C specific options from
7643 toplev.c. Added -fconstant-string-class.
7645 2000-08-05 Chris Demetriou <cgd@sibyte.com>
7647 * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
7648 DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
7649 __CTOR_LIST__ from func_ptr array to just func_ptr, to
7650 avoid extra alignment imposed on arrays.
7651 * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
7652 DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
7654 * mips.h: Clean up comments and spacing near MASKs.
7655 (TARGET_UNIX_ASM): Delete.
7656 (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
7657 MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
7660 2000-08-05 Joseph S. Myers <jsm28@cam.ac.uk>
7662 * c-common.c (print_char_table): Add entries for the X/Open '
7663 format flag (print decimals with locale's thousands grouping
7664 character). Make %C expect wint_t.
7665 (check_format_info): If pedantic, warn when the %n$ operand
7666 number form is used. Allow for the ' flag; warn about it if
7669 2000-08-05 Zack Weinberg <zack@wolery.cumb.org>
7671 * i386.h (FUNCTION_OK_FOR_SIBCALL): Not OK if DECL's return
7672 type is a float mode, cfun->decl's return type is not, and
7673 TARGET_FLOAT_RETURNS_IN_80387.
7675 2000-08-04 Andreas Schwab <schwab@suse.de>
7677 * cppmain.c (cb_def_pragma): Skip the first two tokens from the
7678 token list, which are always `#' and `pragma'.
7680 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
7682 * tree.c (tree_expr_nonnegative_p): Move to...
7683 * fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
7684 (rtl_expr_nonnegative_p): New.
7685 * tree.h: Add prototype for rtl_expr_nonnegative_p.
7687 * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
7688 CONST_DOUBLE_CHAIN: Move to...
7689 * rtl.h: ...here. Use XCINT/XCEXP.
7691 * Makefile.in: Remove toplev.o from OBJS. Add rule to make
7692 libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
7693 variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
7696 * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
7698 2000-08-05 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7700 * config/c4x/c4x.md (return_indirect_internal): New.
7701 * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
7703 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
7705 * c-common.c (time_char_table): Mark up formats added in C99 and
7706 make other corrections. %D and %g were added in C99. %Og is an
7707 extension. %EX is permitted. %R, %T, %n, %r, %t were added in
7708 C99. %e was added in C99. %Oj is an extension. %G and %z are in
7709 C99 rather than GNU extensions, but %OG and %Oz are extensions.
7710 %h was added in C99. %C was added in C99. %OY and %OC are
7711 extensions. Add the C99 format %F.
7712 (check_format_info): If pedantic and not in C99 mode, warn for C99
7715 Fri Aug 4 23:01:58 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7717 * function.c (schedule_fixup_var_refs): New function, broken out
7718 of put_reg_into_stack.
7719 (put_reg_into_stack): Use it.
7720 (put_var_into_stack): In CONCAT case, fixup up references for
7721 components only after fixing up references to the whole concat.
7723 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
7725 * alias.c (mark_constant_function): Use INSN_P.
7726 (init_alias_analysis): Likewise.
7727 * combine.c (combine_instructions): Use INSN_P.
7728 (can_combine_p): Likewise.
7729 (try_combine): Likewise.
7730 (distribute_notes): Likewise.
7731 (distribute_links): Likewise.
7732 * cse.c (cse_around_loop): Use INSN_P.
7733 (invalidate_skipped_block): Likewise.
7734 (cse_set_around_loop): Likewise.
7735 (cse_end_of_basic_block): Likewise.
7736 (delete_trivially_dead_insns): Likewise.
7737 * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
7738 (unshare_all_rtl_1): Likewise.
7739 (next_cc0_user): Likewise.
7740 (try_split make_insn_raw): Likewise.
7741 (remove_unnecessary_notes): Likewise.
7742 * final.c (shorten_branches): Use INSN_P.
7743 (leaf_renumber_regs): Likewise.
7744 (leaf_renumber_regs_insn): Likewise.
7745 * flow.c (find_label_refs): Use INSN_P.
7746 (verify_wide_reg): Likewise.
7747 (notice_stack_pointer_modification): Likewise.
7748 (count_or_remove_death_notes): Likewise.
7749 (verify_flow_info): Likewise.
7750 (clear_log_links): Likewise.
7751 * function.c (fixup_var_refs_insns): Use INSN_P.
7752 (compute_insns_for_mem): Likewise.
7753 * gcse.c (alloc_gcse_mem): Use INSN_P.
7754 (compute_sets): Likewise.
7755 (compute_hash_table): Likewise.
7756 (classic_gcse): Likewise.
7758 (insert_insn_end_bb): Likewise.
7759 (delete_null_pointer_checks_1): Likewise.
7760 * global.c (expand_preferences): Use INSN_P.
7761 (build_insn_chain): Likewise.
7762 * graph.c (node_data): Use INSN_P.
7763 * haifa-sched.c (priority): Use INSN_P.
7764 (rm_line_notes): Likewise.
7765 (rm_other_notes): Likewise.
7766 (find_insn_reg_weight): Likewise.
7767 (init_target_units): Likewise.
7768 (schedule_block): Likewise.
7769 (compute_block_forward_dependences): Likewise.
7770 (debug_dependencies): Likewise.
7771 (set_priorities): Likewise.
7772 * integrate.c (function_cannot_inline_p): Use INSN_P.
7773 (save_parm_insns): Likewise.
7774 (copy_insn_list): Likewise.
7775 * jump.c (mark_all_labels): Use INSN_P.
7776 (never_reached_warning): Likewise.
7777 * lcm.c (optimize_mode_switching): Use INSN_P.
7778 * local-alloc.c (validate_equiv_mem): Use INSN_P.
7779 (memref_used_between_p): Likewise.
7780 (update_equiv_regs): Likewise.
7781 (block_alloc): Likewise.
7782 (no_conflict_p): Likewise.
7783 * loop.c (scan_loop): Use INSN_P.
7784 (find_and_verify_loops): Likewise.
7785 (count_loop_regs_set): Likewise.
7786 (loop_reg_used_before_p): Likewise.
7787 (strength_reduce): Likewise.
7788 (recombine_givs): Likewise.
7789 (check_dbra_loop): Likewise.
7790 (load_mems): Likewise.
7791 (try_copy_prop): Likewise.
7792 * print-rtl.c (print_rtx): Use INSN_P.
7793 * recog.c (find_single_use): Use INSN_P.
7794 * reg-stack.c (stack_regs_mentioned): Use INSN_P.
7795 (next_flags_user): Likewise.
7796 (swap_rtx_condition): Likewise.
7797 * regmove.c (mark_flags_life_zones): Use INSN_P.
7798 (optimize_reg_copy_1): Likewise.
7799 (optimize_reg_copy_2): Likewise.
7800 (optimize_reg_copy_3): Likewise.
7801 (reg_is_remote_constant_p): Likewise.
7802 (fixup_match_2): Likewise.
7803 (regmove_optimize): Likewise.
7804 (fixup_match_1): Likewise.
7805 * regrename.c (build_def_use): Use INSN_P.
7806 (replace_reg_in_block): Likewise.
7807 (consider_use): Likewise.
7808 * reload.c (find_equiv_reg): Use INSN_P.
7809 * reload1.c (reload): Use INSN_P.
7810 (maybe_fix_stack_asms): Likewise.
7811 (calculate_needs_all_insns): Likewise.
7812 (reload_as_needed): Likewise.
7813 (emit_output_reload_insns): Likewise.
7814 (delete_address_reloads_1): Likewise.
7815 (reload_cse_regs_1): Likewise.
7816 (reload_combine): Likewise.
7817 (reload_cse_move2add): Likewise.
7818 * reorg.c (redundant_insn): Use INSN_P.
7819 (dbr_schedule): Likewise.
7820 * resource.c (find_dead_or_set_registers): Use INSN_P.
7821 (mark_target_live_regs): Likewise.
7822 * rtlanal.c (reg_used_between_p): Use INSN_P.
7823 (reg_referenced_between_p): Likewise.
7824 (reg_set_between_p): Likewise.
7825 (reg_set_p): Likewise.
7826 (single_set): Likewise.
7827 (multiple_sets): Likewise.
7828 (find_last_value): Likewise.
7829 (reg_set_last): Likewise.
7830 (find_reg_note): Likewise.
7831 (find_regno_note): Likewise.
7832 * sibcall.c (sequence_uses_addressof): Use INSN_P.
7833 * simplify-rtx.c (cselib_process_insn): Use INSN_P.
7834 * ssa.c (find_evaluations): Use INSN_P.
7835 (rename_block): Likewise.
7836 (rename_equivalent_regs): Likewise.
7837 * unroll.c (loop_find_equiv_value): Use INSN_P.
7838 (set_dominates_use): Likewise.
7839 * varasm.c (mark_constant_pool): Use INSN_P.
7840 (mark_constants): Likewise.
7841 * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
7842 (alphaev4_next_group): Likewise.
7843 (alphaev5_next_group): Likewise.
7844 * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
7845 (c4x_rptb_rpts_p): Likewise.
7846 * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
7847 * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
7848 (rs6000_adjust_priority): Likewise.
7849 * config/sh/sh.c (sh_loop_align): Use INSN_P.
7850 (machine_dependent_reorg): Likewise.
7851 (split_branches): Likewise.
7852 * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
7854 Fri Aug 4 11:43:49 2000 John Wehle (john@feith.com)
7856 * combine.c (recog_for_combine): Remove the old notes
7857 prior to attempting to recognize the new pattern.
7858 (distribute_notes): Ignore REG_NONNEG notes.
7860 2000-08-04 Chandrakala Chavva <cchavva@redhat.com>
7862 * varasm.c (output_constructor): Add .align 0 for packed vars.
7864 2000-08-04 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7866 * configure.in: Use default thread_file even when enable_threads is
7867 yes or dce because hpux10.20 pa port uses MULTILIB implementation.
7868 * configure: Rebuilt.
7870 * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
7872 2000-08-04 Donn Terry (donnte@microsoft.com)
7874 * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
7876 2000-08-04 Mark Elbrecht <snowball3@bigfoot.com>
7878 * i386/x-djgpp: Delete code that conditionally modifies target_alias.
7879 Delete code that conditionally modifies 'version'.
7880 Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
7881 * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
7882 * gcc.c (main): Use it.
7883 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
7884 * prefix.c (update_path): Use it.
7885 * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
7886 (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
7887 (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
7889 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
7890 (SUBTARGET_SWITCHES): Adjust.
7891 (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
7893 (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
7895 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
7897 * c-common.h (flag_isoc94): Declare.
7898 * c-decl.c (flag_isoc94): Define.
7899 (c_decode_option): Set flag_isoc94 as appropriate.
7900 * c-common.c (T_PD, T_IM, T_UIM): Define.
7901 (format_char_info): Add tlen and jlen.
7902 (print_char_table): Add entries for %t and %j. Allow %zn. Allow
7904 (scan_char_table): Add entries for %t and %j. Allow %F. Allow
7906 (time_char_table): Add NULL entries for %t and %j.
7907 (check_format_info): Allow for %t and %j. Warn for %F if pedantic
7908 and not C99. Warn for %lc, %ls and %l[ if pedantic and not C94.
7909 Warn for printf %lf if pedantic and not C99. Don't warn for empty
7910 precision. Allow precision argument to be unsigned int. If
7911 pedantic, warn for %p passed an argument not a pointer to possibly
7912 qualified void or a possibly qualified character type, and for
7913 pointer targets of the wrong sign, except for character pointers.
7915 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
7917 * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
7918 * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
7919 (wint_type_node): Define.
7920 * c-decl.c (WINT_TYPE): Define.
7921 (init_decl_processing): Create the wint_type_node type.
7922 * c-common.c (T_WI): Define.
7923 (print_char_table): Use T_WI for %lc format.
7925 2000-08-04 Bruce Korb <bkorb@gnu.org>
7927 * fixinc/: Verified that the MSDOS patch does not break
7928 the UNIX functionality and applied the next three patches
7931 2000-07-28 Eli Zaretskii <eliz@is.elta.co.il>
7933 * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
7934 output file with the temporary one by appending ".X" to generate
7935 the temporary fuile's name. If the output file already has an
7936 extension, replace it with ".X".
7938 * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
7939 not $DESTDIR, to find applyfix. Use sprintf instead of snprintf;
7940 reallocate the command buffer while copying the command-line
7941 argument. Redirect the output directly to the temporary file,
7942 instead of going through another temporary file.
7943 (process): Close the temporary file before unlinking it.
7944 (machine_matches) [__MSDOS__]: If the machine doesn't match, set
7945 the FD_SKIP_TEST flag. Pay attention to the FD_MACH_IFNOT flag.
7946 (run_compiles): Pass p_fixd argument to machine_matches, as it
7949 * fixinc/fixincl.sh: Export ORIGDIR. If $DJDIR is set in the
7950 environment, assume there are no symlinks in the include
7951 directory. When cleaning up the DONE files, look for them
7952 case-insensitively. Don't try to remove symlinks if they aren't
7955 * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
7956 all callers changed. Declare pz "const char *", to avoid compiler
7959 * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
7960 Change prototype of make_raw_shell_str.
7962 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
7964 * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
7965 (initialize) [__MSDOS__]: Use tempnam.
7966 (initialize): Don't use SIGPIPE if it is not defined.
7968 * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
7971 2000-07-25 Bruce Korb <bkorb@gnu.org>
7973 * fixinc/fix*.[ch]: substantially reworked to make it possible
7974 to run this program without using fork(2) or pipe(2) (i.e. in
7977 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
7979 * cppdefault.h (WINT_TYPE): Define.
7980 * cppinit.c (builtin_array): Define __WINT_TYPE__.
7981 * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
7982 * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
7984 Fri Aug 4 06:53:46 2000 Clinton Popetz <cpopetz@cygnus.com>
7986 * (mips_legitimate_address_p): Don't allow register+offset
7987 if the offset is large and negative, and we are compiling
7988 for 64 bit registers.
7990 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7992 * gencodes.c (main): Define CODE_FOR_nothing as the last possible
7993 insn_code_number + 1.
7995 2000-08-04 Kazu Hirata <kazu@hxi.com>
7997 * h8300.c (function_prologue): Rearrange code for conciseness.
7998 (function_epilogue): Likewise.
7999 * h8300.h (OK_FOR_U): Fix formatting.
8001 * cse.c: Fix a comment typo. Fix formatting.
8003 2000-08-03 Richard Henderson <rth@cygnus.com>
8005 * config/i386/i386.md (return_indirect_internal): New.
8006 * config/i386/i386.c (ix86_expand_epilogue): Use it.
8008 2000-08-03 Zack Weinberg <zack@wolery.cumb.org>
8010 * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
8012 (lex_line): Glue @ onto the beginning of identifiers and
8013 string constants, in Objective-C mode.
8014 (output_token, spell_token): Handle CPP_OSTRING.
8015 (can_paste, maybe_paste_with_next): Handle pasting @ onto the
8016 beginning of a NAME or a STRING, in objc mode.
8018 * cpplib.c (get_define_node): Do not permit identifiers that
8019 begin with @ to be #defined.
8020 * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
8021 * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
8023 * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
8024 * c-tree.h (build_objc_string): Delete prototype.
8025 * objc/objc-tree.def: Delete OBJC_STRING_CST.
8026 * c-lex.c (yylex): Use build_string for all three kinds of strings.
8028 * c-parse.in, objc/objc-act.c: Update commentary.
8030 2000-08-03 Mark Mitchell <mark@codesourcery.com>
8032 * extend.texi: Fix typo in last change.
8034 * extend.texi: Add commentary on statement-expressions and their
8035 interactions with C++.
8037 2000-08-03 Nick Clifton <nickc@cygnus.com>
8039 * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
8040 * dwarf.h (LANG_JAVA): Change value to 0x000b.
8042 2000-08-03 Anthony Green <green@cygnus.com>
8044 * dwarf2out.c (gen_compile_unit_die): Add java language support.
8045 (add_bound_info): Check for java language.
8046 (is_java): New function.
8047 * dwarfout.c (output_compile_unit_die): Ditto.
8048 * dwarf.h (dwarf_source_language): Add java source language type.
8049 * dwarf2.h (dwarf_source_language): Ditto.
8051 Thu Aug 3 20:32:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
8053 * reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap
8056 * i386.c (ix86_expand_branch): Mode of comparison in
8057 IF_THEN_ELSE is VOIDmode.
8059 Thu Aug 3 10:05:53 2000 Akiko Matsushita <matusita@sra.co.jp>
8061 * gengenrtl.c, rtl.c: Avoid #elif.
8063 2000-08-03 Michael Poole <poole@troilus.org>
8065 * tm.texi (Register Classes): Clarify order of sub-initializers
8066 in REG_CLASS_CONTENTS.
8068 Thu Aug 3 15:53:03 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8070 From SAITOH Masanobu:
8071 * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
8073 2000-08-03 David Billinghurst <David.Billinghurst@riotinto.com.au>
8075 * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
8076 is not supported by tradcpp and isn't actually needed for cygwin.
8078 2000-08-03 Kazu Hirata <kazu@hxi.com>
8080 * h8300.c: Fix a comment typo.
8081 * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
8083 * jump.c: Fix formatting.
8085 * toplev.c: Fix formatting.
8087 Thu Aug 3 01:05:32 2000 Jeffrey A Law (law@cygnus.com)
8089 * flow.c (find_auto_inc): Verify that we've got a REG before
8090 peeking at its regno. Fail, don't abort if we can't find
8091 the increment of the desired register.
8093 * pa.md (shadd height reduction patterns/splitters): Remove.
8095 2000-08-02 Jim Wilson <wilson@cygnus.com>
8097 * config/ia64/ia64-protos.h (flag_ssa): Declare.
8098 * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
8100 2000-08-02 Mark Mitchell <mark@codesourcery.com>
8102 * dce.c: Remove all uses of assert.
8103 * dwarf2out.c: Likewise.
8104 * dwarfout.c: Likewise.
8107 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
8109 * gcc.h (lang_specific_driver): Constify second argument.
8110 * gcc.c (translate_options, process_command, main): Likewise.
8111 Constify variables to match. Cast second argument to
8114 * cppspec.c, gccspec.c: Adjust type of second argument to
8115 lang_specific_driver, and update code as necessary.
8117 2000-08-02 Jakub Jelinek <jakub@redhat.com>
8119 * loop.c (scan_loop): Ensure update_end label does not
8120 go away until reg_scan_update is run.
8122 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
8124 * c-common.h: Prototype min_precision and c_build_qualified_type here...
8125 * c-tree.h: ... not here.
8126 * errors.h: Prototype fancy_abort.
8128 * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
8129 HOST_BITS_PER_WIDE_INT == 64 ifdef block.
8130 * regrename.c (regrename_optimize): Make control flow explicit.
8131 (replace_reg_in_block): Initialize reg_use to 0.
8133 * i386.c (legitimate_address_p): Rename error label to
8134 report_error to avoid namespace clash.
8136 2000-08-02 Kazu Hirata <kazu@hxi.com>
8138 * fold-const.c: Fix formatting.
8140 Wed Aug 2 16:26:15 MET DST 2000 Jan Hubicka <jh@suse.cz>
8142 * i386.c (legitimate_address_p): Accept other bases than
8143 pic_offset_table_rtx for GOTOFF constructs.
8145 Wed Aug 2 15:59:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
8147 * i386.md (shift to lea splitter): Use const_int_operand.
8149 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
8151 * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
8152 cppspec.c: Do not use 'legal' or 'illegal' in error messages
8155 * cppmain.c (cb_define, cb_undef): Don't generate any output
8156 if not done_initializing.
8157 * cpplex.c (maybe_paste_with_next): When the token after a ##
8158 is an omitted rest argument, only delete the token before it
8159 if that token is a comma. Do not warn about bogus token
8160 pastes for , ## rest_arg.
8163 * cpp.1: Regenerate.
8165 2000-08-02 Fred Fish <fnf@be.com>
8167 * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
8168 when user gives -p option. Add init_term_dyn.o for BeOS 5.0
8171 * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
8172 Be directories to search path.
8174 Remove support for __declspec(dllimport) and __declspec(dllexport).
8175 This is leftover cruft from the earlier BeOS gcc port when BeOS
8176 used Microsoft's PE object file format.
8177 * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
8178 * config/i386/t-beos (winnt.o): Remove Makefile frag.
8179 * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
8180 (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
8181 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
8182 (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
8183 (REDO_SECTION_INFO_P): Remove.
8184 (ASM_EXPORT_DECL): Remove.
8185 (ASM_DECLARE_FUNCTION_NAME): Remove.
8186 (ASM_DECLARE_OBJECT_NAME): Remove.
8187 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
8188 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
8189 (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
8190 (STRIP_NAME_ENCODING): Remove.
8192 Remove support for obsolete version of BeOS that is no longer
8194 * configure.in (i*86-*-beospe*): Remove.
8195 * config/i386/beos-pe.h: Remove.
8197 2000-08-01 Jeffrey Oldham <oldham@codesourcery.com>
8198 Mark Mitchell <mark@codesourcery.com>
8200 * Makefile.in (OBJS): Added dce.o.
8201 (ssa.o): Updated target to include ssa.h.
8203 (toplev.o): Likewise.
8204 (dce.o): Created target.
8205 * basic-block.h: Added comments.
8206 (INVALID_BLOCK): Added definition.
8207 (connect_infinite_loops_to_exit): Added declaration.
8208 Moved SSA declarations to ssa.h.
8209 * flow.c: Added inclusion of ssa.h.
8210 (struct depth_first_search_dsS, depth_first_search_ds):
8212 (compute_immediate_postdominators): Added definition.
8213 (connect_infinite_loops_to_exit): Likewise.
8214 (flow_dfs_compute_reverse_init): Likewise.
8215 (flow_dfs_compute_reverse_add_bb): Likewise.
8216 (flow_dfs_compute_reverse_execute): Likewise.
8217 (flow_dfs_compute_reverse_finish): Likewise.
8218 * rtl.h (rtx/in_struct): Added use to determine insn necessity.
8219 (LABEL_P): Added definition.
8222 (BARRIER_P): Likewise.
8223 (JUMP_TABLE_DATA_P): Likewise.
8224 (INSN_DEAD_CODE_P): Likewise.
8225 * ssa.c: Replaced inclusions with ssa.h inclusion.
8226 (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
8227 (rename_registers): Removed unnecessary variables.
8228 * ssa.h: Created by moving declarations from ssa.c and
8230 * timevar.def: Defined TV_DEAD_CODE_ELIM.
8231 * toplev.c: Added ssa.h inclusion.
8232 (dump_file_index): Added DFI_dce.
8233 (dump_file): Added "dce" entry.
8235 (f_options): Added dce entry.
8236 * invoke.texi: Document -fdce. Emphasize experimental status of
8240 2000-08-01 Zack Weinberg <zack@wolery.cumb.org>
8242 * cpperror.c (v_message): Split into _cpp_begin_message and
8243 v_message macro. All callers updated.
8244 (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
8247 * cppfiles.c (cpp_syshdr_flags): New function.
8248 (read_include_file): Don't call cpp_output_tokens. Call
8250 * cppinit.c (dump_macros_helper): Moved to cppmain.c.
8251 (cpp_reader_init): Don't initialize token_buffer. Call
8252 _cpp_init_internal_pragmas.
8253 (cpp_cleanup): Don't clear token_buffer.
8254 (cpp_start_read): Don't worry about output from -D processing.
8255 Don't call cpp_output_tokens.
8256 (cpp_finish): Don't dump macros here. Don't call
8258 * cppmacro.c (_cpp_dump_definition): Rename
8259 cpp_dump_definition. Write directly to a FILE *.
8260 (dump_funlike_macro): Delete.
8261 (dump_macro_args): New.
8263 * cpplex.c (TOKEN_LEN): Convert to inline function.
8264 (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
8265 cpp_scan_line, _cpp_dump_list): Delete.
8266 (cpp_printf, cpp_output_list): New.
8267 (output_line_command): Don't worry about entering or leaving files.
8268 (cpp_scan_buffer): Just output each token as we hit it.
8269 (process_directive): Don't call cpp_output_tokens.
8270 (_cpp_glue_header_name): Don't use token_buffer.
8271 (output_token, dump_param_spelling): Write directly to a FILE *.
8273 * cpplib.c (pass_thru_directive, dump_macro_name,
8274 pragma_dispatch, do_pragma_gcc): Delete.
8275 (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
8276 do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
8278 (do_error, do_warning, pragma_dependency): Call
8279 _cpp_begin_message, then cpp_output_list.
8280 (cpp_register_pragma, cpp_register_pragma_space,
8281 _cpp_init_internal_pragmas): New.
8282 (do_pragma): Walk the pragmas table here.
8283 (do_pragma_once, do_pragma_poison, do_pragma_system_header,
8284 do_pragma_dependency): Return void.
8285 (do_pragma_implementation): Moved to cppmain.c.
8287 * cpplib.h: Update prototypes.
8288 (struct cpp_reader): Remove printer, token_buffer,
8289 token_buffer_size, and limit. Add struct cb, and pragmas.
8290 (struct cpp_printer): Remove last_id and written.
8291 (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
8292 CPP_ADJUST_WRITTEN): Delete.
8293 * cpphash.h: Update prototypes.
8294 (ufputs): New wrapper.
8296 * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
8297 cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
8298 (main): Set up callbacks. Register #pragma implementation.
8299 Dump macros from here.
8301 2000-08-01 Geoff Keating <geoffk@cygnus.com>
8303 * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
8304 * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
8305 * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
8306 insns if they have a REG_MAYBE_DEAD note attached.
8307 * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
8308 (rs6000_emit_load_toc_table): TOC loads may go dead.
8310 2000-08-01 Jim Wilson <wilson@cygnus.com>
8312 * config/ia64/ia64.c (ia64_function_arg): Fix last change. Verify
8313 type exists before using it. Use number of words as alignment
8315 (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
8316 ia64_va_arg): Propagate ia64_function_args changes here.
8318 2000-08-01 Richard Henderson <rth@cygnus.com>
8320 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
8321 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8323 2000-08-01 Bernd Schmidt <bernds@cygnus.co.uk>
8325 From Joern Rennecke:
8326 * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
8327 * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
8328 unless TARGET_SH3E is set.
8329 * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
8331 * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
8332 (ashlsi3_std): New pattern.
8333 (ashlsi3 expander): Use it for TARGET_SH3.
8334 * sh.c (gen_ashift): Use it instead of ashlsi3_k.
8336 Tue Aug 1 12:34:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
8338 * loop.c (canonicalize_condition): Use destination, not source to
8339 determine SET's mode.
8341 2000-07-31 Mark Mitchell <mark@codesourcery.com>
8343 * flow.c (clear_log_links): Fix typo.
8345 Mon Jul 31 22:19:24 2000 Jeffrey A Law (law@cygnus.com)
8347 * loop.c (check_dbra_loop): Make change from July 17, 2000 work
8348 on targets which need more than one insn for a compare/cbranch
8351 2000-07-31 Jim Wilson <wilson@cygnus.com>
8353 * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
8354 when computing offset.
8356 Mon Jul 31 20:35:50 2000 Denis Chertykov <denisc@overta.ru>
8358 * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
8360 2000-07-31 Geoff Keating <geoffk@cygnus.com>
8362 * flow.c (clear_log_links): Nuke global_live_at_start and
8363 global_live_at_end data, since if the log_links stuff is invalid
8364 so is global_live_at_*.
8366 2000-07-31 Richard Henderson <rth@cygnus.com>
8368 * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
8370 2000-07-31 Jakub Jelinek <jakub@redhat.com>
8372 * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
8373 (_cpp_get_token): Don't macro expand a just pasted token if it
8374 was pasted at no_expand_level.
8376 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
8378 * cppmacro.c (find_param, count_params, save_expansion):
8379 Permit 'defined' as a macro parameter name.
8381 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
8383 * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
8384 xcpp to cpp throughout.
8385 (native): Remove unnecessary dependency on cpp.
8387 * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
8388 tradcpp to tradcpp0.
8389 (.i spec): Add missing output-file spec to cc1 command line.
8390 * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
8392 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
8394 * c-decl.c (mesg_implicit_function_declaration): Init to -1.
8395 (implicit_decl_warning): New function.
8396 (implicitly_declare): Use it.
8397 * c-typeck.c (build_external_ref): Use implicit_decl_warning
8398 to complain about implicit decls of builtins.
8400 * c-lang.c (lang_init): Set mesg_implicit_function_declaration
8401 based on pedantic && flag_isoc99, if not already set.
8402 * c-tree.h: Declare mesg_implicit_function_declaration.
8403 Prototype implicit_decl_warning.
8405 2000-07-30 Jeffrey D. Oldham <oldham@codesourcery.com>
8407 * Makefile.in (ssa.o): Updated header files in dependences.
8408 * basic-block.h: Added compute_immediate_postdominators declaration.
8409 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
8411 * flow.c (compute_immediate_dominators): Updated comment.
8412 (compute_immediate_postdominators): Added definition.
8413 * rtl.h (HARD_REGISTER_P): Added definition.
8414 * ssa.c: Include additional header files.
8415 (assert): Added definition.
8416 (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
8417 include select hard registers.
8418 (ssa_rename_to_insert): Likewise.
8419 (ssa_rename_from_initialize): Likewise.
8420 (ssa_rename_from_lookup): Likewise.
8421 (original_register): Likewise.
8422 (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
8423 include select hard reigsters.
8424 (ssa_rename_from_traverse): Likewise.
8425 (ssa_rename_from_free): Likewise.
8426 (ssa_rename_from_print): Likewise.
8427 (ssa_rename_from_print_1): Likewise.
8428 (ssa_rename_from_hash_function): Likewise.
8429 (ssa_rename_from_equal): Likewise.
8430 (ssa_rename_from_delete): Likewise.
8431 (simplify_to_immediate_dominators): Removed in favor of
8432 flow.c:compute_immediate_dominators.
8433 (find_evaluations_1): Modified to work with hard registers.
8434 (insert_phi_node): Likewise.
8435 (insert_phi_nodes): Likewise.
8436 (struct rename_set_data): Updated prev_reg comment.
8437 (create_delayed_rename): Modified to work with hard registers.
8438 (RENAME_NO_RTX): Updated comment.
8439 (apply_delayed_renames): Modified to work with hard registers.
8440 (rename_insn_1): Likewise and added handling of CLOBBER rtls.
8441 (rename_block): Updated to use revised ssa_rename_to interface.
8442 (rename_registers): Updated to use revised ssa_rename_to and
8443 ssa_rename_from interface.
8444 (convert_to_ssa): Revised to use compute_immediate_dominators and
8445 deal with hard registers.
8446 (make_regs_equivalent_over_bad_edges): Modified to work with hard
8447 registers. Added check for illegal unification of hard register.
8448 (make_equivalent_phi_alternatives_equivalent): Modified to work
8449 with hard registers.
8450 (compute_conservative_reg_partition): Likewise.
8451 (coalesce_if_unconflicting): Modified to work with hard registers
8452 and check for conflicting hard registers.
8453 (mark_phi_and_copy_regs): Revised loop to work only on pseudo
8455 (rename_equivalent_regs_in_insn): Modified to work with hard
8457 (record_canonical_element_1): Added definition.
8458 (check_hard_regs_in_partition): Added definition.
8459 (convert_from_ssa): Added data structure deallocation and check
8460 for illegal hard register unification.
8461 (conflict_hard_regs_p): Added definition.
8462 * toplev.c (rest_of_compilation): Added comment.
8464 2000-07-31 Anthony Green <green@redhat.com>
8466 * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
8468 2000-07-31 Jason McMullan <jmcmullan@linuxcare.com>
8470 * builtins.c (expand_builtin_apply): Don't defer pop during
8473 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8475 * calls.c (combine_pending_stack_adjustment_and_call): Only use
8476 preferred_unit_stack_boundary when it is > 1.
8478 2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk>
8480 * c-common.c (init_function_format_info): Add C99 format functions
8483 * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
8484 void' or 'register void' as being the special case of 'void' alone
8485 in a parameter list.
8487 * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
8488 discarding qualifiers into a plain warning.
8490 2000-07-31 Kazu Hirata <kazu@hxi.com>
8492 * combine.c: Fix formatting.
8494 * h8300.md: Fix formatting.
8496 * local-alloc.c: Fix formatting.
8498 * h8300.c (get_shift_alg): Remove the variable alg.
8499 (emit_a_shift): Rearrange code to improve readability.
8501 * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
8503 * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
8504 HImode on all architectures and a combination of HImode and SImode
8505 on H8/300H and H8/S.
8507 * h8300.c (split_adds_subs): Rearrange code for conciseness.
8509 Mon Jul 31 12:27:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
8511 * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
8514 Mon Jul 31 10:41:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
8516 * recog.c (extract_insn): Set operand_mode according to
8517 operand if match_operand is VOIDmode.
8519 Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
8521 * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
8523 2000-07-31 Geoff Keating <geoffk@cygnus.com>
8525 * c-parse.in (extdefs): Call ggc_collect between external
8528 2000-07-30 Michael Hayes <mhayes@cygnus.com>
8529 Richard Henderson <rth@cygnus.com>
8531 * Makefile.in (OBJS): Add doloop.o.
8532 * doloop.c: New file.
8534 * final.c (insn_current_reference_address): Return 0 before final.
8535 * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
8536 * jump.c (any_uncondjump_p): Likewise.
8537 * loop.c (indirect_jump_in_function): Make static.
8538 (strength_reduce): Call doloop_optimize.
8539 (insert_bct, instrument_loop_bct): Remove.
8540 * loop.h (doloop_optimize): Prototype.
8541 * recog.c (split_all_insns): Split all INSN_P.
8542 * toplev.c (flag_branch_on_count_reg): Default on.
8544 * config/c4x/c4x.c (c4x_optimization_options): Don't set
8545 flag_branch_on_count_reg.
8546 * config/i386/i386.c (override_options): Likewise.
8547 * config/rs6000/rs6000.c (optimization_options): Likewise.
8549 * config/i386/i386.md (decrement_and_branch_on_count): Remove.
8551 (dbra_ge): Remove, as well as all it's splitters.
8553 * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
8556 * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
8557 (ia64_register_move_cost): Declare.
8558 * config/ia64/ia64.c (ar_lc_reg_operand): New.
8559 (struct ia64_frame_info): Add ar_size.
8560 (ia64_compute_frame_size): Set it.
8561 (save_restore_insns): Save and restore ar.lc.
8562 (ia64_register_move_cost): New, moved from header file. Handle
8563 application registers.
8564 (REG_AR_PFS, REG_AR_EC): Remove. Replace with AR_*_REGNUM numbers.
8565 (emit_insn_group_barriers): Special case doloop_end_internal.
8566 (ia64_epilogue_uses): Mark ar.lc live at end.
8567 * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
8568 (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
8569 (FIRST_PSEUDO_REGISTER): Make room.
8570 (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
8571 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
8572 (REG_ALLOC_ORDER): Update.
8573 (HARD_REGNO_MODE_OK): Update.
8574 (REGISTER_NAMES): Update.
8575 (enum reg_class): Add AR_M_REGS and AR_I_REGS.
8576 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
8577 (REGNO_REG_CLASS): Update.
8578 (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
8579 (REGISTER_MOVE_COST): Move out of line.
8580 (PREDICATE_CODES): Update.
8581 * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
8582 (addsi3_plus1_alt, adddi3_plus1_alt): New.
8583 (shladd_elim splitter): Allow constants in the predicate.
8584 (doloop_end, doloop_end_internal): New.
8586 2000-07-30 Richard Henderson <rth@cygnus.com>
8588 * genattrtab.c (struct insn_def): Add lineno member.
8589 (struct insn_ent): Likewise.
8590 (struct attr_desc): Likewise.
8591 (struct delay_desc): Likewise.
8592 (struct function_unit_op): Likewise.
8593 (struct function_unit): Likewise.
8594 (check_attr_value): Use message_with_line.
8595 (check_defs): Likewise.
8596 (expand_units): Likewise.
8597 (check_attr_test): Take a lineno argument.
8598 (gen_attr): Likewise.
8599 (gen_insn): Likewise.
8600 (gen_delay): Likewise.
8601 (gen_unit): Likewise.
8602 (main): Give it to them.
8603 (convert_set_attr_alternative): Take an insn_def argument
8604 instead of num_alt and insn_index.
8605 (convert_set_attr): Likewise.
8606 (write_test_expr): Protect INSN_ADDRESSES load
8607 with INSN_ADDRESSES_SET_P.
8609 2000-07-30 Richard Henderson <rth@cygnus.com>
8611 * flow.c (init_propagate_block_info): Use pc_set.
8613 Sun Jul 30 20:58:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
8615 * i386.md (*lea_general_[123]) New insns and splits.
8616 (addsi3 to lea splitter): Handle other modes too.
8617 (shlsi3 to lea splitter): Likewise.
8618 (addhi_1_lea, shlhi_1_lea): New patterns.
8619 (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
8621 Sun Jul 30 20:51:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
8623 * recog.c (general_operand, nonimmediate_operand): Accept
8624 any mode for VOIDmode CONSTANT_P operands.
8626 Sun Jul 30 20:42:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
8628 * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
8629 instead of replace_rtx.
8630 * recog.c (validate_replace_rtx_subexp): New function.
8631 * recog.h (validate_replace_rtx_subexp): Declare.
8633 Sun Jul 30 20:38:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
8635 * combine.c (simplify_set, make_extraction, make_compound_operation
8636 make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
8637 as force_to_mode argument.
8639 Sun Jul 30 20:30:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
8641 * combine.c (if_then_else_cond): Be sure that mode fits in
8644 Sun Jul 30 20:27:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
8646 * combine.c (record_promoted_value): Allow bitsize of mode
8647 to be equivalent to HOST_BITS_PER_WISE_INT.
8649 Sun Jul 30 20:25:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
8651 * function.c (assign_stack_local_1, assign_stack_temp_for_type):
8652 Do not call gen_mode_alignment when mode is BLKmode.
8654 Sun Jul 30 20:21:54 MET DST 2000 Jan Hubicka <jh@suse.cz>
8656 * loop.c (express_from_1): Fix call of simplify_gen_binary.
8658 Sun Jul 30 20:08:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
8660 * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
8661 VOIDmode implies both operands to be VOIDmode.
8662 (simplify_ternary_operation): Compute properly the mode of comparison.
8663 * combine.c (combine_simplify_rtx): Likewise.
8665 2000-07-25 Michael Hayes <mph@paradise.net.nz>
8667 * basic-block.h (struct loops): New field rc_order.
8668 * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
8669 (flow_loops_free): Free rc_order.
8670 (flow_depth_first_order_compute): New parameter rc_order.
8671 (flow_loops_find): Allocate rc_order and swap usage with
8674 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8675 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8677 * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
8678 (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
8679 (nodb_call, return_from_epilogue): Likewise.
8680 (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
8681 * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
8682 * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
8683 (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
8684 (c4x_valid_type_attribute_p): Likewise.
8685 * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
8686 (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
8688 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8690 * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
8691 and loadhi_big_constant if applicable.
8692 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
8693 and add new splitter.s
8695 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8697 * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
8699 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8701 * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
8703 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8705 * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
8707 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8709 * config/c4x/libgcc.S (divqf3): Improve accuracy.
8711 2000-07-27 Mark Mitchell <mark@codesourcery.com>
8713 Put phi nodes after NOTE_INSN_BASIC_BLOCK.
8714 * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
8715 * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
8716 (get_prev_bb_note): Likewise.
8717 (remove_scope_notes): Likewise.
8718 * flow.c (commit_one_edge_insertion): Likewise.
8719 (merge_blocks_nomove): Likewise.
8720 (verify_flow_info): Likewise.
8721 * gcse.c (insert_insn_end_bb): Likewise.
8722 * reg-stack.c (emit_swap_insn): Likewise.
8723 * ssa.c (first_insn_after_basic_block_note): New function.
8724 (insert_phi_node): Use it.
8725 (rename_block): Likewise.
8726 (eliminate_phi): Likewise.
8727 (make_regs_equivalent_over_bad_edges): Likewise.
8728 (make_equivalent_phi_alternatives_equivalent): Likewise.
8729 (for_each_successor_phi): Likewise.
8730 (convert_from_ssa): Modify phi-node deletion algorithm.
8732 2000-07-29 Andreas Jaeger <aj@suse.de>
8734 * configure.in (mips*-*-linux*): Use mips*el to check for little
8735 endian MIPS, add tmake_file.
8737 * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
8738 (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
8739 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
8741 2000-07-28 Richard Henderson <rth@cygnus.com>
8743 * config/ia64/ia64.c (ia64_print_operand): Fix typos.
8744 Sign extend mode size before negating.
8746 2000-07-28 Richard Henderson <rth@cygnus.com>
8748 * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
8750 2000-07-28 Bernd Schmidt <bernds@cygnus.co.uk>
8752 * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
8753 (cse_insn): Likewise.
8754 (addr_affects_sp_p): Likewise.
8755 * expr.c (move_by_pieces): Likewise.
8756 (clear_by_pieces): Likewise.
8757 * gcse.c (oprs_unchanged_p): Likewise.
8758 * haifa-sched.c (sched_analyze_2): Likewise.
8759 * recog.c (offsettable_address_p): Likewise.
8760 * regclass.c (record_address_regs): Likewise.
8761 * reload.c (find_reusable_reload): Likewise.
8762 (push_reload): Likewise.
8763 (operands_match_p): Likewise.
8764 (decompose): Likewise.
8765 (find_reloads_address_1): Likewise.
8766 (find_inc_amount): Likewise.
8767 * reload1.c (elimination_effects): Likewise.
8768 * resource.c (mark_set_resources): Likewise.
8769 * flow.c (attempt_auto_inc): New function; mostly broken out
8771 (find_auto_inc): Split into two functions and enhanced to
8772 generate POST_MODIFY.
8773 * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
8774 * rtl.h (count_all_occurrences): Declare.
8775 (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
8777 * rtlanal.c (count_all_occurrences): New function.
8778 * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
8779 HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
8781 * config/ia64/ia64-protos.h (destination_operand): Declare.
8782 * config/ia64/ia64.c (destination_operand): New function.
8783 (ia64_print_operand): Handle POST_MODIFY.
8784 (rtx_needs_barrier): Likewise.
8785 * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
8786 (HAVE_POST_MODIFY_REG): Define to 1.
8787 (MAX_REGS_PER_ADDRESS): Change to 2.
8788 (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
8789 (LEGITIMATE_ADDRESS_REG): New helper macro.
8790 (LEGITIMATE_ADDRESS_DISP): Likewise.
8791 (PREDICATE_CODES): Add entry for destination_operand.
8792 * config/ia64/ia64.md (all mov patterns): Use destination_operand
8793 predicate for operand 0.
8795 2000-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8797 * dwarf2out.c: Indent #error directive.
8799 * gbl-ctors.h: Fix typo in comment.
8800 (__do_global_ctors): Prototype.
8802 * gcse.c (record_one_set, pre_delete): Remove unused variables.
8804 * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
8805 (print_operand): Initialize variable `t'.
8807 2000-07-27 Aldy Hernandez <aldyh@redhat.com>
8809 * config/arm/arm.md ("call_value"): removed constraints.
8810 Constraints are ignored in expanders.
8811 (*call_value_reg): split =rf into various constraints.
8812 (*call_value_mem): same
8813 (*call_value_symbol): same
8814 (*sibcall_value_insn): same
8816 2000-07-28 Philipp Thomas <pthomas@suse.de>
8818 * install.texi (--enable-nls): Change the description of the NLS
8819 related configure options to match the current state.
8820 (--with-included-gettext): Likewise.
8821 (--enable-maintainer-mode): New description added.
8822 * extend.texi (-fstrict-prototype): Add missing '.'.
8824 2000-07-27 Jim Wilson <wilson@cygnus.com>
8826 * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
8827 DECL_INITIAL (decl) == NULL_TREE.
8829 2000-07-27 Alexandre Oliva <aoliva@redhat.com>
8831 * Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
8832 on insn-attr.h with it.
8833 * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
8834 * insn-addr.h: New header.
8835 (insn_addresses_): Renamed from insn_addresses.
8836 (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
8837 INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
8838 INSN_ADDRESSES_NEW): New macros.
8839 * genattrtab.c (write_test_expr): Use new macros.
8840 * final.c (insn_addresses, init_insn_lengths): Likewise.
8841 (align_fuzz, shorten_branches): Likewise.
8842 (final): Likewise. Do not reject new insns if their addresses
8843 have been added to INSN_ADDRESSES.
8844 * config/arm/arm.c, config/avr/avr.c: Use new macros.
8845 * config/h8300/h8300.c, config/i370/i370.c: Likewise.
8846 * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
8847 * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
8848 * config/sh/sh.c: Likewise.
8849 (output_branchy_insn): Use INSN_ADDRESSES_NEW.
8851 * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
8853 2000-07-27 Andrew Cagney <cagney@b1.cygnus.com>
8855 * gcc.c (struct prefix_list): Add member priority.
8856 (enum path_prefix_priority): Declare.
8857 (add_prefix): Replace ``first'' with ``priority''. Append new
8858 entry but keep list in priority order.
8859 (process_command): Update. Pass PREFIX_PRIORITY_B_OPT or
8860 PREFIX_PRIORITY_LAST to add_prefix.
8861 (process_command): Move include kludge - foo/stageN - to before
8864 2000-07-27 Jason Merrill <jason@redhat.com>
8866 * dwarf2out.c (gen_typedef_die): Abort if we get identical
8867 TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
8869 2000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
8871 * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
8872 * tree.h (get_alias_set, lang_get_alias_set): Prototype.
8874 2000-07-27 Joseph S. Myers <jsm28@cam.ac.uk>
8876 * c-decl.c (finish_function): Don't treat 'main' specially unless
8877 flag_hosted. In C99 mode, return 0 from 'main' unless
8878 DEFAULT_MAIN_RETURN is otherwise defined.
8880 * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
8881 parameters defaulting to int in an old-style function definition.
8883 2000-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8885 * c-parse.in (string): For -Wtraditional, warn about string
8886 concatenation only once per line.
8888 Thu Jul 27 09:25:17 2000 Akiko Matsushita <matusita@sra.co.jp>
8890 * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
8891 for HI-UX/WE2 systems.
8893 2000-07-24 Bruce Korb <bkorb@gnu.org>
8895 * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
8896 defining the __xxx_TYPE__ macros.
8897 * fixincl/fixincl.tpl(gnu_type_map): now obsolete
8898 * fixincl/fixlib.h: don't need to include "tm.h" anymore
8899 * fixincl/inclhack.def(type_map): now obsolete
8901 Thu Jul 27 11:54:17 2000 Andrew Cagney <cagney@b1.cygnus.com>
8903 * cpp.texi: Append a trailing full-stop to xrefs where needed.
8905 2000-07-26 Dave Pitts <dpitts@cozx.com>
8907 * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
8909 (mvs_hash_alias): New function.
8910 (mvs_add_alias): Change argument spacing.
8911 (mvs_need_alias): Change aliasing criteria. Added documentation.
8912 (mvs_get_alias): Change to use hashed name. The hashed name prevents
8913 CSECT name collisions.
8914 (mvs_check_alias): Likewise.
8915 (handle_pragma): Change documentation.
8916 * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
8917 mode from SImode to DImode.
8918 (iorhi3): Changed LTORG size for insn.
8920 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
8922 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
8923 mem if the address is a mode_dependent_address_p.
8925 2000-07-26 Kazu Hirata <kazu@hxi.com>
8927 * h8300.c (print_operand): Print ":8" when the 'R' operand is
8928 suitable for 8-bit absolute.
8929 * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
8930 (OK_FOR_U): Add a case for the 8-bit constant address on the
8933 Wed Jul 26 19:26:21 2000 Hans-Peter Nilsson <hp@axis.com>
8935 * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
8936 && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
8937 ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
8938 lack of implemented alignment.
8940 2000-07-26 Geoffrey Keating <geoffk@cygnus.com>
8942 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
8943 cross-compiling between 64-bit and 32-bit machines.
8945 2000-07-27 Richard Henderson <rth@cygnus.com>
8947 * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
8948 (movhicc_astep, movhi_internal_astep): New.
8949 (movsicc_astep, movsi_internal_astep): New.
8950 (movdicc_astep, movdi_internal_astep): New.
8951 (movsfcc_astep, movsf_internal_astep): New.
8952 (movdfcc_astep, movdf_internal_astep): New.
8953 (movxfcc_astep, movxf_internal_astep): New.
8954 (cmovdi_internal_astep, cmovsi_internal_astep): New.
8955 Unify the cmov[ds]i splitters.
8957 2000-07-27 Rodney Brown <RodneyBrown@pmsc.com>
8959 * real.c (asctoeg): Rename `error' label to unexpected_char_error
8961 2000-07-26 Nick Clifton <nickc@cygnus.com>
8963 * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
8964 __arm__. Allow it to be defined by CPP_ISA_SPEC in arm.h
8966 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
8967 well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
8969 2000-07-26 Alexandre Oliva <aoliva@redhat.com>
8971 * c-decl.c (finish_enum): Convert enumerations that fit in an
8973 (build_enumerator): In pedantic mode, cast to `int' those that
8976 2000-07-25 Rodney Brown <RodneyBrown@pmsc.com>
8978 * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
8980 Tue Jul 25 23:08:33 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8982 * sh.md (cmpgtdi_t): Must be split.
8983 (cmpgtdi_t+1): New splitter.
8985 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
8987 * cpplib.c (_cpp_check_directive): Issue -Wtraditional
8988 warnings for indented directives even if we are skipping.
8990 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
8992 * invoke.texi (strict-prototypes): Remove.
8993 * extend.texi (Deprecated Features): Add strict-prototypes.
8994 (Backwards Compatibility): New node.
8996 2000-07-25 Jakub Jelinek <jakub@redhat.com>
8998 * config/i386/i386.md (andsi_1+1): Allow HImode.
8999 (andsi_1+2): Require q_regs_operand.
9001 2000-07-25 Jakub Jelinek <jakub@redhat.com>
9003 * config/i386/i386.md (call_pop): Check operands[0],
9004 not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
9006 (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
9007 (call_value): Likewise.
9009 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
9011 * toplev.c (pipe_closed): Delete.
9012 (crash_signal): New. Generate ICE for a fatal signal.
9013 (float_signal): Call crash_signal outside a float-handler
9015 (main): Install crash_signal as handler for core-dumping signals.
9017 2000-07-25 David Edelsohn <edelsohn@gnu.org>
9019 * rs6000.c (print_operand, case 'T'): New case.
9021 * rs6000.md (call_indirect_aix32): Convert to expander of
9022 scheduled instructions.
9023 (call_indirect_aix64): Likewise.
9024 (call_value_indirect_aix{32,64}): Likewise.
9025 (call, call_value): Invoke expanders for AIX. Fall through to
9027 (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
9028 (call_value_indirect_nonlocal_aix{32,64}): New patterns.
9029 (call_nonlocal_aix32): Remove CALL_LONG alternative. Operand 1
9030 only "g" constraint.
9031 (call_nonlocal_aix64): Likewise.
9032 (call_value_nonlocal_aix{32,64}): Likewise.
9033 (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
9035 (call_value_nonlocal_sysv): New pattern.
9036 (indirect_jump{si,di}): Use new 'T' modifier.
9037 (tablejump{si,di} matchers): Likewise.
9038 (return_internal_{si,di}): Likewise.
9039 (return_eh_{si,di}): Likewise.
9041 2000-07-24 Richard Henderson <rth@cygnus.com>
9043 * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
9044 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
9045 * config/ia64/ia64.md (movdi_internal): Use it.
9047 2000-07-24 Zack Weinberg <zack@wolery.cumb.org>
9049 * cppexp.c: Warn about unary + if -Wtraditional.
9050 * cpplex.c (lex_line): Always set BOL on the first token of a line.
9052 2000-07-24 Michael Meissner <meissner@redhat.com>
9054 * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
9057 2000-07-24 Nick Clifton <nickc@cygnus.com>
9059 * config/arm/arm.c (emit_multi_reg_push): Generate a
9060 REG_FRAME_RELEATED_NOTE that is compatable with the code in
9061 dwarf2out_debug_frame_expr.
9063 2000-07-24 Jason Merrill <jason@redhat.com>
9065 * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
9066 UNALIGNED_INT_ASM_OP.
9067 (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
9068 a location expression.
9069 (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff. Don't
9070 assume indirect access if we're saving the CFA address exactly.
9072 * Makefile.in (bootstrap): Move -BstageN/ to the end.
9074 2000-07-24 Jakub Jelinek <jakub@redhat.com>
9076 * tradcpp.c (main): Update max_include_len for cpp_include_defaults
9079 2000-07-24 Michael Meissner <meissner@redhat.com>
9081 * invoke.texi (D30V Options): Add d30v options.
9083 Mon Jul 24 02:04:52 2000 Jeffrey A Law (law@cygnus.com)
9085 * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
9086 needed by our gcse pass anymore.
9087 (free_pre_mem): Corresponding changes.
9088 (compute_pre_data): Do not call compute_transpout anymore.
9090 * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
9091 (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
9094 * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
9095 (compute_pre_data): Do it here instead.
9097 * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
9099 (pre_delete): Corresponding changes.
9101 2000-07-23 Mark Mitchell <mark@codesourcery.com>
9103 * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
9104 to figure out whether or not a variable has already been emitted.
9106 Sun Jul 23 14:49:12 2000 Jason Eckhardt <jle@cygnus.com>
9108 * config/i860/i860.md (untyped_call expander): Use GEN_CALL
9109 instead of gen_call.
9111 Sun Jul 23 11:52:03 2000 George Helffrich (george@gly.bris.ac.uk)
9113 * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
9115 2000-07-23 Kazu Hirata <kazu@hxi.com>
9117 * h8300.c: Fix formatting.
9119 2000-07-23 Joseph S. Myers <jsm28@cam.ac.uk>
9121 * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
9122 for `long' switch expression into a plain warning.
9124 * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
9125 (yylex): Don't pedwarn for "inline" in C99 mode.
9127 * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
9129 * ggc-page.c (debug_print_page_list, alloc_page, free_page,
9130 ggc_alloc): Likewise.
9131 * bb-reorder.c (dump_scope_forest_1): Likewise.
9133 2000-07-22 Aldy Hernandez <aldyh@redhat.com>
9135 * reload.c (find_reloads_toplev): Add new parameter
9137 (find_reloads): Add new parameter to find_reloads_toplev calls.
9139 2000-07-22 Jeffrey Oldham <oldham@codesourcery.com>
9141 * collect2.c (main): Typo fixed.
9142 * diagnostic.c: Typo fixed.
9143 * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
9144 * eh-common.h: Typo fixed.
9145 * emit-rtl.c (start_sequence): Typo fixed.
9146 * flow.c (find_label_refs): Typo fixed.
9147 (calculate_global_regs_live): Typo fixed.
9148 (mark_regno_cond_dead): Typo fixed.
9149 (create_edge_list): Typos fixed.
9150 (verify_edge_list): Typo fixed.
9151 * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
9152 * loop.c (strength_reduce): Typo in function name fixed.
9153 * rtl.h: Added comments. Typo in function name fixed.
9154 * rtlanal.c: Typo in function name fixed.
9155 (insn_dependant_p): Rename to ...
9156 (insn_dependent_p): ... this.
9157 (computed_jumo_p): Typo fixed.
9159 2000-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9161 * system.h (__FUNCTION__): Wrap definition in #ifndef.
9163 2000-07-21 David Edelsohn <edelsohn@gnu.org>
9165 * rs6000.h (SIZE_TYPE): Define.
9167 2000-07-21 Mark Mitchell <mark@codesourcery.com>
9169 * ssa.c (rename_insn_1): Don't rename registers that are
9172 2000-07-21 Zack Weinberg <zack@wolery.cumb.org>
9174 * diagnostic.c (trim_filename, fancy_abort): Moved here from
9176 (fatal_function, set_fatal_function): Removed.
9177 (fatal): Don't prepare for or call the fatal_function.
9178 (diagnostic_lock, error_recursion): New.
9179 (diagnostic_for_decl, report_diagnostic): Guard against
9180 re-entering the error reporting routines.
9181 (fancy_abort): Assume function is not NULL.
9183 * errors.c (fancy_abort): New. Assume function is not NULL.
9184 * tradcpp.c (fancy_abort): Assume function is not NULL.
9186 * system.h: Provide default definition of __FUNCTION__.
9187 * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
9188 Always use __FUNCTION__ in definition of abort.
9190 * varray.h: Likewise.
9191 * toplev.h: Likewise. Don't prototype set_fatal_function.
9193 2000-07-20 Geoff Keating <geoffk@cygnus.com>
9195 * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
9197 * glimits.h: Don't do #if defined for ARCH_PPC.
9199 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
9200 constants of size no larger than a pointer should go in the TOC.
9201 Add 'MODE' parameter.
9202 (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
9203 ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
9204 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
9205 * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
9206 * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
9207 * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
9208 (rs6000_legitimize_address): Likewise.
9209 (rs6000_emit_move): Likewise.
9210 (rs6000_select_rtx_section): Likewise.
9211 (output_toc): Deal properly with outputting small constants like
9212 HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
9213 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
9214 MODE parameter. Put small constants in the TOC.
9216 * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
9218 (rs6000_emit_move): When reload calls us with an illegitimate
9219 address, exit early. Move the change_address calls to one place
9220 at the end of the routine. Merge the SImode and DImode expanders.
9221 When called by reload to put an integer into a FP register, force
9224 * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
9226 (rs6000_hash_constant): Hash mode too.
9227 (toc_hash_function): Allow for key_mode.
9228 (toc_hash_eq): Structures are different if key_mode differs.
9229 (output_toc): Add 'mode' parameter. Save key_mode.
9230 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
9231 Pass 'mode' parameter.
9232 * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
9234 * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
9235 for vtable references.
9237 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
9238 choice, don't put integer values in FP regs.
9240 Thu Jul 20 18:13:52 2000 Jeffrey A Law (law@cygnus.com)
9242 * flow.c (verify_flow_info): Revamp code to verify that the
9243 head and end of each basic block are in the insn chain.
9245 Thu Jul 20 18:02:35 2000 Michael Matz <matzmich@cs.tu-berlin.de>
9247 * gcse.c (record_one_set): Prepend instead of append onto
9248 reg_set_table, making it O(n) instead O(n^2).
9249 * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
9250 Use a queue instead of a stack as worklist.
9252 2000-07-20 Kazu Hirata <kazu@hxi.com>
9254 * h8300.c (two_insn_adds_subs_operand): Fix a typo.
9255 * h8300.h (OK_FOR_T): New.
9256 (EXTRA_CONSTRAINT): Support OK_FOR_T.
9257 * h8300.md: Use inc/dec.[wl] for increment/decrement
9258 by 1 and 2 in HI and SI modes.
9260 2000-07-20 Jim Wilson <wilson@cygnus.com>
9262 * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
9263 larger than 14 bits.
9265 2000-07-20 Zack Weinberg <zack@wolery.cumb.org>
9267 * cppmacro.c (CAN_PASTE_AFTER): New macro.
9268 (count_params): Don't set GNU_REST_ARGS on anything.
9269 (save_expansion): Set PASTE_LEFT only on tokens for which
9270 CAN_PASTE_AFTER is true, or which are named operators.
9272 * cpplex.c (parse_args): Distinguish between a rest argument
9273 given one empty argument, and a rest argument given zero arguments.
9274 (maybe_paste_with_next): Look for VOID_REST tag, and trigger
9275 deletion of previous token based on that.
9276 (get_raw_token): Flatten some control structure.
9278 * cpplib.h (CPP_LAST_EQ): Correct.
9279 (VOID_REST): New token flag.
9280 (GNU_REST_ARGS): Delete.
9282 * tradcpp.c (main): Don't munge -D options.
9283 (make_definition): Bring -D handling in line with cpplib.
9284 (do_define): Strip all leading whitespace from macro definitions.
9286 2000-07-20 David Billinghurst <David.Billinghurst@riotinto.com.au>
9288 * Makefile.in (tradcpp): Depend on intl.o and version.o.
9290 2000-07-20 Bruce Korb <bkorb@gnu.org>
9292 * fixincl/check.tpl: strip the platform specific types before testing
9293 * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
9294 * fixincl/fixincl.tpl: use platform specific types
9295 * fixincl/fixlib.h: include the platform specific types
9296 * fixincl/inclhack.def(gnu_types): don't supply the types
9297 * fixincl/fixincl.x: regen
9299 2000-07-19 Jim Wilson <wilson@cygnus.com>
9301 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
9304 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
9306 * tradcpp.c (rescan): Do not recognize directives when the #
9309 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
9311 Implement C++ named operators.
9313 * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
9314 of operators allowed in #if and having an _EQ variant. Add
9315 CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
9316 (cpp_token flags): Add NAMED_OP.
9317 (enum node_type): Add T_OPERATOR.
9318 (struct cpp_hashnode): Add code slot to value union.
9319 * cpphash.h (spec_nodes): Remove n_defined.
9321 * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
9322 (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
9323 (is_macro_disabled): Tweak error messages.
9325 * cpplib.c (get_define_node): Disallow all named operators as
9326 macro names. Tweak error messages.
9327 (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
9329 * cppinit.c (builtin_array): Add entries for the named operators.
9330 * cppexp.c (lex): Check for CPP_DEFINED token.
9331 (priority table): Add entries for CPP_MIN and CPP_MAX.
9332 (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
9334 2000-07-19 Bernd Schmidt <bernds@cygnus.co.uk>
9336 * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
9337 larger than the array of cuids.
9338 (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
9341 2000-07-19 Bruce Korb <bkorb@gnu.org>
9343 * fixinc/fixincl.c: Convert to using a table of environment variables
9344 and activate the auto-edit marker on the fixed output files.
9345 * fixinc/fixlib.h: Define the environment table
9346 * fixinc/fixincl.sh: export the ${INPUT} dir
9347 * fixinc/check.tpl: likewise
9349 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
9351 * gcc.c (.h spec): Fix typo.
9353 Wed Jul 19 01:22:15 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
9355 * Makefile.in: Fix tradcif.c path.
9357 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
9359 * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
9362 * cpphash.h (TOKEN_NAME): New macro.
9363 (_cpp_spell_operator): Deleted.
9364 (token_spellings): Now _cpp_token_spellings.
9366 * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
9367 * cpplex.c: Use OP and TK macros when expanding the
9368 TTYPE_TABLE. Eliminate token_names. For non-OPERATOR tokens,
9369 store the stringification of the enumeration name (CPP_CHAR,
9370 etc.) in the name slot of token_spellings.
9371 Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
9372 token_spellings directly.
9373 * cpplib.c: Use TOKEN_SPELL.
9375 * cpplex.c (_cpp_push_token): If the token being pushed back
9376 is the previous token in this context, just subtract one from
9378 * cppmacro.c (save_expansion): Clear aux field when storing a
9381 2000-07-18 Jakub Jelinek <jakub@redhat.com>
9383 * cpplex.c (cpp_scan_buffer): Output line command even at the stop
9384 buffer, provided it is not NULL.
9386 2000-07-18 Alexandre Oliva <aoliva@redhat.com>
9388 * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
9389 case of invalid volatile re-declaration.
9391 2000-07-18 Jakub Jelinek <jakub@redhat.com>
9393 * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
9394 (expand_call): Adjust caller.
9396 2000-07-17 Gabriel Dos Reis <gdr@codesourcery.com>
9398 * diagnostic.h (report_diagnostic): Change prototype.
9400 * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
9401 diagnostic_for_decl): Change prototype.
9402 (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
9403 error, warning, error_with_file_and_line,
9404 warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
9405 Adjust call to report_diagnostic, diagnostic_for_decl.
9406 (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
9407 (output_verbatim, verbatim): Adjust call to output_do_verbatim.
9409 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
9410 varaible argument list.
9412 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
9414 * cpphash.c: Don't include hashtab.h. Most macro-handling code
9415 moved to cppmacro.c.
9416 (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
9417 dump_hash_helper): Delete.
9418 (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
9419 cpp_forall_identifiers): New. Implement specialized version of
9420 Vlad's expandable hash table.
9421 (cpp_lookup): Use new functions.
9422 (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
9424 * cppmacro.c: New file.
9425 * cppinit.c (dump_macros_helper): New.
9426 (cpp_finish): Iterate over the identifier table directly.
9427 * cpplex.c (parse_name): Calculate the hash of the identifier
9428 while we scan it. Use _cpp_lookup_with_hash when we can.
9430 * cpphash.h: Update prototypes.
9431 (xcnewvec, HASHSTEP): New helper macros.
9432 * cpplib.h: Update prototypes.
9433 * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
9434 (cppmacro.o): New rule.
9435 (cpphash.o): Update deps.
9437 * cppmain.c: Do not set pfile->printer if no_output is on.
9439 2000-07-15 Neil Booth <neilb@earthling.net>
9441 * cpplib.c: Change all directive-handler functions to return
9443 * cpphash.h: Update typedefs.
9445 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
9447 * configure: Regenerate.
9449 * extend.texi (Extended Asm): Mention that a memory clobber
9450 does not count as a side-effect.
9452 * unroll.c (copy_loop_body): Fix one instance of using host
9453 arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
9456 * tlink.c (scan_linker_output): Tweak for output of AIX ld.
9458 2000-07-17 Richard Henderson <rth@cygnus.com>
9460 * config/ia64/ia64.md (movdi): Split out load address code.
9461 New post-reload splitter for symbolic operands.
9462 (movdi_internal): Abort if we didn't split symbolic operands
9463 when we should have.
9464 * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
9465 (ia64_reorg): Split insns when not optimizing.
9466 * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
9468 Mon Jul 17 23:43:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
9470 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
9471 instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
9473 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
9475 * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
9477 2000-07-17 Jason Merrill <jason@redhat.com>
9479 * Makefile.in (clean): Remove libgcc directory.
9481 * configure.in (-Wno-long-long check): Use higher-level macros.
9483 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
9485 * simplify-rtx.c (simplify_binary_operation): Recognize
9486 (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
9487 (simplify_ternary_operation): Do not examine MODE_BITSIZE of
9488 a CONST_INT, it will always be zero.
9490 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
9492 * loop.c (check_dbra_loop) : Return if more than one condition is
9493 present to control the loop.
9495 Mon Jul 17 08:26:35 2000 Clinton Popetz <cpopetz@cygnus.com>
9497 * mips.c (mips_expand_prologue): Don't calculate the last argument
9498 register unless we need it. When we are calculating this, make
9499 sure FUNCTION_ARG is giving us a REG.
9501 2000-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9503 * flow.c (libcall_dead_p): Use single_set to verify the insn
9504 has only one set and get for analysis.
9505 (propagate_one_insn): Don't pass the PATTERN of the insn.
9507 2000-07-17 Mark Klein <mklein@dis.com>
9509 * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
9511 2000-07-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
9513 * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
9514 * configure.in (TARGET_GETGROUPS_T): Evaluate.
9515 * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
9516 of second argument of getgroups.
9517 * configure, config.in: Rebuilt.
9519 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
9521 * simplify-rtx.c (simplify_relational_operation): Two signed
9522 values with equal high words are less/greater than each other if
9523 their low words are less/greater when considered as unsigned.
9525 Mon Jul 17 02:37:06 2000 Marc Espie <espie@openbsd.org>
9527 * configure.in (vax-*-openbsd): Change to new style configuration,
9528 add collect2/float_format information.
9529 * configure: Rebuilt.
9530 * config/vax/openbsd1.h: New.
9531 * config/vax/openbsd.h: New.
9532 * config/vax/t-openbsd: New.
9534 2000-07-17 Chip Salzenberg <chip@valinux.com>
9536 * c-common.c (shorten_compare): Quiet warnings about unsigned
9537 comparisons with zero when they occur in a system header.
9539 2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
9541 * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
9542 update to describe current practice.
9544 * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
9546 * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
9547 references to C9X. Change references to -fstd and -flang-isoc9x
9550 * c-common.c (scan_char_table): Allow "z" length modifiers on
9552 (check_format_info): Use TYPE_DOMAIN on the type matched against
9553 for "z" formats, to retrieve the language size_t rather than the
9556 * c-common.c (check_format_info): Do not make a pedantic objection
9557 to the 'L' length modifier if used with a floating point type
9560 * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
9561 constants in C99 mode.
9563 2000-07-17 Kazu Hirata <kazu@hxi.com>
9565 * h8300.md: Fix the format of mac.
9566 (movsi_h8300hs): Output a tab after stmac instead of a space.
9568 * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
9569 profitable adds/subs sequences.
9571 * fold-const.c: Fix comment typos.
9573 2000-07-16 Laurynas Biveinis <lauras@softhome.net>
9575 * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
9577 2000-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9579 * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
9581 2000-07-16 Neil Booth <NeilB@earthling.net>
9583 * cpplex.c: Update comments.
9584 * README.Portability: Small update.
9586 2000-07-16 Neil Booth <NeilB@earthling.net>
9588 * README.Portability: Small update.
9590 2000-07-15 Richard Henderson <rth@cygnus.com>
9592 * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
9593 * config/ia64/ia64.c (ia64_move_ok): New function.
9594 * config/ia64/ia64.md (movqi, movqi_internal): Use it.
9595 (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
9597 2000-07-15 Zack Weinberg <zack@wolery.cumb.org>
9599 * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
9600 immediately following a paste operator.
9601 * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
9602 (cpp_reader_init): Call it, if HOST_EBCDIC.
9603 (cpp_handle_options): Do not sort option list here.
9604 (handle_option): Rename to cpp_handle_option and export.
9605 * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
9606 _cpp_get_token directly.
9607 (cpp_scan_line): Return 0 at EOF, 1 otherwise.
9608 * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
9609 * cpplib.h: Prototype cpp_handle_option. Update prototype of
9612 2000-07-15 Richard Henderson <rth@cygnus.com>
9614 * fold-const.c (extract_muldiv): Don't optimize past an unsigned
9615 cast around an expression. Tidy other unsigned tests.
9617 2000-07-15 Gabriel Dos Reis <gdr@codesourcery.com>
9619 * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
9620 v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
9621 (v_message_with_decl): Rename to ...
9622 (format_with_decl): ... this. Tweak
9623 (diagnostic_for_decl): New function.
9624 (fatal_io_error): Use verbatim in lieu of notice.
9625 (announce_function): Use verbatim.
9626 (default_print_error_function): Likewise.
9627 (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
9630 2000-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9632 * mips.c (function_arg_pass_by_reference): Don't do automatic
9633 aggregate initialization.
9634 (machine_dependent_reorg): Initialize variable `mode'.
9636 * mips.md (absdi2): Change variable `regno1' to unsigned int.
9637 (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
9638 conflicts with sys/param.h macro of the same name.
9639 (reload_outdi): Likewise.
9641 2000-07-15 Michael Meissner <meissner@redhat.com>
9643 * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
9644 == CONST + INCREMENT, don't overwrite the tree node for FOO++,
9645 create a new node instead.
9647 2000-07-15 Neil Booth <NeilB@earthling.net>
9649 * README.Portability: Correct example about calling a function
9650 through a pointer to function. Format wide paragraphs.
9652 2000-07-15 Michael Meissner <meissner@redhat.com>
9654 * README.Portability: Update integer suffixes and function
9657 2000-07-15 Neil Booth <NeilB@earthling.net>
9659 * README.Portability: Small update.
9661 2000-07-15 Neil Booth <NeilB@earthling.net>
9663 * README.Portability: New file.
9665 Fri Jul 14 18:13:53 2000 Mark P Mitchell <mark@codesourcery.com>
9667 * INSTALL: Give special instructions for building GCC on Irix 6.
9668 * config/mips/x-iris6 (CC): Don't set it.
9671 2000-07-14 Jason Merrill <jason@redhat.com>
9673 * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
9674 register in the stack and later in another register, use the new
9677 Fri Jul 14 10:25:53 2000 Clinton Popetz <cpopetz@cygnus.com>
9679 * config/mips/mips.md: (absdi2): Handle sign_extend for
9682 2000-07-14 Nathan Sidwell <nathan@codesourcery.com>
9684 * cpplib.c (do_pragma_dependency): Tidy warning messages.
9686 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
9688 * .cvsignore: Correct typo.
9690 2000-07-13 Mark Mitchell <mark@codesourcery.com>
9692 * .cvsignore: Add generated YACC files.
9693 * objc/.cvsignore: New file.
9695 2000-07-14 Neil Booth <NeilB@earthling.net>
9697 * cpplex.c (adjust_column): New funcion.
9698 (skip_whitespace): Use it.
9699 (skip_block_comment): Use it, and warn about /*/* with
9702 2000-07-14 Neil Booth <NeilB@earthling.net>
9704 * cpphash.c (struct macro_info): Add new members.
9705 (_cpp_free_definition): Delete the macro directly.
9706 (count_params): Return void, with first token of
9707 expansion in struct macro_info on success.
9708 (parse_define): Return int. Hoist syntax checking from
9709 save_macro_expansion. Leave call to save_expansion to
9710 _cpp_create_definition.
9711 (alloc_macro): Needs just 2 arguments.
9712 (free_macro): Delete.
9713 (save_expansion): Don't perform syntax check.
9714 (_cpp_create_definition): Call save_expansion.
9716 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9718 * genrecog.c (write_header): Split long string.
9720 * cpphash.c (macro_info): Don't use the `signed' keyword.
9722 * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
9724 2000-07-13 Jakub Jelinek <jakub@redhat.com>
9726 * calls.c (stored_args_map): New variable.
9727 (check_sibcall_argument_overlap_1): New.
9728 (check_sibcall_argument_overlap): New.
9729 (expand_call): Initialize stored_args_map.
9730 Call check_sibcall_argument_overlap.
9732 2000-07-13 Bruce Korb <bkorb@gnu.org>
9734 * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
9735 (emit_gnu_type): utility procedure for gnu_type_fix
9736 (gnu_type_fix): implement various pre-processor guards around
9737 standard types so these types can be defined over and over
9738 * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
9739 types alluded to above will have GNU-compliant base types
9740 * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
9741 * fixinc/inclhack.def: add test_text entries and utilize the new
9742 "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
9743 * fixinc/fixincl.x: regenerate
9745 2000-07-12 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
9747 * diagnostic.c (vline_wrapper_message_with_location,
9748 v_message_with_file_and_line, v_error_with_file_and_file,
9749 v_error_for_asm, v_warning_for_asm, vfatal,
9750 v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
9751 vsorry, verror, vwarning, vpedwarn): Remove.
9752 (diagnostic_for_asm): New function.
9753 (pedwarn, error, warning, pedwarn_with_file_and_line,
9754 error_with_file_and_line, warning_with_file_and_line, sorry,
9755 error_for_asm, warning_for_asm, fatal): Reimplement.
9756 (finish_diagnostic): Clear diagnostic info as well.
9758 2000-07-13 Neil Booth <NeilB@earthling.net>
9760 * c-common.h (flag_digraphs): New.
9761 * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
9762 * c-lex.c (yylex): Use flag_digraphs to decide whether to
9765 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
9767 * gcc.c (do_spec_1): Add new %B operator.
9768 (set_input): Prepare for %B.
9770 (link_command_spec): Move up with the other tm.h-
9771 overrideable specs. Factor out the portion conditional on
9772 LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
9773 (struct compiler): Just have a single spec string. All users
9775 (default_compilers): Remove unnecessary braces.
9776 (static_specs): Update.
9778 (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
9780 (C and assembly specs): Use the new named specs, as appropriate.
9782 * objc/lang-specs.h: Use the new named specs.
9783 Remove unnecessary braces.
9785 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
9787 * gcc.c (execute): If a subprocess gets a fatal signal, report
9788 strsignal() of the signal number, and ask for a bug report.
9789 Do not do this for SIGPIPE if there's already been an error.
9791 * tradcpp.c: Don't include signal.h. Don't catch SIGPIPE.
9794 * tradcif.c: Remove.
9796 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
9798 * final.c (profile_function): Do not emit profile counters in
9799 the data section, if NO_PROFILE_COUNTERS is defined.
9800 * tm.texi: Document NO_PROFILE_COUNTERS. Update doc for
9803 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
9804 (FUNCTION_PROFILER): Just emit a call to mcount.
9806 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
9808 * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
9810 * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
9811 cpplib.c, cpplib.h: Eradicate all traces of code dependent on
9812 traditional, lang_chill, or lang_fortran.
9814 * cppfiles.c: #undef strcmp to suppress warning about macros
9815 used without arguments.
9816 (_cpp_execute_include): Use f, not fname, in "No include path"
9818 (_cpp_pop_file_buffer): New function.
9819 * cpplib.c: Don't include <sys/mman.h>.
9820 (cpp_push_buffer): Set line_base and lineno in new buffer.
9821 (cpp_pop_buffer): Use _cpp_pop_file_buffer.
9823 * cpplex.c: Move all prototypes and structure declarations to the
9824 top of the file. Properly parenthesise some macro arguments.
9825 (cpp_scan_line): New function.
9826 (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
9827 don't need to walk up the stack counting.
9829 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9831 * c-common.c (combine_strings): Emit a pedantic warning when a
9832 string length is greater than the minimum ANSI C is required
9835 Wed Jul 12 13:24:30 2000 Jeffrey A Law (law@cygnus.com)
9837 * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
9838 * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
9840 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9842 * c-decl.c (define_label): Warn about identifier conflicts with
9843 labels in traditional C.
9845 * c-parse.in (unop +): Warn about the unary plus operator for
9848 * c-typeck.c (store_init_value): Warn about automatic aggregate
9849 initialization for traditional C.
9851 * invoke.texi (-Wtraditional): Document new warnings.
9853 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
9855 * Makefile.in (c-errors.o): Fix thinko in dependency.
9857 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
9859 * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
9860 -traditional, -ftraditional, or -traditional-cpp was given.
9861 Do not pass -traditional to the preprocessor.
9862 (.S spec): Likewise. Don't bother defining __ASSEMBLER__, the
9863 preprocessor does it automatically.
9864 * objc/lang-specs.h: Likewise. Don't bother defining __OBJC__.
9866 * ch/lang-specs.h: Always use tradcpp. Do not pass
9867 -traditional, -trigraphs, or -pedantic to the preprocessor.
9868 * f/lang-specs.h (.F spec): Likewise. Don't bother defining
9871 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
9873 * cppexp.c (LOGICAL): Delete macro.
9874 (_cpp_parse_expr): Do not use UNARY for unary +. Implement ||
9877 * cpphash.c (HASHSIZE): Increase to 4096.
9878 (struct hashdummy): Add hash field.
9879 (eq_HASHNODE): Compare unreduced hashes, then lengths, then
9880 the string values using memcmp.
9881 (cpp_lookup): Set dummy.hash.
9883 Wed Jul 12 13:15:16 2000 Marc Espie <espie@openbsd.org>
9885 * configure.in (m88k-openbsd): Express configuration using new fragment
9887 * configure: Rebuilt.
9888 * m88k/aout-dbx.h: New.
9889 * m88k/openbsd.h: New.
9890 * m88k/xm-openbsd.h: New.
9892 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9894 * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
9896 2000-07-12 Richard Henderson <rth@cygnus.com>
9898 * reload.c (push_secondary_reload): Make sure to add the new
9899 reload at the end, after acquiring secondary memory.
9901 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9903 * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
9905 * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
9906 lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
9908 * c-parse.in (stmt): Delete unused variables.
9910 * convert.c (convert_to_vector): Likewise.
9912 * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
9914 * tree.c (finish_vector_type): Prototype.
9916 2000-07-12 Bruce Korb <bkorb@gnu.org>
9918 * fixinc/fixfixes.c: use xmalloc
9919 * fixinc/fixincl.c(initialize): set program name for xmalloc
9920 * fixinc/fixlib.c(must_malloc): obsolete
9921 (is_cxx_header): no longer used - disabled
9922 (skip_quote): inserted and disabled for future use
9923 * fixinc/fixlib.h: reflects above
9924 * fixinc/fixtests.c: removed dinkleberries
9926 2000-07-12 Neil Booth <NeilB@earthling.net>
9928 * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
9929 * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
9931 * cpphash.c: (struct macro_info, alloc_macro, free_macro,
9932 struct toklist_dummy): New.
9933 (cpp_free_definition): Free macros with free_macro.
9934 (count_params): Don't save paramter spellings. Save macro
9935 information in a struct macro_info.
9936 (parse_define): Don't allocate a token list.
9937 (save_expansion): Allocate the macro's token list, and
9938 save parameter spellings if necessary. Use TOKEN_SPELL.
9939 (cpp_create_definition): Make list const.
9941 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
9943 * c-typeck.c (pedwarn_c99): Move to
9944 * c-errors.c: ... Here.
9945 * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
9946 * diagnostic.c (verror, vwarning, vpedwarn): Make static.
9947 * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
9948 (c-errors.o): List dependency.
9950 2000-07-12 Mark Mitchell <mark@codesourcery.com>
9952 * c-parse.c: Remove.
9953 * c-parse.h: Likewise.
9954 * c-parse.y: Likewise.
9955 * objc/objc-parse.c: Likewise.
9956 * objc/objc-pasre.y: Likewise.
9958 2000-07-11 Rodney Brown <RodneyBrown@pmsc.com>
9960 * gcc.texi: Fix minor typos
9961 * extend.texi: Fix minor typos
9963 2000-07-11 Marc Espie <espie@openbsd.org>
9965 * collect2.c (main): Recognize .lo as object files.
9967 2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
9969 * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
9972 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
9973 with MAP_ANONYMOUS and MAP_ANON.
9974 * configure, config.in: Rebuilt.
9976 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
9978 * diagnostic.c (save_output_state): Remove.
9979 (restore_output_state): Likewise.
9980 (clear_text_info): New function.
9981 (clear_diagnostic_info): Likewise.
9982 (output_text_length, is_starting_newline, output_prefix,
9983 line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
9984 prefixing_policy, output_buffer_ptr_to_format_args): New macros
9985 (set_real_maximum_length, output_set_maximum_length,
9986 output_set_prefix, output_get_prefix, output_set_maximum_length,
9987 output_destroy_prefix, init_output_buffer,
9988 reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
9989 output_add_newline, output_add_character, output_add_space,
9990 output_append_r, output_append, wrap_text, output_format,
9991 output_do_printf, output_printf, output_do_verbatim,
9992 output_verbatim, verbatim): Use them.
9993 (output_clear): Split into cleat_text_info and
9994 clear_diagnostic_info.
9995 (struct output_state): Move to...
9997 * diagnostic.h: ...Here
9998 (struct output_buffer): Adjust.
10000 2000-07-11 Zack Weinberg <zack@wolery.cumb.org>
10002 * cpplex.c (parse_name): No longer inline (premature optimization).
10003 (do_pop_context): Fold into pop_context.
10004 (pop_context): Returns int.
10005 (lex_next): Hoist test for end of directive into pop_context.
10006 (push_macro_context): Returns int; takes just reader and token.
10007 Hoist test for excessive nesting to caller.
10008 (push_arg_context): Returns void; takes just reader and token.
10009 Do not call stringify_arg or get_raw_token.
10010 (get_raw_token): Convert tail recursion through push_arg_context
10011 to a loop at this level. Call stringify_arg here if appropriate.
10012 (maybe_paste_with_next): Convert tail recursion to a while loop.
10013 Hoist test of paste_level to caller.
10015 (stringify_arg): Push arg context at beginning.
10016 (cpp_get_token): Split out core into _cpp_get_token. Call
10017 process_directive here. Throw away CPP_PLACEMARKER tokens.
10018 (_cpp_get_token): Convert tail recursion through
10019 push_macro_context to a loop at this level.
10020 (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
10021 _cpp_get_raw_token): Use _cpp_get_token.
10022 (_cpp_skip_rest_of_line): Drop the context stack directly; do
10023 not call pop_context.
10024 (_cpp_run_directive): Call lex_next directly.
10026 * cpphash.h: Prototype _cpp_get_token.
10027 * cppexp.c (lex): Use it.
10028 * cpphash.c (parse_define): Use it.
10029 * cpplib.c (get_define_node, do_undef, parse_include,
10030 read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
10031 do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
10032 parse_ifdef, validate_else): Use it.
10033 (cpp_push_buffer): Tweak error message; abort if anyone tries
10034 to push a buffer while macro expansions are stacked.
10036 2000-07-11 Donn Terry <donnte@microsoft.com>
10038 * cpplex.c (free_macro_args, save_token): Cast arg of free
10039 and/or xrealloc to PTR.
10040 (_cpp_init_input_buffer): Clear all fields of the base context.
10042 Tue Jul 11 15:28:21 CDT 2000 Clinton Popetz <cpopetz@cygnus.com>
10044 * gensupport.c (process_rtx): Make rtl checking stop
10045 complaining about the define_insn while it is being
10046 converted from a define_insn_and_split.
10048 Tue Jul 11 16:26:17 2000 Clinton Popetz <cpopetz@cygnus.com>
10050 * config/mips/mips.c (simple_memory_operand): Access the
10051 INTVAL of the address, not it's containing MEM.
10053 2000-07-11 Bruce Korb <bkorb@gnu.org>
10055 * fixinc/fixtests.c(double_slash): obsolete
10056 (else_endif_label): likewise
10057 * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
10058 (libc1_ifdefd_memx): correct initial comment
10059 and omit the #if/#endif pair from the memxxx declarations
10060 * fixinc/fixincl.x: regen
10062 2000-07-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10064 * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
10066 2000-07-11 Neil Booth <NeilB@earthling.net>
10068 * cpp.texi: Update.
10070 2000-07-11 Neil Booth <NeilB@earthling.net>
10072 * cppinit.c: (cpp_reader_init): Allow digraphs by default.
10073 (handle_option): Set digraphs according to standard.
10074 Merge OPT_lang_c89 handler with OPT_std_c89.
10076 * cpplex.c: (lex_line, can_paste): Honour digraphs in
10077 accordance with the digraphs flag.
10079 * cpplib.h: (struct cpp_options): New option digraphs.
10081 2000-07-10 Hans-Peter Nilsson <hp@axis.com>
10082 Bruce Korb <bkorb@gnu.org>
10084 * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
10085 * fixinc/fixincl.x: Regenerate.
10086 * fixinc/tests/base/testing.h: Add testcase.
10088 2000-07-10 Richard Henderson <rth@cygnus.com>
10090 * config/ia64/ia64.c (got_symbolic_operand): New.
10091 (symbolic_operand, move_operand): Revert 0701 change.
10092 * config/ia64/ia64.h (PREDICATE_CODES): Update.
10093 * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
10094 * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
10095 split the offset into a 14-bit low part instead of a 13-bit low part.
10096 (load_fptr): Mark the mem as unchanging.
10097 (load_symptr): Use got_symbolic_operand.
10099 2000-07-10 Nick Clifton <nickc@cygnus.com>
10101 * libgcc2.c (next_stack_level): Cast result of computation to
10102 (void **) so that the assignment does not generate a warning.
10104 2000-07-10 Chandrakala Chavva <cchavva@redhat.com>
10106 * flags.h : Add new variable flag_single_precision_constant.
10107 * toplev.c (display_help) : Add -fsingle-precision-constant option.
10108 (flag_single_precision_constant): New.
10109 * c-lex.c (yylex): Convert floating point constant to single
10110 precision constant.
10111 * invoke.texi : Add documentation for this new option.
10113 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
10115 * diagnostic.c (output_octal): Second parameter is unsigned.
10116 (output_long_octal): Likewise.
10117 (output_hexadecimal): Likewise.
10118 (output_long_hexadecimal): Likewise.
10119 (output_format): Adjust arguments extraction. Tweak.
10120 (output_verbatim, verbatim): End variable argument list.
10121 (report_diagnostic): Improve documentation.
10123 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
10125 * c-common.h (build_stmt): Declare.
10126 (build_continue_stmt): Likewise.
10127 (build_break_stmt): Likewise.
10128 (build_return_stmt): Likewise.
10130 * c-decl.c (do_case): Rewrite to do what previously done in
10133 * c-semantics.c (build_stmt): Define.
10134 (build_return_stmt): Likewise.
10135 (build_break_stmt): Likewise.
10136 (build_continue_stmt): Likewise.
10137 (build_case_label): Likewise.
10139 * c-parse.in (BREAK): Change to build tree, then generate RTL.
10140 (CONTINUE): Likewise.
10141 (RETURN): Likewise.
10143 (DEFAULT): Likewise.
10145 * c-parse.y: Regenerate.
10146 * c-pasre.c: Likewise.
10148 2000-07-09 Jason Merrill <jason@redhat.com>
10150 * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
10152 * tree.h (STRIP_NOPS): Check for error_mark_node.
10153 (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
10154 (dwarf2out_*): Remove duplicate declarations.
10156 * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
10157 DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
10159 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
10161 * diagnostic.c (wrap_text): New function.
10162 (maybe_wrap_text): Likewise.
10163 (output_add_string): Use it.
10164 (output_format): Likewise.
10165 (count_error): Use verbatim instead of notice.
10166 (report_error_function): Likewise. Don't use plain fprintf.
10167 (finish_diagnostic): New function.
10168 (output_do_verbatim): Tweak. Commonalize functionalities in
10169 output_verbatim and verbatim.
10170 (output_verbatim): Adjust.
10171 (verbatim): Likewise.
10172 (report_diagnostic): Define.
10174 * diagnostic.h (report_diagnostic): Prototype.
10176 2000-07-09 Zack Weinberg <zack@wolery.cumb.org>
10178 * cppexp.c (_cpp_parse_expr): Don't use unary plus.
10180 2000-07-09 Neil Booth <NeilB@earthling.net>
10182 * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
10183 IShspace, ISspace: Update.
10185 * cppinit.c: ISTABLE: Update.
10188 * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
10189 (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
10190 (skip_block_comment, skip_line_comment, parse_string,
10191 lex_line): Use is_vspace rather than IS_NEWLINE.
10192 (skip_whitespace, lex_line): Clean up to use is_nvspace.
10193 (lex_line): Use KNOWN_DIRECTIVE. Any kind of directive
10195 (lex_next): Unconditionally stop if within a directive.
10196 Treat directives within macro invocations as directives
10197 (after parse_args emits error), not as the argument.
10199 2000-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
10201 * diagnostic.c (diagnostic_args): New macro.
10202 (diagnostic_msg): Likewise.
10203 (output_formatted_integer): Likewise.
10204 (output_state): New data type.
10205 (digit_buffer): Make global.
10206 (output_add_integer): Rename to output_decimal. Squeeze
10208 (output_long_decimal, output_unsigned_decimal,
10209 output_long_unsigned_decimal, output_octal, output_long_octal,
10210 output_hexadecimal, output_long_hexadecimal): New functions.
10211 (output_append_r): New function.
10212 (output_append): Tweak.
10213 (output_flush_on): Rename to output_to_stream.
10214 (output_format): Change prototype. Improve documentation. Handle
10215 more format specifiers.
10216 (build_location_prefix): Rename to context_as_prefix.
10217 (output_notice): Rename to output_do_printf.
10218 (output_printf): Tweak.
10219 (line_wrapper_printf): Likewise.
10220 (vline_wrapper_message_with_location): Adjust call to renamed
10222 (v_message_with_decl): Likewise.
10223 (default_print_error_function): Likewise.
10224 (save_output_state): New function.
10225 (restore_output_state): Likewise.
10226 (output_do_verbatim): Likewise.
10227 (output_verbatim): Define.
10228 (verbatim): Likewise.
10230 * diagnostic.h (printer_fn): Change return type from void to int.
10231 Improve documentation.
10232 (output_add_integer): Rename to output_decimal.
10233 (output_flush_on, output_format): Don't export.
10234 (output_verbatim, verbatim): Declare.
10236 2000-07-08 Toon Moene <toon@moene.indiv.nluug.nl>
10238 * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
10239 Check whether c divides op1 exactly if operation is not
10242 2000-07-08 Richard Henderson <rth@cygnus.com>
10244 * final.c (final): Do not abort when reg-stack introduces
10247 2000-07-08 Zack Weinberg <zack@wolery.cumb.org>
10249 * cpplib.h (struct cpp_name): Now struct cpp_string.
10250 (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
10251 CPP_HEADER_NAME): Change to type S.
10252 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
10253 field, a cpp_hashnode *. All references to val.name updated
10254 to use val.str or val.node as appropriate.
10255 (struct cpp_reader): Add spec_nodes field.
10256 (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
10258 * cpphash.h (struct spec_nodes): New.
10259 (enum spell_type): Reorder. Only SPELL_STRING tokens use
10260 val.str. All references to 'spelling > SPELL_NONE' updated to
10263 (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
10264 pfile->buffer->inc are not NULL before dereferencing them.
10266 * cpplex.c (parse_name): Take a pointer to the current token,
10267 plus current position and limit as args; return the new
10268 position; don't copy the text of a name into the string
10269 buffer, instead call cpp_lookup and store the node pointer.
10270 If extending a token, copy out the text of the old into a
10271 scratch buffer, append the new, look that up and store the new
10272 node pointer. Inline.
10273 (maybe_paste_with_next): If the result of paste is a NAME,
10274 then look up the pasted text and store its node pointer.
10275 (lex_line): Adjust for new parse_name interface.
10276 Check for L"str", L'str' using spec_nodes->n_L.
10277 (spell_token): SPELL_IDENT tokens have their spelling in
10278 val.node->name. Handle SPELL_STRING tokens that don't have
10280 (_cpp_expand_name_space,
10281 (can_paste): Check for L ## "str" using spec_nodes->n_L.
10282 (cpp_get_token, special_symbol): No need to call cpp_lookup.
10283 (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
10284 return 1=equal 0=not, not a tristate.
10286 * cpphash.c (var_args_str): Delete.
10287 (find_param): Compare node fields directly.
10288 (is__va_args__): Use CPP_PEDANTIC. Just compare
10289 token->val.node with spec_nodes->n__VA_ARGS__.
10290 (dump_funlike_macro): Don't use var_args_str.
10292 * cpplib.c (_cpp_check_directive): Just walk through
10293 spec_nodes->dirs comparing pointers.
10294 (get_define_node, do_pragma_poison, detect_if_not_defined,
10295 parse_ifdef): The identifier has already been looked up.
10296 (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
10298 (do_if): Only call detect_if_not_defined at beginning of file.
10299 (_cpp_parse_assertion): Only copy string pointers for
10300 SPELL_STRING tokens.
10301 (pragma_dispatch): Take a node pointer and examine its name
10303 (_cpp_init_stacks): Also initialize the spec_nodes structure.
10305 * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
10307 (cpp_cleanup): Free pfile->spec_nodes. Call _cpp_cleanup_* in
10308 reverse order from the corresponding _cpp_init_* routines.
10310 * cppexp.c (parse_number, parse_charconst, parse_defined,
10311 lex): Check val.node->type instead of calling cpp_defined.
10312 Use spec_nodes entries where appropriate.
10314 * fix-header.c, scan-decls.c: Update for interface changes.
10316 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
10318 * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
10319 emitting aux_truncdfsf2.
10321 2000-07-03 Donn Terry (donnte@microsoft.com)
10323 * cppinit.c (print_help): split overlong line into ISO C89
10326 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
10328 * cppexp.c: Update all code for new lexer interface.
10329 (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
10330 (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
10331 * cpplex.c (token_names): Trim leading CPP_ from names; make
10332 the strings unsigned.
10333 (_cpp_spell_operator): New.
10334 (is_macro_disabled): Disable all macros if rescanning
10336 (_cpp_get_directive_token): Remove.
10338 * cppinit.c: Don't set no_macro_expand.
10339 * cpplib.c (read_line_number, do_line): Check only for EOF,
10341 * cpphash.h: Update prototypes.
10342 * cpplib.h (CPP_VSPACE): Remove.
10343 (struct cpp_reader): Remove no_macro_expand.
10345 2000-07-08 Neil Booth <NeilB@earthling.net>
10347 * cpphash.c (is__va_args__): New function.
10348 (count_params): Fix line reported in error messages. Use
10349 is__va_args__. Don't return ')' on error. Flag GNU style
10350 rest args macro definitions.
10351 (parse_define): Check macro name is not __VA_ARGS__.
10352 (save_expansion): Check identifier in non-varargs-macro is
10353 not __VA_ARGS__. Don't flag GNU_VARARGS.
10354 * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
10355 (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
10356 than per-token GNU_VARARGS.
10357 * cpplib.h (GNU_VARARGS): Remove.
10358 (GNU_REST_ARGS): New.
10360 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
10362 * i386.md (call_pop, call, call_value_pop): Do not set
10363 current_function_uses_pic_offset_table for calls to static
10364 functions or indirect calls.
10366 2000-07-07 Jim Wilson <wilson@cygnus.com>
10368 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
10369 is_predicate_reg, then take max write_count of register pair.
10371 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10373 * tradcpp.c (main): Rename label `include' to `add_include' to
10374 avoid conflicts with variable `include' in traditional C.
10376 2000-07-07 Jakub Jelinek <jakub@redhat.com>
10378 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
10380 2000-07-07 Jakub Jelinek <jakub@redhat.com>
10382 * sibcall.c (uses_addressof): Add INMEM argument, check for
10383 current_function_internal_arg_pointer outside of MEM rtxs in addition
10385 (sequence_uses_addressof): Update caller.
10387 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
10389 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
10392 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10394 * system.h (UNION_INIT_ZERO): New macro for initializing union
10395 members in structs.
10397 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
10399 2000-07-07 Neil Booth <NeilB@earthling.net>
10401 * cpp.texi: Update.
10403 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
10405 * final.c (final): Detect out of bounds array access to
10406 the insn_lengths array.
10408 2000-07-07 Kazu Hirata <kazu@hxi.com>
10410 * fold-const.c (fold): Fix a comment typo.
10412 2000-07-07 Neil Booth <NeilB@earthling.net>
10414 * cpp.texi: Update to new lexer.
10416 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
10418 * tradcpp.c: New file.
10419 * tradcif.y: New file.
10420 * tradcif.c: New generated file.
10422 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
10423 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
10424 dependencies of C. Install tradcpp from install-common, in
10427 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
10429 * cppinit.c: Include cppdefault.h. Refer to
10430 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
10431 to GCC_INCLUDE_DIR and its length.
10432 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
10433 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
10434 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
10436 (include_defaults_array): Move to cppdefault.c.
10438 * cppdefault.h: New file.
10439 * cppdefault.c: New file.
10441 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
10442 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
10443 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
10446 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10448 * reload.c (push_reload): When seeing if can reuse a register,
10449 check extra registers against widest of INMODE and OUTMODE.
10451 2000-07-06 Neil Booth <NeilB@earthling.net>
10453 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
10454 based on full length of predicate.
10456 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
10458 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
10459 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
10461 2000-07-05 Kazu Hirata <kazu@hxi.com>
10463 * h8300-proto.h: Fix formatting.
10464 * h8300.c: Likewise.
10465 * h8300.h: Likewise.
10467 2000-07-05 Jim Wilson <wilson@cygnus.com>
10469 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
10472 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
10474 * invoke.texi: Fix minor typos
10475 * md.texi: Fix minor typos
10477 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
10479 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
10481 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
10483 * cpplex.c: Don't include sys/mman.h.
10484 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
10486 * cpplib.c: Include sys/mman.h and obstack.h.
10487 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
10489 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
10490 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
10491 bother freeing if stack entries (they will be freed with their buffer).
10492 (do_endif): Free if stack entries from the buffer obstack.
10493 (push_conditional): Allocate if stack entries from the buffer obstack.
10495 (find_answer): Rename to _cpp_find_answer.
10496 (do_assert, do_unassert): Update.
10498 * cpphash.h: Update prototypes.
10499 (xobnew): New convenience macro.
10500 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
10502 (struct cpp_hashnode): Remove disabled field.
10504 * cppinit.c: Don't include hashtab.h or splay-tree.h.
10505 (report_missing_guard): Moved to cppfiles.c.
10506 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
10508 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
10509 cpp_cleanup_includes. Don't destroy hashtab or
10510 all_include_files here.
10511 (cpp_finish): Use _cpp_report_missing_guards.
10513 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
10514 (_cpp_init_include_table): Rename _cpp_init_includes.
10515 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
10517 * cppexp.c (parse_assertion): Update for new name of
10520 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
10522 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
10524 * cpplib.c (do_ident): s/VSPACE/EOF/
10526 2000-07-05 Neil Booth <NeilB@earthling.net>
10528 * cpplex.c: Fix trigraph replacement within strings.
10530 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10532 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
10534 * xcoffout.c (assign_type_number): Constify.
10535 (xcoffout_source_file): Add static prototype. Don't needlessly
10536 cast away const-ness.
10538 2000-07-04 Jason Merrill <jason@redhat.com>
10540 * frame.h (frame_state): Move base_offset to end.
10542 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
10544 * calls.c (emit_library_call_value_1): Revert previous change.
10546 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
10548 * fix-header.c (struct partial_proto): Remove unnecessary fields.
10549 (recognized_extern, recognized_function, read_scan_file):
10550 Update for new scheme.
10551 (check_protection): It's still a multiple include guard even
10552 if it doesn't always trigger.
10553 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
10555 * scan.h: Declare struct cpp_token. Update prototypes.
10557 2000-07-03 Neil Booth <neilb@earthling.net>
10558 Zack Weinberg <zack@wolery.cumb.org>
10560 Complete overhaul of the lexer and macro expander.
10562 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
10563 arg, arglist, argdata, reflist, collect_objlike_expansion,
10564 collect_funlike_expansion, collect_params,
10565 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
10566 unsafe_chars, macarg, compare_defs, special_symbol,
10567 scan_arguments, stringify, funlike_macroexpand,
10568 _cpp_quote_string, monthnames): Delete.
10569 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
10570 _cpp_create_definition, _cpp_dump_definition,
10571 dump_hash_helper): Adjust.
10572 (find_param, count_params, parse_define, var_args_str,
10573 check_macro_redefinition, save_expansion): New.
10575 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
10576 parse_string, output_line_command, trigraph_replace,
10577 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
10578 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
10579 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
10580 _cpp_skip_rest_of_line): Modify.
10582 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
10583 find_position, null_warning, bump_column, expand_name_space,
10584 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
10585 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
10586 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
10587 _cpp_prescan): Delete.
10589 (dump_param_spelling, process_directive, lex_next,
10590 is_macro_disabled, stringify_arg, expand_context_stack,
10591 output_token, make_string_token, alloc_number_token,
10592 special_symbol, duplicate_token, maybe_paste_with_next,
10593 can_paste, prevent_macro_expansion, restore_macro_expansion,
10594 get_temp_token, release_temp_tokens, quote_string,
10595 token_names, token_spellings, _cpp_expand_name_space,
10596 _cpp_glue_header_name, _cpp_reserve_name_space,
10597 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
10598 placemarker_token, eof_token, cpp_context, macro_args,
10599 get_raw_token, parse_arg, parse_args, save_token,
10600 push_arg_context, push_macro_context, pop_context,
10601 do_pop_context, free_macro_args, _cpp_get_line,
10602 _cpp_run_directive): New.
10604 * cpplib.c (validate_else, parse_include, push_conditional,
10605 pass_thru_directive, read_line_number, parse_ifdef,
10606 detect_if_not_defined, _cpp_check_directive, do_define,
10607 do_undef, do_include, do_import, do_include_next, do_error,
10608 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
10609 top_pragmas, do_pragma_gcc, do_pragma_implementation,
10610 do_pragma_poison, do_pragma_system_header,
10611 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
10612 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
10613 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
10614 cpp_defined): Update for new scheme.
10615 (strtoul_for_line, get_define_node, dump_macro_name,
10616 _cpp_check_linemarker, _cpp_parse_assertion): New.
10617 (_cpp_handle_directive, do_pragma_default): Delete.
10619 * cpphash.h (struct predicate): Now struct answer.
10620 (enum spell_type, struct token_spelling, struct directive,
10621 directive_handler): New.
10622 Update prototypes. Remove unused macros.
10623 * cpplib.h: Update prototypes. Remove unused macros,
10624 structure definitions, and fields.
10626 * cpperror.c (print_containing_files, v_message): Adjust.
10627 * cppexp.c (parse_assertion, lex, parse_escape,
10628 _cpp_parse_expr): Adjust.
10629 * cppfiles.c (open_include_file, _cpp_execute_include,
10630 _cpp_compare_file_date, cpp_read_file, read_include_file):
10632 * cppinit.c (dump_special_to_buffer): Delete.
10633 (append_include_chain, merge_include_chains, cpp_reader_init,
10634 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
10635 cpp_finish, handle_option, print_help): Adjust.
10636 * cppmain.c (main): Adjust.
10638 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
10640 * cppspec.c (lang_specific_driver): Use double quotes in error
10643 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
10645 * calls.c (emit_library_call_value_1): Use valreg instead
10646 of hard_libcall_value.
10648 2000-07-03 Geoff Keating <geoffk@cygnus.com>
10650 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
10651 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
10652 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
10660 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
10661 mode instead of wider_mode is being used.
10663 2000-07-03 Jakub Jelinek <jakub@redhat.com>
10665 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
10666 of 'r'. Use q_regs_operand.
10667 (andsi_1+2): Use q_regs_operand.
10669 2000-07-03 Jakub Jelinek <jakub@redhat.com>
10671 * builtins.c (get_memory_rtx): Always put into alias set 0.
10673 2000-07-03 Nick Clifton <nickc@cygnus.com>
10675 * config/arm/arm.md: Fix post increment and pre increment
10676 peepholes so that they do not generate UNPREDICATBLE opcodes.
10677 (ie ones where the increment clobbers the source/destination).
10679 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
10681 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
10682 change too big for -mtiny-stack" a warning, if larger than 63.
10683 (out_set_stack_ptr): Change the logic so -mno-interrupts is
10684 always safe to use on possible future devices.
10685 (function_prologue): Write SPH before SPL, for consistency.
10686 If interrupt_func_p true, we know we have enabled interrupts.
10687 (avr_num_arg_regs): New function. Round up to even number of
10688 bytes if no -mpack-args or if calling a libgcc function.
10689 (function_arg, function_arg_advance): Use it.
10690 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
10691 Output "movw" if available.
10692 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
10693 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
10694 (asm_output_section_name): Add blanks for consistent output.
10695 (encode_section_info): Set TREE_READONLY for progmem data to
10696 avoid gas warnings about changed section attributes.
10697 (avr_hard_regno_mode_ok): Force non-QImode data to start in
10698 even numbered registers on devices with "movw".
10699 * config/avr/avr.h (MASK_*): Define bits for target_flags.
10700 (TARGET_SWITCHES): Mark help strings for translation.
10701 Add new -mpack-args and -menhanced switches.
10702 (TARGET_OPTIONS): Mark help strings for translation.
10703 (progmem_section): Add section attributes.
10704 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
10705 Output "movw" if available.
10706 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
10708 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
10709 call convention (arguments aligned on even registers).
10710 (_cleanup, _exit): Make weak symbols libc can override.
10712 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10714 * fp-bit.h: New file.
10716 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
10717 Comment #endif statements.
10718 (__thenan_sf, __thenan_df): Add missing braces around initializer.
10720 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
10722 * gcse.c (compute_pre_data): Compute ae_kill using other local
10723 properties instead of calling compute_ae_kill.
10725 * alias.c (init_alias_analysis): Do not call
10726 prologue_epilogue_contains until after reload has completed.
10728 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
10730 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
10731 (genrtl_finish_compound_stmt): Likewise.
10732 (genrtl_compound_stmt): Change to return void.
10734 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
10735 move code from here to ...
10736 (genrtl_compound_stmt): ... here.
10737 (genrtl_finish_compound_stmt): Remove.
10738 (expand_stmt): Add comment.
10740 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
10742 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
10745 2000-07-02 Jakub Jelinek <jakub@redhat.com>
10747 * cpplib.h (struct cpp_reader): New field include_depth.
10748 (struct cpp_printer): Rename last_bsd to last_id.
10749 * cppfiles.c (read_include_file): Bump include_depth.
10750 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
10751 (output_line_command): Output correct #line if a header
10752 is including itself and is not protected against multiple inclusion.
10753 Use include_depth instead of buffer_stack_depth, last_id instead of
10755 * cppinit.c (cpp_start_read): Initialize last_id instead of
10758 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
10760 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
10761 (c-semantics.o): New target.
10763 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
10764 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
10765 (genrtl_clear_out_block): Likewise.
10766 (genrtl_goto_stmt): Likewise.
10767 (genrtl_expr_stmt): Likewise.
10768 (genrtl_decl_stmt): Likewise.
10769 (genrtl_if_stmt): Likewise.
10770 (genrtl_while_stmt): Likewise.
10771 (genrtl_do_stmt): Likewise.
10772 (genrtl_return_stmt): Likewise.
10773 (genrtl_for_stmt): Likewise.
10774 (genrtl_break_stmt): Likewise.
10775 (genrtl_continue_stmt): Likewise.
10776 (genrtl_scope_stmt): Likewise.
10777 (genrtl_switch_stmt): Likewise.
10778 (genrtl_case_label): Likewise.
10779 (genrtl_begin_compound_stmt): Likewise.
10780 (gerntl_finish_compound_stmt): Likewise.
10781 (genrtl_compound_stmt): Likewise.
10782 (genrtl_asm_stmt): Likewise.
10783 (genrtl_decl_cleanup): Likewise.
10784 (DECL_ANON_UNION_ELEMS): Likewise.
10785 (emit_local_var): Likewise.
10786 (make_rtl_for_local_static): Likewise.
10787 (expand_cond): Likewise.
10788 (expand_stmt): Likewise.
10789 (c_expand_return): Likewise.
10790 (c_expand_start_case): Likewise.
10791 (do_case): Likewise.
10792 (COMPOUND_STMT_NO_SCOPE): Likewise.
10793 (c_expand_asm_operands): Likewise.
10794 (NEW_FOR_SCOPE_P): New macro.
10795 (expand_expr_stmt_fn): New type.
10797 (set_current_function_name_declared): Likewise.
10798 (current_function_name_declared): Likewise.
10799 (lang_expand_stmt): Likewise.
10800 (stmts_are_full_exprs_p): Likewise.
10801 (anon_aggr_type_p): Likewise.
10802 (lang_expand_expr_stmt): Likewise.
10803 (build_case_label): Likewise.
10805 * c-decl.c (lang_expand_expr_stmt): Initialize.
10806 (stmts_are_full_exprs_p): Define.
10807 (current_function_name_declared): Likewise.
10808 (do_case): Likewise.
10809 (lang_expand_stmt): Likewise.
10810 (set_current_function_name_declared): Likewise.
10811 (anon_aggr_type_p): Likewise.
10813 * c-semantics.c: New file.
10814 (expand_cond): Moved from cp/semantics.c.
10815 (genrtl_do_pushlevel): Likewise.
10816 (genrtl_clear_out_block): Likewise.
10817 (genrtl_goto_stmt): Likewise.
10818 (genrtl_expr_stmt): Likewise.
10819 (genrtl_decl_stmt): Likewise.
10820 (genrtl_if_stmt): Likewise.
10821 (genrtl_while_stmt): Likewise.
10822 (genrtl_do_stmt): Likewise.
10823 (genrtl_return_stmt): Likewise.
10824 (genrtl_for_stmt): Likewise.
10825 (genrtl_break_stmt): Likewise.
10826 (genrtl_continue_stmt): Likewise.
10827 (genrtl_scope_stmt): Likewise.
10828 (genrtl_switch_stmt): Likewise.
10829 (genrtl_case_label): Likewise.
10830 (genrtl_begin_compound_stmt): Likewise.
10831 (genrtl_finish_compound_stmt): Likewise.
10832 (genrtl_compound_stmt): Likewise.
10833 (genrtl_asm_stmt): Likewise.
10834 (genrtl_decl_cleanup): Likewise.
10835 (make_rtl_for_local_static): Moved from cp/decl.c.
10836 (emit_local_var): Likewise.
10837 (expand_stmt): Define.
10839 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
10840 (c_expand_return): Likewise.
10841 (c_expand_start_case): Likewise.
10843 2000-07-01 Richard Henderson <rth@cygnus.com>
10845 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
10846 with the low 13 bits set.
10847 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
10848 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
10849 of the low 13 bits into a CONST plus an adddi3.
10850 (load_symptr): Set RTX_UNCHANGING_P.
10852 See ChangeLog.3 for earlier changes.