1 2000-11-09 Neil Booth <neilb@earthling.net>
3 * cpphash.c: Move cpp_defined here from cpplib.c.
4 * cpplib.c: Update comments, move cpp_defined to cpphash.c.
5 * cpplex.c (_cpp_lex_token): Don't leave the lexer at EOL.
6 * cppmacro.c (cpp_get_token): Update comments, no need now
7 to catch the CPP_EOF meaning EOL case.
9 2000-11-08 Geoffrey Keating <geoffk@redhat.com>
11 * config/sparc/sparc.c (sparc_va_arg): When the required alignment
12 is more than that provided, copy to a temporary.
14 2000-11-09 Alexandre Oliva <aoliva@redhat.com>
16 * mklibgcc.in (EXTRA_MULTILIB_PARTS): Prevent `make' from
17 interpreting $out as a macro assignment.
18 * Makefile.in (T_TARGET): New auxiliary macro and target.
19 (all): Add a target right in the beginning, so that we don't build
22 2000-11-09 Graham Stott <grahams@redhat.com>
24 * config/i386/i386.md (mmx_pinsrw): Output operands in correct
25 order for -mintel-syntax. Remove comment now that the operand
26 order has been checked.
27 (mmx_pextrw): Likewise.
28 (mmx_pshufw): Likewise.
30 2000-11-09 Jakub Jelinek <jakub@redhat.com>
32 * builtins.c (c_strlen): Use TREE_STRING_LENGTH - 1 for max.
33 (c_getstr): New function.
34 (expand_builtin_strstr): Do nothing if -fcheck-memory-usage.
35 If both arguments are constant string, optimize out.
36 (expand_builtin_strchr, expand_builtin_strrchr): New functions.
37 (expand_builtin_strpbrk): Use c_getstr, do nothing if
39 (expand_builtin_fputs): Likewise.
40 (expand_builtin_strcmp): Add MODE argument.
41 Use even if !HAVE_cmpstrsi.
42 Optimize the case when both arguments are constant strings.
43 (expand_builtin): Adjust expand_builtin_strcmp caller.
44 Call expand_builtin_strchr and expand_builtin_strrchr.
45 * c-common.c (c_common_nodes_and_builtins): Add strchr and strrchr
47 * builtins.def (BUILT_IN_STRRCHR): Add.
49 2000-11-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
51 * fixinc/gnu-regex.c: Rename EGCS LOCAL markers to GCC LOCAL.
53 2000-11-09 Joseph S. Myers <jsm28@cam.ac.uk>
55 * calls.c (expand_call, emit_library_call_value_1), collect2.c
56 (scan_prog_file), config/a29k/a29k.c (print_operand),
57 config/sparc/sparc.c (order_regs_for_local_alloc): Use memcpy ()
59 * real.h: Use memcmp () instead of bcmp ().
60 * config/m88k/m88k.c (m88k_layout_frame), config/sh/sh.c
61 (split_branches), config/sparc/sparc.c (ultra_flush_pipeline,
62 ultrasparc_sched_init, ultrasparc_sched_reorder),
63 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Use memset ()
65 * config/vax/xm-xms.h (FILE_NAME_NONDIRECTORY): Use strrchr ()
67 * configure.in: Don't check for bzero, bcmp, index or rindex.
68 * configure, config.in: Regenerate.
69 * system.h: Don't include declarations for bzero, bcmp, index or
71 * config/i386/xm-beos.h, config/rs6000/xm-beos.h: Don't define
72 bzero, bcmp, index or rindex.
74 Wed Nov 8 21:58:20 2000 Christopher Faylor <cgf@cygnus.com>
76 * config/i386/cygwin.h: Add -no-win32 switch. Separate -mno-cygwin
77 include and library paths from -mcygwin case. Parameterize some
78 declarations to avoid warnings. Use standard locations for include and
81 2000-11-08 Nick Clifton <nickc@redhat.com>
83 * config/arm/arm.md (mulsidi3adddi): Change output operand
84 constraint from "=&" to "=&".
85 (umulsidi3adddi): Change output operand constraint from "=&" to
88 2000-11-08 Richard Henderson <rth@redhat.com>
90 * flow.c (init_propagate_block_info): Protect the rtx stored in
91 mem_set_list from modification by find_auto_inc.
92 (mark_set_1): Likewise.
94 2000-11-08 Neil Booth <neilb@earthling.net>
96 Move directive handling into the lexer itself.
98 * cpplex.c (_cpp_lex_token): Handle directives directly.
99 In the case of a directive interrupting a function-like
100 macro invocation, use extra_char since read_ahead is
101 used to store the '#'. Return a CPP_EOF in this case.
102 * cppmacro.c (parse_arg): No need to handle CPP_DHASH any more.
103 (cpp_get_token): Don't handle directives here.
104 * cpplib.h: Remove CPP_DHASH token type.
106 Wed Nov 8 21:53:41 MET 2000 Jan Hubicka <jh@suse.cz>
108 * regmove.c (combine_stack_adjustments_for_blocks): Recognize pushes
109 formed using PRE_MODIFY too.
111 2000-11-08 Mark Mitchell <mark@codesourcery.com>
113 * c-tree.texi (VAR_DECL): Describe representation of GCC's
114 extension for placing variables in particular registers.
116 * c-tree.texi (FUNCTION_TYPE): Clarify TYPE_ARG_TYPES for
117 unprototyped C functions with no parameters.
119 2000-11-08 Jakub Jelinek <jakub@redhat.com>
121 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Cast DELTA to int
122 before passing to fprintf.
124 2000-11-08 Jakub Jelinek <jakub@redhat.com>
126 * function.c (expand_function_start): Cast GET_MODE_SIZE to
127 HOST_WIDE_INT before negating it.
129 2000-11-08 Jakub Jelinek <jakub@redhat.com>
131 * expr.c (expand_expr) [ADDR_EXPR]: Handle when op0 is RETURN_DECL
132 passed in multiple non-contiguous locations.
134 2000-11-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
136 * README.gnat: Remove file.
138 2000-11-08 Alexandre Oliva <aoliva@redhat.com>
140 * mklibgcc.in (EXTRA_MULTILIB_PARTS): Generate multilib parts
143 2000-11-07 Richard Henderson <rth@redhat.com>
145 * dwarfout.c (INSN_LABEL_FMT): Remove.
146 (output_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
147 (dwarfout_label): Remove.
148 * dwarfout.h: Remove it's prototype.
149 * dwarf2out.c (INSN_LABEL_FMT): Remove.
150 (gen_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
151 (dwarf2out_label): Remove.
152 * dwarf2out.h: Remove it's prototype.
153 * final.c (final_scan_insn): Don't call dwarf[2]out_label.
155 2000-11-07 Richard Henderson <rth@redhat.com>
157 * config/ia64/fde-glibc.c (find_fde_for_dso): Do a binary
158 search on the unwind region section.
160 * config/ia64/ia64.md (movbi): Add r/r alternative.
161 (cmovdi_internal_astep): Describe all combinations of register
162 classes for sources & destinations; remove matching constraints.
163 (cmovdi_internal): Likewise.
165 * gcc.c (default_compilers) [@cpp-output]: Add -fpreprocessed.
167 2000-11-07 Richard Henderson <rth@redhat.com>
169 * c-lang.c (start_cdtor, finish_cdtor): New functions.
170 (finish_file): Use them in building constructor/destructor functions.
172 * config/alpha/alpha.h (HAS_INIT_SECTION, LD_INIT_SWITCH,
173 LD_FINI_SWITCH): Move ...
174 * config/alpha/osf.h: ... here.
175 * config/alpha/alpha-interix.h: Don't undef them.
177 2000-11-07 Jeffrey Oldham <oldham@oz.codesourcery.com>
179 * config/mips/t-iris6 (FPBIT): New. Added so that __unorddf2 is
180 included in libgcc.a.
182 (dp-bit.c): Likewise.
183 (fp-bit.c): Likewise.
185 2000-11-07 Nick Clifton <nickc@redhat.com>
187 * config/m88k/m88k.h (GLOBAL_ASM_OP): Add missing tab.
188 (INTERNAL_ASM_OP): Add missing tab.
190 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
192 * alias.c (init_alias_analysis), calls.c (expand_call,
193 emit_library_call_value_1), combine.c (init_reg_last_arrays),
194 cse.c (new_basic_block), dbxout.c (dbxout_type), diagnostic.c
195 (init_output_buffer, set_diagnostic_context), dwarf2out.c
196 (equate_decl_number_to_die, build_abbrev_table), emit-rtl.c
197 (init_emit_once), fold-const.c (mul_double, div_and_round_double),
198 function.c (assign_parms), gcse.c (compute_can_copy,
199 alloc_gcse_mem, alloc_reg_set_mem, record_one_set,
200 compute_hash_table, compute_set_hash_table,
201 compute_expr_hash_table), genattrtab.c (optimize_attrs), global.c
202 (global_alloc, global_conflicts), haifa-sched.c (compute_trg_info,
203 clear_units, schedule_block), integrate.c (initialize_for_inline,
204 expand_inline_function), jump.c (thread_jumps), local-alloc.c
205 (local_alloc), loop.c (combine_movables, count_loop_regs_set,
206 load_mems_and_recount_loop_regs_set), print-tree.c (debug_tree),
207 regclass.c (init_reg_sets, init_reg_sets_1, regclass,
208 record_reg_classes, allocate_reg_info), reload.c
209 (get_secondary_mem, remove_address_replacements, find_reloads),
210 reload1.c (reload, set_initial_label_offsets, finish_spills,
211 reload_as_needed, choose_reload_regs_init,
212 reload_cse_simplify_operands), reorg.c (dbr_schedule), sbitmap.c
213 (sbitmap_zero), simplify-rtx.c (simplify_plus_minus), ssa.c
214 (rename_registers), stmt.c (expand_end_case), unroll.c
215 (unroll_loop), varray.c (varray_grow), objc/objc-act.c: Use memset
216 () instead of bzero ().
218 2000-11-07 Neil Booth <neilb@earthling.net>
220 * cp/lang-specs.h: Fix -save-temps specs under USE_CPPLIB.
222 2000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
224 * c-common.c (combine_strings): Only warn about long strings for C.
226 Tue Nov 7 19:44:30 2000 J"orn Rennecke <amylaar@redhat.com>
228 * combine.c (distribute_notes): Fix typo in last change.
230 2000-11-07 Geoff Keating <geoffk@redhat.com>
232 * config/rs6000/rs6000.md (movdi_internal32+1): Use
233 operand_subreg_force rather than gen_rtx_SUBREG.
234 (movdi_internal32+2): Likewise.
236 2000-11-07 Philip Blundell <philb@gnu.org>
238 * configure.in (arm*-*-linuxaout*): Obsolete, deleted.
239 * config/arm/linux-aout.h: Likewise.
240 * configure: Regenerate.
242 2000-11-07 Philipp Thomas <pthomas@suse.de>
244 * ABOUT-GCC-NLS: Remove the patch for gettext as it has been
245 accepted my the gettext maintainer.
247 2000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
249 * builtins.c (expand_builtin_strpbrk): New function.
250 (expand_builtin): Handle BUILT_IN_STRPBRK.
252 * builtins.def (BUILT_IN_STRPBRK): New entry.
254 * c-common.c (c_common_nodes_and_builtins): Declare builtin
257 2000-11-07 David O'Brien <obrien@dragon.nuxi.com>
259 * config/alpha/freebsd.h: New file -- FreeBSD/alpha architecture file.
260 * POTFILES.in: Add config/alpha/freebsd.h
261 * configure.in: Add alpha*-freebsd support.
262 * configure: Regenerate.
264 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
266 * tree.c (build_common_tree_nodes_2): Make va_list_type_node be a
267 copy of ptr_type_node rather than ptr_type_node itself.
269 Tue Nov 7 06:29:24 2000 J"orn Rennecke <amylaar@redhat.com>
271 * combine.c (recog_for_combine): Allocate uninitialized vector with
273 * recog.c (apply_change_group): Likewise.
275 Tue Nov 7 06:24:02 2000 J"orn Rennecke <amylaar@redhat.com>
277 * flow.c (verify_local_live_at_start): Back out last change.
278 * combine.c (distribute_notes): When parts of a hard reg are
279 neither set nor referenced in PLACE, search backwards for a
280 place to put a REG_UNUSED note; if none found, ask for flow
283 Mon Nov 6 20:08:13 2000 J"orn Rennecke <amylaar@redhat.com>
285 * reload1.c (eliminate_regs_in_insn): Allow a set to be a PARALLEL
286 with (clobber (match_scratch...)).
288 2000-11-06 Neil Booth <neilb@earthling.net>
290 * c-lex.c (init_c_lex): If cpp_start_read fails, exit with
293 2000-11-06 Neil Booth <neilb@earthling.net>
295 * tradcpp.c (special_symbol): Assign an null string rather
296 than writing to an unallocated buffer.
298 2000-11-06 Neil Booth <neilb@earthling.net>
300 * cpplex.c (_cpp_equiv_tokens): Check arg_no in the
303 2000-11-06 Neil Booth <neilb@earthling.net>
305 * c-lex.c (c_lex): Replace tok.val.aux with tok.val.c or
306 tok.val.arg_no as appropriate.
307 * cppexp.c (lex): Similarly.
308 * cpplex.c (_cpp_lex_token, cpp_spell_token, cpp_output_token,
309 cpp_equiv_tokens, cpp_can_paste, cpp_avoid_paste): Similarly.
310 * cppmacro.c (stringify_arg, replace_args, lex_expansion_token,
311 cpp_macro_definition): Similarly.
312 * cpplib.h (struct cpp_token): Replace aux with c and arg_no.
314 2000-11-06 Jakub Jelinek <jakub@redhat.com>
316 * config/sparc/sparc.md (adddi3): If operands[2] is 4096 and
317 operands[1] is constant, calculate the sum and generate movdi.
318 (addsi3): Similarly. Use SImode in call to arith_4096_operand.
319 (subsi3): Use SImode in call to arith_4096_operand.
321 2000-11-06 Jakub Jelinek <jakub@redhat.com>
323 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): On sparc64 we need to
324 adjust %o1, not %o0 if the return type is large structure.
326 2000-11-06 Jakub Jelinek <jakub@redhat.com>
328 * config/sparc/sparc.md (smulsi3_highpart_v8plus, ashldi3_v8plus+1,
329 update_return, flush, flushdi, ffssi2, ffsdi2): Fix output formatting.
331 Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
333 * expmed.c (expand_divmod): For signed divide by 2, prefer
334 a branch and fewer shifts if branches are very cheap.
336 2000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
338 * Makefile.in: Remove all targets related to building
339 distributions and diffs, or INSTALL.
340 * INSTALL, install1.texi: Remove.
341 * configure.in: Remove mention of distdir.
342 * configure: Regenerate.
343 * objc/Make-lang.in: Remove mention of distdir.
345 2000-11-04 Neil Booth <neilb@earthling.net>
347 * cpp.texi: Update for _Pragma.
349 2000-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
351 * gcc.texi (Contributing): Update URL for projects web page.
353 2000-11-04 Neil Booth <neilb@earthling.net>
355 * cpplex.c (parse_string): Don't allow multiline strings in
356 #include family directives.
358 2000-11-04 Neil Booth <neilb@earthling.net>
360 * cpplib.c (do_line): Only warn pedantically if not reading
363 2000-11-04 Alexandre Oliva <aoliva@redhat.com>
365 * calls.c (emit_call_1) [sibcall_pop]: Use n_popped instead of
368 2000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
370 * builtins.c (expand_builtin_strlen): Remove unused mode
372 * gcc.c (process_command): Remove unused variable.
373 * fold-const.c: Include expr.h.
374 * recog.c: Include reload.h.
375 * Makefile.in (recog.o, fold-const.o): Update deps.
377 2000-11-02 Geoffrey Keating <geoffk@cygnus.com>
379 * fixinc/gnu-regex.c: Change 'CYGNUS LOCAL' to 'EGCS LOCAL'.
381 Fri Nov 3 13:41:04 2000 Mark P Mitchell <mark@codesourcery.com>
383 * config/mips/iris6.h (SUBTARGET_CC1_SPEC): Remove -static
385 (STARTFILE_SPEC): Likewise.
386 (LINK_SPEC): Likewise.
388 2000-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
390 * Makefile.in (fold-const.o): Depend on $(GGC_H), not ggc.h.
391 (toplev.o): Likewise for $(LOOP_H)/loop.h and $(REGS_H)/regs.h.
392 (simplify-rtx.o): Likewise for $(GGC_H)/ggc.h.
394 2000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
396 * c-decl.c (duplicate_decls, copy_lang_decl), dwarfout.c
397 (dwarfout_line), gcc.c (main, save_string), tree.c (init_obstacks,
398 perm_calloc, get_identifier, maybe_get_identifier,
399 real_value_from_int_cst, simple_cst_equal), varasm.c
400 (assemble_name, assemble_real, immed_real_const_1,
401 compare_constant_1, decode_rtx_const, output_constant_pool): Use
402 strrchr () instead of rindex (). Use memcmp () instead of bcmp
403 (). Use memcpy () instead of bcopy (). Use memset () instead of
406 2000-11-03 Nathan Sidwell <nathan@codesourcery.com>
408 * cppfiles.c (open_file): If already read, then don't reopen.
409 Immediately close an empty file.
411 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
413 * expr.h (fold_builtin): Move declaration...
414 * tree.h (fold_builtin): ... here.
416 Fri Nov 3 05:41:07 2000 J"orn Rennecke <amylaar@redhat.com>
418 * flow.c (verify_local_live_at_start): Allow hard regs to die.
420 2000-11-02 Neil Booth <neilb@earthling.net>
423 * a29k/a29k.h, a29k/unix.h, a29k/vx29k.h,
424 alpha/alpha-interix.h, alpha/alpha.h, alpha/linux.h,
425 alpha/openbsd.h, alpha/osf.h, alpha/vms.h, alpha/vxworks.h,
426 alpha/win-nt.h, arc/arc.h, arm/arm.h, arm/conix-elf.h,
427 arm/linux-aout.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
428 arm/riscix1-1.h, arm/semiaof.h, arm/unknown-elf-oabi.h, arm/vxarm.h,
429 c4x/rtems.h, clipper/clix.h, convex/convex.h, d30v/d30v.h,
430 elxsi/elxsi.h, fr30/fr30.h, h8300/h8300.h, i370/linux.h, i370/mvs.h,
431 i370/oe.h, i386/386bsd.h, i386/aix386ng.h, i386/beos-elf.h,
432 i386/bsd386.h, i386/crtdll.h, i386/cygwin.h, i386/dgux.h,
433 i386/djgpp-rtems.h, i386/djgpp.h, i386/freebsd-aout.h, i386/freebsd.h,
434 i386/gnu.h, i386/i386-interix.h, i386/i386.h, i386/linux-aout.h,
435 i386/linux-oldld.h, i386/linux.h, i386/lynx-ng.h, i386/lynx.h,
436 i386/mach.h, i386/mingw32.h, i386/moss.h, i386/netbsd.h,
437 i386/netware.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
438 i386/osfelf.h, i386/osfrose.h, i386/ptx4-i.h, i386/rtems.h,
439 i386/rtemself.h, i386/sco.h, i386/sco4.h, i386/sco4dbx.h, i386/sco5.h,
440 i386/scodbx.h, i386/sequent.h, i386/sol2.h, i386/sun.h, i386/sysv3.h,
441 i386/sysv4.h, i386/uwin.h, i386/vsta.h, i386/vxi386.h, i386/win-nt.h,
442 i386/win32.h, i860/fx2800.h, i860/i860.h, i860/mach.h, i860/sysv3.h,
443 i860/sysv4.h, i960/i960.h, i960/rtems.h, i960/vx960-coff.h,
444 ia64/ia64.h, ia64/linux.h, m32r/m32r.h, m68k/3b1.h, m68k/3b1g.h,
445 m68k/a-ux.h, m68k/altos3068.h, m68k/amix.h, m68k/apollo68.h,
446 m68k/crds.h, m68k/ctix.h, m68k/dpx2.h, m68k/hp2bsd.h, m68k/hp320.h,
447 m68k/hp3bsd.h, m68k/hp3bsd44.h, m68k/isi.h, m68k/linux-aout.h,
448 m68k/linux.h, m68k/lynx-ng.h, m68k/lynx.h, m68k/m68kemb.h,
449 m68k/m68kv4.h, m68k/mot3300.h, m68k/netbsd.h, m68k/news.h,
450 m68k/next.h, m68k/openbsd.h, m68k/pbb.h, m68k/plexus.h, m68k/rtems.h,
451 m68k/rtemself.h, m68k/sun2.h, m68k/sun3.h, m68k/sun3mach.h,
452 m68k/tower-as.h, m68k/tower.h, m68k/vxm68k.h, m88k/dgux.h,
453 m88k/dolph.h, m88k/luna.h, m88k/m88k-aout.h, m88k/m88k-coff.h,
454 m88k/openbsd.h, m88k/sysv3.h, m88k/sysv4.h, mips/bsd-4.h,
455 mips/bsd-5.h, mips/dec-bsd.h, mips/dec-osf1.h, mips/gnu.h,
456 mips/iris3.h, mips/iris5.h, mips/iris6.h, mips/linux.h, mips/mips.h,
457 mips/netbsd.h, mips/news4.h, mips/news5.h, mips/nws3250v4.h,
458 mips/openbsd.h, mips/osfrose.h, mips/rtems64.h, mips/sni-svr4.h,
459 mips/svr3-4.h, mips/svr3-5.h, mips/svr4-4.h, mips/svr4-5.h,
460 mips/ultrix.h, ns32k/encore.h, ns32k/merlin.h, ns32k/netbsd.h,
461 ns32k/ns32k.h, ns32k/pc532-mach.h, ns32k/pc532.h, ns32k/sequent.h,
462 ns32k/tek6000.h, ns32k/tek6100.h, ns32k/tek6200.h, pa/pa-hiux.h,
463 pa/pa-hpux.h, pa/pa-hpux7.h, pa/pa-linux.h, pa/pa-osf.h,
464 pa/pa-pro-end.h, pa/pa.h, pa/rtems.h, pj/linux.h, pj/pj.h,
465 romp/romp.h, rs6000/aix.h, rs6000/aix31.h, rs6000/aix41.h,
466 rs6000/aix43.h, rs6000/beos.h, rs6000/eabi.h, rs6000/eabisim.h,
467 rs6000/linux.h, rs6000/lynx.h, rs6000/mach.h, rs6000/rtems.h,
468 rs6000/sysv4.h, rs6000/vxppc.h, sh/elf.h, sh/linux.h, sh/rtems.h,
469 sh/rtemself.h, sh/sh.h, sparc/aout.h, sparc/elf.h, sparc/linux-aout.h,
470 sparc/linux.h, sparc/linux64.h, sparc/lite.h, sparc/litecoff.h,
471 sparc/liteelf.h, sparc/lynx-ng.h, sparc/lynx.h, sparc/netbsd.h,
472 sparc/openbsd.h, sparc/pbd.h, sparc/rtems.h, sparc/rtemself.h,
473 sparc/sol2-sld-64.h, sparc/sol2.h, sparc/sp64-aout.h,
474 sparc/sp64-elf.h, sparc/sp86x-aout.h, sparc/sp86x-elf.h,
475 sparc/sparc.h, sparc/sysv4.h, sparc/vxsim.h, sparc/vxsparc.h,
476 v850/rtems.h, vax/netbsd.h, vax/openbsd.h, vax/ultrix.h, vax/vax.h,
477 vax/vaxv.h, vax/vms.h, we32k/we32k.h
479 Replace -A() with -A=, the new assertion syntax.
481 Thu Nov 2 21:52:35 2000 J"orn Rennecke <amylaar@redhat.com>
483 * combine.c (distribute_notes): Use rtx_equal_p to check elim_i2 /
485 In REG_DEAD handling: When handling parts of multi-hard-reg hard
486 registers, increment the loop counter by the size of the parts;
487 use recursion to handle individual parts.
489 2000-11-02 Neil Booth <neilb@earthling.net>
491 * configure.in: Make integrated CPP the default.
492 * configure: Regenerate.
494 Thu Nov 2 19:20:12 2000 J"orn Rennecke <amylaar@redhat.com>
496 * reload.c (find_equiv_reg): Test all hard registers for membership
497 in the requested class.
499 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
501 * collect2.c (main, write_c_file_stat), gcc.c (translate_options,
502 process_command, main), gcov.c (open_files, output_data), tlink.c
503 (frob_extension, scan_linker_output), toplev.c
504 (file_name_nondirectory): Use strchr () and strrchr () instead of
505 index () and rindex ().
507 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
509 * c-common.c (get_flag_spec, check_format_info_main,
510 check_format_types): Use strchr () instead of index (). Compare
511 against error_mark_node instead of comparing the TREE_CODE against
514 2000-11-02 Zack Weinberg <zackw@Stanford.EDU>
518 * c-lex.c (init_c_lex): Update cpp_start_read call.
519 (cb_ident): Update for new callback prototype.
520 (cb_def_pragma): Update for new cpp_get_token prototype.
521 (c_lex): Similarly. Use cpp_get_line.
523 * c-parse.in (finish_parse): Update for new cpp_finish
526 * cp/lex.c (finish_parse): Similarly.
528 2000-11-01 Geoff Keating <geoffk@cygnus.com>
530 * machmode.def: Add V16QImode.
532 2000-11-01 Richard Henderson <rth@redhat.com>
534 * dwarf2out.c (loc_descriptor_from_tree): Check for null result
535 from rtl_for_decl_location.
536 (add_location_or_const_value_attribute): Likewise.
538 2000-11-01 Neil Booth <neilb@earthling.net>
540 * cpplib.c (run_directive): Use correct line number for output
541 of _Pragma. Remember any in-progress directive.
543 * gcc.dg/cpp/vararg2.c, gcc.dg/cpp/_Pragm1.c: New tests.
545 2000-11-01 Richard Henderson <rth@redhat.com>
547 * stmt.c (expand_start_null_loop): Set continue_label.
549 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
551 * builtins.c (fold_builtin_constant_p, fold_builtin): New functions.
552 (expand_builtin_constant_p): Move parts of the code into
553 fold_builtin_constant_p.
554 (expand_builtin_strlen): Move parts of the code into fold_builtin.
555 * expr.h (fold_builtin): Declare.
556 * fold-const.c (fold): Handle builtin calls.
558 * c-typeck.c (build_function_call): Call fold on the CALL_EXPR.
560 2000-11-01 Richard Henderson <rth@redhat.com>
562 * stmt.c (expand_start_null_loop): New.
563 (expand_end_null_loop): New.
564 * c-semantics.c (genrtl_do_stmt): Use them.
565 * tree.h: Declare them.
567 2000-11-01 Richard Henderson <rth@redhat.com>
569 * cppmain.c (scan_buffer): Don't avoid paste for assembly.
571 2000-11-01 Neil Booth <neilb@earthling.net>
573 * c-parse.in (_yylex): Remove CPP_BACKSLASH case.
574 * cp/spew.c: Similarly.
575 * cpplex.c (_cpp_lex_token): Backslashes are now CPP_OTHER.
576 * cppmacro.c (stringify_arg): Similarly.
577 * cpplib.h (CPP_BACKSLASH): Delete.
579 2000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
581 * builtins.c (expand_builtin_strstr): New function.
582 (expand_builtin): Handle BUILT_IN_STRSTR and BUILT_IN_STRCHR.
584 * builtins.def (BUILT_IN_STRSTR, BUILT_IN_STRCHR): New entries.
586 * c-common.c (c_common_nodes_and_builtins): Declare builtin strstr
589 2000-10-31 Richard Henderson <rth@redhat.com>
591 * config/i386/i386.c (fcmov_comparison_operator): Check for
592 CCFPmode or CCFPUmode instead of CCmode.
593 (ix86_expand_fp_movcc): Call ix86_expand_setcc for most
594 unordered operations as well.
596 2000-10-31 Richard Henderson <rth@redhat.com>
598 * c-semantics.c (genrtl_do_stmt): Use integer_zerop instead
599 of integer_zero_node.
601 2000-10-31 Richard Henderson <rth@redhat.com>
603 * c-semantics.c (genrtl_do_stmt): Special case do/while(0).
605 2000-10-31 Nick Clifton <nickc@redhat.com>
607 * config/arm/unknown-elf.h (UNIQUE_SECTION_P): Do not allow
608 -fdata-sections to override the section attribute of a DECL.
610 2000-10-31 Chris Demetriou <cgd@sibyte.com>
612 * libgcc2.c (__shtab): Remove __shtab variable.
613 * libgcc-std.ver (GCC_3.0): Remove __shtab from symbol list.
614 * Makefile.in (LIB2FUNCS): Remove _shtab from list of library
617 2000-10-31 Jim Wilson <wilson@redhat.com>
619 * defaults.h (ASM_OUTPUT_DEBUG_LABEL): New.
620 * tm.texi (ASM_OUTPUT_DEBUG_LABEL): Document.
621 * dwarf2out.c (dwarf2out_begin_block): Use ASM_OUTPUT_DEBUG_LABEL
622 instead of ASM_OUTPUT_INTERNAL_LABEL.
623 (dwarf2out_end_block, dwarf2out_label): Likewise.
624 * final.c (final_scan_insn, case NOTE_INSN_DELETED_LABEL): Likewise
625 * config/ia64/ia64.h (ASM_OUTPUT_DEBUG_LABEL): Define.
627 2000-10-31 Richard Henderson <rth@redhat.com>
629 * dwarf2out.c (struct dw_loc_descr_struct): Add dw_loc_addr.
630 (size_of_locs): Set it.
631 (output_loc_operands): Use it to compute branch displacement.
632 (int_loc_descriptor): New.
633 (mem_loc_descriptor): Dereference memory in the proper size.
634 Use DW_OP_plus_uconst when possible. Use int_loc_descriptor.
635 (loc_descriptor_from_tree): New.
636 (rtl_for_decl_location): Break out from ...
637 (add_location_or_const_value_attribute): ... here.
638 (add_bound_info): Use loc_descriptor_from_tree.
640 2000-10-31 Neil Booth <neilb@earthling.net>
642 * cpp.texi: Update for new command line assertion syntax.
643 * cpplib.c (cpp_define): Simplify a bit.
644 (cpp_assert, cpp_unassert): Use handle_assertion.
645 (handle_assertion): New function; accept new command line
647 * testsuite/gcc.dg/cpp/assert3.c: New tests.
649 2000-10-31 Neil Booth <neilb@earthling.net>
651 * cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if
652 undefined. Remove #ifdef check.
653 * config/i386/sol2.h, config/rs6000/sol2.h, config/sparc/sol2.h:
654 Define STDC_0_IN_SYSTEM_HEADERS to 1.
656 2000-10-31 Jan Hubicka <jh@suse.cz>
657 Jakub Jelinek <jakub@redhat.com>
659 * config/i386/i386.h: Clarify CCNOmode description in comment.
660 (EXTRA_CC_MODES): Remove CCRCmode.
661 * config/i386/i386.c (ix86_comparison_operator): Remove CCRCmode.
662 (put_condition_code, ix86_match_ccmode): Likewise.
663 (ix86_cc_mode): Likewise. Fix comment.
664 (ix86_expand_strlensi_unroll_1): *rc patterns are gone.
665 * config/i386/i386.md: Add unspec 12 description.
666 (adddi3 split): Use unspec 12 instead of CCRCmode.
667 (addsi3_carry_rc): Remove.
668 (addsi3_cc, addqi3_cc): New patterns.
669 (addsi_3): Swap operands, match CCZmode.
670 (addsi_4): Rewritten.
671 (addsi_5): Renamed from addsi_6.
673 (addhi_3): Swap operands, match CCZmode.
674 (addhi_4): Rewritten.
675 (addhi_5): Renamed from addhi_6.
677 (addqi_3): Swap operands, match CCZmode.
678 (addqi_4): Rewritten.
679 (addqi_5): Renamed from addqi_6. Use =q constraint for clobber.
680 (subsi3_carry_rc): Removed.
681 (iorqi_3): Use =q constraint for clobber.
682 (xorqi_cc_2): Likewise.
683 (negdi2_1 split): Don't use CCRCmode, use ltu instead of gtu.
684 (x86_movsicc_0_m1_rc): Removed.
685 (cmp?i peepholes): Remove neg. Use CCGCmode instead of CCRCmode.
687 2000-10-31 Joseph S. Myers <jsm28@cam.ac.uk>
689 * c-typeck.c (build_unary_op): If pedantic, pedwarn for increment
690 and decrement of complex types.
692 2000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
694 * builtins.c (expand_builtin_fputs): When deleting NOP calls to
695 builtin fputs, ensure we still evaluate the stream in case it
698 2000-10-31 Jakub Jelinek <jakub@redhat.com>
700 * expr.c (do_store_flag): Pass operand_mode instead of GET_MODE (op0)
703 Tue Oct 31 15:33:27 2000 J"orn Rennecke <amylaar@redhat.com>
705 * sh-protos.h (reg_no_subreg_operand, emit_fpscr_use): Don't declare.
706 (fp_extended_operand, emit_fpscr_use): Likewise.
707 * sh.c (reg_no_subreg_operand, fp_extended_operand): Delete functions.
708 (fpul_operand): New function.
709 * sh.h (PREDICATE_CODES): Remove reg_no_subreg_operand and
710 fp_extended_operand. Add fpul_operand.
711 * sh.md (mulsf3, mulsf3_i4): Use fp_arith_reg_operand for "f" operands.
712 (mulsf3_ie, macsf3, cmpgtsf_t, cmpeqsf_t, ieee_ccmpeqsf_t): Likewise.
713 (cmpgtsf_t_i4, cmpeqsf_t_i4, ieee_ccmpeqsf_t_4, negsf2): Likewise.
714 (negsf2_i, sqrtsf2, sqrtsf2_i, abssf2, abssf2_i, adddf3): Likewise.
715 (adddf3_i, subdf3, subdf3_i, muldf3, muldf3_i, divdf3): Likewise.
716 (divdf3_i): Likewise.
717 (floatsisf2): Likewise. Use fpul_operand for 'y' operand.
718 (floatsisf2_i4, floatsisf2_ie, fix_truncsfsi2): Likewise.
719 (fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i): Likewise.
720 (fix_truncdfsi2, fix_truncdfsi2_i, extendsfdf2): Likewise.
721 (extendsfdf2_i4, truncdfsf2, truncdfsf2_i4): Likewise.
723 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
725 * config/i386/i386.c (ix86_init_builtins): Correct return type
726 building v4hi_ftype_v4hi_int_int tree node.
727 (ix86_expand_builtin): Use correct operand numbers 0 and 1.
728 Copy operand 0 into a Pmode register, don't generate a MEM rtx.
730 * config/i386/i386.md (sse_movntdi): Use mmx register constraint
732 (mmx__uavgv8qi3): Correct insn mnemonic.
733 (mmx_psadbw): Correct insn mnemonic. Use V8QI mode for operands 1 and 2.
734 (mmx_punpckhwd): Correct insn mnemonic.
735 (mmx_punpckhdq): Likewise.
736 (mmx_punpcklwd): Likewise.
737 (mmx_punpckldq): Likewise.
738 (prefetch): Use immediare_operand and 'n' constraint for operand 1.
739 Renumber case labels to match the _mm_prefetch constants defined in
742 * recog.c (split_all_insns): Don't try to call cleanup_subreg_operands
743 if the splitter didn't emit new insns.
744 Make sure we call cleanup_subreg_operands even when splitting the last
745 insn in a basic block.
747 * invoke.texi (Debugging Options): Describe -do.
748 * toplev.c (enum_dump_file_index): New entry DFI_postreload.
749 (dump_file): Likewise.
750 (rest_of_compilation): Split .greg dump into .greg and .postreload.
752 2000-10-30 Neil Booth <neilb@earthling.net>
754 * cppfiles.c (stack_include_file): Check for stacked contexts
756 * cpphash.h (_cpp_do__Pragma): New prototype.
757 * cppinit.c (cpp_reader_init): Add _Pragma keyword to hash table.
759 * cpplex.c (skip_escaped_newlines): Only process trigraphs and
760 escaped newlines if !(buffer->from_stage3).
761 (_cpp_lex_token): Warn about missing newlines iff
762 !buffer->from_stage3.
764 * cpplib.c (get__Pragma_string, destringize,
765 _cpp_do__Pragma): New functions.
766 (run_directive): Set output_line for _Pragma to avoid line
767 markers in output. Set from_stage3 and prevent macro expansion
768 for _Pragma and command-line options. Check buffer exhaustion.
769 (cpp_push_buffer): Don't check for stacked macro contexts, as
770 this is perfectly legitimate for _Pragma. Move the check to
771 stack_include_file instead. Set from_stage3 iff buffer is
774 * cpplib.h (struct cpp_buffer): Make warned_cplusplus_comments
775 unsigned. New boolean from_stage3.
776 (struct spec_nodes): Add n__Pragma.
778 * cppmacro.c (enter_macro_context): Flip sense of return value.
779 (_cpp_get_token): Handle _Pragma operator.
781 2000-10-30 Phil Edwards <pme@sources.redhat.com>
783 * gcc.texi: The C++ standard isn't "draft" anymore.
785 2000-10-30 Mark Mitchell <mark@codesourcery.com>
787 * cppmacro.c (builtin_macro): Use NT_VOID, not T_VOID.
789 2000-10-29 Neil Booth <neilb@earthling.net>
791 * cpplib.c (skip_rest_of_line): Use _cpp_get_token.
793 2000-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
795 * toplev.c, flags.h, fold-const.c, real.c, rtl.c,
796 fixinc/inclhack.def: Change comments mentioning C9X to refer to
799 * invoke.texi: Document that -V will only work for very similar
800 versions of driver and compiler.
802 2000-10-29 Neil Booth <neilb@earthling.net>
804 * cppmacro.c (_cpp_create_definition): Optimize the case of
805 a macro defined to itself.
807 2000-10-29 Neil Booth <neilb@earthling.net>
809 * cpplex.c (save_comment): Don't store new lines in C++ comments.
811 2000-10-29 Michael Hayes <mhayes@redhat.com>
813 * integrate.c (copy_insn_list): Copy the unchanging flag for calls.
815 2000-10-28 Geoffrey Keating <geoffk@cygnus.com>
817 * cpphash.c (cpp_forall_identifiers): Add context variable
818 for callback routine.
819 * cppmain.c (dump_macro): Update to match cpp_forall_identifiers
821 (main): Call cpp_forall_identifiers with null context.
822 * cpplib.h (cpp_forall_identifiers): Update prototype.
824 * cppmain.c: Make `parse_in' and `print' static.
826 2000-10-28 Alan Modra <alan@linuxcare.com.au>
828 * c-decl.c (finish_function): Clear c_function_name_declared_p.
830 2000-10-28 Richard Henderson <rth@redhat.com>
832 * regrename.c (scan_rtx_address): Frob action, not class,
833 when trying to disable optimization.
835 2000-10-28 Mark Mitchell <mark@codesourcery.com>
837 * c-semantics.c (make_rtl_for_local_static): Don't clobber
840 2000-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
842 * configure.in: Determine and substitute gcc_version_full.
843 * configure: Regenerate.
844 * gccbug.in: Use it to give full version. Don't allow
847 2000-10-28 Richard Henderson <rth@redhat.com>
849 * recog.c (split_all_insns): Run cleanup_subreg_operands
852 * regrename.c (regrename_optimize): Verify that all registers of
853 a multiple register mode are available.
854 (scan_rtx_address): Accept the mode of the address; all callers
857 * cpplib.c (run_directive): Fix prototype.
859 2000-10-28 Bernd Schmidt <bernds@redhat.co.uk>
861 * reload.c (find_reloads): Distinguish "wins" so that we know whether
862 a given operand won because of a matching constraint or not; then use
863 that information to compute goal_alternative_matched properly.
864 * reload1.c (choose_reload_regs): Never set reload_override_in for an
867 * config/ia64/ia64.h (RTX_COSTS): A few more entries, and a more
868 accurate value for MULT.
869 * config/ia64/ia64.c (ia64_print_operand): Require probability to be
870 2% or > 98% before using static branch prediction bits.
872 2000-10-28 Neil Booth <neilb@earthling.net>
876 * cpplib.c (struct answer): New.
877 (struct if_stack): Use cpp_lexer_pos rather than line and col.
878 Rename cmacro mi_cmacro.
879 (struct directive, KANDR, STDC89, EXTENSION, COND, IF_COND, INCL,
880 IN_I): New directive and flags.
881 (skip_rest_of_line, check_eol, run_directive, glue_header_name,
882 parse_answer, parse_assertion, find_answer): New functions.
883 (parse_ifdef, detect_if_not_defined, validate_else): Remove.
884 (lex_macro_node): New function to replace parse_ifdef and
887 (_cpp_handle_directive): New function, combines _cpp_check_directive
888 and _cpp_check_linemarker.
890 (do_define, do_undef, parse_include, do_include, do_import,
891 do_include_next, read_line_number, do_line, do_ident, do_pragma,
892 do_pragma_once, do_pragma_poison, do_pragma_dependency):
893 Update for new token getting interface.
895 (do_ifdef, do_ifndef, do_if, do_else, do_endif, push_conditional)
896 : Update for new multiple-include optimisation technique.
897 (do_elif): Don't forget to invalidate controlling macros.
899 (unwind_if_stack, cpp_defined, cpp_push_buffer, cpp_pop_buffer): Update.
900 (parse_assertion, parse_answer, find_answer, _cpp_test_assertion):
901 Functions to handle assertions with the new token interface.
902 (do_assert, do_unassert): Use them.
904 (cpp_define, _cpp_define_builtin, cpp_undef, cpp_assert, cpp_unassert):
907 (_cpp_init_stacks): Register directive names. Don't register special
910 * cpperror.c (print_containing_files, _cpp_begin_message): Update to
911 new position recording regime.
912 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
913 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
914 cpp_pedwarn_with_file_and_line): Update for _cpp_begin_message changes.
915 (cpp_type2name): Move to cpplex.c.
917 * cppexp.c (parse_charconst): spec_nodes is no longer a pointer.
918 (parse_defined): Update to handle new multiple include optimisation
919 method. Remove poisoned identifier warning.
920 (parse_assertion, TYPE_NAME): Delete.
921 (lex): Update for multiple include optimisation, removal of
922 CPP_DEFINED, to use _cpp_test_assertion for assertions and
924 (_cpp_parse_expr): Update for MI optimisation, and to use op_as_text.
925 (op_as_text): New function, to wrap cpp_token_as_text.
927 * cppfiles.c (stack_include_file, _cpp_pop_file_buffer):
928 Update for MI optimisation.
929 (_cpp_execute_include): Take a token rather than 3 arguments. Fix
930 segfault on diagnostic.
931 (_cpp_compare_file_date): Take a token rather than 3 args.
932 (cpp_read_file): Work correctly for zero-length files.
934 * cpphash.c (_cpp_init_macros, _cpp_cleanup_macros): Rename
935 _cpp_init_hashtable and _cpp_cleanup_hashtable.
936 (cpp_lookup): Place identifiers at front of identifier pool
937 for _cpp_lookup_with_hash.
938 (_cpp_lookup_with_hash): Require identifiers to be at the front of
939 the identifier pool. Commit the memory if not already in the
942 * cppinit.c (cpp_reader_init): Move cpp_init_completed test to top.
943 Initialise various members of cpp_reader, memory pools, and the
945 (cpp_printer_init): Delete.
946 (cpp_cleanup): Update.
947 (struct builtin, builtin_array, initialize_builtins): Update for new
948 hashnode definition and builtin handling.
949 (cpp_start_read, cpp_finish): Don't take or initialise a
952 * cpplib.h (cpp_printer, cpp_toklist, CPP_DEFINED, BOL,
953 PASTED, VAR_ARGS, BEG_OF_FILE, IN_DIRECTIVE, KNOWN_DIRECTIVE,
954 T_VOID, T_SPECLINE, T_DATE, T_FILE, T_BASE_FILE, T_INCLUDE_LEVEL,
955 T_TIME, T_STDC, T_OPERATOR, T_POISON, T_MACRO, T_ASSERTION): Delete.
956 (struct cpp_pool, struct cpp_macro, struct cpp_lexer_pos,
957 struct cpp_lookahead, CPP_DHASH, enum mi_state, enum mi_ind,
958 NO_EXPAND, VARARGS_FIRST, struct cpp_token_with_pos,
959 struct toklist, struct cpp_context, struct specnodes,
960 TOKEN_LOOKAHEAD, TOKEN_BUFFSIZE, NODE_OPERATOR, NODE_POISONED,
961 NODE_BUILTIN, NODE_DIAGNOSTIC, NT_VOID, NT_MACRO, NT_ASSERTION,
962 enum builtin_type, cpp_can_paste): New.
963 (struct cpp_token): Delete line and col members.
964 (struct cpp_buffer): New member output_lineno.
965 (struct lexer_state): Delete indented, in_lex_line, seen_dot.
966 Add va_args_ok, poisoned_ok, prevent_expansion, parsing_args.
967 (struct cpp_reader): New members lexer_pos, macro_pos, directive_pos,
968 ident_pool, temp_string_pool, macro_pool, argument_pool, string_pool,
969 base_context, context, directive, mi_state, mi_if_not_defined,
970 mi_lexed, mi_cmacro, mi_ind_cmacro, la_read, la_write, la_unused,
971 mlstring_pos, macro_buffer, macro_buffer_len.
972 Delete members mls_line, mls_column, token_list, potential_control_macro,
973 temp_tokens, temp_cap, temp_alloced, temp_used, first_directive_token,
974 context_cap, cur_context, no_expand_level, paste_level, contexts, args,
975 save_parameter_spellings, need_newline, .
976 Change type of date, time and spec_nodes members.
977 Change prototypes for include and ident callbacks.
978 (struct cpp_hashnode): Change type of name. Remove union members
979 expansion and code. Add members macro, operator and builtin.
981 (cpp_token_len, cpp_token_as_text, cpp_spell_token, cpp_start_read,
982 cpp_finish, cpp_avoid_paste, cpp_get_token, cpp_get_line,
983 cpp_get_output_line, cpp_macro_definition, cpp_start_lookahead,
984 cpp_stop_lookahead): New prototypes.
985 (cpp_printer_init, cpp_dump_definition): Delete prototypes.
987 (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr, ufputs):
990 * cpphash.h (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr,
991 ufputs): Move to cpplib.h.
992 (enum spell_type, struct token_spelling, _cpp_token_spellings, TOKEN_SPELL,
993 TOKEN_NAME, struct answer, FREE_ANSWER, KANDR, STDC89, EXTENSION,
994 COND, EXPAND, INCL, COMMENTS, IN_I, struct directive, directive_handler,
995 struct spec_nodes, _cpp_digraph_spellings, _cpp_free_temp_tokens,
996 _cpp_init_input_buffer, _cpp_grow_token_buffer, _cpp_init_toklist,
997 _cpp_clear_toklist, _cpp_expand_token_space, _cpp_expand_name_space,
998 _cpp_equiv_tokens, _cpp_equiv_toklists, _cpp_process_directive,
999 _cpp_run_directive, _cpp_get_line, _cpp_get_raw_token, _cpp_glue_header_name,
1000 _cpp_can_paste, _cpp_check_directive, _cpp_check_linemarker,
1001 _cpp_parse_assertion, _cpp_find_answer): Delete.
1002 (VALID_SIGN, ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE, POOL_SIZE,
1003 POOL_USED, POOL_COMMIT, struct cpp_chunk, _cpp_lex_token, _cpp_init_pool,
1004 _cpp_free_pool, _cpp_pool_reserve, _cpp_pool_alloc, _cpp_next_chunk,
1005 _cpp_lock_pool, _cpp_unlock_pool, _cpp_test_assertion,
1006 _cpp_handle_directive, DSC): New.
1007 (struct include_file): New member defined.
1009 (DO_NOT_REREAD, _cpp_begin_message, _cpp_execute_include,
1010 _cpp_compare_file_date): Update.
1011 (_cpp_pop_context, _cpp_get_token, _cpp_free_lookaheads, _cpp_push_token): New.
1012 (_cpp_init_macros, _cpp_cleanup_macros): Rename to _cpp_init_hashtable,
1013 _cpp_cleanup_hashtable.
1015 * Makefile.in: Remove cppoutput.c.
1017 * cppoutput.c: Delete
1019 * fixheader.c (read_scan_file): Update for new cpp_get_token
1021 (recognized_function): New argument LINE.
1023 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
1024 new cpp_get_token prototype.
1026 * scan.h (recognized_function): Update prototype.
1028 * po/POTFILES.in: Remove cppoutput.c.
1030 2000-10-27 Mark Mitchell <mark@codesourcery.com>
1032 * c-typeck.c (check_init_type_bitfields): Remove.
1033 (constructor_incremental): Likewise.
1034 (struct constructor_stack): Remove incremental bit.
1035 (struct initializer_stack): Likewise.
1036 (start_init): Don't play with constructor_incremental.
1037 (finish_init): Likewise.
1038 (really_start_incremental_init): Likewise.
1039 (push_init_level): Likewise.
1040 (pop_init_level): Likewise.
1041 (output_init_level): Likewise.
1042 (output_pending_init_elements): Likewise.
1044 2000-10-21 Mike Coleman <mcoleman2@kc.rr.com>
1046 * c-pragma.c (handle_pragma_pack): Initialize align to -1.
1047 Improve error messages. Correct parsing of
1048 #pragma pack(pop [,id]). Do not check the user-supplied
1049 alignment if we're popping.
1051 * gcc.dg/pack-test-1.c: New test case.
1052 * gcc.dg/pack-test-2.c: New test case.
1053 * gcc.dg/pack-test-1.h: New file.
1055 2000-10-27 Neil Booth <neilb@earthling.net>
1059 2000-10-27 Kelley Cook <kelley.cook@home.com>
1061 * invoke.texi: Document -mintel-syntax
1063 2000-10-27 Richard Henderson <rth@redhat.com>
1065 * invoke.texi: Document -frename-registers. Add it to -O3.
1066 * toplev.c (rest_of_compilation): Run regrename before ifcvt2.
1067 (enum dump_file_index, dump_file): Update order.
1068 (main): Set flag_rename_registers at -O3.
1070 2000-10-27 Richard Henderson <rth@redhat.com>
1072 * config/alpha/alpha.h (enum reg_class): Add PV_REG.
1073 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
1074 (REG_CLASS_FROM_LETTER): Assign it to 'c'.
1075 * config/alpha/alpha.md (call_osf_1): Use it.
1076 (call_value_osf_1): Likewise.
1078 * config/ia64/ia64.c: Revert 10-23 patch.
1079 (ia64_hard_regno_rename_ok): New.
1080 * config/ia64/ia64-protos.h: Declare it.
1081 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK): Use it.
1083 2000-10-27 Bernd Schmidt <bernds@redhat.co.uk>
1084 Richard Henderson <rth@redhat.com>
1086 * regrename.c: Rewrite to handle multi-register modes and
1087 cond_exec instructions.
1088 * Makefile.in (regrename.o): Update dependancies.
1089 * recog.h (struct operand_alternative): Add is_address.
1090 * recog.c (preprocess_constraints) [case 'p']: Set it.
1092 2000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
1094 * configure.in: If not NO_MINUS_C_MINUS_O, substitute
1095 OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
1096 top level. Kill oldstyle_subdirs. Do not include
1097 $srcdir/$s/Makefile.in in all_lang_makefiles, but do include
1098 $outputs. Do not run configure.lang from config.status.
1099 Rearrange warning-flag logic to correspond to what the
1100 makefile wants. Put special vax stage1 options in
1101 @stage1_flags@ not @stage1_warn_cflags@. Don't do anything
1102 with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
1103 (--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
1104 switch is given, nothing otherwise.
1105 * configure.lang: Delete.
1107 * Makefile.in: Expunge all traces of extra_c_objs,
1108 extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
1109 @maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
1110 warning options via a three level scheme so that -pedantic and
1111 -Wtraditional are not used for non-C front ends: LOOSE_WARN,
1112 STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
1113 WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
1114 Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
1115 Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
1116 LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
1117 generation rules. Wrap all rules that change the current
1118 directory in parentheses; pmake doesn't spawn a new shell for
1119 each command. Expunge all references to $(P). When one
1120 command depends on another and they're run all at once, use &&
1121 to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
1122 deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
1125 * objc/Make-lang.in: Wrap all rules that change the current
1126 directory in parentheses. Expunge all references to $(P).
1127 When one command depends on another and they're run all at
1128 once, use && to separate them, not ;. Add OUTPUT_OPTION to
1129 all object-file generation rules. Delete obsolete variables.
1130 * objc/Makefile.in: Delete.
1132 2000-10-27 Jakub Jelinek <jakub@redhat.com>
1134 * calls.c (expand_call): If sibcall_failure is set during pass 1,
1135 clear tail_call_insns as well.
1137 2000-10-27 Nick Clifton <nickc@redhat.com>
1139 * config/arm/arm-protos.h (arm_function_ok_for_sibcall): Add
1142 2000-10-26 Richard Henderson <rth@redhat.com>
1144 * calls.c (expand_call): Supress sibcall if we have a
1145 BLKmode return in registers.
1147 2000-10-26 Bernd Schmidt <bernds@redhat.co.uk>
1149 * ia64.h (PREFERRED_RELOAD_CLASS): Force floating point constants
1152 2000-10-26 Nathan Sidwell <nathan@codesourcery.com>
1154 * tree.c (make_node, case 't'): Set alignment to that of
1156 * expr.c (move_by_pieces_ninsns): Abort if some length remains.
1158 2000-10-25 Mark Mitchell <mark@codesourcery.com>
1160 * Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
1161 * configure.in (enable-libstdcxx-v3): Arrange to have
1162 HAVE_LIBSTDCXX_V3 substituted into the output files.
1164 2000-10-25 Richard Henderson <rth@redhat.com>
1166 * recog.c (constrain_operands): Initialize which_alternative
1167 before no alternatives early exit.
1169 * cse.c (find_comparison_args): Check that we can reverse a
1170 comparison if needed before accepting the substitution.
1172 * reload.c (find_reloads_address_part): Kill rtx obstack hackery.
1174 * simplify-rtx.c (simplify_relational_operation): Sign extend
1175 low words before sign extending to high words.
1177 2000-10-25 Nick Clifton <nickc@redhat.com>
1179 * config/mcore/mcore.c: Include config.h before system.h.
1181 2000-10-25 Ray Essick <essick@ddna.labs.mot.com>
1183 * config/mcore/mcore.md (return): Force function epilogue to
1184 always be generated to work around epilogue suppression bug in
1187 2000-10-25 Joseph S. Myers <jsm28@cam.ac.uk>
1189 * c-decl.c (grokdeclarator): Move warning for qualified void
1190 return types with -pedantic to when the function type is
1191 constructed. At -W, warn in general for qualified function return
1192 types, except for volatile void.
1193 * invoke.texi: Document this new warning at -W.
1195 2000-10-25 Neil Booth <neilb@earthling.net>
1197 * cpp.texi: Update with implementation-defined behavior and
1200 2000-10-25 Jakub Jelinek <jakub@redhat.com>
1202 * stor-layout.c (layout_type): If TYPE_ALIAS_SET was already set on the
1203 incomplete type force it into alias set 0.
1205 Wed Oct 25 01:02:44 EDT 2000 John Wehle (john@feith.com)
1207 * alias.c: Include basic-block.h.
1208 (loop_p): New function.
1209 (mark_constant_function): Use it.
1210 * Makefile.in (alias.o): Update dependencies.
1212 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
1214 * config/mn10300/mn10300.c (secondary_reload_class): Treat pseudos
1217 2000-10-24 Jim Wilson <wilson@cygnus.com>
1219 * expmed.c (store_bit_field): Move integer pun code down after
1220 code that calls emit_move_insn for entire register move.
1221 * stor-layout.c (compute_record_mode): Revert Mar 25, Aug 18, and
1222 Oct 20 changes. Only store mode in TYPE_MODE if RECORD_TYPE.
1224 2000-10-24 Richard Henderson <rth@cygnus.com>
1226 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Don't consider pic
1227 register stable if PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
1229 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
1231 * gcse.c (cprop_insn): do not propagate constants into jump_insn
1232 for machines with CC0 more than once.
1234 2000-10-24 Richard Henderson <rth@cygnus.com>, Aldy <aldyh@cygnus.com>
1236 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS): Treat
1237 pseudos just like memory.
1239 2000-10-24 Alexandre Oliva <aoliva@redhat.com>
1241 * combine.c (distribute_notes): Discard REG_LIBCALL and REG_RETVAL
1242 when deleting libcall sequence collapsed to a single instruction.
1244 2000-10-24 Andrew Haley <aph@cygnus.co.uk>
1246 * expr.c (do_store_flag): Don't crash if either side of a
1247 comparison is error_mark_node.
1249 2000-10-24 Jakub Jelinek <jakub@redhat.com>
1251 * sibcall.c (purge_mem_unchanging_flag): New function.
1252 (optimize_sibling_and_tail_recursive_calls): Call it.
1254 2000-10-24 Philipp Thomas <pthomas@suse.de>
1256 * Makefile.in (check-po): New target for doing checks in the po
1257 subdir if all languages configured.
1258 (CHECK_TARGETS): Add @CHECK_PO@, replaced with check-po via
1259 configure if NLS is enabled.
1260 * configure.in: If NLS is enabled, substitute CHECK_PO by check-po,
1261 otherwise leave empty.
1262 * configure: Regenerate.
1264 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
1266 * i386.c (print_operand): Handle new 'A' formatting code.
1267 387 opcodes need suffixes even with -mintel-syntax.
1268 Check for explicit size override (codes 'b', 'w' and 'k').
1269 (print_operand_address): Check if register prefix is needed when
1270 emitting `ds' segment override.
1271 * i386.h: Add comment about new 'A' formatting code.
1272 * i386.md (jump and call patterns): Emit absolute references using %A.
1274 2000-10-23 Richard Henderson <rth@cygnus.com>
1276 * config/ia64/ia64.c (ia64_expand_prologue): Mark extra
1277 output registers as fixed.
1278 (ia64_function_epilogue): Undo output fixation.
1280 2000-10-23 Richard Henderson <rth@cygnus.com>
1282 * config/alpha/alpha.md: Add names for all unnamed insns; use
1283 define_insn_and_split in some obvious places.
1285 (zero_extendqihi2): Use an expander w/ nonimmediate_operand for BWX.
1286 (zero_extendqisi2, zero_extendqidi2): Likewise.
1287 (zero_extendhisi2, zero_extendhidi2): Likewise.
1288 (abs splitters): Fix match_scratch operand number.
1289 (bcc_reverse): Swap pc & label instead of non-canonical compare.
1291 2000-10-23 Jim Wilson <wilson@cygnus.com>
1293 * ia64.c (ia64_print_operand, case 'r'): Correct comment. Handle
1295 * ia64.md (cmpsi_adjusted): Use %r3.
1296 (cmpdi_adjusted): Likewise.
1298 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
1300 * config/i386/att.h (ASM_FILE_START): Define.
1302 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
1304 * config/i386/linux.h (ASM_FILE_START): Define.
1306 Wed Oct 18 11:16:40 2000 Donald Lindsay <dlindsay@cygnus.com>
1308 * gcc/configure.in: m68k-coff tm_file should not have libgloss.h,
1309 since this (only) drags in a crt0.o reference that the .ld files
1312 2000-10-23 Geoff Keating <geoffk@cygnus.com>
1314 * reload1.c (reload_reg_reaches_end_p): A RELOAD_OTHER can
1315 overwrite the value in a RELOAD_FOR_INPUT and other kinds of
1316 reloads just like an RELOAD_FOR_OUTPUT would.
1318 * local-alloc.c (update_equiv_regs): Add an abort(). When
1319 deleting or moving insns, update reg_equiv[regno].init_insns.
1321 2000-10-23 Mark Mitchell <mark@codesourcery.com>
1323 * c-tree.texi: Improve documentation for IF_STMTs and related
1324 conditional statements.
1326 2000-10-22 Mark Mitchell <mark@codesourcery.com>
1328 * expr.c (do_preexpand_calls): Remove.
1329 (same_from_p): Don't use CALL_EXPR_RTL.
1330 (expand_expr): Don't call preexpand_calls, or use CALL_EXPR_RTL.
1331 (preexpand_calls): Remove.
1332 * tree.c (first_rtl_op): Remove CALL_EXPR case.
1333 (unsave_expr_1): Likewise.
1334 * tree.def (CALL_EXPR): Give it only two slots.
1335 * tree.h (CALL_EXPR_RTL): Remove.
1337 2000-10-21 Chandrakala Chavva <cchavva@redhat.com>
1339 * libgcc-std.ver (__addvsi3, __addvdi3, __subvsi3, __subvdi3,
1340 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
1343 2000-10-22 Alexandre Oliva <aoliva@redhat.com>
1345 * calls.c (combine_pending_stack_adjustment_and_call): Don't
1346 adjust stack when unadjusted_alignment ends up as zero.
1348 2000-10-22 Joseph S. Myers <jsm28@cam.ac.uk>
1350 * fixinc/genfixes: Remove EGCS reference.
1351 * install.texi: Remove EGCS reference.
1352 * INSTALL: Regenerate.
1354 2000-10-22 Mark Mitchell <mark@codesourcery.com>
1356 * tree.h (TYPE_IS_SIZETYPE): Add more documentation.
1358 2000-10-21 Joseph S. Myers <jsm28@cam.ac.uk>
1360 * diagnostic.c: Remove EGCS reference in comment.
1362 Sat Oct 21 08:24:25 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1364 * loop.c (strength_reduce): Fix error in last change.
1366 2000-10-20 David Edelsohn <edelsohn@gnu.org>
1368 * Makefile.in (SHLIB_NM_FLAGS): New.
1369 (libgcc.mk): Pass it.
1370 * mklibgcc.in (libgcc.map): Use it.
1372 * rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_LIBS,
1373 SHLIB_MKMAP, SHLIB_MAPFILES, SHLIB_NM_FLAGS): New.
1375 2000-10-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1377 * mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.
1379 * sparc.c (load_pic_register): Delete unused varaible.
1381 * libgcc2.c (__addvsi3): Delete unused variable.
1383 * libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
1384 __subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
1385 __negvdi2): Prototype.
1387 * ssa.c (apply_delayed_renames): Avoid undefined operation.
1389 * toplev.c (display_target_options): Make static to match
1390 prototype. Delete empty declaration.
1392 2000-10-20 Tom Tromey <tromey@cygnus.com>
1394 * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
1395 * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
1397 Fri Oct 20 17:05:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1399 * expr.c (expand_expr, case SAVE_EXPR): Set RTX_UNCHANGING_P on
1401 (expand_expr_unaligned, case ARRAY_REF): Check that index is
1402 a constant before comparing it; use tree_low_cst.
1403 * tree.c (save_expr): Set TREE_READONLY.
1404 (substitute_expr): Return inside of NON_LVALUE_EXPR.
1405 (build, build1): Set TREE_READONLY if all operands are.
1406 (build_index_type): If upper bound is a negative number, lower
1407 bound is zero and sizetype is unsigned, use upper bound of one and
1410 2000-10-20 David Edelsohn <edelsohn@gnu.org>
1412 * gcc.c (process_command, main): Use "because" instead of
1413 "since" in error messages.
1415 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1417 * stor-layout.c (compute_record_mode): Use tree_low_cst.
1418 Don't use mode of field for record unless sizes are the same.
1419 (layout_type, case ARRAY_TYPE): Remove special bounds handling
1420 previously added for Ada; also change to using host_integerp
1423 * loop.c (strength_reduce): Show when new register made for
1424 giv is known to be a pointer and its aligment if so and known.
1425 (loop_dump_aux): Show VERBOSE parameter unused.
1427 * gcse.c (set_hash_table_size): Now unsigned.
1428 * sdbout.c (template_name_p): Add "const" to avoid warnings.
1429 (sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
1430 (sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
1431 (sdbout_end_epilogue): Remove variable NAME.
1432 * system.h (getopt): Add default definition.
1433 * config/alpha/alpha.c (print_operand): Don't continue processing
1434 after issuing error.
1435 (summarize_insn): Avoid use of UL in constant.
1437 * function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
1439 * fold-const.c (force_fit_type): Unsigned values can overflow
1440 if they are sizetype.
1441 (int_const_binop): Don't use cache if overflows.
1443 2000-10-20 Richard Henderson <rth@cygnus.com>
1445 * function.c (locate_and_pad_parm): Zero alignment_pad.
1447 * regrename.c (rr_replace_reg): Rewrite to use recog_data to
1448 perform substitutions, and apply_change_group to see if it worked.
1450 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1452 * dwarf2out.c (add_bound_info): Also ignore COND_EXPR.
1454 * combine.c (struct undo): Change int to unsigned int.
1455 (do_SUBST_INT): Args are unsigned int.
1456 (make_extraction, force_to_mode): Use proper type when forming mask.
1457 (make_field_assignment): Likewise.
1459 2000-10-20 Joseph S. Myers <jsm28@cam.ac.uk>
1461 * c-common.c (check_format_info_recurse): Extract string constant
1462 initializers from non-volatile constant arrays and check them as
1464 * c-typeck.c (decl_constant_value): Don't check pedantic or check
1465 for DECL_MODE (decl) != BLKmode.
1466 (decl_constant_value_for_broken_optimization): New function which
1467 includes these checks.
1468 (default_conversion, convert_for_assignment, digest_init): Use
1469 decl_constant_value_for_broken_optimization instead of
1470 decl_constant_value.
1472 2000-10-20 Mark Mitchell <mark@codesourcery.com>
1474 * tree.h (DECL_ALIGN_UNIT): New macro.
1476 2000-10-14 Marek Michalkiewicz <marekm@linux.org.pl>
1478 * config/avr/avr-protos.h (avr_output_bld): New.
1479 (out_shift_with_cnt): Add t_len argument.
1480 * config/avr/avr.c (avr_num_arg_regs): Remove -mpack-args.
1481 (output_movqi, output_movhi, output_movsisf): Optimize loading
1482 any constant with exactly one bit set to NO_LD_REGS.
1483 (out_shift_with_cnt): Optimize output code for size or speed,
1484 depending on optimize_size. Handle small shift counts as well
1485 (if not hand-optimized in ?sh??i3_out). Shifts can be done
1486 with or without a scratch register, with help of __tmp_reg__
1487 or __zero_reg__ if necessary. Add T_LEN argument to pass the
1488 length of TEMPLATE in words, return total insn length in *LEN.
1489 (ashlqi3_out, ashrqi3_out, lshrqi3_out): Change all calls to
1490 out_shift_with_cnt to work with the above change.
1491 (ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out, lshrhi3_out,
1492 lshrsi3_out): Likewise. Optimize more known shift count cases.
1493 Remove cases already well optimized in out_shift_with_cnt.
1494 (avr_output_bld): New function.
1495 * config/avr/avr.h (MASK_PACK_ARGS, TARGET_PACK_ARGS): Remove.
1496 (TARGET_SWITCHES): Remove -mpack-args backward compatibility.
1497 * config/avr/avr.md (*reload_inqi, *reload_inhi, *reload_insi):
1498 Add reload_completed to insn condition - only for peepholes.
1499 (ashlqi3, ashrqi3, lshrqi3): Correct insn length for shift counts
1500 in a register or memory.
1501 (ashlhi3, ashlsi3, ashrhi3, ashrsi3, lshrhi3, lshrsi3): Likewise.
1502 Do not require a scratch register.
1503 (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
1504 *lshrhi3_const, *lshrsi3_const): New insns and matching peepholes.
1505 Optimize shifts by known count using a scratch register, but only
1506 if one is still available after register allocation.
1508 2000-10-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1510 * t-vax: New file. Don't build modules from libgcc1.c.
1512 Fri Oct 20 00:57:00 EDT 2000 John Wehle (john@feith.com)
1514 * alias.c: (mark_constant_function): Don't check pure functions.
1515 Initialize and end alias analysis.
1516 (nonlocal_mentioned_p): Rename from nonlocal_reference_p.
1517 Don't make a special exception for recursion. Handle
1518 UNSPEC_VOLATILE. Don't assume ASM_OPERANDS is non-local
1519 unless it's volatile.
1521 * local-alloc.c (equivalence): New structure.
1522 (reg_equiv): Define.
1523 (contains_replace_regs): Remove array and use
1525 (memref_referenced_p): Likewise.
1526 (no_equiv): Likewise.
1527 (update_equiv_regs): Likewise.
1529 (equiv_init_varies_p,
1530 equiv_init_movable_p): New functions.
1531 (update_equiv_regs): Use them. Use rtx_varies_p
1532 instead of function_invariant_p. Process insns
1533 from end to beginning. Allow a REG_EQUIV insn
1534 within the same loop as a use to be moved, also
1535 allow it to be moved out of a loop. Update
1536 REG_DEAD notes when substituting into an insn.
1538 2000-10-19 Jim Wilson <wilson@cygnus.com>
1540 * c-decl.c (start_decl): Check for error_mark_node type before using
1542 (finish_decl): Likewise. Don't give an error if decl type is
1543 already error_mark_node.
1545 * haifa-sched.c (compute_trg_info): Add explanatory comments.
1546 New local update_blocks. Use update_blocks to remove duplicates
1547 when computing update blocks. Check for bblst_table overflow.
1548 (schedule_block): Add explanatory comment. Reduce bblst_size by
1550 * config/ia64/ia64.md (movdi_symbolic): Document loss of REG_LABEL
1553 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
1555 * libgcc2.c (_mulvsi3): Change variables u and v to a and b.
1557 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
1559 * expmed.c: Minor corrections in comments.
1560 * invoke.texi: Added desciption for the new option -ftrapv.
1562 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
1564 * libgcc2.c: Added the missing #endif.
1566 Thu Oct 19 14:25:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
1568 * i386.h (CONST_OK_FOR_LETTER): Re-add 'N'; document.
1570 2000-10-18 Chandrakala Chavva <cchavva@redhat.com>
1572 * expmed.c (expand_mult): Don't do synth_mult optimization for -ftrapv.
1573 Use smulv_optab for -ftrapv.
1574 (expand_mult_highpart): Use unsigned multiply.
1575 (expand_divmod): Special-case division by -1.
1576 For EXACT_DIV_EXPR, do right shift first, then the multiply.
1577 For complex divide, use abs with unsigned result.
1578 * expr.c (force_operand): Use unsigned multiply.
1579 (expand_expr): Use overflow-trapping optabs for signed types if
1581 If flag_trapv, don't generate a recursive call with EXPAND_SUM
1582 if the type is signed and the original call wasn't EXPAND_SUM or
1584 * expr.h (addv_optab, subv_optab, smulv_optab, sdivv_optab): Declare.
1585 (negv_optab, absv_optab): Declare.
1586 * flags.h (flag_trapv): Declare.
1587 * genopinit.c (optabs): Add entries for addv_optab, subv_optab,
1588 smulv_optab, sdivv_optab, negv_optab and absv_optab.
1589 (gen_insn): Interpret '$P' as requiring an integer mode,
1590 including partial integer modes.
1591 * loop.c (emit_iv_add_mult): Use unsigned expand_mult_add.
1592 (product_cheap_p): Use unsigned expand_mult.
1593 * optabs.c (addv_optab, subv_optab, smulv_optab, sdivv_optab): Define.
1594 (negv_optab, absv_optab): Define.
1595 (expand_binop): Use overflow-trapping optabs for signed types if
1597 Handle negv_optab libe neg_optab.
1598 (expand_abs): Take result_unsignedp argument instead of unsignedp one.
1599 Use overflow-trapping optabs for signed result if flag_trapv.
1600 (expand_complex_abs): Use overflow-trapping optabs for signed types if
1602 Don't open-code complex absolute-value operation for flag_trapv.
1603 (init_optabs): Initialize addv_optab, subv_optab, smulv_optab,
1604 sdivv_optab, negv_optab and absv_optab.
1605 * toplev.c (flag_trapv): Define.
1606 (lang_independent_options f_options): Include flag_trapv.
1607 * tree.h (TYPE_TRAP_SIGNED): Define.
1608 * libgcc2.c (__addvsi3, __addvdi3, __subvsi3,__subvsi3, __subvdi3,
1609 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
1611 * Makefile.in: add _absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3
1612 _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2.
1614 2000-10-18 Geoffrey Keating <geoffk@cygnus.com>
1615 David V. Henkel-Wallace <gumby@cygnus.com>
1617 * config/i386/t-netware: Bring in from the Red Hat tree.
1618 * config/i386/netware.h: Likewise.
1619 * config/netware.h: Likewise.
1620 * config/rs6000/netware.h: Delete.
1621 * configure.in: Add i[34567]86-*-netware.
1622 * configure: Hand-edit to match configure.in change.
1624 2000-10-18 Mark Mitchell <mark@codesourcery.com>
1626 * c-common.h (flag_no_builtin): Declare.
1627 (flag_no_nonansi_builtin): Likewise.
1628 (c_common_nodes_and_builtins): Change prototype.
1629 * c-common.c (flag_no_builtin): New variable.
1630 (flag_no_nonansi_builtin): Likewise.
1631 (c_common_nodes_and_builtins): Remove parameters. Adjust
1633 * c-decl.c (flag_no_builtin): Remove.
1634 (flag_no_nonansi_builtin): Likewise.
1635 (init_decl_processing): Adjust call to
1636 c_common_nodes_and_builtins.
1638 2000-10-18 Marc Espie <espie@openbsd.org>
1640 * tm.texi (LIBGCC_SPEC): Synch with reality.
1642 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
1644 * c-common.c (check_format_types): Check for writing through a
1645 NULL pointer argument.
1647 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
1649 * tm.texi (Exception Region Output): Document
1650 DWARF_CIE_DATA_ALIGNMENT.
1651 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Wrap definition in
1653 [ENABLE_CHECKING] (reg_save): Abort if offset is not a multiple of
1654 DWARF_CIE_DATA_ALIGNMENT.
1656 2000-10-18 Michael Hayes <mhayes@cygnus.com>
1658 * basic-block.h (struct loop): Delete fields pre_header_root
1659 and pre_header_trace and replace with pre_header_edges
1660 and num_pre_header_edges.
1661 * flow.c (flow_loop_dump): Dump pre_header_edges.
1662 (flow_loops_free): Free pre_header_edges.
1663 (flow_loop_pre_header_scan): Calculate pre_header_edges.
1665 2000-10-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1667 * contrib.texi: Update references to steering committee members
1668 and Jeff Law's entry.
1670 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
1672 * c-common.c (CPLUSPLUS_STD_VER, C_STD_VER, C_STD_NAME): Define.
1673 (maybe_read_dollar_number, check_format_info_main): Use them for
1674 pedantic warning messages.
1676 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
1678 * c-common.c (check_format_info_main): Minor cleanup: move
1679 variables into inner scopes; initialize declarations where
1680 appropriate; don't hardcode "scanf" name on warning for zero
1683 2000-10-17 Mark Mitchell <mark@codesourcery.com>
1685 * c-common.c (back_end_hook): New variable.
1686 * c-common.h (back_end_hook): Declare it.
1687 * c-lang.c (finish_file): Use it.
1689 * emit-rtl.c (init_emit_once): Initialize the const_int_htab
1692 2000-10-18 Jan Hubicka <jh@suse.cz>
1694 * i386.c (ix86_comparison_operator, put_condition_code,
1695 ix86_match_ccmode, ix86_cc_mode): Handle CCRCmode.
1696 (ix86_expand_strlensi_unroll_1): Use CCRCmode.
1697 * i386.h (EXTRA_CC_MODES): Add CCRCmode.
1698 * i386.md (adddi and negdi splitter): Use CCRCmode.
1699 (add?i_3, add?i_4, add?i_5): Use CCRCmode; swap operands
1700 (subsi3_carry): add '*'
1701 (addsi3_carry_rc, subsi3_carry_rc, x86_movsicc_0_m1_rc): New.
1702 (cmp to add peep2): Use CCRCmode; swap operands.
1704 2000-10-18 Kazu Hirata <kazu@hxi.com>
1706 * h8300.c: Fix a comment typo.
1707 (round_frame_size): New.
1708 (compute_saved_regs): Likewise.
1711 (push_order): Remove.
1712 (pop_order): Likewise.
1713 (function_prologue): Rearrange code for readability.
1714 (function_epilogue): Likewise.
1716 * config/h8300/h8300.md: Remove an unnecessary sign_extend
1717 expander that is used when not optimizing. Output a tab after
1718 each assembly insns.
1720 * reorg.c: Fix formatting.
1722 2000-10-17 Joern Rennecke <amylaar@redhat.co.uk>
1724 * reload1.c (move2add_note_store): Check for simple
1725 auto-inc in destination.
1727 2000-10-17 Michael Chastain <chastain@redhat.com>
1729 * config/i386/i386-aout.h: define INT_ASM_OP.
1731 Tue Oct 17 20:11:08 2000 Alan Modra <alan@linuxcare.com.au>
1733 * pa.c (print_operand): Handle case 'c' for .vtable_inherit
1735 Tue Oct 17 20:05:51 2000 Martin Buchholz <martin@xemacs.org>
1737 * i370.md: Fix spelling typo.
1739 2000-10-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1741 * function.c (locate_and_pad_parm): Don't align stack unconditionally.
1742 Fixes execute/20001017-1.c on powerpc-linux-gnu.
1744 * expr.c (store_constructor): Apply MEM_ALIAS_SET to MEMs only.
1745 * rs6000/rs6000.c (rs6000_hash_constant): Use X0INT to access a
1748 * rs6000/rs6000.h (NO_DOLLAR_IN_LABEL, DOLLARS_IN_IDENTIFIERS,
1749 ENCODE_SECTION_INFO, ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Move from
1751 * rs6000/aix.h: ...to here.
1752 * rs6000/linux.h (ASM_APP_ON, ASM_APP_OFF): Define to Linux-style.
1754 2000-10-17 Jakub Jelinek <jakub@redhat.com>
1756 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.
1758 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Always use call, make
1759 sure linker can relax even the delay slot mov %g1,%o7, fix output
1762 2000-10-17 Kazu Hirata <kazu@hxi.com>
1764 * config/h8300/h8300.md: Remove an unnecessary zero_extend
1765 expander that is used when not optimizing. Output a tab after
1766 each assembly insns.
1768 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
1770 * gcc.c: New options --target-help.
1771 (process_command): Added code to parse this new option.
1772 * toplev.c (display_target_options): New function to support the
1774 * cppinit.c (new_pending_directive) : New option OPT_target__help.
1775 (cpp_handle_option): Support this new option.
1776 * invoke.texi: Added notes about --target-help option.
1778 2000-10-17 Graham Stott <grahams@redhat.com>
1780 * config/i386/i386.md (testqi_1): Add missing operand prefix
1782 * config/i386/i386-protos.h: Add missing prototype.
1784 2000-10-17 Diego Novillo <dnovillo@cygnus.com>
1786 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Symbol
1787 _GLOBAL_OFFSET_TABLE should not have a $ prefix when
1788 using -mintel-syntax.
1790 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
1792 * c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
1793 (format_types): Use it for printf.
1794 (maybe_read_dollar_number): Add parameter for the kind of format
1795 involved. Warn for multiple use for arguments if this is
1796 inappropriate for the kind of format involved.
1797 (check_format_info_main): Update calls to maybe_read_dollar_number.
1799 2000-10-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1801 * inclhack.def (hpux_maxint): Also apply fix to values.h.
1802 * fixincl.x: Rebuilt.
1804 2000-10-17 Alexandre Oliva <aoliva@redhat.com>
1806 * genrecog.c (write_switch): Return the first condition that needs a
1809 2000-10-17 Bernd Schmidt <bernds@redhat.co.uk>
1811 * c-tree.h (warn_sequence_point): Move declaration to...
1812 * c-common.h (warn_sequence_point): ... here.
1813 * c-decl.c (warn_sequence_point): Move definition to...
1814 * c-common.c (warn_sequence_point): ... here.
1815 (struct reverse_tree): New.
1816 (reverse_list, reverse_max_depth): New static variables.
1817 (build_reverse_tree, common_ancestor, modify_ok
1818 verify_sequence_points): New functions.
1819 (c_expand_expr_stmt): Call verify_sequence_points if -Wsequence-point.
1820 * c-typeck.c (check_modify_expr): Delete.
1821 (build_modify_expr): Don't call it.
1823 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
1825 * c-common.h (warn_missing_format_attribute): New variable.
1826 * c-decl.c (warn_missing_format_attribute): New variable.
1827 (c_decode_option): Decode -Wmissing-format-attribute and
1828 -Wno-missing-format-attribute.
1829 * c-common.c (check_function_format): If
1830 -Wmissing-format-attribute, give a warning where a vprintf or
1831 vscanf function is called by a function without its own printf or
1833 * toplev.c (documented_lang_options): Add
1834 -Wmissing-format-attribute.
1835 * invoke.texi: Document -Wmissing-format-attribute.
1837 2000-10-17 Marc Espie <espie@openbsd.org>
1839 * invoke.texi (-shared): Insist on requiring code generation flags
1840 to be used along with -shared, and document the subtle failure that
1841 may occur otherwise.
1843 2000-10-16 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1845 * pa.md (return_internal): Move `use' after `return'.
1847 2000-10-16 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
1849 * machmode.def: Correct comment.
1851 2000-10-16 Rodney Brown <RodneyBrown@mynd.com>
1853 * print-rtl.c (print_rtx_head): Constify.
1854 * rtl.h (print_rtx_head): Similarly.
1856 * config/pa/pa/pa-protos.h (output_64bit_and, output_64bit_ior):
1857 Constify char * return value.
1859 (output_64bit_and, output_64bit_ior): Constify char * return value.
1860 (pa_can_combine_p): Make static.
1861 (function_arg): Decorate unused `named' argument. Fix comment typo.
1862 (function_arg_partial_nregs): Decorate unused `named' argument.
1864 2000-10-16 Joseph S. Myers <jsm28@cam.ac.uk>
1866 * c-common.c (format_check_results): New structure.
1867 (finish_dollar_format_checking): Adjust to take a
1868 format_check_results * parameter.
1869 (check_format_info, check_format_info_recurse,
1870 check_format_info_main): Split check_format_info into three
1871 functions, the main checking going in check_format_info_main.
1872 Recurse when any reduction of the format string argument towards a
1873 string literal is done; go down both branches of a conditional
1874 expression. Don't warn for extra format arguments or empty format
1875 strings if they only occur in some branches of a conditional
1878 2000-10-16 Kazu Hirata <kazu@hxi.com>
1880 * config/h8300/h8300.c: Remove obstack. Include ggc.h.
1882 2000-10-16 Jakub Jelinek <jakub@redhat.com>
1884 * rtlanal.c (may_trap_p): Check operand modes of COMPARE.
1886 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
1888 * i386.md (*movsi_or): Switch operand order for intel syntax.
1890 2000-10-14 Joseph S. Myers <jsm28@cam.ac.uk>
1894 * gcc.texi (Contributing): Update.
1896 2000-10-13 Diego Novillo <dnovillo@cygnus.com>
1898 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Output final jump using
1899 appropriate assembler dialect.
1901 2000-10-13 Alexandre Oliva <aoliva@redhat.com>
1903 * c-common.c (c_expand_builtin): PARAMS-ize prototype.
1905 2000-10-12 Marek Michalkiewicz <marekm@linux.org.pl>
1907 * config/avr/avr.c (output_movhi, output_movsisf): Fix loading
1908 constants 1 and 2 to NO_LD_REGS.
1910 2000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1912 * Makefile.in (c-parse.c, tradcif.c): Create atomically.
1914 * objc/Make-lang.in (objc-parse.c): Likewise.
1916 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
1918 * arm.c: Include obstack.h
1919 (minipool_obstack, minipool_startobj): Define.
1920 (arm_add_gc_roots): Initialize them.
1921 (create_fix_barrier): Use our new obstack.
1922 (push_minipool_barrier, push_minipool_fix): Likewise.
1923 (arm_reorg): Release obstack memory.
1925 2000-10-13 Jakub Jelinek <jakub@redhat.com>
1927 * config/sparc/sparc.md (nonlocal_goto_receiver): Remove.
1928 (prologue, exception_receiver, builtin_setjmp_receiver): New
1930 * config/sparc/sparc.h (FINALIZE_PIC): Remove.
1931 * config/sparc/sparc-protos.h (finalize_pic): Remove.
1932 (load_pic_register): New prototype.
1933 * config/sparc/sparc.c (pic_setup_code): Remove.
1934 (finalize_pic): Rename to...
1935 (load_pic_register): ...this function.
1936 Don't look for nonlocal_goto_receivers and emit pic setup code
1937 directly. Don't check current_function_uses_pic_offset_table.
1939 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
1941 * tree.h (struct obstack): Declare.
1943 2000-10-12 Mark Mitchell <mark@codesourcery.com>
1946 * Makefile.in (ggc-callbacks.o): Remove target.
1947 (flow.o): Depend on GGC_H.
1948 * alias.c (init_alias_analysis):
1949 Remove ggc_p conditionals.
1950 (end_alias_analysis): Likewise.
1951 * basic-block.h (init_flow): New function.
1952 (allocate_reg_life_data): Declare.
1953 * bb-reorder.c (function_obstack): Replace with ...
1954 (flow_obstack): ... new variable.
1955 (fixup_reorder_chain): Use it.
1956 * c-decl.c (ggc_p): Remove.
1957 (caller-save.c): Don't call oballoc/obfree.
1959 undobuf): Remove storage.
1960 (try_combine): Don't call oballoc.
1961 (undo_all): Don't call obfree.
1962 * cse.c (insert): Use xmalloc, not
1964 (cse_main): Adjust accordingly.
1965 * dwarf2out.c (save_rtx): Remove
1967 (dwarf2out_init): Remove ggc_p conditionals.
1968 * emit-rtl.c (rtl_obstack): Remove.
1969 (gen_rtx_CONST_INT): Remove ggc_p conditionals.
1970 (make_insn_raw): Likewise.
1971 (emit_insn_before): Likewise.
1972 (emit_insn_after): Likewise.
1973 (emit_insn): Likewise.
1974 (gen_sequence): Likewise.
1975 (copy_insn_1): Remove handling of `b' RTL components.
1976 (init_emit_once): Remove ggc_p conditionals.
1977 * except.c (create_rethrow_ref): Don't fool with obstacks.
1978 (add_partial_entry): Likewise.
1979 (call_get_eh_context): Likewise.
1980 (begin_protect_partials): Likewise.
1981 (protect_with_terminate): Likewise.
1983 (plus_constant_wide): Likewise.
1984 * expr.c (init_expr_once):
1986 (emit_block_move): Likewise.
1987 (clear_storage): Likewise.
1988 (expand_expr): Likewise.
1989 * flow.c (function_obstack): Remove.
1990 (flow_obstack): New variable.
1991 (flow_firstobj): Likewise.
1992 (create_base_block): Use the flow_obstack.
1993 (split_block): Likewise.
1994 (split_edge): Likewise.
1995 (calculate_global_regs_live): Likewise.
1996 (allocate_bb_life_data): Make it static. Likewiwse.
1997 (init_flow): New function.
1998 (size_int_type_wide): Remove ggc_p conditionals.
2000 (push_function_context_to): Don't call save_tree_status.
2001 (pop_function_context_from): Or restore_tree_status.
2002 (assign_stack_local_1): Don't call push_obstacks.
2003 (find_fixup_replacement): Use xmalloc.
2004 (fixup_var_refs_insns): Free the storage.
2005 (insns_for_mem_walk): Don't mess with obstacks.
2006 (instantiate_decls): Likewise.
2007 (trampoline_address): Likewise.
2008 (expand_function_end): Likewise.
2009 * function.h (sturct function):
2010 Remove obstack-related variables.
2011 (save_tree_status): Don't declare.
2012 (restore_tree_status): Likewise.
2013 * gcse.c (compute_can_copy):
2014 Don't call oballoc/obfree.
2015 * genattrtab.c (operate_exp): Remove
2017 (simplify_cond): Likewise.
2018 (simplify_test_exp): Don't mess with obstacks.
2019 (optimize_attrs): Likewise.
2020 * gengenrtl.c (gendef): Don't include
2022 * ggc-callbacks.c (ggc_p): Remove.
2023 * ggc-none.c (ggc_p): Remove.
2024 * ggc.h (ggc_p): Don't declare.
2025 * integrate.c (save_for_inline): Don't mess with obstacks.
2026 (integrate_decl_tree): Likewise.
2027 (output_inline_function): Likewise.
2029 (init_EXPR_INSN_LIST_cache): Likewise.
2030 * loop.c (temp_obstack):
2032 (rtl_obstack): Likewise.
2033 (init_loop): Don't mess with obstacks.
2034 (reg_address_cost): Free BIVs and GIVs.
2035 (check_insns_for_bivs): Use xmalloc, not oballoc.
2036 (find_mem_givs): Likewise.
2037 (record_biv): Likewise.
2038 (general_induction_var): Likewise.
2039 (product_cheap_p): Likewse.
2040 * optabs.c (init_one_libfunc): Remove
2042 * print-tree.c (debug_tree): Don't use
2044 (print_node): Likewise.
2045 * profile.c (output_func_start_profiler):
2046 Remove call to temporary_allocation.
2048 (eliminate_regs_in_insn): Don't mess with obstacks.
2050 (mark_target_live_regs): Use xmalloc.
2051 (free_resource_info): Free the memory.
2052 * rtl.c (rtl_obstack):
2054 (rtvec_alloc): Don't mess with obstacks.
2055 (rtx_alloc): Likewise.
2057 (copy_rtx): Don't handle `b' cases.
2058 (read_rtx): Use a local rtl_obstack.
2059 * rtl.h (oballoc): Remove.
2061 (pop_obstacks): Likewise.
2062 (push_obstacks): Likewise.
2063 (allocate_bb_life_data): Likewise.
2064 (allocate_reg_life_data): Likewise.
2065 (rtx_free): Likewise.
2066 * sdbout.c (sdbout_queue_anonymous_type):
2067 Use tree_cons, not saveable_tree_cons.
2069 (cselib_init): Don't mess with obstacks.
2071 (mark_block_nesting): Mark the label_chain.
2072 (epxand_label): Use ggc_alloc, not oballoc.
2073 (clear_last_expr): Don't mess with obstacks.
2074 (expand_decl_cleanup): Likewise.
2075 (expand_dcc_cleanup): Likewise.
2076 (expand_dhc_cleanup): Likewise.
2077 (expand_anon_union_decl): Likewise.
2078 (add_case_node): Use xmalloc, not oballoc.
2079 (free_case_nodes): New function.
2080 (expand_end_case): Call it.
2081 * stor-layout.c (layout_type): Don't
2083 (layout_type): Likewise.
2084 * toplev.c (wrapup_global_declarations):
2086 (compile_file): Remove ggc_p conditionals.
2087 (rest_of_compilation): Call init_flow. Remove ggc_p conditionals.
2088 (decode_f_option): Remove ggc_p conditionals.
2090 (function_maybepermanent_obstack): Remove.
2091 (maybepermanent_obstack): Likewise.
2092 (function_obstack): Likewise.
2093 (tmeporary_obstack): Likewise.
2094 (momentary_obstack): Likewise.
2095 (temp_decl_obstack): Likewise.
2096 (saveable_obstack): Likewise.
2097 (rtl_obstack): Likewise.
2098 (current_obstack): Likewise.
2099 (expression_obstack): Likewise.
2100 (struct obstack_stack): Likewise.
2101 (obstack_stack): Likewise.
2102 (obstack_stack_obstack): Likewise.
2103 (maybepermanent_firstobj): Likewise.
2104 (temporary_firstobj): Likewise.
2105 (momentary_firstobj): Likewise.
2106 (temp_decl_firstobj): Likewise.
2107 (momentary_function_firstobj): Likewise.
2108 (all_types_permanent): Likewise.
2109 (struct momentary_level): Likewise.
2110 (momentary_stack): Likewise.
2111 (init_obstacks): Remove initialization of removed obstacks.
2112 (save_tree_status): Remove.
2113 (restore_tree_status): Likewise.
2114 (temporary_allocation): Liekwise.
2115 (end_temporary_allocation): Liekwise.
2116 (resume_temporary_allocation): Likewise.
2117 (saveable_allocation): Likewise.
2118 (push_obstacks): Likewise.
2119 (push_obstacks_nochange): Likewise.
2120 (pop_obstacks): Likewise.
2121 (allocation_temporary_p): Likewise.
2122 (permanent_allocation): Likewise.
2123 (preserve_data): Likewise.
2124 (preserve_initializer): Likewise.
2125 (rtl_in_current_obstack): Likewise.
2126 (rtl_in_saveable_obstack): Likewise.
2127 (oballoc): Likewise.
2129 (savealloc): Likewise.
2130 (expralloc): Likewise.
2131 (print_obstack_name): Likewise.
2132 (debug_obstack): Likewise.
2133 (object_permanent_p): Likewise.
2134 (push_momentary): Likewise.
2135 (perserve_momentary): Likewise.
2136 (clear_momentary): Likewise.
2137 (pop_momentary): Likewise.
2138 (pop_momentary_nofree): Likewise.
2139 (suspend_momentary): Likewise.
2140 (resume_momentary): Likewise.
2141 (make_node): Don't set TREE_PERMANENT.
2142 (copy_node): Remove ggc_p conditionals. Don't set TYPE_OBSTACK.
2143 Don't set TREE_PERMANENT.
2144 (get_identifier): Remove ggc_p conditionals.
2145 (build_string): Likewise.
2146 (make_tree_vec): Likewise.
2147 (build_decl_list): Remove.
2148 (build_expr_list): Likewise.
2149 (tree_cons): Remove ggc_p conditionals.
2150 (decl_tree_cons): Remove.
2151 (expr_tree_cons): Likewise.
2152 (perm_tree_cons): Likewise.
2153 (temp_tree_cons): Likewise.
2154 (saveable_tree_cons): Likewise.
2155 (build1): Remove ggc_p conditionals.
2156 (build_parse_node): Likewise.
2157 (build_type_attribute_variant): Don't mess with obstacks.
2158 (build_type_copy): Likewise.
2159 (type_hash_canon): Likewise.
2160 (build_pointer_type): Likewise.
2161 (build_reference_type): Likewise.
2162 (build_index_type): Likewise.
2163 (build_range_type): Likewise.
2164 (dump_tree_statistics): Don't print obstack information.
2166 (struct tree_common): Remove permanent_flag.
2167 (TREE_PERMANENT): Remove.
2168 (TREE_SET_PERMANENT): Likewise.
2169 (TYPE_OBSTACK): Likewise.
2170 (struct tree_type): Remove obstack.
2172 (savealloc): Likewise.
2173 (build_decl_list): Likewise.
2174 (build_expr_list): Likewise.
2175 (perm_tree_cons): Likewise.
2176 (temp_tree_cons): Likewise.
2177 (saveable_tree_cons): Likewise.
2178 (decl_tree_cons): Likewise.
2179 (expr_tree_cons): Likewise.
2180 (suspend_momentary): Likewise.
2181 (allocation_temporary_p): Likewise.
2182 (resume_momentary): Likewise.
2183 (push_obstacks_nochange): Likewise.
2184 (permanent_allocation): Likewise.
2185 (push_momentary): Likewise.
2186 (clear_momentary): Likewise.
2187 (pop_momentary): Likewise.
2188 (end_temporary_allocation): Likewise.
2189 (pop_obstacks): Likewise.
2190 (push_obstacks): Likewise.
2191 (pop_momentary_nofree): LIkewise.
2192 (preserve_momentary): Likewise.
2193 (saveable_allocation): Likewise.
2194 (temporary_allocation): Likewise.
2195 (resume_temporary_allocation): Likewise.
2196 (perserve_initializer): Likewise.
2197 (debug_obstack): Likewise.
2198 (rtl_in_current_obstack): Likewise.
2199 (rtl_in_saveable_obstack): Likewise.
2201 * varasm.c (current_obstack): Remove.
2202 (saveable_obstack): Remove.
2203 (rtl_obstack): Remove.
2204 (immed_double_const): Don't mess with obstacks.
2205 (immed_real_cons): Likewise.
2206 (output_constant_def): Likewise.
2207 (init_varasm_status): Use xcalloc.
2208 (mark_pool_constant): Mark the pool constant itself.
2209 (free_varasm_status): Free memory.
2210 (decode_rtx_const): Call bzero directly, rather than expanding it
2212 (record_rtx_const): Don't mess with obstacks.
2213 (force_const_mem): Likewise.
2214 * config/arm/arm.c (arm_encode_call_attribute): Remove ggc_p
2216 (aof_pic_entry): Likewise.
2217 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2218 * config/m32r/m32r.c (m32r_encode_section_info): Likewise.
2219 * config/pa/pa.c (saveable_obstack): Remove.
2220 (rtl_obstack): Likewise.
2221 (current_obstack): Likewise.
2222 (output_call): Don't mess with obstacks.
2223 (hppa_encode_label): Remove ggc_p conditionals.
2224 * config/romp/romp.c (get_symref): Don't mess with obstacks.
2225 * config/rs6000/rs6000.c (output_toc): Remove ggc_p conditional.
2226 (rs6000_encode_section_info): Likewise.
2227 * config/sh/sh.c (get_fpscr_rtx): Likewise.
2229 Thu Oct 12 16:02:31 MET DST 2000 Jan Hubicka <jh@suse.cz>
2231 * i386.md (adddi3, subdi3 splitters): Update for new pattern.
2232 (addsi3_cc, addqi3_cc, subsi3_cc): Remove
2233 (addsi3_carry): Canonicalize.
2234 (addqi_5): Remove '*'.
2235 (sbb pattern): Canonicalize.
2237 * i386.md (cmp to inc/add peep2): New.
2239 2000-10-12 Richard Earnshaw <rearnsha@arm.com>
2241 * bb-reorder.c (reorder_basic_blocks): Allocate an aux block for
2244 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
2246 * gcc.texi: Merge in contents of README.TRAD and TESTS.FLUNK.
2247 * README.TRAD, TESTS.FLUNK: Remove.
2249 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
2251 * c-common.c (decl_attributes): Don't allow strftime formats with
2252 first_arg_num nonzero.
2253 (check_format_info): Set wanted_type and wanted_type_name to zero
2254 before they are possibly assigned and used.
2256 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
2258 * c-common.c (scanf_flag_specs): Add flags ' and I.
2259 (strftime_flag_pairs): Disallow any pair of the _, - and 0 flags,
2260 or the ^ and # flags together.
2261 (scan_char_table): Handle the ' and I flags.
2262 (format_types): Add ' and I flags for scanf.
2264 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
2266 * c-common.c (print_char_table): Use the unpromoted type for
2267 lengths "h" and "hh" with conversions dioxXu.
2268 (check_format_types): Apply the default argument promotions where
2269 the wanted type is not a pointer target.
2271 2000-10-11 Michael Meeks <mmeeks@gnu.org>
2272 Joseph S. Myers <jsm28@cam.ac.uk>
2274 * c-typeck.c (check_modify_expr): New function.
2275 (build_modify_expr): Call it if warn_sequence_point.
2276 * c-decl.c (warn_sequence_point): New variable.
2277 (c_decode_option): Handle -Wsequence-point and
2278 -Wno-sequence-point. Enable -Wsequence-point as part of -Wall.
2279 * c-tree.h (warn_sequence_point): Declare.
2280 * invoke.texi (-Wsequence-point): Document.
2281 * toplev.c (documented_lang_options): Add -Wsequence-point and
2282 -Wno-sequence-point.
2283 Original work by Michael Meeks, 16 Jun 1998.
2285 Wed Oct 11 06:15:41 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2287 * tree.c (get_narrower): Don't look at precision of field if
2290 Tue Oct 10 23:14:33 2000 Denis Chertykov <denisc@overta.ru>
2292 * config/avr/avr.c (valid_machine_decl_attribute): Allow `extern'
2293 declaration for data with "progmem" attribute.
2295 2000-10-09 Marek Michalkiewicz <marekm@linux.org.pl>
2297 * config/avr/avr.c (out_shift_with_cnt): Use AS2 macro.
2298 Correct insn length if shift count is a memory operand.
2299 * config/avr/avr.md: New define_peephole2 to use *reload_inqi.
2300 (*iorhi3_clobber): Change lo8 to hi8.
2301 (zero_extendhisi2): Change %B0 to %A1.
2302 (ashlhi3, ashrhi3): Correct insn length.
2303 (andhi3, abssf2, extendqisi2, extendhisi2): Change "cc"
2304 from "clobber" to "set_n" in some alternatives.
2306 2000-10-10 Jakub Jelinek <jakub@redhat.com>
2308 * reload1.c (calculate_needs_all_insns): If deleting an instruction,
2309 remove its insn_chain structure as well.
2311 2000-10-09 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2313 * dbxout.c (dbxout_source_line): Remove extra tab.
2315 2000-10-09 Hans-Peter Nilsson <hp@bitrange.com>
2317 * config/elfos.h (UNIQUE_SECTION): Apply STRIP_NAME_ENCODING on name.
2319 2000-10-09 Richard Henderson <rth@cygnus.com>
2321 * Makefile.in (LANG_LIB2FUNCS): Remove.
2322 (LIB2FUNCS): Remove _pure.
2323 (LIB2ADD): Remove LANG_LIB2FUNCS.
2324 (stage_a): Don't set LANG_LIB2FUNCS.
2325 * libgcc2.c (__terminate): Mark noreturn.
2326 (__pure_virtual): Remove.
2327 * mklibgcc.in: Remove LIB2ADD .txt processing.
2329 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
2331 * arm.md (push_multi): Revert unintended change.
2333 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
2335 * arm.c: Miscellaneous white space and comment clean-ups. No
2339 2000-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2341 * c-common.c (c_expand_builtin_printf): Set the TREE_TYPE of a new
2342 STRING_CST by calling combine_strings.
2344 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
2346 * arm.c (thumb_expand_movstrqi): Rewrite to support SSA form.
2347 (thumb_output_move_mem_multiple): Support new insn format.
2348 * arm.md (movmem12b): Use SSA compatible format.
2349 (movmem8b): Likewise.
2351 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
2353 * arm.md (predicable): New attribute, default to "no".
2354 (all patterns): Mark as predicable if appropriate.
2355 (conditional execution splits): Split using predication format.
2356 (define_cond_exec): Define.
2357 * arm.c (arm_print_operand): handle insn predicate.
2359 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2361 * README.NS32K: Remove file.
2363 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2365 * README-bugs: Remove file.
2367 2000-10-08 Philipp Thomas <pthomas@suse.de>
2368 * aclocal.m4 (AM_GNU_GETTEXT): Fix non portable use of == operator
2370 * configure: Rebuilt.
2372 2000-10-08 Philipp Thomas <pthomas@suse.de>
2373 * aclocal.m4 (AM_WITH_NLS): When not using included gettext,
2374 disable catalog building if no suitable program was found.
2375 Move warning message from here
2376 (AM_GNU_GETTEXT): To here.
2377 * configure: Rebuilt.
2379 2000-10-08 Philipp Thomas <pthomas@suse.de>
2380 * aclocal.m4 (GCC_PATH_PROG): New. Like AC_PATH_PROG but uses
2381 different cache variables.
2382 (GCC_PATH_PROG_WITH_TEST): New. Like AM_PATH_PROG_WITH_TEST but
2383 uses different cache variables.
2384 (AM_WITH_NLS): Use GCC_PATH_PROG and GCC_PATH_PROG_WITH_TEST.
2385 * configure: Regenerated.
2387 2000-10-08 Richard Henderson <rth@cygnus.com>
2389 * Makefile.in (libgcc.mk): Pass SHLIB_EXT, not SHLIB_LIBS.
2390 * configure.in (sparc*-*-solaris*): Use t-slibgcc{,-sld}.
2391 * mklibgcc.in: Consider SHLIB_LINK the entire shlib build command.
2394 * config/t-linux (SHLIB_EXT): New.
2395 (SHLIB_LINK): Use the entire build command, with substitutions.
2396 (SHLIB_LIBS): Remove.
2397 * config/alpha/t-osf4: Likewise.
2398 * config/mips/t-iris6: Likewise.
2399 * config/sparc/t-sol2: Likewise, but move shlib stuff...
2400 * config/sparc/t-slibgcc-sld: ...here.
2401 * config/sparc/t-slibgcc: New file.
2403 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
2405 * tm.texi (INTMAX_TYPE, UINTMAX_TYPE): Define.
2406 * c-common.h (enum c_tree_index): Add CTI_INTMAX_TYPE and
2408 (intmax_type_node, uintmax_type_node): Define.
2409 * c-common.c (decl_attributes): If pedantic, warn if `mode'
2410 attributes create a type wider than intmax_t.
2411 (T_IM, T_UIM): Define properly.
2412 * c-decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
2414 (init_decl_processing): Initialize intmax_type_node and
2416 * c-lex.c (lex_number): When pedantic and warning for integer
2417 constants that are too large, in C99 mode warn for those that have
2418 a type wider than long long.
2420 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
2422 * c-common.c (FMT_FLAG_ARG_CONVERT, FMT_FLAG_SCANF_A_KLUDGE,
2423 FMT_FLAG_FANCY_PERCENT_OK): Define.
2424 (format_char_info): Add flag "4" to comment.
2425 (format_flag_spec, format_flag_pair): New structures.
2426 (format_kind_info): Add additional fields to control format
2428 (printf_flag_specs, printf_flag_pairs, scanf_flag_specs,
2429 scanf_flag_pairs, strftime_flag_specs, strftime_flag_pairs): New
2431 (time_char_table): Use "4" flag to handle %Ey.
2432 (format_types): Add entries for new fields.
2433 (get_flag_spec): New function.
2434 (check_format_info): Increase size of flag_chars[] to 256.
2435 Control format checking using the new fields of a format_kind_info
2436 and the new tables; remove all conditionals on printf_format_type,
2437 scanf_format_type or strftime_format_type. Handle all details of
2438 bad combinations of flags (including width, precision and strftime
2439 modifiers) through data rather than ad hoc code. Handle all
2440 details of standard versions in which flags appeared through
2441 data. Use the "4" flag.
2443 2000-10-07 Will Cohen <wcohen@redhat.com>, Kazu Hirata <kazu@hxi.com>
2445 * config/h8300/h8300.md: Remove the memory alternative and correct
2446 the insn lengths in the templates for sign extention and zero
2449 2000-10-07 Richard Henderson <rth@cygnus.com>
2451 * calls.c (expand_call): Disallow sibcalls to noreturn functions.
2452 * flow.c (make_edges): Revert last change.
2454 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Don't test
2456 * config/pa/pa.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
2458 2000-10-06 David O'Brien <obrien@dragon.nuxi.com>
2460 * config/alpha/elf.h: Standardize the formatting.
2462 2000-10-06 David O'Brien <obrien@FreeBSD.org>
2464 * config/alpha/elf.h: Protect the ASM_OUTPUT_IDENT definition with an
2467 2000-10-06 Richard Henderson <rth@cygnus.com>
2469 * function.c (diddle_return_value): Examine
2470 current_function_return_rtx instead of the DECL_RESULT.
2471 (expand_function_end): Handle reloading DECL_RESULT from memory
2472 into a hard register. Query promote_mode for sign of mismatched
2475 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
2477 * haifa-sched.c (schedule_insns): Fix typo in freeing
2478 forward_dependency_cache.
2480 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
2482 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): Add
2483 `TARGET_SH2' as a condition.
2485 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
2487 * haifa-sched.c (anti_dependency_cache, output_dependency_cache,
2488 forward_dependency_cache): New variables.
2489 (add_dependence, remove_dependence): Use anti_dependency_cache and
2490 output_dependency_cache.
2491 (compute_block_forward_dependences): Use forward_dependency_cache.
2492 (schedule_insns): Allocate and free memory for anti/output/forward
2493 dependencies caches.
2495 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
2497 * config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
2498 `! TARGET_SH1'. Reindent.
2500 2000-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2502 * builtins.c (is_valid_printf_arglist, expand_builtin_printf):
2503 Move functions from here ...
2505 * c-common.c (is_valid_printf_arglist, c_expand_builtin_printf):
2507 (c_expand_builtin): New function.
2508 (init_function_format_info): Don't set `check_function_format_ptr'.
2509 (c_common_nodes_and_builtins): Set built_in_class type for
2510 printf/__builtin_printf to BUILT_IN_FRONTEND.
2511 (c_expand_expr): Handle CALL_EXPRs that are front-end builtins.
2513 * c-common.h (build_function_call): Declare.
2515 * expr.c (expand_expr): Pass builtins with class BUILT_IN_FRONTEND
2516 to `lang_expand_expr' rather than `expand_builtin'.
2518 * tree.c (check_function_format_ptr): Delete.
2520 * tree.h (check_function_format_ptr): Likewise.
2522 2000-10-06 Hans-Peter Nilsson <hp@bitrange.com>
2524 * dwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or
2525 DW_OP_bregx when cfa->reg > 31.
2527 * frame-dwarf2.c (decode_stack_op) [case DW_OP_regx]: Add missing
2530 2000-10-05 Richard Henderson <rth@cygnus.com>
2532 * c-decl.c (warn_missing_noreturn): Remove.
2533 (c_expand_body): Don't set or check can_reach_end.
2534 * c-tree.h (warn_missing_noreturn): Move ...
2535 * flags.h: ... here.
2536 (can_reach_end): Remove.
2537 * flow.c (check_function_return_warnings): New.
2538 (make_edges): No edge to exit for noreturn sibcalls.
2539 * function.c (expand_function_end): Save the return value
2540 clobber instruction.
2541 (mark_function_status): Mark it.
2542 * function.h (struct function): Add x_clobber_return_insn.
2543 * jump.c (can_reach_end): Remove.
2544 (calculate_can_reach_end): Remove.
2545 (jump_optimize_1): Don't call it.
2546 * output.h (check_function_return_warnings): Declare.
2547 * toplev.c (warn_missing_noreturn): Move from c-decl.c
2548 (rest_of_compilation): Call check_function_return_warnings.
2550 2000-10-05 Richard Henderson <rth@cygnus.com>
2552 * Makefile.in (NM_FOR_TARGET): New.
2553 (libgcc.mk): Pass SHLIB_MKMAP, SHLIB_MAPFILES.
2554 (libgcc.a, stmp-multilib): Pass NM_FOR_TARGET.
2555 * mklibgcc.in: If SHLIB_MKMAP, build libgcc.map. Depend the
2556 shared library build on that and EXTRA_MULTILIB_PARTS.
2557 * mkmap-flat.awk: New file.
2558 * mkmap-symver.awk: New file.
2559 * libgcc-std.ver: New file.
2560 * config/libgcc-glibc.ver: New file.
2561 * config/ia64/libgcc-ia64.ver: New file.
2562 * config/t-linux (SHLIB_MKMAP, SHLIB_MAPFILES): New.
2563 (SHLIB_LINK): Add --version-script.
2564 * config/ia64/t-ia64 (SHLIB_MAPFILES): Add libgcc-ia64.ver.
2565 * config/mips/t-iris6 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
2566 * config/sparc/t-sol2 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
2567 (SHLIB_LINK): Add -M.
2569 2000-10-05 Richard Henderson <rth@cygnus.com>
2571 * Makefile.in (LIB2FUNCS): Add _clz.
2572 * libgcc2.c (__ffsdi2): Use count_trailing_zeros.
2573 (__clz_tab): Put in its own unit, non-static.
2574 * libgcc2.h: Always include longlong.h.
2576 * longlong.h [alpha] (count_leading_zeros): Use cmpbge with
2577 a zero instead of -1.
2578 (count_trailing_zeros): Likewise.
2580 2000-10-05 Richard Henderson <rth@cygnus.com>
2582 * config/alpha/alpha.c (alpha_emit_setcc): Don't swap GT tests
2583 when second op1 is const0_rtx. Validate op0 as a register.
2584 * config/alpha/alpha.md (setcc_internal): Don't allow constants
2585 in the first argument of the compare.
2586 (setcc_swapped_internal): Likewise.
2587 (setne_internal): Likewise.
2589 2000-10-05 Geoff Keating <geoffk@cygnus.com>
2591 * tree.c (tree_size): New function split out of copy_node.
2592 (make_node): Remove obstack handling. Use tree_size.
2593 (copy_node): Use tree_size.
2594 * tree.h: Prototype tree_size.
2596 2000-10-05 Richard Henderson <rth@cygnus.com>
2598 * diagnostic.c (output_format): Add missing break.
2600 2000-10-05 Jim Wilson <wilson@cygnus.com>
2602 * function.c (fixup_var_refs_1, case SET): When gen_move_insn returns a
2603 SEQUENCE, call emit_insn_before, copy PATTERN and REG_NOTES of last
2604 sequence insn to INSN, and delete last sequence insn.
2606 2000-10-05 Phil Edwards <pme@gcc.gnu.org>
2608 * gcc.c (main): Include generated configargs.h header
2609 and use arguments in '-v' output.
2611 Thu Oct 5 16:16:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2613 * gcc.c: Move data on prefixes forward in file and reorganize.
2614 (md_exec_prefix, md_startfile_prefix, md_startfile_prefix_1):
2615 Always define, but make null if no value.
2616 (static_specs): Add "md_exec_prefix", "md_startfile_prefix",
2617 and "md_startfile_prefix_1".
2618 (main): Check whether md_exec_prefix and the others are the
2619 null string rather than whether the macro is defined.
2621 Thu Oct 5 19:04:18 2000 J"orn Rennecke <amylaar@redhat.co.uk>
2623 * (convert_move): Use zero_extendpsisi2 to do an unsigned extension
2624 from PSImode to SImode.
2626 2000-10-05 Jakub Jelinek <jakub@redhat.com>
2628 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETICS]: Fix conversion
2629 from float to integral mode with HOST_BITS_PER_WIDE_INT 64.
2630 * dwarf2out.c (add_const_value_attribute): Divide by 4, not
2633 Thu Oct 5 09:31:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2635 * fold-const.c (fold, case MINUS_EXPR, case EQ_EXPR): Perform
2636 negation in proper type.a
2638 2000-10-04 Richard Henderson <rth@cygnus.com>
2640 * configure.in (enable-shared): New.
2641 * Makefile.in (LIBGCC_DEPS): Depend on EXTRA_PARTS as well.
2642 (libgcc.mk): Pass SHLIB_LINK, SHLIB_LIBS, SHLIB_MULTILIB to mklibgcc.
2643 * mklibgcc.in: Use them to link shared a libgcc.
2644 * config/t-linux (SHLIB_LINK, SHLIB_LIBS): New.
2645 * config/alpha/t-ieee (SHLIB_MULTILIB): New.
2646 * config/mips/t-iris6 (SHLIB_LINK, SHLIB_LIBS): New.
2647 * config/sparc/t-sol2 (SHLIB_LINK, SHLIB_LIBS): New.
2649 * configure.in (alpha-osf*): Use t-osf and x-osf.
2650 * config/alpha/t-osf: New file.
2651 * config/alpha/t-osf4: New file.
2652 * config/alpha/x-osf: New file.
2653 * config/alpha/x-alpha: Remove file.
2655 2000-10-04 Will Cohen <wcohen@redhat.com>
2657 * c-typeck.c (process_init_element): Added warning for zero-length
2660 * extend.texi (Zero Length): State that static initializers for
2661 zero-length arrays are not allowed.
2663 Mon Oct 2 14:50:14 MET DST 2000 Jan Hubicka <jh@suse.cz>
2665 * rtlanal.c (single_set_1): Do not require USE and CLOBBERs
2668 2000-10-03 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2670 * config/float-c4x.h: New.
2671 * configure.in (c4x-*): Set float_format to c4x.
2672 * configure: Regenerate.
2674 2000-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2676 * configure.in (sparc-*-solaris2*): Disable 32-to-64 cross
2677 compilation for solaris versions 2.7 and greater.
2679 2000-10-02 Marc Espie <espie@openbsd.org>
2681 * config/alpha.h (WORD_SWITCH_TAKES_ARG): add -rpath to default,
2682 instead of redefining from scratch.
2684 2000-10-02 David O'Brien <obrien@dragon.nuxi.com>
2686 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Define.
2688 2000-10-01 Mark Mitchell <mark@codesourcery.com>
2690 * config/ns32k/genix.h: Remove.
2691 * config/ns32k/x-genix: Likewise.
2692 * config/ns32k/xm-genix.h: Likewise.
2693 * config/fx80: Remove all filee in directory.
2694 * config/pyr: Likewise.
2695 * config/tahoe: Likewise.
2696 * config/gmicro: Likewise.
2697 * config/spur: Likewise.
2698 * configure.in: Remove configury bits for above targets.
2699 * configure: Regenerated.
2701 * configure.in: Don't configure chill by default.
2702 * configure: Regenerated.
2704 * c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
2705 (lang_mark_false_label_stack): Remove.
2706 * c-lex.c (init_c_lex): Add file_info_tree as GC root. Allocate
2707 <top level> string in GC area.
2708 (mark_splay_tree_node): New function.
2709 (mark_splay_tree): Likewise.
2710 * except.c (mark_eh_status): Only call lang_mark_false_label_stack
2712 * ggc-callbacks.c (lang_mark_false_label_stack): Remove.
2713 * ggc-common.c (lang_mark_false_label_stack): Change type.
2714 * ggc.h (ggc_alloc_string): Add comment.
2715 (ggc_strdup): New function.
2717 Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru>
2719 * config/avr/avr.h (BRANCH_COST): Define as 0.
2721 * config/pdp11/pdp11.c: #include "tree.h" added.
2723 2000-09-30 Marek Michalkiewicz <marekm@linux.org.pl>
2725 * config/avr/avr.c (ashlhi3_out, ashlsi3_out, ashrhi3_out,
2726 ashrsi3_out, lshrhi3_out, lshrsi3_out): Optimize more cases
2727 with known shift count.
2728 * config/avr/avr.md (ashlsi3, ashrsi3, lshrsi3):
2729 New alternative for shift count 2 with no scratch register.
2730 (ashlhi3, ashlsi3): Change "cc" attribute from "clobber" to
2731 "set_n" for shift counts 1 and 2.
2733 2000-09-30 Geoff Keating <geoffk@cygnus.com>
2735 * config/rs6000/rs6000.md (movsi_to_cr): Remove the USE. Calculate
2736 the mask value from the individual SET operations.
2737 (return_internal_si): Move the USE after the RETURN.
2738 (return_internal_di): Likewise.
2739 (return_and_restore_fpregs_si): Likewise.
2740 (return_and_restore_fpregs_di): Likewise.
2741 (return_eh_si): Likewise.
2742 (return_eh_di): Likewise.
2743 * config/rs6000/rs6000.c (mtcrf_operation): Don't look for,
2745 (rs6000_emit_prologue): Don't emit the USE for movsi_to_cr.
2746 Don't generate a PARALLEL around a single operation movsi_to_cr.
2747 Generate the RETURN first in any PARALLELs.
2749 * rtlanal.c (single_set_1): Use fatal_insn to display the
2750 invalid insn. Check for more cases when a USE or CLOBBER occurs
2752 * Makefile.in: Update dependencies for rtlanal.o.
2754 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
2756 * i386.c: Move include of "config.h" to before that of <setjmp.h>.
2758 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
2760 * c-tree.texi, contrib.texi, gcc.texi, install.texi, invoke.texi:
2761 Consistently use @email for formatting email addresses.
2763 2000-09-29 Richard Henderson <rth@cygnus.com>
2765 * cse.c (notreg_cost): New argument outer.
2766 (COST): Pass in SET to notreg_cost
2768 (fold_rtx): Use COST_IN. Prefer constants when costs
2771 2000-09-29 David Edelsohn <edelsohn@gnu.org>
2773 * fixinc/inclhack.def (broken_cabs): Generalize regex.
2774 * fixinc/fixincl.x: Regenerate.
2776 2000-09-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2778 * loop.c (check_final_value): A GIV is not replaceable if used
2781 Fri Sep 29 10:04:12 2000 Jeffrey A Law (law@cygnus.com)
2783 * version.c: Bump to gcc-2.97.
2785 Frs Sep 29 13:37:59 MET DST 2000 Jan Hubicka <jh@suse.cz>
2787 * final.c (final_scan_insn): Remove extra extract_insn call;
2788 Use caching for constrain_operands.
2789 (cleanup_subreg_operands): Use caching for extract_insn.
2790 * recog.c (constrain_operands_cached): New.
2791 * recog.h (constrain_operands_cached): Declare.
2792 * i386.c (ix86_attr_length_immediate_default,
2793 ix86_attr_length_address_default, ix86_agi_dependant): Cache
2796 * recog.c (asm_noperands): Tweak.
2797 (extract_insn): Do not call asm_noperads for non-asm instructions.
2799 Fri Sep 29 13:20:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
2801 * recog.c (recog_memoized): Rename to recog_memoized_1.
2802 * recog.h (recog_memoized): Rename to recog_memoized_1.
2803 (recog_memoized): New macro.
2804 * rtl.h (single_set): Rename to single_set_1
2805 (single_set): New macro.
2806 * rtlanal.c (single_set): Rename to single_set_1; expect clobbers
2809 * i386.md (strmovsi_1, strmovhi_1 strmovqi_1):
2810 Do not use match_dup of input operands at outputs.
2811 Use register_operand for memory expression.
2812 (rep_movsi): Put use last, canonicalize.
2813 Use register_operand for memory expression.
2814 (rep_movqi): Put use last.
2815 Use register_operand for memory expression.
2816 (strsetsi_1, strset_hi_1, strsetqi_1): Do not use match_dup
2817 of input operands at outputs. Use register_operand for memory
2819 (rep_stossi): Put use last; canonicalize; fix match_dup in
2820 the address expression
2821 (rep_stosqi): Likewise.
2822 (memcmp expander): Update calls.
2823 (cmpstrsi_nz_1, cmpstrsi_1, strlensi_1): Avoid match_dups in
2826 * i386.md (fp_jcc_3, fp_jcc_4, jp_fcc_5): if_then_else operand is
2828 (fp_jcc_4, fp_jcc_3): Refuse unordered comparisons.
2830 2000-09-28 David O'Brien <obrien@FreeBSD.org>
2832 * config/i386/freebsd-aout.h: New, FreeBSD a.out config file.
2833 Contains the old contents of config/i386/freebsd.h
2834 * config/i386/freebsd.h: Now the ELF rather than a.out config file.
2835 Contains the old contents of config/i386/freebsd-elf.h
2836 * config/i386/freebsd-elf.h: Retire this file -- contents moved to
2837 config/i386/freebsd.h.
2838 * configure.in: Adjust for above changes.
2839 * po/POTFILES.in: Likewise.
2840 * po/en_GB.po: Likewise.
2841 * po/gcc.pot: Likewise.
2842 * configure: Rebuilt.
2844 2000-09-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2846 * doloop.c (doloop_modify): Prevent delete_insn() from
2847 deleting too much. Prefer loop->top over loop->start as
2848 target for the new JUMP insn.
2849 (doloop_valid_p): Ignore loop with exit_count != 0.
2851 2000-09-28 Philipp Thomas <pthomas@suse.de>
2853 * invoke.texi (i386 Options): Add athlon to table of possible
2856 2000-09-28 Gabriel Dos Reis <gdr@codesourcery.com>
2858 * diagnostic.h (output_clear_message_text): New function.
2859 (output_message_text): New macro.
2861 * diagnostic.c (clear_text_info): Rename to
2862 output_clear_message_text.
2863 (output_clear): Adjust.
2864 (output_finish): Rename to output_finalize_message. Tweek.
2865 (output_to_stream): Adjust.
2867 2000-09-28 Neil Booth <neilb@earthling.net>
2869 * cpperror.c (_cpp_begin_message): Do the test for suppression
2870 of warnings and pedantic warnings before the "is a warning an
2872 * cppinit.c (cpp_handle_option): Remove surplus \n.
2873 * cpplex.c (ON_REST_ARG): Delete.
2874 (skip_block_comment): Initialise prevc.
2875 (parse_args): Improve error messages.
2876 (maybe_paste_with_next): Use CONTEXT_VARARGS rather
2878 * cpplib.c (cpp_push_buffer): Fix grammar in message.
2879 * cppmain.c (main): Set callbacks for #ident and #pragma
2880 only if no_output option is false.
2881 (do_pragma_implementation): Only call the #pragma handler
2882 if it is set in the cpp_reader structure.
2884 Wed Sep 27 14:00:07 2000 Donald Lindsay <dlindsay@cygnus.com>
2886 * integrate.c (copy_insn_list): if an ignored return value
2887 is being clobbered, skip cloning that into the inline copy.
2889 2000-09-27 Joseph S. Myers <jsm28@cam.ac.uk>
2891 * extend.texi, invoke.texi, gcc.texi, install.texi: Consistently
2892 use @uref for formatting URLs.
2894 2000-09-27 Mark Elbrecht <snowball3@bigfoot.com>
2896 * config/i386/djgpp.h (UNIQUE_SECTION): Constify the variables
2899 Tue 26-Sep-2000 18:25:38 BST Neil Booth <neilb@earthling.net>
2901 * gcc.c (cpp_options): Add spec for -ftabstop=.
2902 (invoke_as): New spec that handles invoking as.
2903 Update specs to handle -save-temps and -traditional.
2904 * ch/lang-specs.h, f/lang-specs.h, java/lang-specs.h:
2906 * cp/lang-specs.h, objc/lang-specs.h: Update to use
2907 invoke_as, and handle -save-temps and -traditional (if
2910 2000-09-26 Jakub Jelinek <jakub@redhat.com>
2912 * config/sparc/sparc.c (sparc_emit_set_const64): Don't abort when
2914 (function_arg_slotno): Accept TImode/CTImode.
2915 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): If IN_LIBGCC2 define
2918 2000-09-26 Michael Hayes <mhayes@cygnus.com>
2920 * flow.c (flow_loop_pre_header_scan): Punt if loop enters
2923 2000-09-25 Jim Wilson <wilson@cygnus.com>
2925 * config/ia64/ia64.h (INDEX_REG_CLASS): Define to GENERAL_REGS.
2926 (REGNO_OK_FOR_INDEX_P): Define to REGNO_OK_FOR_BASE_P.
2927 (LEGITIMATE_ADDRESS_DISP): Use LEGITIMATE_ADDRESS_REG.
2928 (REG_OK_FOR_INDEX): Define to REG_OK_FOR_BASE_P.
2930 Tue 26-Sep-2000 00:16:22 BST Neil Booth <neilb@earthling.net>
2932 * cpplex.c (parse_args): Don't set VOID_REST flag.
2933 (CONTEXT_VARARGS): New flag.
2934 (maybe_paste_with_next): Set context earlier in loop. Use
2935 it. Do varargs test with CONTEXT_VARARGS flag.
2936 (push_arg_context): Set CONTEXT_VARARGS flag if we're
2937 pushing an argument context for a varargs argument.
2938 * cpplib.h (VOID_REST): Delete.
2939 * gcc.dg/cpp/vararg1.c: Add test case.
2941 2000-09-25 Branko Cibej <branko.cibej@hermes.si>
2943 * flags.h: Declare warning flag warn_system_headers.
2944 * toplev.c: Define it.
2945 (W_options): Add option -Wsystem-headers.
2946 * diagnostic.c (count_error): Test warn_system_headers.
2947 * invoke.texi: Add description for -Wsystem-headers.
2948 * cpplib.h (cpp_options): New member warn_system_headers.
2949 * cpphash.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Don't test
2950 CPP_IN_SYSTEM_HEADER.
2951 * cpplib.c (do_import, do_pragma_once): Likewise.
2952 * cpperror.c (_cpp_begin_message): Test warn_system_headers
2953 and CPP_IN_SYSTEM_HEADER.
2954 * cppinit.c (handle_option): Recognize -Wsystem_headers.
2955 (print_help): Describe -Wsystem_headers.
2956 * cpplex.c (lex_line): Reorganize condition so that warnings
2957 about C++ comments in system headers can be enabled. Remove
2958 label do_line_comment.
2960 Mon 25-Sep-2000 23:38:27 BST Neil Booth <neilb@earthling.net>
2962 * cpplex.c (save_comment): Only store the initial '/'
2964 (lex_token): Combine handling of the two comment types.
2965 Pass everything but the initial '/' to save_comment.
2967 Mon 25-Sep-2000 23:31:45 BST Neil Booth <neilb@earthling.net>
2969 * cpphash.h (_cpp_digraph_spellings, _cpp_process_directive,
2970 _cpp_can_paste): New library-internal prototypes.
2971 * cpplex.c (dump_param_spelling, output_line_command,
2972 output_token, cpp_scan_buffer, cpp_scan_buffer_nooutput,
2973 cpp_printf, cpp_output_list): Move to cppoutput.c.
2974 (process_directive, can_paste, digraph_spellings): Add _cpp_ prefix.
2975 * cppmacro.c (dump_macro_args, cpp_dump_definition) Move to
2977 * cppoutput.c (dump_macro_args, cpp_dump_definition, output_token,
2978 dump_param_spelling, output_line_command, cpp_scan_buffer,
2979 cpp_scan_buffer_nooutput, cpp_printf, cpp_output_list): Moved
2981 * Makefile.in: Add cppoutput.c.
2982 * po/POTFILES.in: Add cppoutput.c.
2984 2000-09-25 Richard Henderson <rth@cygnus.com>
2986 * config/ia64/ia64.c (ia64_print_operand): Define 'e' as 64-n.
2987 * config/ia64/ia64.md (rotrsi3): Allow variable rotates; don't
2988 split until after reload.
2989 (rotlsi3, rotldi3): New.
2991 2000-09-25 Gabriel Dos Reis <gdr@codesourcery.com>
2993 * diagnostic.c (output_last_position): Define.
2994 (set_real_maximum_length): Tweek.
2995 * diagnostic.h (output_last_position): Declare.
2997 2000-09-25 Kazu Hirata <kazu@hxi.com>
2999 * config/i386/i386.c: Fix formatting.
3001 2000-09-24 Alan Lehotsky <alehotsky@cygnus.com>
3003 * emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when
3004 UNITS_PER_WORD is small.
3006 2000-09-25 Joseph S. Myers <jsm28@cam.ac.uk>
3008 * c-common.c (format_char_info): Add flags2; update comments.
3009 (print_char_table, scan_char_table, time_char_table): Split some
3010 flags out into flags2.
3011 (check_format_info): Use flags2 for those flags, for identifying
3012 the initial character of a scanf scanset, and for identifying
3013 printf formats where the '0' flag is ignored with precision.
3015 2000-09-25 Hans-Peter Nilsson <hp@axis.com>
3017 Changes below marked "here" add TABs on either or both sides,
3018 covering start of line, up to any operand for all noted .*ASM.*_OP
3019 definitions. All callers changed.
3020 * tm.texi: Make documented *_ASM.*_OP:s include spacing
3021 (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, SHARED_SECTION_ASM_OP,
3022 BSS_SECTION_ASM_OP, SHARED_BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
3023 ASM_BYTE_OP, FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
3024 ASM_STABS_OP, ASM_STABD_OP, ASM_STABN_OP).
3025 Fix typos in description for LONG_LONG_TYPE_SIZE and
3026 FINI_SECTION_ASM_OP.
3027 * crtstuff.c (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Explain
3028 why these defaults don't have leading spacing.
3029 * dbxout.c (ASM_STABS_OP, ASM_STABN_OP): Here.
3030 * dwarf2out.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
3031 UNALIGNED_DOUBLE_INT_ASM_OP, SECTION_ASM_OP, ASM_BYTE_OP): Here.
3032 * dwarfout.c (FILE_ASM_OP, VERSION_ASM_OP,
3033 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, ASM_BYTE_OP,
3034 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP): Here.
3035 * defaults.h (ASM_STABD_OP, EH_FRAME_SECTION_ASM_OP): Here.
3036 * varasm.c (ASM_STABS_OP): Here.
3037 * xcoffout.h (ASM_STABS_OP): Here.
3038 * config/elfos.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
3039 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
3040 INT_ASM_OP, ASCII_DATA_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP,
3041 STRING_ASM_OP): Here.
3042 * config/freebsd.h (IDENT_ASM_OP): Here.
3043 * config/linux-aout.h (SET_ASM_OP): Here.
3044 * config/linux.h (SET_ASM_OP): Here.
3045 * config/lynx.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
3047 * config/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
3048 * config/nextstep.h (EH_FRAME_SECTION_ASM_OP, ALIGN_ASM_OP): Here.
3049 * config/openbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
3050 * config/psos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
3052 * config/ptx4.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
3053 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
3054 INT_ASM_OP, ASCII_DATA_ASM_OP, CONST_SECTION_ASM_OP,
3055 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
3056 FINI_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP STRING_ASM_OP): Here.
3057 * config/svr3.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
3058 CONST_SECTION_ASM_OP, ASM_BYTE_OP): Here.
3059 * config/a29k/udi.h (INT_ASM_OP): Here.
3060 * config/alpha/alpha-interix.h (CONST_SECTION_ASM_OP,
3061 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
3063 * config/alpha/alpha.h (TEXT_SECTION_ASM_OP,
3064 READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3065 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
3066 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_STABS_OP, ASM_STABN_OP,
3067 ASM_STABD_OP): Here.
3068 * config/alpha/elf.h (IDENT_ASM_OP, SKIP_ASM_OP, ALIGN_ASM_OP,
3069 COMMON_ASM_OP, INT_ASM_OP, ASCII_DATA_ASM_OP,
3070 CONST_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
3071 BSS_SECTION_ASM_OP, SBSS_SECTION_ASM_OP, SDATA_SECTION_ASM_OP,
3072 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, TYPE_ASM_OP,
3073 SIZE_ASM_OP, STRING_ASM_OP): Here.
3074 * config/alpha/vms.h (LINK_SECTION_ASM_OP,
3075 READONLY_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP,
3076 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, COMMON_ASM_OP): Here.
3077 * config/arc/arc.h (ASM_BYTE_OP, SET_ASM_OP): Here.
3078 (PUSHSECTION_ASM_OP): Define this, not PUSHSECTION_FORMAT.
3079 * config/arm/aof.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP):
3081 * config/arm/aout.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3082 BSS_SECTION_ASM_OP, SET_ASM_OP): Here.
3083 * config/arm/coff.h (INT_ASM_OP): Here.
3084 * config/arm/conix-elf.h (UNALIGNED_WORD_ASM_OP): Here.
3085 * config/arm/elf.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP): Here.
3086 * config/arm/linux-elf.h (IDENT_ASM_OP, CONST_SECTION_ASM_OP,
3087 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Here.
3088 * config/arm/unknown-elf.h (UNALIGNED_WORD_ASM_OP): Here.
3089 * config/avr/avr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3090 ASM_BYTE_OP, TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP,
3091 STRING_ASM_OP): Here. Update documentation copy in comments.
3092 * config/c4x/c4x.h (ASM_STABS_OP, BSS_SECTION_ASM_OP): Here.
3093 * config/clipper/clipper.h (TEXT_SECTION_ASM_OP,
3094 DATA_SECTION_ASM_OP): Here.
3095 * config/clipper/clix.h (BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP):
3097 * config/convex/convex.h (TEXT_SECTION_ASM_OP,
3098 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
3099 * config/d30v/d30v.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3100 BSS_SECTION_ASM_OP): Here.
3101 * config/fr30/fr30.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3102 BSS_SECTION_ASM_OP): Here.
3103 * config/fx80/fx80.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3105 * config/gmicro/gmicro.h (TEXT_SECTION_ASM_OP,
3106 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
3107 * config/h8300/h8300.h (ASM_WORD_OP): Here.
3108 * config/i370/i370.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3109 BSS_SECTION_ASM_OP): Here.
3110 * config/i386/aix386.h (INIT_SECTION_ASM_OP): Here.
3111 * config/i386/bsd.h (ASM_BYTE_OP): Here.
3112 * config/i386/cygwin.h (SET_ASM_OP, INT_ASM_OP): Here.
3113 * config/i386/dgux.h (CONST_SECTION_ASM_OP): Here.
3114 * config/i386/djgpp.h (IDENT_ASM_OP, INT_ASM_OP, SET_ASM_OP):
3116 * config/i386/freebsd-elf.h (SET_ASM_OP): Here.
3117 * config/i386/freebsd.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP):
3119 * config/i386/i386-coff.h (CTORS_SECTION_ASM_OP,
3120 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
3121 * config/i386/i386-interix.h (STRING_ASM_OP, CONST_SECTION_ASM_OP,
3122 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
3124 * config/i386/i386elf.h (BSS_SECTION_ASM_OP): Here.
3125 * config/i386/netbsd.h (INT_ASM_OP): Here.
3126 * config/i386/openbsd.h (INT_ASM_OP): Here.
3127 * config/i386/osfrose.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP,
3128 IDENT_ASM_OP): Here.
3129 * config/i386/sco5.h (ALIGN_ASM_OP, ASCII_DATA_ASM_OP,
3130 ASM_BYTE_OP, IDENT_ASM_OP, COMMON_ASM_OP, SET_ASM_OP,
3131 LOCAL_ASM_OP, INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, STRING_ASM_OP,
3132 SKIP_ASM_OP, GLOBAL_ASM_OP): Here.
3133 * config/i386/seq-sysv3.h (SHARED_SECTION_ASM_OP,
3134 SHARED_BSS_SECTION_ASM_OP): Here.
3135 * config/i386/sequent.h (SHARED_SECTION_ASM_OP): Here.
3136 * config/i386/sun386.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
3137 DATA_SECTION_ASM_OP): Here.
3138 * config/i386/svr3gas.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
3139 CONST_SECTION_ASM_OP): Here.
3140 * config/i386/sysv3.h (INIT_SECTION_ASM_OP): Here.
3141 * config/i386/unix.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3142 BSS_SECTION_ASM_OP): Here.
3143 * config/i860/bsd-gas.h (ASCII_DATA_ASM_OP): Here.
3144 * config/i860/bsd.h (ASCII_DATA_ASM_OP): Here.
3145 * config/i860/fx2800.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP,
3146 BSS_ASM_OP): Here, but use trailing spaces.
3147 * config/i860/i860.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
3148 DATA_SECTION_ASM_OP): Here.
3149 * config/i860/paragon.h (ASCII_DATA_ASM_OP, BSS_SECTION_ASM_OP):
3151 * config/i860/sysv3.h (ASCII_DATA_ASM_OP, CTORS_SECTION_ASM_OP,
3152 DTORS_SECTION_ASM_OP, TDESC_SECTION_ASM_OP): Here.
3153 * config/i860/sysv4.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
3154 TDESC_SECTION_ASM_OP): Here.
3155 * config/i960/i960-coff.h (CTORS_SECTION_ASM_OP,
3156 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
3157 * config/i960/i960.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3159 * config/ia64/ia64.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3160 BSS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
3161 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
3162 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
3163 * config/ia64/sysv4.h (ASM_BYTE_OP, STRING_ASM_OP, SKIP_ASM_OP,
3164 COMMON_ASM_OP, ASCII_DATA_ASM_OP, INIT_SECTION_ASM_OP,
3165 FINI_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
3166 SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Here.
3167 * config/m32r/m32r.h (SCOMMON_ASM_OP): Here.
3168 * config/m68hc11/m68hc11.h (GLOBAL_ASM_OP): Here.
3169 * config/m68k/auxas.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
3170 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
3172 * config/m68k/coff.h (BSS_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
3173 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
3174 * config/m68k/crds.h (BSS_SECTION_ASM_OP): Here.
3175 * config/m68k/dpx2.h (ASM_BYTE_OP, GLOBAL_ASM_OP): Here.
3176 * config/m68k/hp320.h (ASCII_DATA_ASM_OP, GLOBAL_ASM_OP): Here.
3177 * config/m68k/linux.h (BSS_SECTION_ASM_OP): Here.
3178 * config/m68k/lynx.h (BSS_SECTION_ASM_OP): Here.
3179 * config/m68k/m68k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3180 GLOBAL_ASM_OP): Here.
3181 * config/m68k/m68kelf.h (SWBEG_ASM_OP, BSS_ASM_OP,
3182 BSS_SECTION_ASM_OP): Here.
3183 * config/m68k/m68kv4.h (BSS_ASM_OP): Here.
3184 * config/m68k/mot3300.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3185 ASCII_DATA_ASM_OP, SET_ASM_OP, CTORS_SECTION_ASM_OP,
3186 DTORS_SECTION_ASM_OP, GLOBAL_ASM_OP, ASM_BYTE_OP, ALIGN_ASM_OP,
3188 * config/m68k/newsgas.h (SET_ASM_OP): Here.
3189 * config/m68k/rtemself.h (INIT_SECTION_ASM_OP,
3190 FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
3191 * config/m68k/sgs.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
3192 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
3193 SET_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here,
3194 but use trailing spaces.
3195 * config/m68k/tower-as.h (TEXT_SECTION_ASM_OP,
3196 DATA_SECTION_ASM_OP, GLOBAL_ASM_OP, INIT_SECTION_ASM_OP,
3197 FINI_SECTION_ASM_OP, CONST_SECTION_ASM_OP, BSS_SECTION_ASM_OP):
3199 * config/m88k/dgux.h (FINI_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
3200 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
3201 * config/m88k/m88k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3202 CONST_SECTION_ASM_OP, TDESC_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
3203 DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
3204 IDENT_ASM_OP, FILE_ASM_OP, SECTION_ASM_OP, SET_ASM_OP,
3205 GLOBAL_ASM_OP, ALIGN_ASM_OP, SKIP_ASM_OP, COMMON_ASM_OP,
3206 BSS_ASM_OP, FLOAT_ASM_OP, DOUBLE_ASM_OP, INT_ASM_OP, SHORT_ASM_OP,
3207 CHAR_ASM_OP, ASCII_DATA_ASM_OP, SBSS_ASM_OP, SCOMM_ASM_OP,
3208 SDATA_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, INTERNAL_ASM_OP,
3209 VERSION_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
3210 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP, REQUIRES_88110_ASM_OP,
3212 * config/m88k/openbsd.h (SET_ASM_OP): Here.
3213 * config/m88k/sysv4.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
3214 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
3215 * config/mcore/mcore-elf.h (UNALIGNED_INT_ASM_OP,
3216 UNALIGNED_SHORT_ASM_OP, CTORS_SECTION_ASM_OP,
3217 DTORS_SECTION_ASM_OP): Here.
3218 * config/mcore/mcore-pe.h (CTORS_SECTION_ASM_OP,
3219 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
3220 * config/mips/elf.h (TYPE_ASM_OP, SIZE_ASM_OP,
3221 BSS_SECTION_ASM_OP): Here.
3222 * config/mips/elf64.h (TYPE_ASM_OP, SIZE_ASM_OP): Here.
3223 * config/mips/iris5.h (ABICALLS_ASM_OP): Here.
3224 * config/mips/iris6.h (TYPE_ASM_OP, SIZE_ASM_OP,
3225 POPSECTION_ASM_OP, BSS_SECTION_ASM_OP, CONST_SECTION_ASM_OP_32,
3226 CONST_SECTION_ASM_OP_64, CTORS_SECTION_ASM_OP,
3227 DTORS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
3228 * config/mips/mips.c (ABICALLS_ASM_OP): Here.
3229 * config/mips/mips.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP):
3231 * config/mips/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP):
3233 * config/mips/osfrose.h (SET_ASM_OP): Here.
3234 * config/mips/sni-svr4.h (ABICALLS_ASM_OP): Here.
3235 * config/ns32k/encore.h (SHARED_SECTION_ASM_OP): Here.
3236 * config/ns32k/merlin.h (SHARED_SECTION_ASM_OP): Here.
3237 * config/ns32k/ns32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3239 * config/ns32k/sequent.h (SHARED_SECTION_ASM_OP): Here.
3240 * config/ns32k/tek6000.h (SHARED_SECTION_ASM_OP): Here.
3241 * config/pa/pa-64.h (INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP): Here.
3242 * config/pa/pa.h (ASM_STABS_OP, ASM_STABN_OP): Here.
3243 * config/pj/pj.h (SET_ASM_OP, BSS_SECTION_ASM_OP): Here.
3244 * config/pyr/pyr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3246 * config/romp/romp.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3248 * config/rs6000/rs6000.h (SET_ASM_OP): Here.
3249 * config/rs6000/sol2.h (ASM_STABN_OP): Here.
3250 * config/rs6000/sysv4.h (SKIP_ASM_OP, LOCAL_ASM_OP, LCOMM_ASM_OP):
3252 * config/sh/sh.h (SET_ASM_OP, BSS_SECTION_ASM_OP,
3253 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here.
3254 * config/sparc/linux.h (COMMON_ASM_OP): Here.
3255 * config/sparc/linux64.h (COMMON_ASM_OP,
3256 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
3257 * config/sparc/litecoff.h (BSS_SECTION_ASM_OP,
3258 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
3259 * config/sparc/lynx.h (BSS_SECTION_ASM_OP): Here.
3260 * config/sparc/pbd.h (ASM_INT_OP): Here.
3261 * config/sparc/sp64-elf.h (UNALIGNED_LONGLONG_ASM_OP): Here.
3262 * config/sparc/sparc.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
3263 DATA_SECTION_ASM_OP, IDENT_ASM_OP): Here.
3264 * config/sparc/sun4gas.h (UNALIGNED_DOUBLE_INT_ASM_OP,
3265 UNALIGNED_INT_ASM_OP, UNALIGNED_SHORT_ASM_OP): Here.
3266 * config/sparc/sysv4.h (STRING_ASM_OP, COMMON_ASM_OP, SKIP_ASM_OP,
3267 UNALIGNED_DOUBLE_INT_ASM_OP, UNALIGNED_INT_ASM_OP,
3268 UNALIGNED_SHORT_ASM_OP, PUSHSECTION_ASM_OP, POPSECTION_ASM_OP,
3269 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
3270 CONST_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
3271 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
3272 EH_FRAME_SECTION_ASM_OP): Here.
3273 * config/sparc/vxsim.h (COMMON_ASM_OP): Here.
3274 * config/spur/spur.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3276 * config/tahoe/tahoe.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3278 * config/v850/v850.h (SCOMMON_ASM_OP, ZCOMMON_ASM_OP,
3279 TCOMMON_ASM_OP): Here.
3280 * config/vax/vax.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
3282 * config/we32k/we32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3285 2000-09-25 Richard Henderson <rth@cygnus.com>
3287 * expmed.c (store_bit_field): Adjust last change to not consider
3288 any word-sized field naturally aligned.
3290 2000-09-24 Richard Henderson <rth@cygnus.com>
3292 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
3293 TFmode unordered compares properly. Revalidate integer compare
3295 (alpha_emit_setcc): New.
3296 (alpha_emit_conditional_move): Revalidate integer compare operands.
3297 * config/alpha/alpha-protos.h: Update.
3298 * config/alpha/alpha.md (cmpdi): Allow general operands.
3299 (sne): Use alpha_emit_setcc.
3300 (seq, slt, sle, sgt, sge, sltu, sleu, sgtu, sgeu): Likewise.
3301 (sunordered, sordered): New.
3303 2000-09-24 Richard Henderson <rth@cygnus.com>
3305 * config/ia64/ia64-protos.h: Update.
3306 * config/ia64/ia64.c (call_multiple_values_operation): Remove.
3307 (ia64_expand_call): New.
3308 (ia64_expand_prologue): Emit an alloc if we need extra input
3310 (ia64_expand_epilogue): New arg sibcall_p; don't emit the return
3311 instruction if true.
3312 (struct reg_flags): Add is_sibcall.
3313 (rtx_needs_barrier): A sibcall does not use CFM et al. Ignore USEs.
3314 (emit_insn_group_barriers): Set flags.is_sibcall. Remove hacks
3315 for CODE_FOR_gr_spill_internal/CODE_FOR_gr_restore_internal.
3316 * config/ia64/ia64.h (PREDICATE_CODES): Update.
3317 * config/ia64/ia64.md (call): Use ia64_expand_call.
3318 (call_value): Likewise.
3319 (sibcall, sibcall_value): New.
3320 (call patterns): Remove extra expanders; tidy.
3321 (sibcall_epilogue): New.
3322 (set_bsp): Remove the extra USE. Put the operand inside the UNSPEC.
3324 2000-09-24 Richard Henderson <rth@cygnus.com>
3326 * emit-rtl.c (gen_lowpart_common): Use trunc_int_for_mode.
3328 * sibcall.c (skip_pic_restore): New.
3329 (identify_call_return_value): Use it.
3331 2000-09-24 Mark Mitchell <mark@codesourcery.com>
3333 * c-tree.texi: Moved here from cp/ir.texi. Documented nested
3334 functions. Generalize to handle both C and C++.
3335 * Makefile.in (c-tree.info): New target.
3336 (info): Add c-tree.info.
3338 Sun Sep 24 09:15:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3340 * expr.c (store_field): If BITSIZE is negative, use size of type.
3341 (expand_expr, case COMPONENT_EXPR): Likewise.
3343 Sun 24-Sep-2000 11:40:23 BST Neil Booth <NeilB@earthling.net>
3345 * cpplex.c: Update TODO comment.
3346 * cpplib.c (do_error, do_warning): Merge common code of
3347 do_error and do_warning into do_diagnostic. Use it.
3348 (do_diagnostic): New function.
3349 * cpplib.h: Fix comment typo.
3351 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
3353 * c-common.c (check_format_info): Warn for a wide character string
3354 used as a non-wide format argument.
3356 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
3358 * builtins.def (BUILT_IN_LLABS): Add.
3359 * builtins.c (expand_builtin): Also abort on BUILT_IN_LLABS.
3360 * c-common.c (c_common_nodes_builtins): Create builtin functions
3361 __builtin_llabs, and plain llabs unless no_nonansi_builtins
3362 outside of C99 mode.
3363 (expand_tree_builtin): Handle BUILT_IN_LLABS.
3365 Sat 23-Sep-2000 22:39:18 BST Neil Booth <NeilB@earthling.net>
3367 * cpphash.h (CPP_RESERVE, CPP_PUTS_Q, CPP_PUTS, CPP_PUTC_Q,
3368 CPP_PUTC, DUMMY_TOKEN, NO_DUMMY_TOKEN): Delete.
3369 * cpplex.c (_cpp_expand_token_space, _cpp_init_toklist,
3370 _cpp_free_toklist): No need to worry about extra dummy token
3371 at the start of token lists any more.
3372 (trigraph_ok): Only warn outside comments.
3373 (skip_block_comment): Set and clear lexing_comment.
3374 (skip_line_comment): Take a cpp_reader not cpp_buffer.
3375 Set and clear lexing_comment.
3376 (parse_number): Handle leading '.' indicated by pfile->seen_dot.
3377 (check_long_token): Delete.
3378 (lex_percent, lex_dot): New subroutines of lex_token to
3379 handle lexing of '.' and '%' without lookback.
3380 (lex_token): Use lex_dot and lex_percent.
3381 (lex_line): Don't check for LIST_OFFSET.
3382 (_cpp_init_input_buffer): Update for new _cpp_init_toklist.
3383 * cpplib.c (_cpp_parse_assertion): Similarly.
3384 (cpp_push_buffer): Initialize extra_char.
3385 * cpplib.h (LIST_OFFSET): Delete.
3386 (struct cpp_buffer): New member extra_char.
3387 (struct lexer_state): New members lexing_comment and seen_dot.
3389 2000-09-23 Jason Merrill <jason@redhat.com>
3391 * config/rs6000/x-aix41 (CLIB): Define here.
3392 * config/rs6000/t-aix43: Not here.
3393 * config/rs6000/t-aix41: Or here. Remove.
3394 * configure.in: Don't use it.
3396 2000-09-22 Jason Merrill <jason@redhat.com>
3398 * configure.in: Add test for HAVE_LD_DWARF_LINKONCE.
3399 * toplev.c: Use it to initialize flag_eliminate_dwarf2dups.
3400 * config.in: Regenerate.
3402 * configure.in: Fix checks for assembler features when using a
3403 one-tree assembler that has not yet been built.
3404 Fix --disable-threads.
3406 2000-09-19 Geoff Keating <geoffk@cygnus.com>
3408 * stmt.c (expand_asm_operands): Allow # in constraints.
3410 2000-09-22 Jason Merrill <jason@redhat.com>
3412 * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
3414 * dbxout.c (dbxout_symbol_name): Just use DECL_NAME for
3415 function-local names.
3417 2000-09-22 Brad Lucier <lucier@math.purdue.edu>
3418 Mark Mitchell <mark@codesourcery.com>
3420 * toplev.c (warn_disabled_optimization): Declare new warning flag.
3421 * flags.h (warn_disabled_optimization): Add it here.
3422 * gcse.c (gcse_main): Add warning when disabled.
3423 * invoke.texi: Document -Wdisabled-optimization.
3425 2000-09-21 Jason Merrill <jason@redhat.com>
3427 * dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.
3429 * dwarf2out.c (tree_add_const_value_attribute): New fn.
3430 (gen_variable_die): Call it for non-definitions.
3432 * dwarf2out.c (die_struct): Add die_mark field.
3433 (mark_dies, unmark_dies): New fns.
3434 (clear_die_sizes): Remove.
3435 (print_die): Check die_symbol rather than die_offset.
3436 (build_abbrev_table, output_pubnames, output_aranges): Check
3437 die_mark rather than die_offset.
3438 (output_comp_unit): Move calc_die_sizes after build_abbrev_table.
3441 Thu 21-Sep-2000 18:19:05 BST Neil Booth <NeilB@earthling.net>
3443 * cppfiles.c (lookup_include_file): Rename to open_file.
3444 Always create a splay tree value, even on syscall failures.
3445 Negative entries indicated by fd == -2.
3446 Re-open files closed in the meantime.
3447 (_cpp_fake_include): Create a negative splay tree entry.
3448 (find_include_file, cpp_read_file): Update for function name
3450 * gcc.gd/cpp/mi4.c: Testcase.
3452 2000-09-21 Nick Clifton <nickc@redhat.com>
3454 * config/arm/t-arm-elf (MULTILIB_DIRNAMES): Enable multilibs for
3455 ARM and THUMB modes.
3457 * config/mcore/mcore.c: Fix compile time warnings.
3458 * config/mcore/mcore-protos.h: Fix compile time warnings.
3460 2000-09-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3462 * configure.in: Correct test of gcc_cv_glibc.
3463 * configure: Rebuilt.
3464 * config.in: Rebuilt.
3466 2000-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3468 * builtins.c (expand_builtin_fputs): Also expand when length!=1.
3469 (expand_builtin): Handle BUILT_IN_FWRITE.
3471 * builtins.def (BUILT_IN_FWRITE): New entry.
3473 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_fwrite.
3475 Wed Sep 20 15:39:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3477 * gcc.c (modify_target): New variable and struct.
3478 (process_command): Handle MODIFY_TARGET_NAME.
3479 * tm.texi (MODIFY_TARGET_NAME): Add documentation for new macro.
3480 * config/pa/pa.h (MODIFY_TARGET_NAME): New macro.
3482 * c-decl.c (finish_decl): Add else's to avoid referencing
3483 TYPE_DOMAIN of an ERROR_MARK.
3485 Wed Sep 20 21:44:31 2000 Denis Chertykov <denisc@overta.ru>
3487 * config/avr/avr.c (adjust_insn_length): Adjust lengths of
3490 2000-09-19 Marek Michalkiewicz <marekm@linux.org.pl>
3492 * config/avr/avr.md (neghi2): Add alternative for input and output
3493 operands in different registers, as in negsi2.
3494 (*negsi2): Remove '*' from the name. Use "movw" if available.
3496 2000-09-19 Jim Wilson <wilson@cygnus.com>
3498 * config/ia64/crtbegin.asm (__dso_handle): Delete use of
3499 HAVE_GAS_HIDDEN macro.
3501 Tue 19-Sep-2000 22:38:57 BST Neil Booth <NeilB@earthling.net>
3503 * cpplex.c (lex_line): Drop the EOF token for unknown
3504 directives in assembler.
3506 2000-09-19 David Edelsohn <edelsohn@gnu.org>
3508 * configure.in: Allow enable_threads_flag value of "aix". Define
3509 thread_file as "aix" for AIX 4.3 and above.
3510 * configure: Regenerated.
3512 * gthr-aix.h: New file.
3514 * rs6000/t-aix43: Replace soft-float multilib with pthread.
3515 Remove 403 processor multilib match. Fix rios2 processor multilib
3518 * rs6000/aix.h (ASM_DECLARE_FUNCTION_NAME): Use function_section
3519 to return to appropriate csect.
3521 2000-09-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3523 * builtins.c (is_valid_printf_arglist, expand_builtin_printf): New
3525 (expand_builtin_fputs): Set `target' parameter for `expand_expr'.
3526 (expand_builtin): Handle BUILT_IN_PUTCHAR, BUILT_IN_PUTS and
3529 * builtins.def (BUILT_IN_PUTCHAR, BUILT_IN_PUTS, BUILT_IN_PRINTF):
3532 * c-common.c (init_function_format_info): Handle __builtin_printf.
3533 Set `check_function_format_ptr'.
3534 (c_common_nodes_and_builtins): Set `puts_ftype' and
3535 `printf_ftype'. Declare __builtin_putchar, __builtin_puts,
3536 __builtin_printf and printf.
3538 * tree.c, tree.h (check_function_format_ptr): Declare.
3540 Tue 19-Sep-2000 18:26:57 BST Neil Booth <NeilB@earthling.net>
3542 * cppfiles.c (read_include_file): Take no special action for
3545 2000-09-19 Bernd Schmidt <bernds@redhat.co.uk>
3547 * final.c (insn_current_reference_address): Use INSN_SHUID of seq
3548 rather than that of branch.
3549 (shorten_branches): Don't increment insn_current_address twice.
3551 Undo most of the Wed Jan 27 23:39:53 1999 patch:
3552 * loop.h (struct induction): Delete members derived, ix and last_use.
3553 (struct loop_ivs): Delete members first_increment_giv and
3555 * loop.c (verify_dominator, find_life_end, cmp_recombine_givs_stats,
3556 recombine_givs): Delete functions.
3557 (find_and_verify_loops): Don't initialize cont_dominator.
3558 (strength_reduce): Lose code to try to find bivs that can be
3559 expressed as givs of another biv, and to convert biv increments
3561 Lose loop_scan_start variable, always use loop->scan_start.
3562 Don't call recombine_givs. Don't handle derived givs.
3563 (record_giv): Don't initialize derived and last_use fields.
3564 (biv_eliminiation_giv_has_0_offset): Lose code to handle derived
3566 * unroll.c (derived_regs): Delete static variable.
3567 (unroll_loop): Don't initialize it.
3568 (copy_loop_body): Lose code to handle derived givs.
3569 (find_splittable_givs): Don't check for givs made from biv
3571 Don't set derived_regs.
3573 Fix misapplied earlier patch:
3574 * config/sh/sh.md (floatsisf_ie): Reenable. Remove explicit reference
3576 (floatsisf2): Generate floatsisf_ie by default.
3577 (floatsisf_i4): Conditional on TARGET_SH4.
3579 (floatsisf2, floatsidf2, extendsfdf2): Also use reg_no_subreg_operand
3580 predicate for the expanders.
3582 2000-09-19 Richard Henderson <rth@cygnus.com>
3584 * config/i386/i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols
3585 in addition to pentium and pentiumpro symbols.
3586 (CPP_CPU_DEFAULT_SPEC): Likewise.
3588 * c-typeck.c (c_expand_asm_operands): Restore the output tree
3591 * stmt.c (expand_expr_stmt): Only call warn_if_unused_value
3592 if the tree has side effects.
3593 (warn_if_unused_value): Do not warn about void constructs.
3595 * c-decl.c (poplevel): Invoke warn_about_unused_variables.
3597 * unroll.c (copy_loop_body): Update LABEL_NUSES before
3598 calling invert_jump.
3600 2000-09-18 Geoff Keating <geoffk@cygnus.com>
3602 * combine.c (can_combine_p): Don't substitute an ASM_OPERANDS
3605 2000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3607 * Makefile.in (c-common.o): Depend on diagnostic.h.
3609 * c-common.c: Include diagnostic.h.
3611 (status_warning): New function.
3612 (check_format_info, maybe_read_dollar_number, check_format_types,
3613 finish_dollar_format_checking, check_function_format): Accept a
3614 `status' parameter. All callers changed.
3616 * c-common.h (check_function_format): Accept a `status' parameter.
3618 * c-typeck.c: Update call to `check_function_format'.
3620 2000-09-18 Richard Henderson <rth@cygnus.com>
3622 * c-decl.c (c_expand_body): Call mark_varargs before
3623 expand_function_start.
3625 2000-09-18 Geoff Keating <geoffk@cygnus.com>
3627 * config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #.
3628 * config/rs6000/eabi-ci.asm: Likewise.
3630 2000-09-18 Richard Henderson <rth@cygnus.com>
3632 * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx
3635 2000-09-18 Jim Wilson <wilson@cygnus.com>
3637 * unroll.c (loop_iterations): Pass increment to extend_for_giv_value
3638 before passing it to fold_rtx_mult_add.
3640 * unroll.c (final_giv_value): Pass increment through
3641 extend_value_for_giv before passing it to emit_iv_add_mult.
3643 * function.c (fixup_var_refs_1, case ZERO_EXTRACT): If we have a
3644 paradoxical subreg, then directly substitute the replacement and
3647 Mon 18-Sep-2000 22:12:44 BST Neil Booth <NeilB@earthling.net>
3649 * cpp.texi: Update documentation, including some clarifications,
3650 the treatment of various newline combinations, and space between
3651 backslash and newline.
3653 Mon Sep 18 21:00:47 2000 J"orn Rennecke <amylaar@redhat.co.uk>
3655 * sdbout.c (PUT_SDB_DEF, PUT_SDB_TAG, PUT_SDB_EPILOGUE_END):
3656 Replace ASM_OUTPUT_LABELREF with assemble_name.
3658 Mon Sep 18 20:26:50 2000 J"orn Rennecke <amylaar@redhat.co.uk>
3660 * sh.c (addsubcosts): CONST is not cheap.
3661 (find_barrier): For Sh1, take alignment after jumps into account.
3663 2000-09-15 Andrew Haley <aph@redhat.com>
3665 * toplev.c (rest_of_compilation): Call purge_hard_subreg_sets to
3666 remove all SETs of SUBREGs of hard registers.
3667 * function.c (purge_hard_subreg_sets): New function.
3668 (purge_single_hard_subreg_set): New function.
3669 * rtl.h: (purge_hard_subreg_sets): New function.
3671 2000-09-18 Richard Henderson <rth@cygnus.com>
3673 * config/ia64/ia64-protos.h: Update.
3674 * config/ia64/ia64.c (signed_inequality_operator): New.
3675 (ia64_expand_compare): New.
3676 (ia64_register_move_cost): Handle PR_REGS moves.
3677 (ia64_secondary_reload_class): Require a GR when moving to a PR.
3678 (struct reg_write_state): Add written_by_and/or.
3679 (struct reg_flags): Add is_and/or.
3680 (rws_update): Set them.
3681 (rws_access_regno): Test them to allow parallel comparisons.
3682 (rtx_needs_barrier): Recognize parallel comparisons.
3683 (emit_insn_group_barriers): Set prev_insn after a call stop bit.
3684 Call recog_memoized; ignore pred_rel_mutex.
3685 (emit_predicate_relation_info): Don't call find_basic_blocks here.
3686 (ia64_reorg): Do it here instead.
3687 * config/ia64/ia64.h: s/CCmode/BImode/g
3688 (MODES_TIEABLE_P): Don't tie BImode.
3689 (PREFERRED_RELOAD_CLASS): Do not reload operations into AR regs.
3690 (CONST_COSTS): Pick sensible values for CONST_INT based on context.
3691 (RTX_COSTS): Make multiply 4 insns.
3692 (MEMORY_MOVE_COST): New.
3693 (PREDICATE_CODES): Update.
3694 * config/ia64/ia64.md: s/CCmode/BImode/g
3695 (movcci, movbi): New.
3696 (andbi3, andcmbi3, iorbi3, iorcmbi3, one_cmplbi2): New.
3697 (cmpsi_and_0, cmpsi_and_1, cmpsi_andnot_0, cmpsi_andnot_1): New.
3698 (cmpdi_and_0, cmpdi_and_1, cmpdi_andnot_0, cmpdi_andnot_1): New.
3699 (tbit_and_0, tbit_and_1, tbit_and_2, tbit_and_3): New.
3700 (cmpsi_or_0, cmpsi_or_1, cmpsi_orcm_0, cmpsi_orcm_1): New.
3701 (cmpdi_or_0, cmpdi_or_1, cmpdi_orcm_0, cmpdi_orcm_1): New.
3702 (tbit_or_0, tbit_or_1, tbit_or_2, tbit_or_3): New.
3703 (mulsi, muldi): Use xmpy not xma.
3705 (movcc, movcc_internal): Remove.
3706 (branch expanders): Use ia64_expand_compare.
3707 (setcc expanders): Likewise.
3708 (cmov insns): Use move_operand and ia64_move_ok.
3709 (pred_rel_mutex): Use unspec not unspec_volatile. Prevent the
3710 scheduler from moving it past a use.
3711 * config/ia64/build.hacks: Remove.
3713 Mon 18-Sep-2000 19:21:35 BST Neil Booth <NeilB@earthling.net>
3715 * cpphash.h (HASHSTEP): Take character rather than pointer
3717 (_cpp_check_directive, _cpp_check_linemarker): Update prototypes.
3719 * cpphash.c (cpp_loookup): Update for new HASHSTEP.
3721 * cpplex.c (auto_expand_name_space, trigraph_replace,
3722 backslash_start, handle_newline, parse_name, INIT_TOKEN_STR,
3723 IMMED_TOKEN, PREV_TOKEN_TYPE, PUSH_TOKEN, REVISE_TOKEN,
3724 BACKUP_TOKEN, BACKUP_TRIGRAPH, MIGHT_BE_DIRECTIVE,
3725 KNOWN_DIRECTIVE): Delete.
3727 (handle_newline, check_long_token, skip_escaped_newlines,
3728 unterminated): New functions.
3729 (ACCEPT_CHAR, SAVE_STATE, RESTORE_STATE): New macros.
3731 (parse_identifier): Was parse_name, new implementation.
3732 (skip_line_comment, skip_block_comment, skip_whitespace,
3733 parse_number, parse_string, trigraph_ok, save_comment,
3734 adjust_column, _cpp_get_line): New implementations.
3736 (lex_token): New function. Lexes a token at a time, looking
3737 forwards. Contains most of the guts of the old lex_line.
3738 (lex_line): New implementation, using lex_token to obtain
3740 (cpp_scan_buffer): Use the token's line, not the list's line.
3742 * cpplib.c (_cpp_check_directive, _cpp_check_linemarker):
3743 New implementations.
3744 (do_assert): Don't bother setting the answer's list's line.
3745 (cpp_push_buffer): Initialise new pfile and read_ahead members
3746 of struct cpp_buffer.
3748 * cpplib.h (cppchar_t): New typedef.
3749 (struct cpp_buffer): read_ahead, pfile and col_adjust are
3751 (struct lexer_state): New structure that determines the state
3752 and behaviour of the lexer.
3753 (IN_DIRECTIVE, KNOWN_DIRECTIVE): New macros.
3754 (struct cpp_reader): New member "state". Rename
3755 multiline_string_line and multiline_string_column. Delete
3756 col_adjust, in_lex_line members.
3757 (CPP_BUF_COLUMN): Update.
3759 2000-09-18 Richard Henderson <rth@cygnus.com>
3761 * combine.c (simplify_comparison): Shift a NOT out of a single
3764 * combine.c (if_then_else_cond): Canonicalize BImode true to
3766 * explow.c (trunc_int_for_mode): Likewise.
3768 * combine.c (combine_simplify_rtx): Use gen_unary to distribute
3769 the NOT for De Morgan's rule.
3770 * simplify-rtx.c (simplify_unary_operation): Simplify a BImode NOT
3771 of a comparison to the reverse comparison.
3773 * combine.c (try_combine): Allow split to create a single insn.
3775 * machmode.def: Add BImode. Add a column for bitsize.
3776 * machmode.h (DEF_MACHMODE): Adjust for extra column.
3777 (GET_MODE_BITSIZE): Use it.
3778 * rtl.c (DEF_MACHMODE): Adjust for extra column.
3779 (mode_bitsize): New.
3780 (mode_mask_array): Use bitsize.
3781 * combine.c (combine_simplify_rtx): Require inner and outer
3782 modes to match on nonzero_bits optimizations.
3784 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
3786 * reload1.c (forget_old_reloads_1): If a hard reg is stored, clear
3787 its entry in spill_reg_store.
3788 * config/sh/lib1funcs.ams (movstr_i4 functions): Always compile in.
3789 * sh.c (reg_no_subreg_operand): New function.
3790 * sh-protos.h (reg_no_subreg_operand): Declare it.
3791 * sh.h (PREDICATE_CODES): Add it.
3792 * sh.md (floatsisf2_i4, floatsidf2_i, extendsfdf2_i4): Use it for
3793 input operand that needs to be in fpul.
3794 (fix_truncsfsi2, fix_truncsfsi2_i4): Use register_operand for output.
3795 * sh.c (find_barrier): Take into account that machine_dependent_reorg
3796 might add new insns.
3798 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
3800 * config/sh/sh.c (sh_expand_prologue): Mark GOTaddr2picreg as
3802 (sh_expand_epilogue): Take the PIC register into account when
3803 computing the frame size.
3805 * config/sh/sh.c (nonpic_symbol_mentioned_p): Check LABEL_REFs.
3806 * config/sh/sh.md (sym_label2reg, symPLT_label2reg): Protect
3807 LABEL_REFs with a PIC-safe unspec.
3809 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
3811 * c-common.c (check_format_info): Properly save the argument
3812 number and parameter for $ operand number formats in case width
3813 and precision arguments are also used. Allow printf width and
3814 precision arguments to have operand numbers even if none was
3815 specified for the main format, since this is OK for %*.*m. Only
3816 object to missing $ operand number if the format used requires an
3819 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
3821 * c-common.c (format_char_info): Add 'W' flag to comment.
3822 (print_char_table, scan_char_table): Use it.
3823 (check_format_info): Use the 'W' flag to determine whether a
3824 format argument is written into.
3826 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
3828 * c-common.c (check_format_types): Reorganise and clean up,
3829 checking earlier for ERROR_MARKs and making cur_type into its
3830 TYPE_MAIN_VARIANT where convenient.
3832 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
3834 * gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
3836 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
3838 * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call.
3840 * i386-protos.h (ix86_init_builtins, ix86_expand_builtin): Declare.
3841 * i386.c (struct builtin_description): New.
3842 (bdesc_comi, bdesc_2arg, bdesc_1arg): New arrays.
3843 (mmx_reg_operand): Declare MODE arg as unused.
3844 (ix86_expand_sse_comi, ix86_expand_sse_compare, safe_vector_operand,
3845 ix86_expand_unop1_builtin, ix86_expand_unop_builtin,
3846 ix86_expand_binop_builtin, ix86_expand_store_builtin,
3847 ix86_init_builtins, ix86_expand_builtin): New functions.
3848 * i386.h (ix86_builtins): New enumeration.
3849 (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): New macros.
3850 * i386.md (attr length_immediate): 0 for mmx/sse types.
3851 (attr prefix_0f): 1 for mmx/sse types.
3852 (setcc_2): Remove "*" so we get gen_setcc_2.
3853 (emms): Account for changed register numbering. Set "memory" attr
3855 (sfence): Set "memory" attr to unknown.
3857 2000-09-18 Andreas Jaeger <aj@suse.de>
3859 * configure.in: Define _GNU_SOURCE only when using the GNU C
3861 * configure: Regenerated.
3862 * config.in: Regenerated.
3864 2000-09-17 Mark Mitchell <mark@codesourcery.com>
3866 * cppinit.c (cpp_init): Don't use ANSI prototypes.
3867 * flow.c (flow_dump_loop): Likewise.
3868 (flow_loops_dump): Likewise.
3870 * c-typeck.c (c_start_case): Fix typo.
3872 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
3874 * c-decl.c (grokdeclarator): Don't give a warning about defaulting
3875 to int for plain complex which defaults to complex double. Do
3876 warn about defaulting to complex double if pedantic. Warn about
3877 complex integer types if pedantic. Warn about complex types if
3878 pedantic and not in C99 mode.
3879 * c-typeck.c (build_unary_op): If pedantic, warn about use of ~
3880 for complex conjugation.
3882 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
3884 * contrib.texi: Update my entry.
3886 Sun Sep 17 18:48:32 2000 Denis Chertykov <denisc@overta.ru>
3888 * config/avr/avr.md (mcu_enhanced): New attribute.
3889 (mcu_mega): Likewise.
3890 (extendhisi2): Use mcu_enhanced.
3891 (zero_extendhisi2): Likewise.
3892 (call_insn): Use mcu_enhanced and mcu_mega.
3893 (call_value_insn): Likewise.
3894 (*sbrx_branch): Use mcu_mega.
3895 (*sbrx_and_branchsi): Likewise.
3896 (*sbrx_and_branchhi): Likewise.
3897 (*tablejump_lib): Likewise.
3899 Sun Sep 17 10:46:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3901 * alias.c (true_dependence): Allow non-unchanging read to conflict
3902 with unchanging write.
3904 * expr.c (store_constructor_field): Accept ALIAS_SET arg.
3905 (store_constructor): Pass alias_set to it.
3907 * c-decl.c (grokdeclarator): Reorder tests to avoid looking at
3908 TYPE_MAIN_VARIANT of ERROR_MARK.
3909 * c-lex.c (readescape): Avoid using printf syntax we don't recognize.
3911 * simplify-rtx.c (simplify_unary_operation): Add cases
3912 FLOAT_EXTEND and FLOAT_TRUNCATE to ones that return 0.
3914 2000-09-17 Bernd Schmidt <bernds@redhat.co.uk>
3916 * expr.h (emit_library_call, emit_library_call_value): Delete
3918 * rtl.h (enum libcall_type): New.
3919 (emit_library_call, emit_library_call_value): Change fn_type arg to
3920 be of type enum libcall_type.
3921 * calls.c: Likewise for the function definitions. Several callers
3922 throughout changed to use the new enumeration appropriately.
3923 (emit_library_call_value_1): Likewise. Put back code to make libcall
3924 blocks of equal form, but only use it for the two new higher
3927 2000-09-16 Mark Mitchell <mark@codesourcery.com>
3929 Convert the C front-end to use function-at-a-time mode.
3930 * c-common.h: Include splay-tree.h.
3931 (C_DECLARED_LABEL_FLAG): New macro.
3932 (struct language_function): Add x_scope_stmt_stack and
3933 x_function_name_declared_p.
3934 (RECHAIN_STMTS): Move definition.
3935 (lang_statment_code_p): Likewise.
3936 (lang_expand_stmt): Likewise.
3937 (lang_expand_decl_stmt): New variable.
3938 (lang_expand_function_end): Likewise.
3939 (current_scope_stmt_stack): New function.
3940 (add_decl_stmt): Likewise.
3941 (add_scope_stmt): Likewise.
3942 (mark_stmt_tree): Likewise.
3943 (struct c_lang_decl): New structure.
3944 (DECL_SAVED_TREE): Define.
3945 (c_mark_lang_decl): New function.
3946 (c_expand_start_cond): Change prototype.
3947 (c_finish_then): New function.
3948 (c_finish_else): Likewise.
3949 (current_function_name_declared): Remove.
3950 (set_current_function_name_declared): Likewise.
3951 (mark_c_language_function): Declare.
3952 (case_compare): Likewise.
3953 (c_add_case_label): Likewise.
3954 (c_expand_expr): Likewise.
3955 (c_safe_from_p): Likewise.
3956 * c-common.c (lang_expand_function_end): New variable.
3957 (struct if_elt): Add if_stmt.
3958 (c_expand_start_cond): Add the if-statement to the statement-tree,
3959 rather than generating RTL.
3960 (c_finish_then): New function.
3961 (c_expand_start_else): Don't generate RTL.
3962 (c_finish_else): New function.
3963 (c_expand_expr_stmt): Don't generate RTL.
3964 (statement_code_p): Add SCOPE_STMT.
3965 (case_compare): New function.
3966 (c_add_case_label): Likewise.
3967 (mark_stmt_tree): Likewise.
3968 (c_mark_lang_decl): Likewise.
3969 (mark_c_language_function): Likewise.
3970 (c_expand_expr): Likewise.
3971 (c_safe_from_p): Likewise.
3972 * c-decl.c (c_stmt_tree): New variable
3973 (c_scope_stmt_stack): Likewise.
3974 (c_function_name_declared_p): Likewise.
3975 (lang_expand_expr_stmt): Remove.
3976 (poplevel): Don't call output_inline_function for nested
3978 (pushdecl): Don't set DECL_CONTEXT for a local declaration of an
3980 (redeclaration_error_message): Change means of computing whether
3981 or not a function is nested.
3982 (lookup_label): Don't call label_rtx.
3983 (init_decl_processing): Add more GC roots.
3984 (start_decl): Add DECL_STMTs to the statement-tree, rather than
3985 calling rest_of_decl_compilation.
3986 (finish_decl): Don't call expand_decl.
3987 (store_parm_decls): Begin the statement-tree, but don't generate
3989 (finish_function): Tie off the statement-tree. Call c_expand_body
3991 (c_expand_body): New function.
3992 (push_c_function_context): Save more information.
3993 (pop_c_function_contxt): Likewise.
3994 (copy_lang_decl): Now that we use DECL_LANG_SPECIFIC, copy it.
3995 (lang_mark_tree): Mark it.
3996 (current_stmt_tree): Adjust.
3997 (current_scope_stmt_stack): New function.
3999 (set_current_name_declared): Likewise.
4000 (c_begin_compound_stmt): Define.
4001 (c_expand_decl_stmt): Likewise.
4002 * c-lang.c: Include rtl.h and expr.h.
4003 (lang_init): Set more language-specific hooks.
4004 * c-lex.c: Include expr.h.
4005 * c-parse.in: Changes throughout to add statements to the
4006 statement-tree, rather than generating RTL after every statement.
4007 * c-semantics.c (lang_expand_decl_stmt): Define.
4008 (add_decl_stmt): New function.
4009 (add_scope_stmt): Likewise.
4010 (finish_stmt_tree): Tweak.
4011 (genrtl_expr_stmt): Likewise.
4012 (genrtl_decl_stmt): Handle local labels, and call
4013 lang_expand_decl_stmt if required.
4014 (genrtl_for_stmt): Fix line-number handling.
4015 (genrtl_case_label): Handle cleanups.
4016 (genrtl_asm_stmt): Don't call combine_strings.
4017 (genrtl_compound_stmt): Simplify.
4018 (expand_stmt): Handle SCOPE_STMTs.
4019 * c-tree.h (struct lang_decl): New structure.
4020 (C_DECLARED_LABEL_FLAG): Remove.
4021 (c_begin_compound_stmt): Declare.
4022 (c_expand_decl_stmt): Likewise.
4023 (c_expand_start_case): Rename to c_start_case.
4024 (c_finish_case): New function.
4025 * c-typeck.c (start_init): Tweak setting of
4026 constructor_incremental.
4027 (c_expand_asm_operands): Tweak error-handling. Add to the
4029 (c_expand_return): Add to the statement-tree.
4030 (c_expand_start_case): Rename to ...
4031 (c_start_case): ... this.
4032 (struct c_switch): New type.
4033 (switch_stack): New variable.
4034 (do_case): Simplify.
4035 (c_finish_case): New function.
4036 * dependence.c: Include expr.h.
4037 (enum dependence_type): Change spelling of enumerals.
4038 (check_node_dependence): Adjust.
4039 * expr.h (lang_safe_from_p): Declare.
4040 (safe_from_p): Likewise.
4041 * expr.c (lang_safe_from_p): New variable.
4042 (safe_from_p): Give it external linkage. Use lang_safe_from_p.
4043 * stmt.c (expand_expr_stmt): Avoid clobberring of last_expr_type.
4044 * toplev.c (rest_of_decl_compilation): Robustify.
4045 * tree.c (contains_placeholder_p): Likewise.
4046 * Makefile.in: Update dependencies.
4047 * objc/objc-act.h: Adjust calculation of value for dummy_tree_code.
4048 * objc/objc-act.c: Include rtl.h, expr.h, and c-common.h.
4049 (objc_expand_function_end): New function.
4050 (finish_method_def): Use it.
4051 (init_objc): Initialize more language-specific hooks.
4052 * objc/Make-lang.in: Update dependencies.
4054 2000-09-16 Geoffrey Keating <geoffk@cygnus.com>
4056 * configure.in: Define macros that affect features before
4057 testing for features. Don't define _XOPEN_SOURCE.
4058 * configure: Regenerated.
4059 * config.in: Regenerated.
4061 Sat Sep 16 19:42:50 EDT 2000 John Wehle (john@feith.com)
4063 * rtlanal.c (rtx_varies_p): Volatile asms vary.
4064 (rtx_unstable_p): Restructure code. Volatile asms
4067 Sat Sep 16 14:35:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4069 * function.h (no_debugging_symbols): New field.
4070 * integrate.c (save_for_inline): Renamed from save_for_inline_nocopy.
4071 Initialize no_debugging_symbols.
4072 (output_inline_function): Save and restore write_symbols and set from
4073 no_debugging_symbols.
4074 * toplev.c (rest_of_compilation): Call save_for_inline.
4075 * tree.h: Update comment.
4077 * stor-layout.c (place_field): Don't do anything if field or
4078 its type are ERROR_MARK.
4080 Sat Sep 16 19:14:00 2000 Laurynas Biveinis <lauras@softhome.net>
4082 * cppfiles.c (purge_cache): Use munmap only if MMAP_THRESHOLD defined.
4083 (read_include_file): Ensure inc->mmaped is initialized.
4085 2000-09-16 Richard Henderson <rth@cygnus.com>
4087 * cppiles.c (purge_cache): Use PTR not caddr_t.
4089 2000-09-16 Hans-Peter Nilsson <hp@axis.com>
4091 * gcc.c: In description for %{<S}, say the option removed is -S.
4092 * invoke.texi (Spec Files): Ditto.
4094 2000-09-16 Andreas Jaeger <aj@suse.de>
4096 * configure.in: Always define _GNU_SOURCE to make interfaces
4097 visible that were hidden by only defining _GNU_SOURCE.
4098 * configure: Regenerated.
4100 Sat 16-Sep-2000 08:13:45 BST Neil Booth <NeilB@earthling.net>
4102 * cpplex.c (push_macro_context): Set an argument's level after
4103 calling parse_args. We could loop infinitely otherwise.
4105 2000-09-15 Tom Tromey <tromey@cygnus.com>
4107 * configure, config.in: Rebuilt.
4108 * configure.in: Check for iconv.h. Define _XOPEN_SOURCE.
4110 2000-09-15 Greg McGary <greg@mcgary.org>
4112 * cppmacro.c (check_trad_stringification): Check token
4113 text pointers against limit before dereferencing.
4115 2000-09-15 Joseph S. Myers <jsm28@cam.ac.uk>
4117 * c-common.c (format_wanted_type): New structure.
4118 (check_format_types): New function.
4119 (check_format_info): Pass all checking of types of format
4120 arguments, including width and precision arguments, to this new
4123 2000-09-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4125 * BUGS: Remove file.
4127 2000-09-15 Jakub Jelinek <jakub@redhat.com>
4129 * config/alpha/alpha.c (override_options): ev6 cache latencies
4130 from Richard Henderson. Don't allow -mmemory-latency=L0.
4132 * config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
4133 (TARGET_OPTIONS): Add tune=.
4134 (alpha_tune_string): Declare.
4135 * config/alpha/alpha.c (override_options): Add cpu_table.
4136 Use alpha_cpu_string first to set both alpha_cpu and target_flags
4137 and then alpha_tune_string to set alpha_cpu only.
4138 Replace tests for PROCESSOR_EV* with TARGET_CPU_EV* tests.
4139 * config/alpha/elf.h (ASM_FILE_START): Likewise.
4140 * config/alpha/osf.h (ASM_FILE_START): Likewise.
4141 * config/alpha/openbsd.h (ASM_FILE_START): Likewise.
4143 Fri Sep 15 19:45:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
4145 * i386-protos.h (no_comparison_operator, uno_comparison_operator):
4147 (ix86_comparison_operator, ix86_cc_mode): Declare
4148 * i386.h (CCGC, CCGCO): New modes.
4149 (SELECT_CC_MODE): Move offline to ....
4150 * i386.c (ix86_cc_mode): .... here; use new modes.
4151 (ix86_comparison_operator): New.
4152 (fcmov_comparison_operator): Ensure proper mode.
4153 (put_condition_mode): More sanity checking.
4154 (ix86_match_ccmode): Handle new modes.
4155 (ix86_expand_fp_compare): GEU requires CCmode.
4156 (ix86_expand_strlensi_unroll_1): Use emit_cmp_and_jump_insn instead of
4158 * i386.md (cmp?i_ccz_1): Remove
4159 (cmp?i_ccno_1): Use ix86_match_ccmode.
4160 (cmp?i_minus_1): New.
4161 (cmpsi_1): New expander.
4162 (cmpqi_ext_1): Use match_ccmode
4163 (cmpqi_ext_3): New expander.
4164 (cmpqi_ext_3_insn): Rename from cmpqi_ext_3.
4165 (cmpqi_ext_4): Use match_ccmode.
4166 (add?i_?): Use match_ccmode.
4168 (test?i_ccz_1): Remove
4170 (testsi_ccno_1, testqi_ccz_1, testqi_ext_ccno_0): New expander.
4171 (testqi_ext_0): Use ix86_match_ccmode.
4172 (*xorqi_cc_ext_1): Use ix86_match_ccmode.
4173 (xorqi_cc_ext_1): New expander.
4174 (shift patterns): Use CCGOCmode for all shifts except for sar.
4175 (setcc_?, jcc_?, miv?icc_nic): Use ix86_comparison_operator.
4176 (setcc_3, jcc_3, miv?icc_c): Remove.
4178 2000-09-15 Will Cohen <wcohen@redhat.com>
4180 * dwarf2out.c (add_const_value_attribute): Changed array into a
4181 xmalloced object, so it exists after function exit.
4182 (free_AT): Added case for dw_val_class_float to free allocated
4185 2000-09-15 Kazu Hirata <kazu@hxi.com>
4187 * config/i386/i386.md: Fix a comment typo.
4188 * gcc.c: Fix formatting.
4190 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
4192 * optabs.c (emit_libcall_block): If target is a user variable,
4193 copy to a temporary first.
4194 * expr.c (convert_move): When generating a libcall, make a libcall
4196 * calls.c (emit_library_call_value_1): Don't create a libcall
4197 sequence here; our caller will in most cases do it.
4199 * sh.h (SECONDARY_INPUT_RELOAD_CLASS): Handle moving T, MACL or
4201 (SECONDARY_OUTPUT_RELOAD_CLASS): Similar case.
4202 * sh.md (reload_outsf): Generate recognizable patterns for
4204 (floatsisf2, floatsisf2_ie, floatsisf2_i4, fix_truncsfsi2,
4205 fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i, fix_truncdfsi2,
4206 fix_truncdfsi2_i, extendsfdf2, extendsfdf2_i4, truncdfsf2,
4207 truncdfsf2_i4): Change not to use explicit references to fpul.
4208 (floatsisf2_ie): Remove USE of fpscr.
4209 (floatsisf2): Change default expansion to match this.
4210 (fix_truncsfsi2_i4_2, fix_truncdfsi2_i4 & splitters): Comment out
4213 2000-09-15 Richard Henderson <rth@cygnus.com>
4215 * expmed.c (store_bit_field): Consider naturally aligned
4216 memory for direct reference.
4218 2000-09-15 Richard Henderson <rth@cygnus.com>
4220 * config/alpha/alpha.c (alpha_expand_unaligned_load): Force all
4221 AND addresses into alias set 0.
4222 (alpha_expand_unaligned_store): Likewise.
4223 (alpha_expand_unaligned_load_words): Likewise.
4224 (alpha_expand_unaligned_store_words): Likewise.
4226 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
4228 * config/sh/sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
4229 * config/sh/lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__
4231 * config/mips/mips.c (mips_va_arg): Args passed by reference have a
4232 rsize of UNITS_PER_WORD.
4234 Fri 15-Sep-2000 06:49:07 BST Neil Booth <NeilB@earthling.net>
4236 * cpplex.c (ON_REST_ARG): Correct the test.
4237 (maybe_paste_with_next): Duplicate a token that fail pasting,
4238 and clear its PASTE_LEFT flag, so that nested pasting attempts
4241 2000-09-14 Richard Henderson <rth@cygnus.com>
4243 * calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
4244 * cse.c (rtx_cost): Likewise.
4245 * optabls.c (expand_binop): Likewise.
4246 (expand_twoval_binop, prepare_cmp_insn): Likewise.
4247 * regclass.c (copy_cost): Likewise.
4248 * reload1.c (reload_cse_move2add): Likewise.
4250 2000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
4252 * c-parse.in (reswords): Add _Complex.
4254 2000-09-14 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4256 * gcc.1: Delete documentation for -undef preprocessor option.
4258 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4260 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
4261 STARTFILE_SPEC, ENDFILE_SPEC): Remove define.
4262 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
4263 Remove undefine before config/elfos.h.
4264 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out.
4266 2000-09-14 Kazu Hirata <kazu@hxi.com>
4268 * invoke.texi (H8/300 Options): Add -ms2600.
4269 * config/h8300.c (h8300_init_once): Output an error when -ms2600
4270 is used without -ms.
4271 * config/h8300.h (TARGET_MAC): New.
4272 (TARGET_SWITCHES): Add -ms2600 and -mno-s2600.
4273 (CONDITIONA_REGISTER_USAGE): Disable the mac register on any
4274 machine other than H8/S2600.
4275 * config/h8300.md: Accept mac instructions on the H8/S2600 instead
4278 2000-09-14 Alexandre Oliva <aoliva@redhat.com>, Bernd Schmidt <bernds@redhat.co.uk>
4280 * reload.c (find_reloads_address_1): Generate reloads for auto_inc
4281 pseudos that refer to the original pseudos, not only to their
4282 equivalent memory locations.
4284 Thu Sep 14 12:10:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4286 * expr.c (expand_expr, case COMPONENT_EXPR): Copy memory attributes
4287 when making new MEM.
4289 * Makefile.in (LN): Remove duplicate definition.
4291 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
4293 From Joern Rennecke:
4294 * local-alloc.c (update_equiv_regs): If there is no REG_EQUAL note
4295 on an insn and function_invariant_p returns nonzero for the source,
4296 add a REG_EQUAL note.
4298 Thu Sep 14 00:51:57 EDT 2000 John Wehle (john@feith.com)
4300 * alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
4301 conflict with frame_pointer_rtx.
4303 2000-09-13 Kazu Hirata <kazu@hxi.com>
4305 * loop.c: Fix formatting.
4308 2000-09-13 Richard Henderson <rth@cygnus.com>
4310 * config/ia64/ia64.md (divsf3): New.
4311 (divsf3_internal_lat, divsf3_internal_thr): New.
4312 (divdf3, divdf3_internal_lat, divdf3_internal_thr): New.
4313 (divtf3, divtf3_internal_lat, divtf3_internal_thr): New.
4314 (adddf3_trunc, subdf3_trunc, muldf3_trunc): New.
4315 (madddf4_trunc, msubdf4_trunc, nmuldf3_trunc): New.
4316 (nmadddf4_alts, nmadddf4_trunc): New.
4317 (addtf3_truncsf, addtf3_truncdf, subtf3_truncsf): New.
4318 (subtf3_truncdf, multf3_truncsf, multf3_truncdf): New.
4319 (multf3_truncsf_alts, multf3_truncdf_alts): New.
4320 (maddtf4_truncsf, maddtf4_truncdf, maddtf4_alts_truncdf): New.
4321 (msubtf4_truncsf, msubtf4_truncdf, nmultf3_truncsf): New.
4322 (nmultf3_truncdf, nmaddtf4_truncsf, nmaddtf4_truncdf): New.
4323 (nmaddtf4_truncdf_alts): New.
4324 (recip_approx): Don't predicate.
4326 2000-09-13 Richard Henderson <rth@cygnus.com>
4328 * config/ia64/lib1funcs.asm (__divsf3): Protect fnorm.s with p6.
4330 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4332 * flags.h (flag_dump_rtl_in_asm): Declare.
4333 * toplev.c (flag_dump_rtl_in_asm): Define.
4334 (decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name
4335 if -dP is specified.
4336 * rtl.h (print_rtx_head): Declare.
4337 * print-rtl.c (print_rtx_head): Define.
4338 (print_rtx): Print the string pointed to by print_rtx_head
4339 at beginning of each dump line.
4340 (print_rtl): Likewise.
4341 (print_rtl_single): Likewise.
4342 * final.c (final_scan_insn): Dump the insn in the assembly
4344 * gcc.1: Document -dP option.
4345 * invoke.texi (Debugging Options): Likewise.
4347 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4349 * md.texi (Machine Constraints): Document the 68HC11 constraints.
4350 * install.texi (Configurations): Document the 68HC11&68HC12 port.
4351 * invoke.texi (Option Summary, M68hc1x Options): Document the options.
4353 Tue Sep 12 13:51:13 2000 Denis Chertykov <denisc@overta.ru>
4355 * config/avr/avr.h (ASSEMBLER_DIALECT): New macro declared.
4356 * config/avr/avr.md (*movstrqi_insn): Cleanup output template.
4357 (*clrstrqi): Likewise.
4358 (xorhi3,xorsi3,absqi2): Likewise.
4359 (one_cmplhi2,one_cmplsi2): Likewise.
4360 (addsi3): Two stupid constraint alternatives removed.
4361 (extendhisi2): Use `movw' for enhanced avr cores.
4362 (zero_extendhisi2): Likewise.
4364 Wed Sep 13 02:31:23 EDT 2000 John Wehle (john@feith.com)
4366 * alias.c (find_base_term): Use frame_pointer_rtx
4367 when handling an ADDRESSOF.
4369 * cse.c (canon_hash): Handle USE of BLKmode memory.
4370 (cse_insn): Outgoing arguments for a libcall don't
4371 affect any recorded expressions.
4373 2000-09-12 Tom Tromey <tromey@cygnus.com>
4375 * configure, config.in: Rebuilt.
4376 * configure.in: Check for iconv, nl_langinfo, langinfo.h.
4378 2000-09-12 Jakub Jelinek <jakub@redhat.com>
4380 * c-lex.c (lex_string): Use charwidth to compute bytemask.
4381 * expr.c (expand_expr): Don't optimize constant array references
4382 initialized with wide string constants.
4384 2000-09-13 Michael Hayes <mhayes@cygnus.com>
4386 * loop.c (note_set_pseudo_multiple_uses): Correct.
4388 2000-09-12 Jim Wilson <wilson@cygnus.com>
4390 * ifcvt.c (noce_process_if_block): If A and B are the same, and no
4391 else block, and X has side-effects, then fail.
4393 2000-09-12 Greg McGary <greg@mcgary.org>
4395 * config/mips/mips-protos.h
4396 (trap_cmp_op, mips_gen_conditional_trap): New func decls.
4397 * config/mips/mips.h (ISA_HAS_COND_TRAP): New macro.
4398 (PREDICATE_CODES): Add "trap_cmp_op".
4399 * config/mips/mips.c
4400 (trap_cmp_op, mips_gen_conditional_trap): New functions.
4401 * config/mips/mips.md (trap, conditional_trap): New patterns.
4403 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
4405 * flow.c (try_pre_increment_1): Don't do anything to sets of the stack
4408 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4410 * builtins.c (built_in_decls): New array.
4411 (expand_builtin_fputs): New function.
4412 (expand_builtin): Handle BUILT_IN_FPUTC and BUILT_IN_FPUTS.
4414 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTS): New members.
4416 * c-common.c (c_common_nodes_and_builtins): Handle fputc/fputs.
4418 * tree.h (built_in_decls): New array.
4420 Tue Sep 12 08:53:57 2000 Jeffrey A Law (law@cygnus.com)
4422 * convex.md: Use "+" instead of "=" for outputs wrapped in a
4424 * i370.md, i386.md, ns32k.md, sh.md, vax.md: Likewise.
4426 2000-09-12 Kazu Hirata <kazu@hxi.com>
4428 * haifa-sched.c: Fix formatting.
4430 * genattrtab.c: Fix formatting.
4432 * unroll.c: Fix formatting.
4434 2000-09-12 Bruce Korb <bkorb@gnu.org>
4436 * fixinc/fixfixes.c: make a type for the fix procedure & use it,
4437 remove obsolete code
4438 * fixinc/fixincl.c: Use PARAMS, not _P_. Add no-op default to switch.
4439 * fixinc/fixincl.tpl: make non-exported arrays static scope
4440 * fixinc/fixincl.x: regenerate
4441 * fixinc/fixlib.h: Use PARAMS, not _P_
4442 * fixinc/fixtests.c: make a type for the test proc & use it
4443 * fixinc/server.h: Use PARAMS, not _P_
4445 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4447 * c-typeck.c (process_init_element): Avoid union init warnings on
4448 floating point zero. Don't crash on unions containing structs.
4450 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4452 * config/sh/sh.h (PREDICATE_CODES): Add CONST_DOUBLE to
4453 general_movsrc_operand, and remove CONST_INT from
4454 general_movdst_operand.
4456 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
4458 * cse.c (approx_reg_cost): If SMALL_REGISTER_CLASSES, return INT_MAX
4459 if a reference to non-fixed hardreg is seen. Otherwise, count hard
4460 regs with a higher cost.
4461 (preferrable): Deal with cases where either cost or regcost is
4463 (cse_insn): Use MAX_COST rather than 10000. Always initialize
4465 (COSTS_N_INSNS): Move definition...
4467 (MAX_COST): New macro.
4468 * loop.c (init_loop): Use COSTS_N_INSNS macro instead of hardcoded
4471 2000-09-11 Mark Mitchell <mark@codesourcery.com>
4473 * c-common.h (genrtl_clear_out_block): Remove.
4474 * c-semantics.c (genrtl_clear_out_block): Remove.
4475 (genrtl_while_stmt): Don't call it.
4476 (genrtl_for_stmt): Likewise.
4478 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
4480 * cppfiles.c: Move all default-#defines to top of file.
4481 (open_include_file): Replace by lookup_include_file.
4482 (read_with_read, read_file): Merged into read_include_file.
4483 (stack_include_file, purge_cache): New functions.
4484 (close_cached_fd): Delete.
4485 (lookup_include_file, read_include_file, _cpp_pop_file_buffer):
4486 Cache the in-memory buffer, not the file descriptor.
4488 * cpphash.h (struct include_file): Add buffer, st, refcnt,
4490 (xcnew): New utility macro.
4491 (DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
4492 * cpplib.h (struct cpp_buffer): Remove mapped field.
4494 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
4496 * cpplex.c (parse_string): Accept backslash space newline as a
4498 (lex_line): Likewise.
4499 (_cpp_get_token): Remove hard limit on macro nesting.
4501 2000-09-12 Philipp Thomas <pthomas@suse.de>
4503 * aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
4504 * configure: Rebuilt.
4506 2000-09-13 Michael Hayes <mhayes@cygnus.com>
4508 * flow.c (split_block): Fix update of registers live at
4511 Tue Sep 12 01:51:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
4513 * i386.md (add?i_3, add?i_5): New.
4514 (add?i_4): Rename from add?i_3; Fix compare pattern.
4515 (sub?i_3, xor?i_3, ior?i_3): New.
4517 * genrecog.c (write_tree): Output code to clear insn_extract cache.
4518 * genattrtab.c (write_attr_case): Gen call to extract_insn_cache
4519 instead of extract_insn and extract_constrain_insn_cache instead of
4520 extract_insn and constrain_operands.
4521 * recog.c (extract_insn_cached, extract_constrain_insn_cached):
4523 (extract_insn): Clear which_alternative.
4524 (constrain_operands): Set which_alternative to -1 when failed.
4525 * recog.h (extract_constrain_insn_cached, extract_insn_cached):
4528 2000-09-11 Matthew Hiller <hiller@redhat.com>
4530 * config/h8300/h8300.md (movstrictqi): Changed constraint modifier
4531 on operand 0 to '+'.
4532 (movstricthi): Likewise.
4534 2000-09-12 Michael Hayes <mhayes@cygnus.com>
4536 * loop.h (LOOP_IVS): New macro.
4537 (REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
4538 (struct loop_ivs): New.
4539 (struct loop_info): Add ivs field.
4540 (reg_iv_type, reg_iv_info): Delete prototype.
4541 (reg_biv_class, loop_iv_list): Likewise.
4542 * loop.c (record_biv, find_life_end): Pass loop argument.
4543 (reg_iv_type): Remove global array and use
4544 field in loop_regs structure within loop_ivs structure.
4545 (reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
4546 (first_increment_giv, last_increment_giv): Use entry in
4548 (record_initial): Pass ivs pointer.
4549 * unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.
4551 2000-09-12 Michael Hayes <mhayes@cygnus.com>
4553 * loop.h (LOOP_REGS): New macro.
4554 (struct loop_regs): New.
4555 (struct loop_info): Add regs field.
4556 * loop.c (set_in_loop): Remove global array and store
4557 in loop_regs structure as part of loop_info structure.
4558 (n_times_set, may_not_optimize): Likewise.
4559 (reg_single_usage, moved_once): Likewise.
4560 (count_one_set): Add regs argument.
4561 (combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
4562 (set_pseudo_multiple_uses): Pass regs pointer.
4564 2000-09-12 Michael Hayes <mhayes@cygnus.com>
4566 * unroll.c (iteration_info): Subsume into loop_iterations.
4567 * loop.h (loop_info): New field iv.
4569 2000-09-12 Michael Hayes <mhayes@cygnus.com>
4571 * basic-block.h (LOOP_TREE, LOOP_PRE_HEADER, LOOP_EDGES): New.
4572 (LOOP_EXITS_DOMS, LOOP_ALL): Likewise.
4573 (flow_loops_update): New prototype.
4574 (flow_loops_find): Add flags to prototype.
4575 (struct loop): Add `pre_header_root' and `pre_header_trace' fields.
4576 * flow.c (flow_loop_pre_header_scan): New.
4577 (flow_loop_dump): Dump pre-header root and trace and exit dominators.
4578 (flow_loop_free): Free pre-header root and trace and exit dominators.
4579 (flow_loops_find): New argument flags.
4580 (flow_loops_update): New function.
4581 * toplev.c (rest_of_compilation): Add flag argument to flow_loops_find.
4583 2000-09-12 Michael Hayes <mhayes@cygnus.com>
4585 * basic-block.h (split_block, update_bb_for_insn): New prototypes.
4586 * flow.c (split_block, update_bb_for_insn): New functions.
4588 2000-09-11 Richard Henderson <rth@cygnus.com>
4590 * cse.c (fold_rtx): Honor NO_FUNCTION_CSE.
4592 2000-09-11 Richard Henderson <rth@cygnus.com>
4594 * config/ia64/ia64-protos.h (fr_nonimmediate_operand): Declare.
4595 * config/ia64/ia64.c (fr_nonimmediate_operand): New.
4596 (ia64_override_options): Prevent optimizing division for both
4597 latency and throughput.
4598 (rtx_needs_barrier): Handle frcpa.
4599 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): New.
4600 (MASK_INLINE_DIV_THR, TARGET_INLINE_DIV_LAT): New.
4601 (TARGET_INLINE_DIV_THR, TARGET_INLINE_DIV): New.
4602 (TARGET_SWITCHES): Add -minline-divide-min-latency and
4603 -minline-divide-max-throughput.
4604 (PREDICATE_CODES): Update.
4605 * config/ia64/ia64.md (extendsidi2): Remove * from f case.
4606 (zero_extendsidi2): Likewise. Fix typo in f case insn.
4607 (extendsfdf2): Add cases for gr<->fr and fr<->mem.
4608 (extendsftf2): Likewise.
4609 (extenddftf2): Likewise.
4610 (fix_trunctfdi2_alts): New.
4611 (fixuns_trunctfdi2_alts): New.
4612 (madd*4): Rename from madd*3.
4613 (divsi3, modsi3, udivsi3, umodsi3): New.
4614 (divsi3_internal): New.
4615 (divdi3, moddi3, udivdi3, umoddi3): New.
4616 (divdi3_internal_lat, divdi3_internal_thr): New.
4617 (multf3_alts, maddtf4_alts, nmaddtf4_alts): New.
4618 (recip_approx): New.
4620 2000-09-11 Alexandre Oliva <aoliva@redhat.com>
4622 * print-rtl.c (debug_call_placeholder_verbose): New variable.
4623 (print_rtx) [CALL_PLACEHOLDER]: Dump all call sequences if it is
4625 * integrate.c (copy_rtx_and_substitute): Don't share
4626 LEAF_REG_REMAPpable registers with the inlined function. Don't
4627 share the function value with calling sequences.
4629 2000-09-11 Jakub Jelinek <jakub@redhat.com>
4631 * c-decl.c (do_case): Fix a typo.
4633 * combine.c (simplify_if_then_else): Don't convert a == b ? b : a
4634 to a if the comparison is floating mode and not -ffast-math.
4635 * simplify-rtx.c (simplify_ternary_operation): Likewise.
4637 Mon Sep 11 20:07:48 2000 J"orn Rennecke <amylaar@redhat.co.uk>
4639 * sh.h (INITIALIZE_TRAMPOLINE): Remove stray call to
4640 gen_ic_invalidate_line.
4642 2000-09-11 Philip Blundell <pb@futuretv.com>
4644 * config/arm/elf.h (SUBTARGET_CPP_SPEC): Don't define `arm_elf'.
4646 Mon Sep 11 10:48:41 2000 Ulrich Drepper <drepper@redhat.com>
4648 * install.texi (LANGUAGES): Update to include new languages.
4651 2000-09-11 DJ Delorie <dj@redhat.com>
4653 * gcc.c (main): Don't warn about unused -B prefixes
4654 (unused_prefix_warnings): remove
4656 2000-09-11 Kazu Hirata <kazu@hxi.com>
4658 * final.c: Fix formatting.
4660 * integrate.c: Fix formatting.
4662 2000-09-11 Geoff Keating <geoffk@cygnus.com>
4664 * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry.
4666 2000-09-11 Bernd Schmidt <bernds@redhat.co.uk>
4668 * reload.c (regno_clobbered_p): Fix thinko in previous change.
4670 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4672 * gcc.1: Document 68hc11 specific options.
4674 2000-09-10 Geoff Keating <geoffk@cygnus.com>
4676 * config/rs6000/sysv4.h (MASK_LONG_DOUBLE_128): Define.
4677 (TARGET_LONG_DOUBLE_128): Define.
4678 (SUBTARGET_SWITCHES): Add -mlong-double-64 and -mlong-double-128.
4679 (LONG_DOUBLE_TYPE_SIZE): Redefine.
4680 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
4681 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on definition
4682 of __LONG_DOUBLE_128__.
4683 (CPP_SYSV_SPEC): Define __LONG_DOUBLE_128__ if -mlong-double-128
4685 (CPP_LONGDOUBLE_DEFAULT_SPEC): Define.
4686 (CPP_SYSV_DEFAULT_SPEC): Define.
4687 (SUBTARGET_EXTRA_SPECS): Add cpp_longdouble_default.
4688 (INIT_TARGET_OPTABS): Define.
4690 * config/rs6000/aix.h (RS6000_ITRUNC): Moved from rs6000.h.
4691 (RS6000_UITRUNC): Likewise.
4692 (INIT_TARGET_OPTABS): New macro.
4693 * config/rs6000/rs6000.c (rs6000_trunc_used): Delete.
4694 (trunc_defined): Delete.
4695 (output_prolog): Don't output .extern definitions for fp->int
4696 conversion routines, ASM_OUTPUT_EXTERNAL_LIBCALL will do it.
4697 * config/rs6000/rs6000.h (rs6000_trunc_used): Delete.
4698 (trunc_defined): Delete.
4699 (RS6000_ITRUNC): Moved to aix.h.
4700 (RS6000_UITRUNC): Likewise.
4701 * config/rs6000/rs6000.md (fix_truncdfsi2): Fail if it would
4702 only emit a libcall.
4703 (fixuns_truncdfsi2): Delete.
4704 (trunc_call): Delete.
4705 (trunc_call_rtl): Delete.
4707 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
4709 * varasm.c (make_decl_rtl): Restore leading star on
4710 DECL_ASSEMBLER_NAME set for decls with an asmspec.
4712 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
4714 * c-pragma.c (handle_pragma_pack): Correct parsing logic so it
4715 won't give a spurious error for '#pragma pack()'. Simplify
4716 control flow for readability. 'reset' action is not necessary.
4718 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
4720 * defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
4721 SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
4722 LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
4723 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
4725 * cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
4726 profile.c, sdbout.c, tradcif.y, tree.c:
4727 Include defaults.h if not already included.
4728 Don't define the above macros.
4730 * Makefile.in: Update dependencies.
4732 2000-09-10 Mark Mitchell <mark@codesourcery.com>
4734 * c-common.h (add_stmt): Change prototype.
4735 (RECHAIN_STMTS): New macro.
4736 (CASE_LABEL_DECL): Likewise.
4737 (genrtl_case_label): Change prototype.
4738 (c_expand_start_case): Remove prototype.
4739 (build_case_label): Change prototype.
4740 (decl_constant_value): Declare.
4741 * c-common.c (check_case_value): Handle C++'s extensions to C
4743 * c-commnon.def (CASE_LABEL): Add room for the CASE_LABEL_DECL
4745 * c-parse.in (stmt): Adjust handling of return statements and case
4747 * c-semantics.c (add_stmt): Return the new statement.
4748 (genrtl_return_stmt): Take the RETURN_STMT as input, not the
4749 returned expression. Directly generate RTL, rather than calling
4751 (genrtl_switch_stmt): Don't call c_expand_start_case.
4752 (build_case_label): Take the LABEL_DECL as input, too.
4753 (genrtl_case_label): Just call add_case_node.
4754 (expand_stmt): Adjust calls to genrtl_return_stmt and
4756 * c-tree.h (c_expand_start_case): Declare.
4757 * c-typeck.c (decl_constant_value): Give it external linkage.
4758 (c_expand_return): Don't call expand_return or expand_null_return;
4759 use genrtl_return_stmt instead.
4760 * stmt.c (struct nesting): Remove num_ranges field.
4761 (add_case_node): Give it external linkage.
4762 (expand_start_case): Don't set num_ranges.
4763 (expand_start_case_dummy): Don't clear it.
4764 (pushcase): Rely on add_case_node to handle `default' labels.
4765 (add_case_node): Handle `default' labels.
4766 * tree.c (tree_int_cst_compare): New function.
4767 * tree.h (tree_int_cst_compare): Declare.
4768 (add_case_node): Likewise.
4770 2000-09-10 Richard Henderson <rth@cygnus.com>
4772 * c-parse.in: Revert last change.
4773 (init_reswords): Do not enter disabled keywords into the ridpointers
4774 table, modulo objc weirdness.
4775 (_yylex): Return the canonical spelling for a keyword.
4777 2000-09-10 Philip Blundell <philb@gnu.org>
4779 * config/arm/arm.h (CPP_ISA_SPEC): Don't define `arm' or `thumb'.
4780 * config/arm/linux-elf.h (CPP_PREDEFINES): Don't define `__arm__'.
4782 Sun Sep 10 14:30:28 EDT 2000 John Wehle (john@feith.com)
4784 * alias.c (find_base_term): Handle ADDRESSOF.
4785 (memrefs_conflict_p): An ADDRESSOF doesn't conflict.
4787 2000-09-10 Denis Chertykov <denisc@overta.ru>
4789 * genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
4790 outputting templates with many lines.
4792 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4794 * libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
4795 to decide whether 64-bit support must be generated.
4797 2000-09-10 Richard Henderson <rth@cygnus.com>
4799 * c-parse.in (asm patterns): Fix volatile check.
4801 2000-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4803 * cppmacro.c (check_trad_stringification): New function.
4804 (save_expansion): If -Wtraditional, warn about stringification of
4807 2000-09-11 Michael Hayes <mhayes@cygnus.com>
4809 * loop.h (struct loop_mem_info): Move from loop.c
4810 (struct loop_info): Add fields store_mems, mems, mems_idx,
4811 mems_allocated, unknown_address_altered,
4812 unknown_constant_address_altered, num_mem_sets, and
4813 first_loop_store_insn.
4815 * loop.c (loop_store_mems): Replace with field in loop_info struct.
4816 (loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
4817 (unknown_address_altered, unknown_constant_address_altered): Likewise.
4818 (num_mem_sets): Likewise.
4819 (replace_loop_mems, replace_loop_regs): New.
4820 (struct loop_replace_args): New.
4821 (load_mems): Use replace_loop_mems.
4822 (try_copy_prop): Use replace_loop_regs.
4823 (replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
4825 2000-09-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4827 * configure.in: Recognize m6811-elf and m6812-elf.
4828 * configure: Regenerate.
4830 2000-09-09 Geoff Keating <geoffk@cygnus.com>
4832 * recog.c (validate_replace_rtx_1): Correct MODE parameter in call
4835 2000-09-10 Michael Hayes <mhayes@cygnus.com>
4837 * loop.c (struct movables): New.
4838 (num_movables): Move into struct movables.
4839 (the_movables): Change type to struct movables.
4840 (ignore_some_movables): Change struct movable arg to struct movables.
4841 (force_movables, combine_movables, regs_match_p): Likewise.
4842 (rtx_equal_for_loop_p, move_movables): Likewise.
4843 (scan_loop): Change movables to be of type struct movables.
4844 Replace last_movable with field in movables structure.
4846 2000-09-08 Zack Weinberg <zack@wolery.cumb.org>
4848 * c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
4849 (init_pragma): Avoid warning if pfile happens to be unused.
4850 * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS. Never
4851 define init_pragma to nothing. Always prototype
4852 init_pragma. Prototype dispatch_pragma if !USE_CPPLIB.
4854 * c-lex.c (process_directive): Always call dispatch_pragma.
4855 Initialize entering_c_header to 0.
4857 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4859 * config/m68hc11/m68hc11.md: New file, machine description for
4861 * config/m68hc11/m68hc11.h: New file, definitions for 68HC11 & 68HC12.
4862 * config/m68hc11/m68hc11.c: New file, functions for 68HC11 & 68HC12.
4863 * config/m68hc11/m68hc12.h: New file, definitions for 68HC12.
4864 * config/m68hc11/m68hc11-protos.h: New file.
4865 * config/m68hc11/m68hc11-crt0.S: New file, startup code.
4866 * config/m68hc11/t-m68hc11-gas: New file, makefile fragment.
4867 * config/m68hc11/xm-m68hc11.h: New file, target defs.
4868 * config/m68hc11/larith.asm: New file, libgcc routines.
4870 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4872 * Makefile.in (DPBIT_FUNCS): Add _usi_to_df.
4873 (FPBIT_FUNCS): Add _usi_to_sf.
4874 * config/fp-bit.c (usi_to_float): New function.
4875 * config/fp-bit.h (L_usi_to_sf, L_usi_to_df): Define.
4876 (usi_to_float): Add appropriate #define.
4878 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
4880 * i386-protos.h (sse_comparison_operator, mmx_reg_operand): Declare
4882 * i386.c (sse_comparison_operator, mmx_reg_operand): New functions.
4883 * i386.md (attr "type"): Add sse and mmx types.
4884 (attr "memory"): Handle them without a crash.
4885 (movsi_1, movdi_2): Allow MMX regs.
4886 (movdi splits): Don't split moves involving MMX regs.
4887 (setcc_4): Remove '*' from pattern name so we get a gen_setcc4.
4888 (movv4sf_internal, movv4si_internal, movv8qi_internal,
4889 movv4hi_internal, movv2si_internal, movv8qi, movv4hi, movv2si,
4890 movv4sf, movv4si, pushv4sf, pushv4si, pushv8qi, pushv4hi, pushv2si,
4891 sse_movaps, sse_movups, sse_movmskps, mmx_pmovmskb, mmx_maskmovq,
4892 sse_movntv4sf, sse_movntdi, sse_movhlps, sse_movlhps, sse_movhps,
4893 sse_movlps, sse_loadss, sse_movss, sse_storess, sse_shufps,
4894 addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, mulv4sf3, vmmulv4sf3,
4895 divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2, rsqrtv4sf2, vmrsqrtv4sf2,
4896 sqrtv4sf2, vmsqrtv4sf2, sse_andti3, sse_nandti3, sse_iorti3,
4897 sse_xorti3, maskcmpv4sf3, maskncmpv4sf3, vmmaskcmpv4sf3,
4898 vmmaskncmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
4899 smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
4900 cvttps2pi, cvtsi2ss, cvtss2si, cvttss2si, addv8qi3, addv4hi3,
4901 addv2si3, ssaddv8qi3, ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3,
4902 subv4hi3, subv2si3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
4903 mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
4904 mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3, mmx_uavgv8qi3,
4905 mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw, mmx_pshufw,
4906 eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3, gtv2si3, umaxv8qi3,
4907 smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3, ashrv2si3, lshrv4hi3,
4908 lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3, mmx_ashldi3,
4909 mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
4910 mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
4911 mmx_punpckldq, emms, sfence, ldmxcsr, prefetch, stmxcsr, sse_clrti,
4912 mmx_clrdi): New patterns.
4914 2000-09-08 Richard Earnshaw <rearnsha@arm.com>
4916 * arm.c: Don't include tm.h directly.
4918 Fri Sep 8 14:34:56 MET DST 2000 Jan Hubicka <jh@suse.cz>
4920 * recog.c (validate_replace_rtx_1): Fix confusion about equality
4921 testing; simplify subregs of constants and nested subregs.
4923 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
4925 * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
4927 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
4929 * combine.c (combine_simplify_rtx): Try to simplify VEC_SELECT of a
4931 * rtl.texi (description of USE): Add note about possible pitfalls
4933 From Richard Henderson:
4934 * reload1.c (choose_reload_regs): Compute need_mode properly.
4936 2000-09-07 Richard Henderson <rth@cygnus.com>
4938 * config/ia64/lib1funcs.asm (__divsi3): Use .s1 for frcpa.
4939 (__modsi3, __umodsi3): Likewise.
4940 (__udivsi3): Likewise. Normalize the TFmode values.
4942 2000-09-07 Geoff Keating <geoffk@cygnus.com>
4944 * config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
4946 * config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
4949 Fri Sep 8 03:26:38 2000 J"orn Rennecke <amylaar@redhat.co.uk>
4951 * sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
4952 (cmpeqdi_t): Add output pattern.
4953 (cmpeqdi_t+1): Don't split when not optimizing.
4954 Restore proper splitting operation.
4956 2000-09-07 Richard Henderson <rth@cygnus.com>
4958 * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
4959 do not call dispatch_pragma.
4961 2000-09-07 Jim Wilson <wilson@cygnus.com>
4963 * reload.c (push_reload): Use CLASS_CANNOT_CHANGE_MODE_P in addition
4964 to CLASS_CANNOT_CHANGE_MODE.
4965 * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE_P): True only if the
4966 mode classes are different.
4968 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
4970 * cpplib.h (struct cpp_options): Add user_label_prefix member,
4971 left out of commit which removed cppulp.c.
4973 2000-09-07 Richard Henderson <rth@cygnus.com>
4975 * bb-reorder.c (fixup_reorder_chain): Add jump in new block
4976 after switch for CASE_DROPS_THROUGH.
4978 2000-09-07 Richard Henderson <rth@cygnus.com>
4980 * loop.c (strength_reduce): Call check_ext_dependant_givs.
4981 Properly extend the biv initial value for the giv.
4982 (record_biv): Zero ext_dependant.
4983 (record_giv): New argument ext_val. Update all callers.
4984 (general_induction_var): Likewise.
4985 (consec_sets_giv): Likewise.
4986 (simplify_giv_expr): Likewise. Fill in ext_val if we find
4987 a sign-extend, zero-extend, or truncate.
4988 (combine_givs_p): Make sure modes are compatible.
4989 (check_ext_dependant_givs): New.
4990 (extend_value_for_giv): New.
4991 * loop.h (struct induction): Add ext_dependant.
4992 * unroll.c (iteration_info): Extend the biv initial value for the giv.
4993 (find_splittable_givs): Likewise.
4994 (final_giv_value): Likewise.
4996 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
4998 * c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
4999 REGISTER_TARGET_PRAGMAS is defined. Duplicate some
5000 definitions from cpplib.h.
5001 * cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
5003 * tm.texi: Document HANDLE_PRAGMA as no longer supported. Add
5004 documentation for REGISTER_TARGET_PRAGMAS.
5006 * c-lex.c: Include cpplib.h before c-pragma.h. Define a
5007 default-pragma callback to implement -Wunknown-pragmas if
5009 * c-parse.in: Move all includes to top of file.
5010 * c-pragma.c: Include cpplib.h before c-pragma.h. Include
5012 (dispatch_pragma): Put the namespace in the -Wunknown-pragmas
5014 (init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
5016 * arm.h, arm-protos.h, arm.c,
5017 c4x.h, c4x-protos.h, c4x.c,
5018 h8300.h, h8300-protos.h, h8300.c,
5019 i370.h, i370-protos.h, i370.c,
5020 i960.h, i960-protos.h, i960.c,
5021 sh.h, sh-protos.h, sh.c,
5022 v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
5023 pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
5025 * d30v.h: Don't mention HANDLE_PRAGMA in comment. Add
5026 multiple include guard.
5027 * i370.md (untyped_call): Use GEN_CALL.
5028 (umodsi3): Remove unused variable.
5029 * sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
5030 * v850.c (output_move_single, output_move_double): Constify
5032 (print_operand): Constify a char *.
5033 * v850.h (struct small_memory_info): Constify name member.
5035 2000-09-07 Kazu Hirata <kazu@hxi.com>
5037 * config/h8300.h: Fix comment typos.
5038 * config/h8300/h8300.md: Likewise.
5039 * config/h8300/lib1funcs.asm: Likewise.
5041 Thu 07-Sep-2000 21:29:00 BST Neil Booth <NeilB@earthling.net>
5043 * Makefile.in: Remove references to cppulp.{c,o}.
5044 * cppinit.c (initialize_builtins, cpp_start_read,
5045 cpp_handle_option): Update to use cpp_options structure.
5048 2000-09-07 Joseph S. Myers <jsm28@cam.ac.uk>
5050 * c-common.c (time_char_table): Allow %#b and %#h.
5052 2000-09-07 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5054 * reorg.c (find_end_label): If the basic block reorder pass moves the
5055 return insn to some other place try to locate it again and put our
5056 end_of_function_label there.
5057 * reorg.c (relax_delay_slots): Check if find_end_label created a
5058 new label that invalidates the current optimazation.
5060 2000-09-07 Catherine Moore <clm@redhat.com>
5062 * unroll.c (unroll_loop): Check for unconditional jumps
5063 to loop continuation. Delete if n_iterations is 1.
5064 (ujump_to_loop_cont): New routine.
5066 2000-09-07 Bernd Schmidt <bernds@redhat.co.uk>
5068 * rtl.c (class_narrowest_mode): Add entries for MODE_VECTOR_INT and
5070 * reload.c (regno_clobbered_p): Accept new arg, MODE, and use it
5071 to handle multiword modes correctly. All callers and the declaration
5074 2000-09-06 Mark Mitchell <mark@codesourcery.com>
5076 * c-common.h (prep_stmt): Declare.
5077 (lang_expand_stmt): Likewise.
5078 * c-decl.c (lang_expand_stmt): Remove.
5079 * c-semantics.c (lang_expand_stmt): Define.
5080 (prep_stmt): New function.
5081 (expand_stmt): Handle common statement types here.
5083 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5085 * configure.in (sh-*-linux*): Added.
5086 * configure: Rebuilt.
5087 * config/sh/t-linux: New file.
5088 * config/sh/sh.h (USERMODE_BIT): Define.
5089 (TARGET_USERMODE): Likewise.
5090 (TARGET_SWITCHES): New switches for the bits above.
5091 (INITIALIZE_TRAMPOLINE): Call __ic_invalidate in USERMODE.
5092 * config/sh/linux.h: New file.
5093 * config/sh/lib1funcs.asm (GLOBAL): Don't prefix symbols with
5094 underscore on linux.
5095 (L_sdivsi3, L_udivsi3): Define for linux.
5096 (L_ic_invalidate): Define.
5097 * invoke.texi (SH Options): Document -musermode.
5099 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
5101 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
5102 CSE unless generating PIC.
5104 * config/sh/sh.md (symPLT_label2reg): Force the initialization of
5107 2000-09-06 H.J. Lu (hjl@gnu.org)
5109 * Makefile.in (clean_s1): Depend on stage_b.
5110 (clean_s2): Depend on stage_d. Don't remove $(VOL_FILES) in
5111 stage2. They are used for "make compare".
5113 2000-09-06 Mark Mitchell <mark@codesourcery.com>
5115 Move statement-tree facilities from C++ to C front-end.
5116 * c-common.h (c_tree_index): Add CTI_VOID_ZERO.
5117 (void_zero_node): New macro.
5118 (struct stmt_tree_s): New type.
5119 (stmt_tree): New typedef.
5120 (struct language_function): New type.
5121 (last_tree): New macro.
5122 (last_expr_type): Likewise.
5123 (walk_tree_fn): New typedef.
5124 (current_stmt_tree): New function.
5125 (begin_stmt_tree): Likewise.
5126 (add_stmt): Likewise.
5127 (finish_stmt_tree): Likewise.
5128 (statement_code_p): Likewise.
5129 (lang_statement_code_p): New variable.
5130 (walk_stmt_tree): New function.
5131 (STMT_IS_FULL_EXPR_P): New macro.
5132 * c-common.c (lang_statement_code_p): New variable.
5133 (c_common_nodes_and_builtins): Initialize void_zero_node.
5134 (statement_code_p): New function.
5135 (walk_stmt_tree): Likewise.
5136 * c-decl.c (language_function): Rename to ...
5137 (c_language_function): ... this. Include language_function.
5138 (push_c_function_context): Adjust accordingly.
5139 (pop_c_function_context): Likewise.
5140 (mark_c_function_context): Likewise.
5141 (current_stmt_tree): Define.
5142 * c-semantics.c (begin_stmt_tree): New function.
5143 (add_stmt): Likewise.
5144 (prune_unused_decls): Likewise.
5145 (finish_stmt_tree): Likewise.
5147 2000-09-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5149 * flow.c (insn_dead_p): Detect dead memory stores with auto increments.
5151 2000-09-06 Kazu Hirata <kazu@hxi.com>
5153 * calls.c: Fix formatting.
5155 2000-09-06 Graham Stott <grahams@cygnus.co.uk>
5157 * config/i386/i386.h (ADDRESS_COST): Fix typo.
5159 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
5161 Integrated preprocessor.
5163 * Makefile.in: Remove all references to c-parse.gperf,
5164 c-gperf.h, and c-parse.h. Remove -d from yacc command line
5165 generating c-parse.c. Update dependencies.
5166 * c-parse.gperf, c-gperf.h: Delete.
5168 * c-common.c: Don't define parse_options, cpp_token, yy_cur,
5169 yy_lim, or yy_get_token. Don't define get_directive_line if
5171 * c-common.h: Add multiple include guard. Define RID values
5172 for every keyword in C, C++, and Objective C. Put all the
5174 (struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
5175 * c-decl.c (c_decode_option): Handle -lang-objc here.
5176 (print_lang_identifier): Handle C_IS_RESERVED_WORD case.
5177 (grokdeclarator): Adjust for new RID scheme.
5178 (extract_interface_info): New stub.
5179 * c-lang.c: Don't declare yy_cur or parse_options.
5180 (lang_init_options): Call cpp_init. Don't call
5182 (lang_init): Don't call check_newline if USE_CPPLIB.
5184 * c-lex.c: Don't include c-parse.h. Do include timevar.h.
5185 Elide lots of unnecessary code if USE_CPPLIB. Delete code
5186 rendered unnecessary by new architecture. Move routines not
5187 shared with C++ to c-parse.in. Maintain a local idea of the
5188 line number. Handle C++ as well as C.
5189 [USE_CPPLIB]: Declare and register callbacks for #ident and
5190 for entering/leaving files.
5191 (init_c_lex, c_lex): Are now the entry points to this file.
5192 (check_newline): Break out directive handling to
5194 (read_ucs, is_extended_char, utf8_extend_token): Moved here
5196 (readescape, parse_float): Overhaul.
5197 (lex_number, lex_string, lex_charconst): Break out of c_lex
5199 (get_fileinfo, update_header_times, dump_one_header,
5200 dump_time_statistics): New and/or moved here from C++.
5201 Support per-file data needed by C++ and per-header timing
5202 statistics (C++ only, at the moment).
5203 * c-lex.h: Update prototypes. Add multiple include guard.
5204 * c-tree.h (struct lang_identifier): Add rid_code field.
5205 (C_IS_RESERVED_WORD, C_RID_CODE): New.
5207 * c-parse.in: Include c-pragma.h. Remove unnecesary calls to
5208 reinit_parse_for_function and/or position_after_white_space.
5209 (save_filename, save_lineno): Look ahead before saving.
5210 (label -> identifier ':'): Save file and line before shifting ':'.
5211 (reservedwords): No need to call get_identifier.
5212 (init_parse, finish_parse, yyerror, yylex, yyprint,
5213 make_pointer_declarator): Are now here for C/ObjC.
5214 (rid_to_yy): Conversion table from RID constants to Yacc codes.
5216 * c-pragma.c: Rewrite parsing logic to fit with cpplib's
5217 #pragma registry. Provide dummy implementation of that
5218 interface if !USE_CPPLIB.
5219 * c-pragma.h: Update to match.
5221 * flags.h: Add multiple include guard.
5222 (flag_detailed_statistics): Moved here from C++.
5223 * toplev.c: Define flag_detailed_statistics.
5225 * gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
5227 * timevar.def (TV_CPP, TV_LEX): New.
5228 * timevar.h: Add multiple include guard.
5230 * objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
5232 * objc/objc-act.c: Don't mention yy_cur or parse_options.
5233 Initialize cpplib properly. Force lineno to 0 after first
5234 call to check_newline. Don't handle -lang-objc here.
5235 Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
5237 2000-09-06 David Edelsohn <edelsohn@gnu.org>
5239 * rs6000.md: Correct function unit definitions for cr_logical and
5241 (sCOND): Additionally fail for sgt, slt, sge, sle if !TARGET_POWER
5242 and use portable method for >=0 and floating point >=. Remove
5243 associated matchers.
5245 2000-09-06 Mark Mitchell <mark@codesourcery.com>
5247 * extend.texi: Mark named return value extension as deprecated.
5249 2000-09-06 Geoff Keating <geoffk@cygnus.com>
5251 * config/rs6000/rs6000.c (rs6000_reverse_condition): Return
5254 2000-09-06 Gabriel Dos Reis <gdr@codesourcery.com>
5256 * toplev.c (display_help): Fix thinko in documentation.
5258 * diagnostic.h (output_buffer::indent_skip): New fields.
5259 (output_indentation): New macro.
5261 * diagnostic.c (output_indent): New function.
5262 (output_set_prefix, clear_diagnostic_info): Use.
5263 (output_emit_prefix): Predict future indentation.
5265 2000-09-06 DJ Delorie <dj@redhat.com>
5267 * Makefile.in (stage_*): add more dependencies to ensure parallel
5268 builds build correctly
5270 2000-09-06 Manfred Hollstein <manfredh@redhat.com>
5272 * Makefile.in (bootstrap-lean): Depend on bootstrap-lean_g,
5273 not bootstrap-lean_f.
5275 2000-09-06 Andreas Schwab <schwab@suse.de>
5277 * mklibgcc.in: Emit rule for libgcc-stage-start.
5278 * Makefile.in (stage1-start, stage2-start, stage3-start,
5279 stage4-start): Don't handle libgcc here, use libgcc.mk instead.
5281 2000-09-06 Bernd Schmidt <bernds@redhat.co.uk>
5283 * local-alloc.c (local_alloc): Ignore CLASS_LIKELY_SPILLED.
5284 (update_equiv_regs): Likewise, except for the mn10200 kludge.
5285 (combine_regs): Likewise.
5287 * Makefile.in (cse.o): Depend on $(BASIC_BLOCK_H).
5288 * cse.c: Include "basic-block.h".
5289 (struct table_elt): New field REGCOST.
5290 (CHEAP_REG): Delete macro.
5291 (COST): Return 0 for REGs.
5292 (approx_reg_cost_1, approx_reg_cost, preferrable): New functions.
5293 (notreg_cost): Return 0 for appropriate SUBREGs.
5294 (COSTS_N_INSNS): Return N * 2.
5295 (rtx_cost): Return 0 for REGs, and use cost of nested rtx for cheap
5297 (CHEAPER): Use new function preferrable.
5298 (insert): Initialize REGCOST member.
5299 (find_best_addr): Use approx_reg_cost for estimation of register
5301 (cse_insn): Likewise.
5302 * loop.c (iv_add_mult_cost): New function.
5303 (add_cost, shift_cost, mult_cost): Delete variables.
5304 (init_loop): Don't initialize add_cost; reduce copy_cost by half.
5305 (strength_reduce): Use iv_add_mult_cost instead of fixed add_cost.
5306 Make code that detects autoinc opportunities slightly less optimistic.
5307 (simplify_giv_expr): If expression contains other reg that is also a
5308 giv, only increment benefit if this is the only use of that reg.
5309 (consec_sets_giv): Take that change into account.
5310 (combine_givs): Slightly more verbose output.
5312 * i386.h (RTX_COSTS): For MULT, return true cost of multiplication,
5313 not the cost of an equivalent shift.
5314 * sh-protos.h (addsubcosts): Declare.
5315 * sh.c (addsubcosts): New function.
5316 * sh.h (CONST_COSTS): If CONST_OK_FOR_I, then return 0.
5317 (RTX_COSTS): Tweak. Use addsubcosts.
5318 (ADDRESS_COST): Return higher cost for reg+reg addressing.
5320 2000-09-06 Geoff Keating <geoffk@cygnus.com>
5322 * config/rs6000/rs6000.c (validate_condition_mode): New function.
5323 (branch_comparison_operator): Call validate_condition_mode to
5324 abort rather than returning 0.
5325 (branch_positive_comparison_operator): New function.
5326 (scc_comparison_operator): Call validate_condition_mode to abort
5327 rather than returning 0.
5328 (ccr_bit): Call validate_condition_mode. Update for
5330 (print_operand): Delete %C modifier. Update %E case
5331 to use EQ bit not SO bit.
5332 (rs6000_reverse_condition): New function.
5333 (rs6000_generate_compare): New function.
5334 (rs6000_emit_sCOND): New function.
5335 (rs6000_emit_cbranch): New function.
5336 (output_cbranch): The length of a long branch insn is
5337 now only 8 bytes. Add validate_condition_mode. Use
5338 rs6000_reverse_condition. Remove cror generation.
5340 * config/rs6000/rs6000.h: Update comments.
5341 (PREDICATE_CODES): Add new predicate. Update codes used
5342 by branch_comparison_operator and scc_comparison_operator.
5343 * config/rs6000/rs6000-protos.h: Add prototypes for
5344 new external functions.
5345 * config/rs6000/rs6000.md: Add new scheduling parameters
5346 for cr_logical instructions. Change length of branch
5348 (bCOND patterns): Call rs6000_emit_cbranch.
5349 (sCOND patterns): Call rs6000_emit_sCOND.
5350 (branch patterns): Change lengths to 4.
5351 (cr logical patterns): New.
5353 2000-09-06 Richard Henderson <rth@cygnus.com>
5355 * config/i386/i386.md (call_pop): Fix test for setting
5356 current_function_uses_pic_offset_table.
5357 (call, call_value_pop, call_value): Likewise.
5359 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
5361 * timevar.c (timevar_add): Delete.
5362 (timevar_get): Also count time since the selected timer was
5363 last updated. Do not examine the timevar stack if the
5364 selected timer is standalone.
5366 2000-09-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5368 * gthr-dce.h (__gthread_objc_mutex_deallocate): Free mutex->backend.
5370 2000-09-05 Jason Merrill <jason@redhat.com>
5372 * c-decl.c (finish_incomplete_decl): Don't call complete_array_type
5373 for 'extern' arrays.
5375 2000-09-05 Richard Henderson <rth@cygnus.com>
5377 * config/ia64/lib1func.asm (__divtf3): Rebundle for Itanium.
5378 Eliminate final copy from non-trapping case.
5379 (__divdf3, __divsf3): Likewise.
5381 2000-09-05 Richard Henderson <rth@cygnus.com>
5383 * config/ia64/ia64.md (mulhi3): Fix typo last change.
5384 * config/ia64/lib1func.asm (__divdi3, __udivdi3, __umodsi3): Likewise.
5386 2000-09-03 Donn Terry <donn@interix.com>, Laurynas Biveinis <lauras@softhome.net>
5388 * Makefile.in: Restructure bootstrap stages to allow clean
5389 restart after failure.
5391 2000-09-05 Richard Henderson <rth@cygnus.com>
5393 * config/ia64.md (movsi and movdi patterns): Allow moves from
5394 8-bit constants to AR registers.
5396 2000-09-05 Richard Henderson <rth@cygnus.com>
5398 * config/ia64/ia64.md (mulhi3): New.
5400 2000-09-05 Richard Henderson <rth@cygnus.com>
5402 * config/ia64/ia64.h (INIT_TARGET_OPTABS): Remove.
5403 * config/ia64/lib1funcs.asm (__divdi3): Update from Intel IA-64
5404 Optimization Guide, minimum latency alternative.
5405 (__moddi3, __udivdi3, __umoddi3): Likewise.
5406 (__divsi3, __modsi3, __udivsi3, __umodsi3): Likewise.
5408 2000-09-05 Bruce Korb <bkorb@gnu.org>
5410 * fixinc/fixincl.c (load_file): always read header files
5411 with sizes that are a multiple of the page size.
5412 & use libiberty's getpagesize for determining that.
5414 2000-09-05 Alexandre Oliva <aoliva@redhat.com>
5416 * gcse.c (hash_string_1): Add prototype.
5417 * cse.c (canon_hash_string): Likewise.
5419 2000-09-04 Craig Newell <CraigN@ieee.org>
5421 * gcc.c: Undefine "__WCHAR_TYPE__" before redefining it.
5423 2000-09-04 Andreas Schwab <schwab@suse.de>
5425 * Makefile.in (STAGESTUFF): Remove libgcc.
5426 (stage1-start, stage2-start, stage3-start): Copy the contents of
5427 the libgcc directory explicitly.
5428 (mostlyclean): Clean libgcc.
5430 2000-09-04 Andrew Haley <aph@redhat.com>
5432 * dwarf2out.c: (stack_adjust_offset): New prototype.
5434 Wed Jan 1 00:23:59 MET 1997 Jan Hubicka <jh@suse.cz>
5436 * combine.c (make_extraction): Fix rtx_cost comparison to
5439 Wed Jan 1 00:17:32 MET 1997 Jan Hubicka <jh@suse.cz>
5441 * i386.md (pushsi2, pushhi2, pophi2, swapsf, swapdf,
5442 umulsi3_highpart, smulsi3_highpart, testqi_ccno_1, xorqi_ext_1):
5443 Add '*' to insn pattern name.
5445 2000-09-04 Jakub Jelinek <jakub@redhat.com>
5447 * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
5448 use posn - 1 to index into tokens array.
5449 (maybe_paste_with_next): Adjust caller.
5451 2000-09-03 Geoff Keating <geoffk@cygnus.com>
5453 * invoke.texi: Document the -mvxworks option for rs6000 ELF.
5455 * config/rs6000/rs6000.h: Update various comments about XER_REGNO.
5456 (REGNO_REG_CLASS): Use symbolic register
5459 2000-09-03 Richard Earnshaw <rearnsha@arm.com>
5461 * arm.c (final_prescan_insn): If the form of a jump insn isn't
5462 recognized, don't try to conditionally execute it.
5464 Sun Sep 3 13:10:56 2000 Denis Chertykov <denisc@overta.ru>
5466 * config/avr/avr.md ("*tablejump_lib"): New pattern.
5467 (call_value_insn): Right length claculation.
5468 (call_insn): Likewise.
5470 2000-09-02 Marek Michalkiewicz <marekm@linux.org.pl>
5472 * config/avr/avr-protos.h, config/avr/avr.c (unique_section,
5473 gas_output_limited_string, gas_output_ascii, output_movqi,
5474 output_movhi, out_movqi_r_mr, out_movqi_mr_r, out_movhi_r_mr,
5475 out_movhi_mr_r, out_movsi_r_mr, out_movsi_mr_r, output_movsisf,
5476 out_tstsi, out_tsthi, ret_cond_branch, ashlqi3_out, ashlhi3_out,
5477 ashlsi3_out, ashrqi3_out, ashrhi3_out, ashrsi3_out, lshrqi3_out,
5478 lshrhi3_out, lshrsi3_out, output_reload_inhi, output_reload_insisf,
5479 out_shift_with_cnt, ptrreg_to_str, cond_string, encode_section_info):
5480 Add "const" as needed to remove warnings.
5482 * config/avr/avr.c (avr_override_options, avr_init_once,
5483 function_prologue, function_epilogue, frame_pointer_required_p,
5484 class_likely_spilled_p, order_regs_for_local_alloc,
5485 avr_address_cost, avr_ret_register): Use K&R style arguments.
5486 (initial_elimination_offset, gas_output_limited_string):
5487 Remove ATTRIBUTE_UNUSED from the used arguments.
5488 (output_mov*, out_mov*_r_mr, out_mov*_mr_r, output_reload_insisf):
5489 Use local variables src, dest, base to access operands[].
5490 Rename reg_dest to reg_src if that's what it is.
5491 (output_movhi, output_movsisf): Optimize loading 8-bit immediate
5492 constants to LD_REGS if reg_was_0.
5493 (output_reload_insisf): Change arg 3 to insn length and set it.
5494 (out_movhi_r_mr, out_movhi_mr_r): Use in/out for more efficient
5495 access to 16-bit I/O register pairs.
5496 (avr_address_cost): Lower cost for the above case.
5497 (out_tsthi): Use "or" (faster) instead of "sbiw" if the operand
5498 may be clobbered, also for LD_REGS.
5499 (adjust_insn_length): Correct insn length for iorhi3 and iorsi3
5502 * config/avr/avr.h (PTRDIFF_TYPE): Make signed.
5504 * config/avr/avr.md: Change all uses of the TEST_HARD_REG_CLASS
5505 macro to test_hard_reg_class function.
5506 (*movsi, *movsf): Change "cc" attribute from "clobber" to "none"
5507 for loading immediate constants to LD_REGS.
5508 (andsi3, cmphi, cmpsi): Add return statements to avoid warnings.
5511 Sat Sep 2 13:58:23 2000 Marek Michalkiewicz <marekm@linux.org.pl>
5513 * config/avr/avr.md ("*negsi2"): substitute %@ to __zero_reg__
5514 * config/avr/libgcc.S: Lost part of the previous patch.
5516 2000-08-31 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5518 * gthr-dce.h (__gthread_objc_mutex_allocate): Create a pthread_mutex_t
5519 object before calling pthread_mutex_init.
5521 2000-09-02 Alexandre Oliva <aoliva@redhat.com>
5523 * config/sh/t-elf, config/sh/crt1.asm, config/sh/crti.asm,
5524 config/sh/crtn.asm: New files.
5525 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Set.
5526 (crt1.o, crti.o, crtn.o): New targets.
5527 * configure.in [sh-*-elf*, sh-*-rtemself*] (tmake_file): Added
5529 * configure: Rebuilt.
5530 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
5531 STARTFILE_SPEC, ENDFILE_SPEC, CRT_CALL_STATIC_FUNCTION): Define.
5532 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
5533 Undefine for config/elfos.h to redefine.
5534 (STARTFILE_SPEC, ENDFILE_SPEC): Redefine after config/elfos.h.
5536 2000-09-02 Alexandre Oliva <aoliva@redhat.com>, Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
5538 * config/sh/sh-protos.h (nonpic_symbol_mentioned_p,
5539 legitimize_pic_address, output_pic_addr_const): Declare.
5540 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Fix PIC register.
5541 (PREFERGOT_BIT, TARGET_PREFERGOT): Likewise.
5542 (TARGET_SWITCHES): New switch -mprefergot.
5543 (OVERRIDE_OPTIONS): Set flag_no_function_cse unless -mprefergot.
5544 (PIC_OFFSET_TABLE_REGNUM): Define.
5545 (GOT_SYMBOL_TABLE): Likewise.
5546 (LEGITIMIZE_ADDRESS): Use legitimize_pic_address.
5547 (ENCODE_SECTION_INFO): Define.
5548 (FINALIZE_PIC): New macros.
5549 (LEGITIMATE_PIC_OPERAND_P, SYMBOLIC_CONST_P): New macro.
5550 (ASM_OUTPUT_INT, ASM_OUTPUT_SHORT): Use output_pic_addr_const.
5551 * config/sh/sh.c (print_operand_address): Use output_pic_addr_const.
5552 (prepare_move_operands): Call emit_pic_move or
5553 emit_pic_const_move if appropriate.
5554 (output_far_jump): For PIC, use braf and output long offset.
5555 (machine_dependent_reorg):
5556 (sh_expand_prologue): Save and initialize the PIC register.
5557 (sh_expand_epilogue): Restore it.
5558 (initial_elimination_offset): Account for it.
5559 (nonpic_symbol_mentioned_p): New function.
5560 (legitimize_pic_address): Likewise.
5561 (output_pic_addr_const): Likewise.
5562 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): New insns.
5563 (call, call_value): Use them.
5564 (GOTaddr2picreg, sym_label2reg, symGOT2reg, symGOTOFF2reg,
5565 symPLT_label2reg): New expands.
5566 * invoke.texi (SH Options): Document -mprefergot.
5568 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
5570 * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
5571 * gcse.c (hash_string_1): New function.
5572 (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
5573 (expr_equiv_p) <ASM_OPERANDS>: Likewise.
5574 * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
5575 (canon_hash_string): New function.
5576 (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
5577 (exp_equiv_p) <ASM_OPERANDS>: Likewise.
5578 (fold_rtx): Use ASM_OPERANDS accessor macros.
5579 * emit-rtl.c (copy_insn_1): Likewise.
5580 * integrate.c (copy_rtx_and_substitute): Likewise.
5581 * stmt.c (expand_asm_operands): Likewise. Give an
5582 ASM_OPERANDS rtx the mode of the output reg being set from it.
5584 2000-09-01 Fred Fish <fnf@be.com>
5586 * fix-header.c (write_rbrac): Add putc and getc to list of
5587 functions to protect against prior definition as a macro.
5589 2000-09-01 Joseph S. Myers <jsm28@cam.ac.uk>
5591 * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
5592 (c_size_type_node): Define.
5593 * c-decl.c (init_decl_processing): Initialize c_size_type_node.
5594 * c-common.c (enum format_lengths, enum format_std_version,
5595 format_length_info, format_type_detail, BADLEN, NOLENGTHS,
5596 format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
5597 T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
5598 T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
5599 T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
5600 TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
5601 format_types): Define.
5602 (format_char_info, print_char_table, scan_char_table,
5603 time_char_table): Rearrange for new organization of information
5604 about format length modifiers and standard versions.
5605 (T_ST): Redefine to use c_size_type_node.
5606 (check_format_info): Obtain information about length modifiers and
5607 standard versions from tables. Adjust warning message wordings.
5608 Use the name from the user's program for `ll' and `hh' length
5609 modifiers in warning messages. Use more informative names for
5610 wanted types where available (for wchar_t, wint_t, size_t, signed
5611 size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).
5613 2000-09-01 Jim Wilson <wilson@cygnus.com>
5615 * calls.c (emit_call_1): Add REG_NORETURN note to call if ECF_NORETURN.
5616 * combine.c (distribute_notes): Handle REG_NORETURN.
5617 * rtl.c (reg_note_name): Add REG_NORETURN.
5618 * rtl.h (enum reg_note): Likewise.
5620 * config/ia64/ia64-protos.h (emit_safe_across_calls): Renamed from
5622 * config/ia64/ia64.c (emit_safe_across_calls): Likewise.
5623 (rtx_needs_barrier): Handle unspec_volatile 8 and 9.
5624 (emit_predicate_relation_info): Handle conditional calls with
5626 * config/ia64/ia64.h (ASM_FILE_START): Call emit_safe_across_calls
5627 instead of ia64_file_start.
5628 * config/ia64/sysv4.h (ASM_FILE_START): Likewise.
5629 * config/ia64/ia64.md (safe_across_calls_all,
5630 save_across_calls_normal): New patterns.
5632 * loop.c (check_final_value): Check for biv use before checking for
5633 giv use. Check for both biv and giv uses. Always set last_giv_use
5634 if there is a giv use.
5636 2000-09-01 Richard Henderson <rth@cygnus.com>
5638 * config/ia64/ia64.md (mulsi3): Use grfr_register_operand.
5639 (madddi3): Likewise.
5642 Fri Sep 1 10:59:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5644 * expr.c (clear_storage): Don't use emit_move_insn unless
5645 either BLKmode or proper size.
5646 (store_constructor): Don't call clear_storage if REG of wrong size.
5648 * flow.c (init_propagate_block_info): Don't mark frame dead at end
5649 of function if returns wiht stack pointer depressed.
5651 2000-09-01 Andrew Haley <aph@redhat.com>
5653 * dwarf2out.c (stack_adjust_offset): New function.
5654 (dwarf2out_stack_adjust): Break out stack adjust logic into
5655 new stack_adjust_offset function. Look inside parallels and
5656 sequences for stack adjustments.
5658 2000-08-31 Jeff Law <law@cygnus.com>
5660 * arm.md: Use no_new_pseudos to determine when it is safe
5661 to create new pseudo registers.
5663 * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
5664 when we can safely allocate new registers.
5666 2000-08-31 Geoffrey Keating <geoffk@cygnus.com>
5668 * stmt.c (expand_asm_operands): Twiddle generating_concat_p
5669 so that CONCATs are not generated for ASMs.
5670 * emit-rtl.c (gen_reg_rtx): Don't generate CONCATs when
5671 not generating_concat_p.
5672 * function.c (pop_function_context_from): Reset
5673 generating_concat_p.
5674 (prepare_function_start): Likewise.
5675 * rtl.c (generating_concat_p): Define.
5676 * rtl.h (generating_concat_p): Declare.
5677 * toplev.c (rest_of_compilation): No CONCATs after RTL generation.
5679 2000-08-22 Philipp Thomas <pthomas@suse.de>
5680 Masanobu Yuhara <yuhara@flab.fujitsu.co.jp>
5682 * gmicro.h (TARGET_SWITCHES): Add descriptions and mark them
5685 2000-08-30 Greg McGary <greg@mcgary.org>
5687 * Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
5688 * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC).
5689 * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE.
5691 2000-08-30 Greg McGary <greg@mcgary.org>
5693 * tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
5694 (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct.
5695 (TREE_INT_CST): New macro.
5696 * varasm.c (const_hash, compare_constant_1, record_constant_1):
5697 Use new macro TREE_INT_CST.
5699 Wed 30-Aug-2000 23:18:59 BST Neil Booth <NeilB@earthling.net>
5701 * contrib.texi: Add self.
5703 2000-08-30 Alexandre Oliva <aoliva@redhat.com>
5705 * config/sh/sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): New insns.
5706 (cmpeqdi_t splitter): Use cmpeqsi_and_t instead of emitting jumps
5709 2000-08-30 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5711 * fixinc/gnu-regex.c: Don't define `const'.
5713 Tue Aug 29 22:09:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5715 * expr.c (store_constructor): Allow variable bounds of array type.
5716 (expand_expr): Don't blow up if type is ERROR_MARK.
5717 * varasm.c (output_constructor): Don't access lower bound of array
5718 type unless need it if index is supplied (so it can be a variable
5719 if no index is supplied).
5720 Use tree_low_cst; use HOST_WIDE_INT for sizes; change BITPOS to POS.
5721 Other minor cleanups.
5723 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5725 * Makefile.in: Revamp handling of cflags to allow different WARN_CFLAGS
5726 for compilations in stage 1 and subsequent stages, respectively.
5727 * configure.in (vax): Add compiler-dependent CFLAGS for stage 1.
5728 * configure: Rebuilt.
5729 * x-vax, x-vax-gcc: Deleted.
5731 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
5733 * c-common.c (declare_function_name): Use func_id_node,
5734 function_id_node, and pretty_function_id_node. Do not make
5735 __func__ visible at file scope.
5736 * c-common.h (c_tree_index): Add CTI_FUNCTION_ID,
5737 CTI_PRETTY_FUNCTION_ID, and CTI_FUNC_ID.
5738 (function_id_node, pretty_function_id_node, func_id_node): New
5740 * c-decl.c (init_decl_processing): Initialize function_id_node,
5741 pretty_function_id_node, and func_id_node.
5742 (c_make_fname_decl): Correct comment.
5744 * tree.h (struct tree_identifier): Constify pointer member.
5746 * c-decl.c (pushdecl, implicit_decl_warning): Constify a char *.
5747 * c-pragma.h (struct weak_syms): Constify name and value members.
5748 (add_weak): Constify arguments.
5750 * calls.c (special_function_p): Constify a char *.
5751 (expand_call): Remove variable which is initialized and then
5753 * dependence.c (struct def_use, struct induction, struct subscript):
5754 Constify 'variable' member.
5755 (get_low_bound, have_induction_variable): Constify char * argument.
5756 (find_induction_variable): Add braces to avoid dangling else.
5757 (classify_dependence): Constify char * arrays.
5758 * profile.c (output_func_start_profiler): Constify a char *.
5759 * stor-layout.c (finalize_record_size): Constify a char *.
5760 * tree.c (is_attribute_p): Constify a char *.
5761 * varasm.c (add_weak, remove_from_pending_weak_list): Constify argument.
5763 * varasm.c (make_function_rtl, make_decl_rtl): Rearrange code
5764 for comprehensibility. Do not call get_identifier if we did
5765 not change the DECL_ASSEMBLER_NAME of the decl. Use alloca to
5766 create temporary string constants, not ggc_alloc_string. No
5767 need to copy result of ASM_FORMAT_PRIVATE_NAME. Use const
5768 char * to hold IDENTIFIER_POINTERs.
5770 2000-08-29 Richard Henderson <rth@cygnus.com>
5772 * config/ia64/ia64.md (muldi3): Use grfr_register_operand
5775 2000-08-29 Richard Henderson <rth@cygnus.com>
5777 * reload.c (push_secondary_reload): Allow class == reload_class
5778 if we're using a reload_in/out pattern.
5780 * config/ia64/ia64.md (reload_inti): Use a TImode scratch. Use
5781 the half that does not conflict with the reload register.
5782 (reload_outti): Likewise.
5784 2000-08-29 Kazu Hirata <kazu@hxi.com>
5786 * reload.c: Fix formatting.
5788 * stmt.c: Fix formatting.
5790 * gcc.c: Fix formatting.
5792 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
5794 * flags.h (time_report, mem_report): New global flags.
5795 * toplev.c: Define time_report and mem_report.
5796 (f_options): Add -ftime-report and -fmem-report.
5797 (compile_file): Turn on time_report if quiet_flag is off.
5798 Call ggc_print_statistics at very end if mem_report is on.
5799 * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
5801 * ggc-common.c (ggc_print_statistics): Rename to
5802 ggc_print_common_statistics; all callers changed. Scale
5803 quantities above 10K to kilobytes and above 10M to megabytes.
5804 * ggc-page.c (ggc_page_print_statistics): Rename to
5805 ggc_print_statistics. Report memory consumed by internal data
5806 structures for each allocation bucket. Scale quantities above
5807 10K to kilobytes and above 10M to megabytes.
5808 * ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
5809 Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
5810 Define tally_leaves always.
5811 (ggc_print_statistics): New function.
5812 * ggc.h: Adjust for renamed functions.
5814 Wed Aug 30 00:11:42 2000 Denis Chertykov <denisc@overta.ru>
5816 * config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
5817 output_movsisf instead of which_alternative.
5819 * config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
5821 Tue Aug 29 22:29:58 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
5823 * config/avr/avr-protos.h: (avr_output_ascii) Removed.
5824 (avr_progmem_p): New prototype.
5825 (output_movsisf): Prototype declaration changed.
5826 (output_movqi): New prototype.
5827 (output_movhi): New prototype.
5828 (call_insn_operand): Likewise.
5829 (final_prescan_insn): Likewise.
5830 (avr_simplify_comparision_p): Likewise.
5831 (avr_normalize_condition): Likewise.
5832 (compare_eq_p): Likewise.
5833 (out_shift_with_cnt): Likewise.
5834 (const_int_pow2_p): Likewise.
5835 (output_reload_inhi): Prototype declaration changed.
5837 * config/avr/avr.c: (debug_hard_reg_set): Prototype declared.
5838 (ldi_reg_rtx): New. rtx for r31.
5839 (avr_init_stack): Initialize as "__stack".
5840 (function_prologue): Use it.
5841 Replace all TARGET_ENHANCED with AVR_ENHANCED.
5842 (avr_mcu_name): Initialize as "avr2".
5843 (avr_enhanced_p, avr_mega_p): New variables.
5844 (mcu_types, avr_override_options): Handle all known MCU types.
5845 Also handle avr1 (only preprocess, assemble and link).
5846 (print_operand): Using of `%K' in output template removed.
5847 (out_movqi_r_mr): Optimized.
5848 (out_movhi_r_mr): Likewise.
5849 (output_movqi): New function.
5850 (output_movhi): Likewise.
5851 (out_movsi_r_mr): Optimized.
5852 (output_movsisf): Compute insn length for `adjust_insn_length'
5853 (out_movqi_mr_r): Optimized.
5854 (out_movhi_mr_r): Optimized.
5855 (adjust_insn_length): Use output_movsisf, output_movqi,
5856 output_movhi for insn length adjusting.
5857 (reg_unused_after): Use dead_or_set_p.
5858 (preferred_reload_class): Now havn't any restriction.
5859 (reg_was_0): New function.
5860 (io_address_p): Likewise.
5861 (const_int_pow2_p): Likewise.
5862 (output_reload_inhi): Likewise.
5863 (output_reload_insisf): Likewise.
5865 * config/avr/avr.h (MULTILIB_DEFAULTS): Define.
5866 (LIB_SPEC): Use -lc for all supported devices.
5867 (LIBGCC_SPEC): Use -lgcc for all supported devices.
5868 (AVR_MEGA): Define as avr_mega_p.
5869 (AVR_ENHANCED): New, define as avr_enhanced_p.
5870 (TARGET_SWITCHES): Remove -menhanced, now handled by -mmcu=...
5871 (CPP_SPEC, LINK_SPEC): Handle all known MCU types.
5872 (CRT_BINUTILS_SPECS): Handle all known MCU types.
5873 Rename gcrt1-*.o to make file names unique on 8.3 filesystems.
5874 (EXTRA_SPECS): Add CPP_AVR[1-5]_SPEC.
5875 (ASM_SPEC): Pass -mmcu=... to the assembler.
5876 Change all -DAVR_* to -D__AVR_*__.
5877 (INIT_TARGET_OPTABS), config/avr/libgcc.S:
5878 Rename library functions to start with two underscores.
5879 (ASM_OUTPUT_COMMON): Outputs `.comm VAR,VAR-SIZE,1' to avoid
5881 (ASM_WEAKEN_LABEL): Declared for __attribute__((weak)).
5882 (SUPPORTS_WEAK): Likewise.
5883 (LDI_REG_REGNO): New. Register r31 will be used as temporary
5884 register for loading constants to r0-r14.
5886 * config/avr/avr.md: Replace all TARGET_ENHANCED with
5888 (*mov_r_sp): Removed. Handled by output_movhi.
5889 (*mov_sp_r): Likewise.
5890 (*mov_sp_r_no_interrupts): Likewise
5891 (*mov_sp_r_tiny): Likewise.
5892 (*movqi): Use output_movqi.
5893 (*reload_inqi): New.
5894 (*movhi): Use output_movhi.
5895 (*reload_inhi): New.
5896 (*negsi2): Optimized.
5897 (*negsf2): Likewise.
5898 Added peepholes (define_peephole2) for loading constants to r0-r14
5899 and for using `cpse' command.
5901 * config/avr/libgcc.S: Rename library functions to start with two
5903 Add support for enhanced core.
5904 (_moqhi3): Fix typo, now _modqi3.
5905 (__divsi_raw): Use __zero_reg__ as loop counter, smaller by 1 word.
5906 (__prologue_saves__): Remove test for stack adjust by 0.
5907 (__tablejump__): New.
5909 * config/avr/t-avr: Build libgcc2 with -mcall-prologues.
5910 Add multilib support.
5912 Tue Aug 29 15:17:54 EDT 2000 John Wehle (john@feith.com)
5914 * loop.c (prescan_loop): Don't check unknown_address_altered
5915 when deciding if insert_loop_mem is safe. Add BLKmode MEMs
5916 to loop_store_mems as necessary.
5917 (loop_invariant_p): Don't check unknown_address_altered
5918 or unknown_constant_address_altered.
5920 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5922 * vax.md (sltu, sgeu): Delete sltu and sgeu insn patterns.
5924 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
5926 * cpperror.c (print_file_and_line): If line is (unsigned int)-1,
5927 print just the filename.
5928 * cpplex.c (_cpp_run_directive): Add additional argument, the
5929 name to give the synthetic buffer. This defaults to
5930 translated "<command line>".
5931 * cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
5933 (_cpp_define_builtin): New function.
5934 * cppinit.c (initialize_builtins): Use _cpp_define_builtin.
5935 * cpphash.h: Update prototypes.
5937 * tradcpp.c (main): Process -D and -U simultaneously, in the
5938 order they appeared on the command line.
5940 2000-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5942 * c-decl.c (define_label): Call warning_with_file_and_line and
5943 error_with_file_and_line instead of plain warning or error.
5945 * c-parse.in (label): Use save_filename/save_lineno to ensure
5946 correct values for calls to define_label.
5948 2000-08-29 Mark Mitchell <mark@codesourcery.com>
5950 * calls.c (expand_call): Don't create a VAR_DECL just to throw it
5952 * expr.c (expand_expr, case TARGET_EXPR): Don't call
5954 * tree.h (get_file_function_name): Remove two duplicate
5957 2000-08-28 Kazu Hirata <kazu@hxi.com>
5959 * tree.c: Fix formatting.
5961 * xcoffout.c: Fix formatting.
5963 2000-08-28 Jason Merrill <jason@redhat.com>
5965 * dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
5967 2000-08-28 Daniel Berlin <dberlin@redhat.com>
5969 * dwarf2out.c (dwarf2out_finish): Don't bother calling
5970 break_out_includes if it won't do anything.
5972 2000-08-28 Richard Henderson <rth@cygnus.com>
5974 * reload.c (push_secondary_reload): Revert 2000-08-16 change.
5975 (find_reloads): Likewise.
5976 * config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
5977 (reload_inhi): Likewise.
5979 2000-08-28 Richard Henderson <rth@cygnus.com>
5981 * config/i386/i386.c: Don't error on EXTRA_CONSTRAINT defined.
5982 (call_insn_operand): Don't expect a surrounding mem.
5983 (constant_call_address_operand): Likewise.
5984 * config/i386/i386.h (PREDICATE_CODES): Update.
5985 * config/i386/i386.md (call patterns): Move the match_operand
5986 for the call destination inside the mem.
5988 2000-08-28 Richard Henderson <rth@cygnus.com>
5990 * local-alloc.c (requires_inout): Don't use reserved range for
5991 EXTRA_CONSTRAINTS; use anything not matched by REG_CLASS_FROM_LETTER.
5992 * recog.c (asm_operand_ok): Likewise.
5993 (preprocess_constraints, constrain_operands): Likewise.
5994 * regclass.c (record_reg_classes): Likewise.
5995 * reload.c (find_reloads): Likewise.
5996 * reload1.c (maybe_fix_stack_asms): Likewise.
5997 (reload_cse_simplify_operands): Likewise.
5998 * stmt.c (expand_asm_operands): Likewise.
6000 * md.texi: Update constraints documentation.
6001 * tm.texi (EXTRA_CONSTRAINT): Update.
6003 2000-08-28 Daniel Berlin <dberlin@redhat.com>
6005 * dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
6006 (print_die): If we don't know the offset of the
6007 target die, try the symbol. Add a trailing newline.
6008 (reverse_all_dies): New fn.
6009 (dwarf2out_finish): Call it.
6010 (break_out_includes): Reorganize for clarity.
6011 (add_sibling_attributes): Don't call reverse_die_lists.
6012 (output_comp_unit): Rename from output_comdat_comp_unit. Use for
6014 * flags.h: Add flag_eliminate_dwarf2_dups.
6015 * toplev.c (f_options): Support -feliminate-dwarf2-dups.
6017 2000-08-28 Jason Merrill <jason@redhat.com>
6019 * dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
6020 * dwarf2out.c: #include "md5.h".
6021 (DIE_LABEL_PREFIX): New macro.
6022 (dw_val_struct): Add 'external' flag to val_die_ref.
6023 (add_AT_die_ref, AT_ref): Adjust.
6024 (AT_ref_external, set_AT_ref_external): New fns.
6025 (build_abbrev_table): Call set_AT_ref_external.
6026 (value_format): Call AT_ref_external.
6027 (die_struct): Add die_symbol field.
6028 (new_die): Clear it.
6029 (dwarf_tag_name): Handle BINCL/EINCL.
6030 (dwarf2out_start_source_file): Add BINCL DIE.
6031 (dwarf2out_end_source_file): Add EINCL DIE.
6032 (push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
6033 (loc_checksum, attr_checksum, die_checksum): New fns.
6034 (is_type_die, is_comdat_die, is_symbol_die): New fns.
6035 (compute_section_prefix, assign_symbol_names): New fns.
6036 (gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
6037 (output_die): Call output_die_symbol and AT_ref_external.
6038 (output_comdat_comp_unit): New fn, split out from...
6039 (dwarf2out_finish): ...here. Also call add_sibling_attributes for
6041 (output_pubnames, output_aranges): Abort if we see entries from
6043 * toplev.h: Declare file_name_nondirectory.
6044 * toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
6045 (rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
6046 (debug_start_source_file): Call dwarf2out_start_source_file
6047 regardless of debug verbosity.
6048 (debug_end_source_file): Similarly.
6049 * tree.h: Declare clean_symbol_name.
6050 * tree.c (clean_symbol_name): Split out from...
6051 (get_file_function_name_long): ...here.
6053 * dwarf2out.c (new_loc_descr): Use calloc.
6054 (splice_child_die): Remove the die from the right parent.
6055 (gen_struct_or_union_die): Don't add AT_name to a specification DIE.
6057 Mon Aug 28 19:02:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6059 * toplev.c (decode_g_option): Don't give warning for unknown -g
6060 option; return 0 instead.
6061 (main): If -g option is not recognized by front end or
6062 language-independent code, give warning.
6064 2000-08-28 Greg McGary <greg@mcgary.org>
6066 * config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
6067 * config/i386/i386.c (ix86_expand_compare): Remove `static'.
6068 * config/i386/i386.md (trap, conditional_trap): New insn & expand.
6070 2000-08-27 Greg McGary <greg@mcgary.org>
6072 * cpplex.c (parse_string): Don't look for backslash
6073 before first char in `namebuf'.
6074 * loop.c (strength_reduce): Skip NOTEs.
6076 2000-08-27 Jason Merrill <jason@redhat.com>
6078 * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
6079 DECL_EXTERNAL on a local extern. Don't set DECL_IGNORED_P or
6080 TREE_ASM_WRITTEN, either.
6081 (finish_decl): Adjust.
6083 2000-08-28 Philipp Thomas <pthomas@suse.de>
6085 * ABOUT-GCC-NLS: Remove gettext patches from Paul Eggert as
6086 they have been incorporated into the gettext CVS. Change the text to
6087 reflect the current status of NLS. Add instructions for accessing
6088 the gettext CVS and add the patch from Martin v. Loewis.
6090 2000-08-27 Geoff Keating <geoffk@cygnus.com>
6092 * config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
6093 by using gen_lowpart_common.
6094 (movdi_internal64+6): Likewise.
6096 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
6098 * tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
6101 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register
6102 numbers to the ranges used by GDB.
6104 2000-08-25 Richard Henderson <rth@cygnus.com>
6106 * config/ia64/ia64.h (struct machine_function): Add n_varargs.
6107 * config/ia64/ia64.c (ia64_compute_frame_size): Use it.
6108 (ia64_expand_prologue): Likewise.
6109 (ia64_setup_incoming_varargs): Set it. Properly skip the current
6110 argument for stdargs.
6112 2000-08-25 Jason Merrill <jason@redhat.com>
6114 * integrate.c (expand_inline_function): Pull out the original decl.
6116 2000-08-25 Jim Wilson <wilson@cygnus.com>
6118 * cse.c (cse_insn): Don't pass label subtraction to force_const_mem.
6120 * function.c (gen_mem_addressof): Clear MEM_ALIAS_SET if no decl.
6122 2000-08-25 Greg McGary <greg@mcgary.org>
6124 * flow.c (dump_edge_info): Use ARRAY_SIZE.
6125 * config/alpha/alpha.c (alpha_expand_block_move): Likewise.
6127 2000-08-25 Richard Earnshaw <rearnsha@arm.com>
6129 * arm.h (STRUCT_VALUE): Define to 0, not NULL.
6131 Fri Aug 25 12:52:49 EDT 2000 John Wehle (john@feith.com)
6133 * i386.c (ix86_find_base_term): New.
6134 * i386-protos.h (ix86_find_base_term): Prototype.
6135 * i386.h (FIND_BASE_TERM): Define.
6136 * alias.c (find_base_term): Use it.
6137 * tm.texi (FIND_BASE_TERM): Document it.
6139 * alias.c (true_dependence, write_dependence_p): Unchanging
6140 memory can't conflict with non-unchanging memory.
6142 * alias.c (memrefs_conflict_p): A BLKmode reference
6143 to a symbol (or CONST_INT address) always conflicts
6144 with a reference to another symbol.
6146 2000-08-25 Joseph S. Myers <jsm28@cam.ac.uk>
6148 * c-common.c (time_char_table): Don't allow width and flags with
6151 2000-08-25 Jakub Jelinek <jakub@redhat.com>
6153 * config/i386/i386.c (ix86_expand_branch): Treat GE and GEU the same
6154 way as LT and LTU when the second operand has 0 in low word.
6156 2000-08-26 Michael Hayes <mhayes@cygnus.com>
6158 * basic-block.h (struct loop): Rename `exits' field to
6159 `exit_edges'. Add `entry_edges' and `num_entries' fields.
6161 * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
6162 (flow_loop_entry_edges_find): Add.
6163 (flow_edge_list_print): Rename from flow_exits_print.
6164 (flow_loops_find): Call flow_loop_entry_edges_find.
6165 (flow_loop_dump): Dump entry_edges list.
6166 (flow_loops_free): Free entry_edges.
6168 2000-08-26 Michael Hayes <mhayes@cygnus.com>
6170 * loop.c (loop_dump_aux, debug_loop): New functions.
6171 (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros.
6173 * flow.c (flow_loops_dump): Add callback parameter.
6174 (flow_loop_dump): Add callback parameter and call it. Move
6175 loop note debugging code to loop_dump_aux.
6177 * basic-block.h (flow_loop_dump): Add callback parameter
6178 (flow_loops_dump): Likewise.
6180 * toplev.c (rest_of_compilation): Add NULL callback function pointer
6181 to call to flow_loops_dump.
6183 2000-08-26 Michael Hayes <mhayes@cygnus.com>
6185 * loop.c (count_loop_regs_set): Replace start and end arguments
6186 with loop argument. All callers udated.
6188 2000-08-26 Michael Hayes <mhayes@cygnus.com>
6190 * loop.c (constant_high_bytes): Delete.
6192 2000-08-26 Michael Hayes <mhayes@cygnus.com>
6194 * loop.c (prescan_loop): Move checks for NOTE_INSN_LOOP_CONT
6195 and NOTE_INSN_LOOP_VTOP to...
6196 (find_and_verify_loops) ...here.
6198 Fri Aug 25 04:21:13 2000 Alexandre Oliva <aoliva@redhat.com>
6200 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
6201 (fini_dummy, init_dummy): Use it.
6203 Fri 25-Aug-2000 08:03:27 BST Neil Booth <NeilB@earthling.net>
6205 * cpplex.c (is_macro_disabled): Caller has already checked
6206 that we're not a preprocessed file.
6208 2000-08-24 Mark Mitchell <mark@codesourcery.com>
6210 * Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
6211 (c-iterate.o): Remove target.
6212 * gcc/c-common.h (enum rid): Remove RID_ITERATOR.
6213 * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
6214 (finish_decl): Don't handle iterators.
6215 (grokdeclarator): Likewise.
6216 * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
6217 * gcc/c-gperf.h: Regenerated.
6218 * gcc/c-iterate.c: Removed.
6219 * gcc/c-lex.c (init_lex): Don't handle iterators.
6220 * gcc/c-parse.in (primary): Remove pop_iterator_stack call.
6221 (compstmt_primary_start): Remove push_iterator_stack call.
6222 (stmt): Don't allow iterator statements. Replace iterator_expand
6223 with expand_expr_stmt.
6224 (all_iter_stmt): Remove.
6225 (all_iter_stmt_simple): Likewise.
6226 (all_iter_stmt_with_decl): Likewise.
6227 * gcc/c-tree.h (ITERATOR_P): Remove.
6228 (ITERATOR_BOUND_P): Likewise.
6229 (init_iterators): Remove declaration.
6230 (iterator_expand): Likewise.
6231 (iterator_for_loop_start): Likewise.
6232 (iterator_for_loop_end): Likewise.
6233 (iterator_for_loop_record): Likewise.
6234 (push_iterator_stack): Likewise.
6235 (pop_iterator_stack): Likewise.
6236 * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
6237 (readonly_warning): Likewise.
6238 * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
6240 2000-08-24 Jim Wilson <wilson@cygnus.com>
6242 * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
6243 Copy type in a TYPE_DECL, just like pushdecl does.
6245 2000-08-24 Richard Henderson <rth@cygnus.com>
6247 * toplev.c (main): Enable flag_reorder_blocks at -O2.
6249 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
6251 * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
6252 asked for one page, allocate GGC_QUIRE_SIZE of them and put
6253 the extras on the free list.
6254 (release_pages): Clean up.
6255 (ggc_set_mark): Don't adjust G.allocated here...
6256 (sweep_pages): ... do it here.
6258 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
6260 * cppfiles.c (read_include_file): Rearrange initializations.
6262 2000-08-24 Richard Henderson <rth@cygnus.com>
6264 * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
6266 * config/ia64/ia64-protos.h: Update.
6267 * config/ia64/ia64.c (gr_register_operand): New.
6268 (fr_register_operand, grfr_register_operand): New.
6269 (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
6270 (grfr_reg_or_8bit_operand): New.
6271 (gr_reg_or_0_operand): Rename from reg_or_0_operand and
6272 use gr_register_operand.
6273 (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
6274 (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
6275 (gr_reg_or_8bit_and_adjusted_operand): Likewise.
6276 (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
6277 (fr_reg_or_fp01_operand): Likewise.
6278 (not_postinc_memory_operand): New.
6279 (ia64_split_timode): Remove unused variables.
6280 (rtx_needs_barrier): Check arguments to cmpxchg.
6281 (builtin_description): Remove.
6282 (bdesc_2argsi, bdesc_2argdi): Remove.
6283 (ia64_init_builtins): Declare all builtins directly.
6284 (ia64_expand_fetch_and_op): Rewrite to be called from
6285 ia64_expand_builtin directly. Use expand_binop and co.
6286 (ia64_expand_op_and_fetch): Likewise.
6287 (ia64_expand_compare_and_swap): Likewise.
6288 (ia64_expand_binop_builtin): Remove.
6289 (ia64_expand_lock_test_and_set): New.
6290 (ia64_expand_lock_release): New.
6291 (ia64_expand_builtin): Use them.
6292 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
6293 (EXTRA_CONSTRAINT): Use it.
6294 (PREDICATE_CODES): Update.
6295 * config/ia64/ia64.md (*): Use gr_register_operand and co.
6296 (mf): Indicate that we set memory as well as use it.
6297 (fetchadd_acq_si): Show memory being modified as well.
6298 (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
6299 (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
6300 (lock_test_and_set_si, lock_test_and_set_di): Remove.
6301 (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
6302 (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
6303 (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
6304 (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
6305 (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
6306 (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
6307 (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
6308 (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
6309 * config/ia64/ia64intrin.h (*): Cast result to the appropriate
6310 return type. Pretty print definitions.
6312 2000-08-24 Jim Wilson <wilson@cygnus.com>
6314 * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
6315 we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
6317 2000-08-24 Jason Merrill <jason@redhat.com>
6319 * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
6320 AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
6321 (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
6322 get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
6324 2000-08-24 Greg McGary <greg@mcgary.org>
6326 * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
6327 and extendtab within their proper array boundaries.
6328 * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
6329 for the entire array.
6331 * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
6332 * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
6333 * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
6334 * config/fr30/fr30.c (fr30_print_operand): Likewise.
6335 * config/i386/dgux.c (output_options): Likewise.
6336 * config/i386/dgux.h (ASM_FILE_START): Likewise.
6337 * config/m88k/m88k.c (output_options): Likewise.
6338 * config/m88k/m88k.h (ASM_FILE_START): Likewise.
6339 * config/mcore/mcore.c (mcore_output_inline_const_forced,
6340 layout_mcore_frame, handle_structs_in_regs): Likewise.
6341 * config/mips/mips.c (output_block_move): Likewise.
6342 * config/rs6000/rs6000.c (rs6000_override_options,
6343 rs6000_file_start): Likewise.
6344 * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
6345 * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
6346 * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
6347 * builtins.c (expand_builtin_setjmp): Likewise.
6348 * expr.c (safe_from_p): Likewise.
6349 * flow.c (life_analysis): Likewise.
6350 * fold-const.c (size_int_type_wide): Likewise.
6351 * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
6352 * genattrtab.c (make_length_attrs): Likewise.
6353 * genopinit.c (gen_insn): Likewise.
6354 * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
6355 * global.c (global_alloc): Likewise.
6356 * local-alloc.c (find_free_reg): Likewise.
6357 * mips-tdump.c (print_symbol): Likewise.
6358 * mips-tfile.c (parse_def, parse_input): Likewise.
6359 * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
6360 * stmt.c (expand_nl_goto_receiver): Likewise.
6361 * stor-layout.c (set_sizetype): Likewise.
6362 * varasm.c (decode_reg_name): Likewise.
6363 * toplev.c (decode_f_option, decode_W_option,
6364 set_target_switch, print_switch_values): Likewise.
6365 (NUM_ELEM): Remove macro.
6366 (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
6368 2000-08-24 Greg McGary <greg@mcgary.org>
6370 * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
6371 (MAIN_NAME_P, main_identifier_node): New macros.
6372 * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
6373 * c-decl.c (start_decl, grokdeclarator, start_function,
6374 store_parm_decls, finish_function): Use MAIN_NAME_P.
6375 * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
6376 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
6377 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
6378 * config/pdp11/pdp11.c (output_function_prologue): Likewise.
6380 2000-08-24 Greg McGary <greg@mcgary.org>
6382 * cppfiles.c (actual_directory): Don't write beyond `dir'
6383 when it contains "".
6384 * real.c (asctoeg): Stay within bounds of etens[][].
6386 2000-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6388 * dependence.c (dependence_string, direction_string,
6389 dump_one_node, dump_node_dependence): Hide unused identifiers.
6390 (get_low_bound, normalize_coefficients): Match definition to
6392 (get_one_coefficient): Initialize variables `value0_is_idx' and
6394 (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
6395 (ziv_test): Delete variable `idx', use parameter `sub' instead.
6396 (direction_merge): Avoid automatic aggregate initialization.
6397 (have_dependence_p): Use `src' not `dest' to set `src_idx'.
6398 Initialize variables `dest_idx' and `src_idx'.
6399 (end_dependence_analysis): Avoid C89 style function definition.
6401 2000-08-24 Joseph S. Myers <jsm28@cam.ac.uk>
6403 * c-common.c (time_char_table): Don't allow width with %F.
6404 (check_format_info): Don't allow "Z" length with scanf.
6406 2000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
6408 * diagnostic.c (finish_diagnostic): Define.
6409 (output_do_printf): Use wrap_text instead of output_add_string.
6410 (default_print_error_function): Avoid embedded '\n'.
6412 * diagnostic.h (flush_diagnostic_buffer): Declare.
6414 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
6416 * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
6418 2000-08-23 Hans-Peter Nilsson <hp@axis.com>
6420 * Makefile.in (GCC_PASSES): Add specs.
6422 2000-08-23 Jim Wilson <wilson@cygnus.com>
6424 * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
6425 * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
6426 EHANDLER nor UHANDLER bit is set.
6427 (__get_except_table): Likewise.
6429 2000-08-23 Nick Clifton <nickc@redhat.com>
6431 * config/arm/lib1funcs.asm: Replace upper case condition codes
6432 with lower case versions.
6434 * config/arm/arm.h (STRUCT_VALUE): Define.
6435 (STRUCT_VALUE_REGNUM): Delete.
6437 2000-08-23 Zack Weinberg <zack@wolery.cumb.org>
6439 * cpphash.h (IN_I): New flag for directive table.
6440 * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
6442 (_cpp_check_directive): If -fpreprocessed, execute directives
6443 marked with IN_I. Issue no warnings in this case.
6444 * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
6446 2000-08-23 Joseph S. Myers <jsm28@cam.ac.uk>
6448 * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
6450 (check_format_info): Support printf 'I' flag; warn about it with
6453 2000-08-23 Richard Earnshaw (rearnsha@arm.com)
6455 * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
6456 barrier can't be ignored by the alias analysis code.
6458 2000-08-12 Eli Zaretskii <eliz@is.elta.co.il>
6460 * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
6461 works inside fixincl.
6463 Wed Aug 23 04:55:48 2000 Alexandre Oliva <aoliva@redhat.com>
6465 * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
6466 simplify_relational_operation() unless both operands are of
6468 * cse.c (fold_rtx): Likewise.
6470 Tue Aug 22 23:53:27 EDT 2000 John Wehle (john@feith.com)
6472 * rtlanal.c (rtx_unstable_p): The pic register is stable
6473 (within one function) and the actual rtx should be used
6474 when checking the registers.
6475 (rtx_addr_can_trap_p): Pic memory addresses can't trap.
6477 * alias.c (true_dependence, write_dependence_p): Fix
6478 bug in previous patch.
6480 * i386.c (ix86_GOT_alias_set): New.
6481 (legitimize_pic_address): Use it.
6483 * rtlanal.c (rtx_unstable_p): An unchanging MEM is
6484 only stable if its address is stable.
6485 (rtx_varies_p): An unchanging MEM can't vary if
6486 its address doesn't vary.
6488 2000-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6490 * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
6492 2000-08-22 J. David Anglin <dave@hiauly1.hia.nrc.ca>
6494 * vax.h (ASM_SPEC): Pass `-J' to assembler.
6495 * x-vax-gcc: New file for bootstrapping with gcc.
6496 * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
6497 * configure.in: Use x-vax-gcc with gcc.
6498 * configure: Rebuilt.
6500 Tue Aug 22 21:21:05 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6502 * toplev.c (rest_of_compilation): Rebuild label notes after
6503 post-reload splitting pass if new labels have been created.
6505 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
6507 * diagnostic.h (output_buffer_state): New macro.
6508 * diagnostic.c (diagnostic_for_decl, sorry,
6509 default_print_error_function, output_do_verbatim,
6510 report_diagnostic, report_problematic_module): Use it.
6512 (output_format): Use wrap_text instead of maybe_wrap_text.
6514 2000-08-22 Nick Clifton <nickc@redhat.com>
6516 * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
6517 Common code for ARM divide and modulus functions.
6518 (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
6520 (FUNC_END): New macro: Common code at the end of the division and
6522 (THUMB_FUNCTION_START): New macro: Common code at the start of
6524 (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
6526 Tue Aug 22 20:34:52 2000 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6528 * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
6530 * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
6531 sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
6534 2000-08-22 Nick Clifton <nickc@redhat.com>
6536 * config/arm/lib1funcs.asm (__umodsi3): Before performing any
6537 restorative additions, test for bottom bits of IP being set,
6538 rather than relying upon the RORs not matching.
6541 2000-08-22 David Edelsohn <edelsohn@gnu.org>
6543 * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
6544 text_section() as appropriate instead of emitting text csect
6546 (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
6547 (UNIQUE_SECTION): Define macro.
6548 (ASM_OUTPUT_SECTION_NAME): Define macro.
6549 * rs6000.c (rs6000_override_options): Disable -ffunction-sections
6550 on AIX if debugging and -fdata-sections always.
6552 2000-08-22 Steven King <sxking@uswest.net>
6554 * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
6556 (LDBL_MAX): Same here.
6558 2000-08-22 Richard Henderson <rth@cygnus.com>
6560 * flow.c (tidy_fallthru_edge): Update b->end properly.
6562 2000-08-22 Stan Cox <scox@redhat.com>
6564 * Makefile.in (OBJS): Add dependence.o.
6565 * dependence.c: New file.
6567 2000-08-22 Alexandre Oliva <aoliva@redhat.com>, John David Anglin <dave.anglin@nrc.ca>
6569 * calls.c (check_sibcall_argument_overlap_1): Adjust for
6571 (check_sibcall_argument_overlap): Likewise.
6573 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
6575 * invoke.texi (SH Options): Document -m4-nofpu,
6576 -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
6577 -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
6579 2000-08-22 Joseph S. Myers <jsm28@cam.ac.uk>
6581 * c-common.c (check_format_info): Give the 'some locales' warning
6582 for strftime %Ey rather than the unconditional 'only last 2 digits
6585 2000-08-22 Richard Henderson <rth@cygnus.com>
6587 * alias.c (init_alias_analysis): Do not register
6588 struct_value_incoming_rtx or static_chain_rtx as pointing
6591 Tue Aug 22 01:44:43 2000 Jeffrey A Law (law@cygnus.com)
6593 * protoize.c (munge_compile_params): Fix typo and formatting buglets.
6595 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
6597 * diagnostic.h (report_problematic_module): Declare.
6598 * diagnostic.c (report_problematic_module): New function.
6599 (report_error_function): Tweak.
6601 Tue Aug 22 02:31:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6603 * stmt.c (expand_goto_internal, fixup_gotos): Only check
6604 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
6606 2000-08-21 Richard Henderson <rth@cygnus.com>
6608 * flow.c (calculate_global_regs_live): Mark frame pointer live
6609 everywhere before reload.
6611 2000-08-21 Jim Wilson <wilson@cygnus.com>
6613 * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
6614 INTEL_EXTENDED_IEEE_FORMAT.
6615 (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support. Unconditionally
6616 clear last two bytes of output FP value.
6618 2000-08-21 Graham Stott <grahams@cygnus.co.uk>
6620 * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
6622 2000-08-21 Jakub Jelinek <jakub@redhat.com>
6624 * unroll.c (loop_find_equiv_value): If ret is modified between
6625 insn and loop_start, ret might not be equivalent to reg.
6627 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
6629 * c-common.c (init_dollar_format_checking,
6630 maybe_read_dollar_number, finish_dollar_format_checking): New
6632 (dollar_arguments_used, dollar_arguments_count,
6633 dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
6635 (check_format_info): Support $ formats for scanf and printf width
6636 and precision. Always increment format_chars to advance past the
6637 '*' of precision, not just when the format parameters are
6640 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6642 * mips.c (block_move_loop, expand_block_move,
6643 function_arg_partial_nregs, save_restore_insns, function_prologue,
6644 mips_expand_prologue, RA_MASK): Avoid using the `U' integer
6646 (function_arg_advance, function_arg): Match argument to format
6649 2000-08-21 Nix <nix@esperi.demon.co.uk>
6651 * gcc.c (do_spec_1): Implement %j spec flag.
6652 Remove dead comment.
6654 * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
6655 * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
6656 * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
6657 * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
6659 * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
6660 writable) instead of hardcoded value.
6662 * toplev.c (compile_file): Output to a file even if -fsyntax-only.
6664 * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
6667 * gcc.c (cc1_options): Do not process -o or run the assembler if
6669 * objc/lang-spec.h: Likewise.
6671 2000-08-21 Eli Zaretskii <eliz@is.elta.co.il>
6673 * fixinc/fixincl.c (fix_with_system): Pipe the output of
6674 "external" fixes through `cat', to avoid truncating the input
6675 file by redirection.
6677 2000-08-21 Jakub Jelinek <jakub@redhat.com>
6679 * config/i386/i386.md (lea_general_1): Copy insn condition to split
6681 (lea_general_2, lea_general_3): Likewise.
6683 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6685 * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
6686 warnings to user code.
6688 * c-lex.c (readescape, yylex): Likewise.
6690 * c-typeck.c (store_init_value, process_init_element): Likewise
6691 (c_expand_start_case): Format.
6693 2000-08-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6695 * mips/linux.h (LINK_SPEC): Use %(endian_spec).
6697 * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
6698 and linker_endian_spec to endian_spec.
6699 (ENDIAN_SPEC): Add %{EB} and %{EL}.
6700 (LINK_SPEC): Remove %{EB} and %{EL}.
6701 (ASM_SPEC): Likewise. Use %(endian_spec).
6703 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
6705 * c-tree.h (flag_hosted): Move declaration from here...
6706 * c-common.h (flag_hosted): ... to here.
6707 (flag_noniso_default_format_attributes): New declaration.
6708 * c-decl.c (flag_noniso_default_format_attributes): New variable.
6709 (c_decode_option): Set it appropriately for options choosing
6710 language standard variant.
6711 * c-common.c (init_function_format_info): Only provide default
6712 format attributes if flag_hosted. Only provide the gettext
6713 formats if flag_noniso_default_format_attributes. Update
6715 (check_format_info): Disable treatment of %a as a scanf flag in
6718 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
6720 * c-common.c (scan_char_table): Add 'w' to flags for all formats
6722 (check_format_info): Set 'wide' for scanf format widths. Warn for
6723 a zero scanf width. Make the check for writing into a constant
6724 object at the first level of indirection; at later levels, warn if
6725 any type qualifiers are encountered.
6727 Mon Aug 21 07:41:12 2000 Jeffrey A Law (law@cygnus.com)
6729 * reload.c (reload_inner_reg_of_subreg): New function broken out of
6731 (push_reload): Use reload_inner_reg_of_subreg.
6732 (combine_reloads): Do not combine reloads if the input reload
6733 is a SUBREG in which the inner part will need reloading.
6735 * global.c (global_alloc): Avoid passing dumpfile argument to
6737 * toplev.c (rest_of_compilation): Likewise.
6738 * reload.h (reload): Remove dumpfile argument. Callers changed.
6739 (debug_reload, debug_reload_to_stream): Move prototypes here.
6740 * rtl.h (reload): Remove dumpfile argument.
6741 * reload.c (debug_reload): Remove prototype.
6742 (debug_reload_to_stream): Likewise.
6743 * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
6746 2000-08-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6748 * diagnostic.c (context_as_prefix): Export.
6749 (need_error_newline): Remove.
6750 (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
6751 (error_module_changed, record_last_error_module,
6752 error_function_changed, record_last_error_function): New functions.
6753 (initialize_diagnostics): Default intialize
6754 lang_diagnostic_starter, lang_diagnostic_finalizer.
6755 (init_output_buffer): Tweak.
6756 (file_name_as_prefix): New function.
6757 (announce_function, default_print_error_function,
6758 report_error_function, set_diagnostic_context): Tweak.
6760 2000-08-21 Richard Earnshaw <rearnsha@arm.com>
6762 * flow.c (init_propagate_block_info): Handle SUBREG in a jump
6763 condition expression.
6765 2000-08-20 Richard Henderson <rth@cygnus.com>
6767 * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
6769 2000-08-20 Zack Weinberg <zack@wolery.cumb.org>
6771 * cppinit.c (cpp_init): Set global flag when called.
6772 (cpp_reader_init): Bomb out if cpp_init hasn't been called.
6774 Sun Aug 20 01:41:35 2000 Dennis Chernoivanov <cdi@sparc.spb.su>
6776 * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
6777 before `process_directive' so that newlines won't be missed
6779 (cpp_printf): Increment `print->lineno' when newline is emitted.
6781 * cppmain.c (cb_ident): Likewise.
6782 (cb_define): Likewise.
6783 (cb_undef): Likewise.
6784 (cb_include): Likewise.
6785 (cb_def_pragma): Likewise.
6786 (dump_macros_helper): Likewise.
6788 2000-08-20 Richard Henderson <rth@cygnus.com>
6790 * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
6791 assigned before a loop.
6793 * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
6794 (ashrsi3, lshrsi3): Likewise.
6796 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
6798 * c-lang.c: #include diagnostic.h
6799 (c_tree_printer): New function.
6800 (lang_init): Initialize lang_printer.
6802 * Makefile.in (c-lang.o): Depends on diagnostic.h
6804 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
6806 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
6808 * diagnostic.c (default_diagnostic_starter,
6809 default_diagnostic_finalizer): New functions.
6810 (diagnostic_for_asm, diagnostic_for_decl): Tweak.
6811 (pedwarn, pedwarn_with_file_and_line, error,
6812 error_with_file_and_line, fatal, warning,
6813 warning_with_file_and_line): Adjust call to report_diagnostic.
6814 (report_diagnostic): Rework.
6815 (set_diagnostic_context): New function.
6817 * diagnostic.h (struct diagnostic_context): New data structure.
6818 (diagnostic_message, diagnostic_argument_list,
6819 diagnostic_file_location, diagnostic_line_location,
6820 diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
6821 diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
6822 (set_diagnostic_context): Declare.
6823 (report_diagnostic): Change prototype.
6825 Sun 20-Aug-2000 09:25:45 BST Neil Booth <NeilB@earthling.net>
6827 * fix-header.c (main): Initialize cpplib.
6829 2000-08-19 Michael Meissner <meissner@redhat.com>
6831 * ifcvt.c (find_if_block): Do not assume that a THEN block has any
6832 instructions in it before checking for indirect jumps.
6834 * ifcvt.c (find_if_block): Do not consider a THEN block that ends
6835 in a indirect jump as a potential for conditional execution.
6837 * d30v.h (d30v_init_expanders): Don't declare here.
6838 * d30v-protos.h (d30v_init_expanders): Declare here with a valid
6841 Sat 19-Aug-2000 21:11:45 BST Neil Booth <NeilB@earthling.net>
6843 * cpp.texi: Add @section for assertions.
6845 Sat Aug 19 12:37:08 EDT 2000 John Wehle (john@feith.com)
6847 * loop.c (scan_loop): Use CONST_CALL_P instead of
6848 checking for REG_LIBCALL / REG_RETVAL.
6850 Sat Aug 19 09:18:47 2000 Jeffrey A Law (law@cygnus.com)
6852 * reload1.c (reload_as_needed): Accept dumpfile argument,
6853 pass it to emit_reload_insns.
6854 (emit_reload_insns): Add new dumpfile argument. If non-null
6855 then dump the reloads for each insn into the dumpfile.
6856 (reload): Pass dumpfile to reload_as_needed.
6858 * invoke.texi: Clean up linux-gnu vs linux comments.
6860 2000-08-19 Richard Henderson <rth@cygnus.com>
6862 * config/ia64/ia64.c (reg_or_5bit_operand): New.
6863 (ia64_depz_field_mask): New.
6864 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
6865 (PREDICATE_CODES): Update.
6866 * config/ia64/ia64.md: Update commentary.
6867 (depz_internal): New.
6868 (ashlsi3): Implement directly.
6869 (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
6870 (ashldi3): Use shladd.
6871 * config/ia64/ia64-protos.h: Update.
6873 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
6875 * toplev.c (independent_decode_option): Always process -g.
6876 Remove third argument, now unused. Adjust caller to match.
6878 2000-08-18 Richard Henderson <rth@cygnus.com>
6880 * combine.c (make_compound_operation): Break after creating
6883 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
6885 * cpplib.c (cpp_register_pragma_space): Just return if the
6886 namespace is already registered.
6888 2000-08-18 Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton <nickc@redhat.com>
6890 * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
6891 constant amount. Do not generate ROTL instruction.
6893 Fri Aug 18 16:22:20 2000 Alexandre Oliva <aoliva@redhat.com>
6895 * config/sh/elf.h: Do not include sh/sh.h.
6896 * config/sh/rtems.h: Likewise.
6897 * config/sh/rtemself.h: Do not include sh/elf.h.
6898 * configure.in: Get them included with `tm_file's.
6899 * configure: Rebuilt.
6901 * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
6902 * config/sh/sh.c (fpscr_set_from_mem): Use them.
6904 Fri Aug 18 14:23:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6906 * stor-layout.c (compute_record_type): Don't use mode of single
6907 field as mode of record if not integer mode of same type.
6909 * regmove.c (perhaps_ends_bb_p): New function.
6910 (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
6911 (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
6912 (fixup_match_1): Likewise.
6913 (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
6914 avoid signed/unsigned warnings.
6916 * function.c (fixup_var_refs_1, case MEM): Update CODE after
6919 Fri 18-Aug-2000 18:33:45 BST Neil Booth <NeilB@earthling.net>
6921 * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
6922 (_cpp_trigraph_map): Declaration moved from cpplex.c
6924 * cppinit.c: Define _cpp_trigraph_map. Use UCHAR_MAX + 1
6925 instead of 256. Use consistent test for designated initializers.
6926 (cpp_init): Initialize trigraph_map.
6927 (initialize_standard_includes, parse_option): Use memcmp
6930 * cpplex.c (init_trigraph_map): Remove.
6931 (trigraph_ok, trigraph_replace, lex_line): Refer to
6934 * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
6935 (do_unassert): Remove unused "next" local.
6937 * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
6939 2000-08-18 Emmanuel Marty <emarty@suntech.fr>
6941 * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
6944 2000-08-17 Richard Henderson <rth@cygnus.com>
6946 * config/ia64/ia64.c (spill_restore_mem): Handle emitting
6947 the first insn in a sequence.
6949 Thu Aug 17 22:40:05 EDT 2000 John Wehle (john@feith.com)
6951 * alias.c (true_dependence, write_dependence_p): A read
6952 involving a label_ref or the constant pool doesn't create
6955 * rtl.h (unchanging): Improve documentation.
6957 2000-08-17 Rodney Brown <RodneyBrown@mynd.com>
6959 * cse.c (insert_regs): Remove unused `regno'.
6961 2000-08-17 Neil Booth <NeilB@earthling.net>
6963 * (cppinit.c) merge_include_chains: Use remove_dup_dir,
6964 remove_dup_dirs. If qtail == brack, remove brack not
6966 (remove_dup_dir, remove_dup_dirs): New functions.
6968 2000-08-17 Neil Booth <NeilB@earthling.net>
6970 * cppinit.c (cpp_cleanup): Free include dir chains.
6971 * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
6972 (do_unassert): Free the assert with _cpp_free_definition.
6973 * cppmacro.c (_cpp_free_definition): Free memory allocated for
6974 assertions. Make the node a T_VOID node.
6976 2000-08-17 Neil Booth <NeilB@earthling.net>
6978 * cppinit.c (path_include, append_include_chain):
6979 Remove 2nd parameter (struct cpp_pending *).
6980 (path_include, initialize_standard_includes, cpp_handle_option):
6981 Update callers appropriately.
6982 (cpp_handle_option): Use pend.
6984 2000-08-17 Neil Booth <NeilB@earthling.net>
6986 * cppinit.c (sort_options): Remove, put functionality in
6989 (initialize_builtins): Free memory.
6990 (cpp_start_read): Move init_IStable to cpp_init.
6992 * cpplib.h (cpp_init): New prototype.
6993 * cppmain.c (main): Call cpp_init.
6995 Thu Aug 17 13:20:32 EDT 2000 John Wehle (john@feith.com)
6997 * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
6998 (rtx_unstable_p, rtx_varies_p): Process vectors.
7000 2000-08-16 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
7002 * config/sh/lib1funcs.asm (GLOBAL): Define. Use for all
7003 references to GLOBAL symbols. Use LOCAL where appropriate.
7005 2000-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7007 * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld. Always
7008 use t-aix41 when host == target.
7010 2000-08-16 Richard Henderson <rth@cygnus.com>
7012 * reload.c (push_secondary_reload): Revert last change.
7013 If we use a reload_in/out pattern, make the when the same
7014 as the primary reload.
7015 (find_reloads): Likewise.
7017 2000-08-16 Manfred Hollstein <manfredh@redhat.com>
7019 * configure.in (libstdcxx-v3): Fix test.
7020 * configure: Regenerate.
7022 Wed Aug 16 08:10:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7024 * calls.c (calls_function_1, expand_call): Only test
7025 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
7026 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7028 2000-08-16 Richard Henderson <rth@cygnus.com>
7030 * combine.c (simplify_shift_const): Revert previous two
7031 changes. If SHIFT_COUNT_TRUNCATED, crop the shift count
7032 before the main loop.
7034 2000-08-15 Richard Henderson <rth@cygnus.com>
7036 * combine.c (simplify_shift_const): Bound shift count when
7039 Tue Aug 15 17:33:05 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7041 * calls.c (ECF_SP_DEPRESSED): New macro.
7042 (calls_function_1): Treat calling sp-depressed function as alloca.
7043 (emit_call_1): Don't adjust SP if calling sp-depressed function.
7044 (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
7045 If sp-depressed, ensure block saves and restores SP.
7046 * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
7048 * function.c (keep_stack_depressed): New function.
7049 (thread_prologue_and_epilogue_insns): Call it.
7050 * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
7051 to print DECL_OFFSET_ALIGN.
7052 Print no-force-blk and transparent-union flags properly.
7053 * stmt.c (expand_goto_internal): Don't restore stack if last block
7054 and function returns with sp depressed.
7055 (fixup_gotos): Likewise.
7056 (save_stack_pointer): New function, from code in expand_decl.
7057 (expand_decl): Call new function.
7058 * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
7059 (TYPE_RETURNS_STACK_DEPRESSED): New macro.
7060 (save_stack_pointer): New declaration.
7062 * diagnostic.c (fatal_function): New variable.
7063 (set_fatal_function): New function.
7065 * diagnostic.h (set_fatal_function): New declaration.
7067 2000-08-15 William Cohen <wcohen@redhat.com>
7069 * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
7070 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
7071 (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
7073 2000-08-15 Richard Henderson <rth@cygnus.com>
7075 * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
7077 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
7079 * arm.c (arm_function_ok_for_sibcall): New function.
7080 * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
7081 * arm.md (call expanders): Don't check here for calls that can't
7084 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
7086 * arm.md (splits generating cond_exec): Disable.
7088 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
7090 * arm/linux-elf.h (text_section): Delete declaration.
7092 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
7094 ARM support for unordered FP operations.
7095 * arm-protos.h (arm_comparison_operator): Declare.
7096 * arm.c (arm_comparison_operator): New function.
7097 (arm_select_cc_mode): Add unordered comparison codes.
7098 (get_arm_condition_code): Likewise.
7099 (arm_final_prescan_insn): Can't handle unordered jumps that can't
7100 be done in one insn.
7101 * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
7102 * arm.md (all uses of comparison_operator): Replace with
7103 arm_comparison_operator.
7104 (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
7106 (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
7109 Tue Aug 15 00:36:36 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
7111 * gthr-posix.h: Conditionally include <sched.h>; include
7112 <config.h> from libobjc/.
7114 2000-08-14 Richard Henderson <rth@cygnus.com>
7116 * config/i386/i386.c (legitimize_pic_address): Use Pmode
7119 2000-08-14 Richard Henderson <rth@cygnus.com>
7121 * configure.in (ia64-*): Set float_format for i386 long double.
7123 * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
7124 as we would for i386 XFmode.
7125 (PUT_REAL): Likewise.
7126 (endian, ereal_atof, real_value_truncate): Likewise.
7127 (ereal_isneg, toe64, etens, make_nan): Likewise.
7128 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
7130 * config/ia64/ia64-protos.h: Update.
7131 * config/ia64/ia64.c (general_tfmode_operand): New.
7132 (destination_tfmode_operand): New.
7133 (tfreg_or_fp01_operand): New.
7134 (ia64_split_timode): New.
7135 (spill_tfmode_operand): New.
7136 (ia64_expand_prologue): Use TFmode not XFmode.
7137 (ia64_expand_epilogue): Likewise.
7138 (ia64_function_arg): Likewise.
7139 (ia64_function_arg_advance): Likewise.
7140 (ia64_return_in_memory): Likewise.
7141 (ia64_function_value): Likewise.
7142 (ia64_print_operand): Likewise.
7143 (ia64_register_move_cost): Set GR<->FR to 5.
7144 (ia64_secondary_reload_class): Get GR for TImode memory op.
7145 * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
7146 (ROUND_TYPE_ALIGN): Remove.
7147 (LONG_DOUBLE_TYPE_SIZE): Set to 128.
7148 (INTEL_EXTENDED_IEEE_FORMAT): Define.
7149 (HARD_REGNO_NREGS): Use TFmode, not XFmode.
7150 (HARD_REGNO_MODE_OK): Likewise. Disallow TImode in FRs.
7151 (MODES_TIEABLE_P): Use TFmode, not XFmode.
7152 (CLASS_MAX_NREGS): Likewise.
7153 (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
7154 (PREDICATE_CODES): Update.
7155 * config/ia64/ia64.md (movti): New.
7156 (movti_internal): Use a clobber for memory alternatives.
7157 (reload_inti, reload_outti): New.
7158 (movsfcc_astep): Predicate properly.
7159 (movdfcc_astep): Likewise.
7162 (extendsftf2, extenddftf2): New.
7163 (trunctfsf2, trunctfdf2): New.
7164 (floatditf2, fix_trunctfdi2): New.
7165 (floatunsditf2, fixuns_trunctfdi2): New.
7166 (addtf3, subtf3, multf3, abstf2): New.
7167 (negtf2, nabstf2, mintf3, maxtf3): New.
7168 (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
7170 (fr_spill): Use TFmode, not XFmode.
7171 (fr_restore): Likewise.
7172 * config/ia64/lib1funcs.asm (__divtf3): New.
7173 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
7175 2000-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7177 * cse.c (fold_rtx): Avoid empty body in an if-statement.
7179 * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
7180 `U' integer constant suffix.
7182 * dwarf2out.c (add_subscript_info): Avoid empty body in an
7185 * sparc/sol2.h (__enable_execute_stack): Prototype.
7187 2000-08-14 David Edelsohn <edelsohn@gnu.org>
7189 * collect2.c: Remove use of AIX import file.
7191 * longlong.h: Test ARCH_PWR not ARCH_POWER.
7193 * rs6000.c (print_operand, case 'E'): Add else.
7195 2000-08-14 Richard Henderson <rth@cygnus.com>
7197 * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
7198 (movdi_symbolic): New.
7200 2000-08-14 Jim Wilson <wilson@cygnus.com>
7202 * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
7203 to GNU as. For Intel as, pass -M const_gp and -M no_plabel.
7204 * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
7207 2000-08-14 Richard Henderson <rth@cygnus.com>
7209 * expr.c (emit_group_load): Don't force constants into registers.
7210 Special case source already in the correct mode.
7212 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
7214 * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
7215 * fixinc/inclhack.def: Likewise.
7216 * fixinc/mkfixinc.sh: Likewise.
7217 * configure: Regenerate.
7218 * fixinc/fixincl.x: Regenerate.
7219 * install.texi: Document equivalence of linux and linux-gnu.
7221 Mon Aug 14 18:51:44 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7223 * cse.c (insert_regs): Also in REG case: When finding an invalid
7224 value, and we make a new quantity, make sure that it won't be
7225 mistaken by for a valid one by mention_regs.
7227 2000-08-13 Ralf Gütlein <ralf.guetlein@aranea.de>
7229 * h8300.md: Remove obsolete peepholes.
7231 2000-08-13 Kazu Hirata <kazu@hxi.com>
7233 * invoke.texi (H8/300 Options): Fix typos.
7234 * config/h8300.c: Fix formatting.
7235 * config/h8300.h: Fix comment typos.
7236 (OVERRIDE_OPTIONS): Fix formatting.
7238 * function.c: Fix formatting.
7240 * cse.c: Fix formatting.
7242 2000-08-13 Geoff Keating <geoffk@cygnus.com>
7244 * flow.c (attempt_auto_inc): Remove unused variable `bb'.
7245 (attempt_auto_inc): Suppress parentheses warning.
7246 * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
7247 * loop.c (load_mems): Remove `u' suffix in two places.
7248 * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
7250 * config/rs6000/rs6000.h: Likewise.
7251 * config/rs6000/sol-c0.c: Prototype some functions. Remove the
7252 __eabi dummy routine.
7253 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
7256 * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
7257 not put stuff in .sdata unnecessarily.
7258 (rs6000_unique_section): New function.
7259 * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
7260 * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
7262 * c-typeck.c (build_array_ref): Don't complain about non-lvalue
7263 arrays in C99. Don't try to look at DECL_REGISTER of a
7264 COMPONENT_REF. Don't complain twice about the same error.
7266 * fixinc/inclhack.def (aix_pthread): New fix.
7267 (aix_sysmachine): New fix.
7268 * fixinc/fixincl.x: Regenerate.
7270 * expr.c (expand_expr): Call convert_modes when turning a large
7271 multiply into a small one.
7273 2000-08-12 Geoff Keating <geoffk@cygnus.com>
7275 * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
7276 the tree structure an exponent rather than an explicit alignment
7277 so it doesn't overflow.
7278 (SET_DECL_OFFSET_ALIGN): New macro.
7279 * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
7280 rather than DECL_OFFSET_ALIGN.
7281 (place_field): Likewise.
7282 * expmed.c (store_bit_field): Abort on align==0 to avoid
7283 antisocial machine behaviour.
7285 2000-08-12 Richard Henderson <rth@cygnus.com>
7287 * sibcall.c (uses_addressof): Accept both addressof and
7288 current_function_internal_arg_pointer inside a mem.
7289 (optimize_sibling_and_tail_recursive_call): Fail tail recursion
7290 if current_function_uses_addressof.
7291 * stmt.c (expand_return): Kill tail recursion and HAVE_return
7294 2000-08-11 Richard Henderson <rth@cygnus.com>
7296 * config/ia64/ia64.md (addsi3): Remove expander.
7297 (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
7298 (*addsi3_shladd): New.
7300 2000-08-11 Richard Henderson <rth@cygnus.com>
7302 * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
7303 (do_restore): Likewise.
7304 (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
7305 (ia64_expand_prologue, ia64_expand_epilogue): Use them.
7306 (rtx_needs_barrier): Track actual bit manipulation for
7307 ar.unat moves, gr_spill, and gr_restore.
7308 (emit_insn_group_barriers): Special case gr_spill/gr_restore.
7309 (process_set): Don't handle varargs spills.
7310 * config/ia64/ia64.md (gr_spill): Accept cfa offset. Emit
7311 .mem.offset here instead of in process_set.
7312 (gr_restore): Likewise.
7314 2000-08-11 Richard Henderson <rth@cygnus.com>
7316 * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
7318 2000-08-11 Mark Elbrecht <snowball3@bigfoot.com>
7320 * gcc.texi (The Configuration File): Document
7321 COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
7322 UPDATE_PATH_HOST_CANONICALIZATION.
7324 2000-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7326 * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
7327 unprototyped function pointer casts on integer constants.
7329 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
7331 * fixproto: Recognize DOS paths with drive letters as absolute paths.
7333 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
7335 * extend.texi (Volatiles): Fix typos.
7337 2000-08-11 Kazu Hirata <kazu@hxi.com>
7339 * flow.c: Fix formatting.
7341 2000-08-11 Richard Henderson <rth@cygnus.com>
7343 * reload.c (push_secondary_reload): When invoking a reload_{in,out}
7344 pattern, always allocate a tertiary scratch register.
7346 * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
7347 (reload_inhi): Likewise.
7349 2000-08-11 Richard Henderson <rth@cygnus.com>
7351 * function.c (put_reg_into_stack): Allow type to be NULL.
7352 (schedule_fixup_var_refs): Likewise.
7353 (gen_mem_addressof): Allow decl to be NULL.
7354 (put_addressof_into_stack): Likewise.
7356 * flow.c (merge_blocks_nomove): Be more careful about
7357 locating the beginning of block A.
7359 * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
7361 Thu Aug 10 22:47:09 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
7366 * config.in: Reverted the check for <sched.h>.
7368 2000-08-10 Chris Demetriou <cgd@sibyte.com>
7370 * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
7371 macros define the name of CTOR and DTOR sections.
7372 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
7373 DTOR_LIST_END): Change to use attributes to specify
7375 * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
7376 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
7377 DTOR_LIST_END): Same as in mips/elf.h.
7379 2000-08-10 Drew Moseley <dmoseley@redhat.com>
7381 * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
7382 disabling just crt0.o.
7384 2000-08-10 Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton <nickc@cygnus.com>
7386 * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
7387 (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
7388 (EXTRA_SPECS): Add them.
7389 * arm/lib1funcs.asm: Support builds for interworking.
7390 Use macros to eliminate duplicated pieces of code.
7392 2000-08-10 Kazu Hirata <kazu@hxi.com>
7394 * h8300.c (expand_a_rotate): New.
7395 (emit_a_rotate): Likewise.
7396 (h8300_adjust_insn_length): Add support for the rotate insns.
7397 * h8300.md (rotlqi3): New.
7398 (*rotlqi3_1): Likewise.
7399 (rotlhi3): Likewise.
7400 (*rotlhi3_1): Likewise.
7401 (rotlhi3): Likewise.
7402 (*rotlhi3_1): Likewise.
7403 * h8300-proto.h: Add prototypes for expand_a_rotate and
7406 * h8300.c: Fix comment typos.
7407 (dosize): Declare the variable amount as unsigned.
7408 (get_shift_alg): Fix a comparison between signed and unsigned.
7409 (emit_a_shift): Likewise.
7410 (h8300_adjust_insn_length): Simplify the code.
7412 * c-decl.c: Fix formatting.
7414 2000-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7416 * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
7417 warning about non-traditional numeric constant suffixes.
7419 * cppexp.c (parse_number): Likewise.
7421 * invoke.texi: (-Wtraditional): Document new behavior.
7423 Thu Aug 10 00:11:04 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
7425 * gthr-posix.h: Include auto-host.h. Conditionally include
7427 * configure.in: Check for the <sched.h> header file.
7428 * config.in: Added define for HAVE_SCHED_H.
7430 2000-08-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7432 * c-typeck.c (process_init_element): For -Wtraditional, warn about
7433 initialization of unions.
7435 * invoke.texi (-Wtraditional): Document new behavior.
7437 2000-08-09 Zack Weinberg <zack@wolery.cumb.org>
7439 * configure.in (--enable-c-cpplib): Uncomment. Use AC_DEFINE
7440 instead of extra_c_flags.
7441 (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
7442 * configure: Regenerate.
7443 * config.in: Regenerate.
7445 * cpperror.c (cpp_type2name): New function.
7446 * cpplex.c (lex_line): If we issued an error for an invalid
7447 preprocessing directive, discard that logical line.
7448 * cpplib.c (do_line): Call a hook function if the current file
7449 is renamed by #line.
7450 (do_ident): Pass the contents of the string, not the entire
7451 token, to the callback function.
7452 * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
7453 (cb.rename_file): New hook function.
7454 (cb.ident): Adjust prototype.
7455 (cpp_type2name): Prototype.
7456 * cppmacro.c (dump_macro_args): Correct precedence lossage.
7458 * cppmain.c (cb_ident): Update for changed interface.
7459 (cb_rename_file): New function.
7460 (main): Set rename callback.
7462 2000-08-09 Alexandre Oliva <aoliva@redhat.com>
7464 * caller-save.c (mark_referenced_regs): Mark partially-overwritten
7465 multi-word registers.
7467 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
7469 * c-common.c (combine_strings, check_format_info): Refer to ISO C
7470 or ISO C89 instead of ANSI C.
7471 * c-decl.c (grokdeclarator, xref_tag, finish_struct,
7472 build_enumerator, do_case): Likewise.
7473 * c-lex.c (parse_float, yylex): Likewise.
7474 * c-parse.in: Likewise.
7475 * c-typeck.c (common_type, build_array_ref, build_binary_op,
7476 build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
7477 build_c_cast, convert_for_assignment, set_init_index,
7478 set_init_label, c_expand_start_case): Likewise.
7479 * toplev.c (documented_lang_options, display_help): Likewise.
7481 2000-08-08 Kazu Hirata <kazu@hxi.com>
7483 * h8300.c: Fix formatting.
7484 * h8300.h: Likewise.
7485 * h8300.md: Likewise.
7486 (movsi_h8300hs): Fix formatting of the resulting assembly code.
7488 * reload1.c: Fix formatting.
7490 2000-08-08 Rodney Brown <RodneyBrown@mynd.com>
7492 * alpha/alpha.c (alpha_emit_xfloating_libcall):
7493 Use GEN_CALL_VALUE define.
7494 * alpha/alpha.md (untyped_call): Use GEN_CALL define.
7495 * clipper/clipper.md (untyped_call): Likewise.
7496 * dsp16xx/dsp16xx.md (untyped_call): Likewise.
7497 * fx80/fx80.md (untyped_call): Likewise.
7498 * mips/mips.md (untyped_call): Likewise.
7499 * ns32k/ns32k.md (untyped_call): Likewise.
7500 * pa/pa.md (untyped_call): Likewise.
7501 * romp/romp.md (untyped_call): Likewise.
7502 * sparc/sparc.md (untyped_call): Likewise.
7504 2000-08-08 Jason Eckhardt <jle@cygnus.com>
7506 * config/i860/i860.c (singlemove_string): Do not generate assembler
7507 pseudo instructions that must be expanded (that is, with signed
7508 constants larger than 16 bits).
7510 2000-08-08 Richard Henderson <rth@cygnus.com>
7512 * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
7513 PROP_AUTOINC at -O0. Don't collect alias info at -O0.
7514 (init_propagate_block_info): Don't kill memory stores at -O0.
7515 (mark_set_1, mark_used_regs): Likewise.
7517 2000-08-08 David Edelsohn <edelsohn@gnu.org>
7519 * rs6000.c (optimization_options): Decorate 'level' as
7521 (mask64_operand): Remove sign-extend thinko.
7522 (rldic_operand): New function.
7523 (load_multiple_operation): regno's are unsigned ints.
7524 (store_multiple_operation): Likewise.
7525 (lmw_operation): Likewise.
7526 (stmw_operation): Likewise.
7527 (includes_lshift_p): shift_mask is unsigned int.
7528 (includes_lshift64_p): New function.
7529 (addrs_ok_for_quad_peep): unsigned int reg1.
7530 (print_operand): Consistently add "else" after
7531 output_operand_lossage().
7532 (print_operand, case 'b'): Fold in case 'W'.
7533 (print_operand, case 'W'): Print rldic MB value.
7534 (output_epilogue): Update Objective-C language string.
7535 (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
7536 * rs6000.h (PREDICATE_CODES): Add rldic_operand.
7537 * rs6000.md (ashldi3): Add rldic instruction.
7538 (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
7539 (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
7542 2000-08-08 Richard Henderson <rth@cygnus.com>
7544 * config/ia64/ia64-protos.h: Remove duplicates. Update
7545 for massive code rearrangements.
7546 * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
7547 (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
7548 (ia64_local_regs, ia64_need_regstk): Remove.
7549 (ar_ccv_reg_operand): New.
7550 (ia64_gp_save_reg): New.
7551 (struct ia64_frame_info): Combine most of the size elements;
7552 add new gr save elements.
7553 (find_gr_spill): New.
7554 (next_scratch_gr_reg): New.
7555 (mark_reg_gr_used_mask): New.
7556 (ia64_compute_frame_size): Rewrite. Allocate special AR regs
7557 to GR backing store regs when possible.
7558 (ia64_initial_elimination_offset): New.
7559 (ia64_rap_fp_offset): Remove.
7560 (save_restore_insns): Remove.
7561 (setup_spill_pointers): New.
7562 (finish_spill_pointers): New.
7563 (spill_restore_mem): New.
7564 (do_spill, do_restore): New.
7565 (ia64_expand_prologue): Rewrite to use them.
7566 (ia64_expand_epilogue): Likewise.
7567 (ia64_direct_return): Update for current_frame_info changes.
7568 (ia64_function_prologue): Simplify .prologue emission. Emit
7570 (ia64_setup_incoming_varargs): Don't ever emit rtl.
7571 (ia64_dbx_register_number): New.
7572 (ia64_initialize_trampoline): New.
7573 (ia64_secondary_reload_class): Request GR_REGS for integer
7574 arithmetic destined for FR_REGS.
7575 (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
7576 (ia64_mark_machine_status): Mark ia64_gp_save.
7577 (rws_access_regno): Rename from rws_access_reg; don't treat
7578 predicates specially.
7579 (rws_access_reg): New. Update all callers.
7580 (rtx_needs_barrier): Remove dead unspecs.
7581 (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
7582 (ia64_encode_section_info): Silence signed/unsigned warnings.
7583 (spill_offset, sp_offset, spill_offset_emitted): Remove.
7584 (tmp_reg, tmp_saved): Remove.
7585 (process_set): Rewrite to expect complicated bits via
7586 REG_FRAME_RELATED_EXPR.
7587 (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
7588 in the use of ar.ccv; never set RTX_UNCHANGING_P.
7589 (ia64_expand_op_and_fetch): Likewise.
7590 (ia64_expand_compare_and_swap): Likewise.
7591 (ia64_expand_builtin): Likewise.
7592 * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
7593 (FIRST_PSEUDO_REGISTER): Update.
7594 (AR_M_REGNO_P): Update.
7595 (FIXED_REGS): Don't mark three local registers as used.
7596 (EXTRA_CC_MODES): New.
7597 (SELECT_CC_MODE): New.
7598 (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
7599 (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
7600 (FRAME_GROWS_DOWNWARD): Unset.
7601 (STARTING_FRAME_OFFSET): Zero.
7602 (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
7603 (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
7604 (HARD_FRAME_POINTER_REGNUM): New.
7605 (CAN_DEBUG_WITHOUT_FP): Define.
7606 (TRAMPOLINE_TEMPLATE): Remove.
7607 (TRAMPOLINE_SIZE): Lower to 32.
7608 (TRAMPOLINE_ALIGNMENT): Lower to 64.
7609 (INITIALIZE_TRAMPOLINE): Defer to out of line function.
7610 (PREDICATE_CODES): Update.
7611 (struct machine_function): Add ia64_gp_save.
7612 * config/ia64/ia64.md: Purge unused unspecs.
7613 (movsi patterns): Allow moves to/from AR_M_REGS.
7614 (movdi patterns): Allow moves to/from p0.
7615 (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
7616 (gr_spill, gr_restore): Indicate ar.unat read/written.
7617 (nonlocal_goto): Don't pass old frame_pointer.
7618 (nonlocal_goto_receiver): Remove.
7619 (exception_receiver): New.
7620 (builtin_setjmp_setup): New.
7621 (builtin_setjmp_receiver): New.
7622 * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
7623 (__ia64_nonlocal_goto): Bundle. Don't kill r7.
7624 (__ia64_restore_stack_nonlocal): Likewise.
7625 (__ia64_trampoline): New.
7626 * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
7628 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
7630 2000-08-08 Richard Henderson <rth@cygnus.com>
7632 * frame.h (ia64_frame_state): Add my_psp.
7633 * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
7634 (__throw): Pass it in. Don't clobber r7.
7635 * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
7636 (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
7637 and nothing to do with sp.
7638 (normalize_reg_loc): Use frame->my_psp.
7639 (frame_translate): Handle frame-pointer-less functions. Set
7640 spill_base correctly, in absence of being told.
7641 (__build_ia64_frame_state): New sp argument. Fill in frame->my_sp.
7642 (__ia64_backtrace_helper): New sp argument. Use
7643 builtin_return_address instead of label addresses.
7644 (print_record) [mem_stack_v]: No size member.
7646 2000-08-08 Richard Henderson <rth@cygnus.com>
7648 * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
7650 2000-08-08 Richard Henderson <rth@cygnus.com>
7652 * tm.texi (LOCAL_REGNO): Document.
7653 * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
7654 (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
7655 * reload1.c (reload): Likewise when considering nonlocal labels.
7657 * config/ia64/ia64.h (LOCAL_REGNO): New.
7658 * config/sparc/sparc.h (LOCAL_REGNO): New.
7660 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
7662 * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
7664 2000-08-07 Nick Clifton <nickc@redhat.com>
7666 * config/mips/mips.c: Fix compile time warning messages.
7667 * config/mips/mips-protos.h: Add prototype for equality_op.
7669 * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
7671 2000-08-07 Graham Stott <grahams@cygnus.co.uk>
7673 * mn10300.md: Use nonimmediate_operand instead of general_operand
7676 * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
7678 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
7680 * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
7681 * sh.c (expand_block_move): Break long lines.
7682 (expand_ashiftrt, fpscr_set_from_mem): Likewise.
7683 * sh.md (mulsi3): Likewise.
7684 (movdi): Adjust spacing.
7686 2000-08-07 Richard Henderson <rth@cygnus.com>
7688 * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
7689 * expr.c (emit_group_store): Don't set it.
7691 2000-08-07 Kazu Hirata <kazu@hxi.com>
7693 * invoke.texi (Options for Debugging Your Program or GCC): Remove
7694 duplicate entries for 'w' and 'z'.
7696 * flow.c: Fix a comment typo.
7698 Sun Aug 6 23:47:35 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
7700 * c-parse.in: Changed the language string for Objective-C to "GNU
7703 Sun Aug 6 11:54:03 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
7705 * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
7706 to improve the Posix thread support for Objective-C.
7708 2000-08-06 Joseph S. Myers <jsm28@cam.ac.uk>
7710 * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
7711 CTI_UNSIGNED_PTRDIFF_TYPE.
7712 (signed_size_type_node): Define.
7713 (unsigned_ptrdiff_type_node): Define.
7714 * c-decl.c (init_decl_processing): Create the
7715 signed_size_type_node and unsigned_ptrdiff_type_node types.
7716 * c-common.c (T_SC): Define.
7719 (print_char_table): Use T_SST for %zd, %zi, %zn. Use T_UPD for
7720 %to, %tu, %tx, %tX. Allow %hhn (T_SC). Add "c" to the flags for
7722 (scan_char_table): Use T_SC for %hhd, %hhi, %hhn. Use T_SST for
7723 %zd, %zi, %zn. Use T_UPD for %to, %tu, %tx, %tX. Add "c" to the
7724 flags for %c, %s and %[.
7725 (check_format_info): Only allow leniency for signedness of targets
7726 of character pointers (when pedantic) for formats flagged with
7727 "c", so for strings but not for %hh formats. When pedantic, don't
7728 allow character pointers to substitute for void pointers if a
7729 second level of indirection is present.
7731 2000-08-06 Kazu Hirata <kazu@hxi.com>
7733 * invoke.texi (Options for Debugging Your Program or GCC): Update
7734 the names of dump files.
7736 * h8300.c (dosize): Rearrange code for conciseness.
7737 (split_adds_subs): Likewise.
7739 * loop.c: Fix formatting.
7741 * dwarf2out.c: Fix formatting.
7743 * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
7745 * expr.c: Fix formatting.
7747 2000-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7749 * rs6000.c (rs6000_maybe_dead): Prototype.
7751 2000-08-06 Richard Henderson <rth@cygnus.com>
7753 * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
7754 HAVE_nonlocal_goto as well.
7755 * config/i960/i960.md (nonlocal_goto): Don't do it here.
7756 * config/pj/pj.md (nonlocal_goto): Likewise.
7758 2000-08-07 Michael Hayes <mhayes@cygnus.com>
7760 * loop.c (try_swap_copy_prop): New function.
7761 (load_mems): Rename copies to load_copies and add new regset
7762 store_copies. Check for sets of shadow registers and mark
7763 in store_copies. Call try_swap_copy_prop for registers
7764 marked in store_copies.
7766 Sun Aug 6 00:54:42 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
7768 * objc/objc-act.c: New command line option -fconstant-string-class
7769 to allow specifying a user defined constant string class,
7770 different from NXConstantString.
7772 * toplev.c: Moved the Objective-C specific options to
7773 objc/lang-options.h.
7775 * objc/lang-options.h: Moved the Objective-C specific options from
7776 toplev.c. Added -fconstant-string-class.
7778 2000-08-05 Chris Demetriou <cgd@sibyte.com>
7780 * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
7781 DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
7782 __CTOR_LIST__ from func_ptr array to just func_ptr, to
7783 avoid extra alignment imposed on arrays.
7784 * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
7785 DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
7787 * mips.h: Clean up comments and spacing near MASKs.
7788 (TARGET_UNIX_ASM): Delete.
7789 (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
7790 MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
7793 2000-08-05 Joseph S. Myers <jsm28@cam.ac.uk>
7795 * c-common.c (print_char_table): Add entries for the X/Open '
7796 format flag (print decimals with locale's thousands grouping
7797 character). Make %C expect wint_t.
7798 (check_format_info): If pedantic, warn when the %n$ operand
7799 number form is used. Allow for the ' flag; warn about it if
7802 2000-08-05 Zack Weinberg <zack@wolery.cumb.org>
7804 * i386.h (FUNCTION_OK_FOR_SIBCALL): Not OK if DECL's return
7805 type is a float mode, cfun->decl's return type is not, and
7806 TARGET_FLOAT_RETURNS_IN_80387.
7808 2000-08-04 Andreas Schwab <schwab@suse.de>
7810 * cppmain.c (cb_def_pragma): Skip the first two tokens from the
7811 token list, which are always `#' and `pragma'.
7813 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
7815 * tree.c (tree_expr_nonnegative_p): Move to...
7816 * fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
7817 (rtl_expr_nonnegative_p): New.
7818 * tree.h: Add prototype for rtl_expr_nonnegative_p.
7820 * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
7821 CONST_DOUBLE_CHAIN: Move to...
7822 * rtl.h: ...here. Use XCINT/XCEXP.
7824 * Makefile.in: Remove toplev.o from OBJS. Add rule to make
7825 libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
7826 variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
7829 * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
7831 2000-08-05 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7833 * config/c4x/c4x.md (return_indirect_internal): New.
7834 * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
7836 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
7838 * c-common.c (time_char_table): Mark up formats added in C99 and
7839 make other corrections. %D and %g were added in C99. %Og is an
7840 extension. %EX is permitted. %R, %T, %n, %r, %t were added in
7841 C99. %e was added in C99. %Oj is an extension. %G and %z are in
7842 C99 rather than GNU extensions, but %OG and %Oz are extensions.
7843 %h was added in C99. %C was added in C99. %OY and %OC are
7844 extensions. Add the C99 format %F.
7845 (check_format_info): If pedantic and not in C99 mode, warn for C99
7848 Fri Aug 4 23:01:58 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7850 * function.c (schedule_fixup_var_refs): New function, broken out
7851 of put_reg_into_stack.
7852 (put_reg_into_stack): Use it.
7853 (put_var_into_stack): In CONCAT case, fixup up references for
7854 components only after fixing up references to the whole concat.
7856 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
7858 * alias.c (mark_constant_function): Use INSN_P.
7859 (init_alias_analysis): Likewise.
7860 * combine.c (combine_instructions): Use INSN_P.
7861 (can_combine_p): Likewise.
7862 (try_combine): Likewise.
7863 (distribute_notes): Likewise.
7864 (distribute_links): Likewise.
7865 * cse.c (cse_around_loop): Use INSN_P.
7866 (invalidate_skipped_block): Likewise.
7867 (cse_set_around_loop): Likewise.
7868 (cse_end_of_basic_block): Likewise.
7869 (delete_trivially_dead_insns): Likewise.
7870 * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
7871 (unshare_all_rtl_1): Likewise.
7872 (next_cc0_user): Likewise.
7873 (try_split make_insn_raw): Likewise.
7874 (remove_unnecessary_notes): Likewise.
7875 * final.c (shorten_branches): Use INSN_P.
7876 (leaf_renumber_regs): Likewise.
7877 (leaf_renumber_regs_insn): Likewise.
7878 * flow.c (find_label_refs): Use INSN_P.
7879 (verify_wide_reg): Likewise.
7880 (notice_stack_pointer_modification): Likewise.
7881 (count_or_remove_death_notes): Likewise.
7882 (verify_flow_info): Likewise.
7883 (clear_log_links): Likewise.
7884 * function.c (fixup_var_refs_insns): Use INSN_P.
7885 (compute_insns_for_mem): Likewise.
7886 * gcse.c (alloc_gcse_mem): Use INSN_P.
7887 (compute_sets): Likewise.
7888 (compute_hash_table): Likewise.
7889 (classic_gcse): Likewise.
7891 (insert_insn_end_bb): Likewise.
7892 (delete_null_pointer_checks_1): Likewise.
7893 * global.c (expand_preferences): Use INSN_P.
7894 (build_insn_chain): Likewise.
7895 * graph.c (node_data): Use INSN_P.
7896 * haifa-sched.c (priority): Use INSN_P.
7897 (rm_line_notes): Likewise.
7898 (rm_other_notes): Likewise.
7899 (find_insn_reg_weight): Likewise.
7900 (init_target_units): Likewise.
7901 (schedule_block): Likewise.
7902 (compute_block_forward_dependences): Likewise.
7903 (debug_dependencies): Likewise.
7904 (set_priorities): Likewise.
7905 * integrate.c (function_cannot_inline_p): Use INSN_P.
7906 (save_parm_insns): Likewise.
7907 (copy_insn_list): Likewise.
7908 * jump.c (mark_all_labels): Use INSN_P.
7909 (never_reached_warning): Likewise.
7910 * lcm.c (optimize_mode_switching): Use INSN_P.
7911 * local-alloc.c (validate_equiv_mem): Use INSN_P.
7912 (memref_used_between_p): Likewise.
7913 (update_equiv_regs): Likewise.
7914 (block_alloc): Likewise.
7915 (no_conflict_p): Likewise.
7916 * loop.c (scan_loop): Use INSN_P.
7917 (find_and_verify_loops): Likewise.
7918 (count_loop_regs_set): Likewise.
7919 (loop_reg_used_before_p): Likewise.
7920 (strength_reduce): Likewise.
7921 (recombine_givs): Likewise.
7922 (check_dbra_loop): Likewise.
7923 (load_mems): Likewise.
7924 (try_copy_prop): Likewise.
7925 * print-rtl.c (print_rtx): Use INSN_P.
7926 * recog.c (find_single_use): Use INSN_P.
7927 * reg-stack.c (stack_regs_mentioned): Use INSN_P.
7928 (next_flags_user): Likewise.
7929 (swap_rtx_condition): Likewise.
7930 * regmove.c (mark_flags_life_zones): Use INSN_P.
7931 (optimize_reg_copy_1): Likewise.
7932 (optimize_reg_copy_2): Likewise.
7933 (optimize_reg_copy_3): Likewise.
7934 (reg_is_remote_constant_p): Likewise.
7935 (fixup_match_2): Likewise.
7936 (regmove_optimize): Likewise.
7937 (fixup_match_1): Likewise.
7938 * regrename.c (build_def_use): Use INSN_P.
7939 (replace_reg_in_block): Likewise.
7940 (consider_use): Likewise.
7941 * reload.c (find_equiv_reg): Use INSN_P.
7942 * reload1.c (reload): Use INSN_P.
7943 (maybe_fix_stack_asms): Likewise.
7944 (calculate_needs_all_insns): Likewise.
7945 (reload_as_needed): Likewise.
7946 (emit_output_reload_insns): Likewise.
7947 (delete_address_reloads_1): Likewise.
7948 (reload_cse_regs_1): Likewise.
7949 (reload_combine): Likewise.
7950 (reload_cse_move2add): Likewise.
7951 * reorg.c (redundant_insn): Use INSN_P.
7952 (dbr_schedule): Likewise.
7953 * resource.c (find_dead_or_set_registers): Use INSN_P.
7954 (mark_target_live_regs): Likewise.
7955 * rtlanal.c (reg_used_between_p): Use INSN_P.
7956 (reg_referenced_between_p): Likewise.
7957 (reg_set_between_p): Likewise.
7958 (reg_set_p): Likewise.
7959 (single_set): Likewise.
7960 (multiple_sets): Likewise.
7961 (find_last_value): Likewise.
7962 (reg_set_last): Likewise.
7963 (find_reg_note): Likewise.
7964 (find_regno_note): Likewise.
7965 * sibcall.c (sequence_uses_addressof): Use INSN_P.
7966 * simplify-rtx.c (cselib_process_insn): Use INSN_P.
7967 * ssa.c (find_evaluations): Use INSN_P.
7968 (rename_block): Likewise.
7969 (rename_equivalent_regs): Likewise.
7970 * unroll.c (loop_find_equiv_value): Use INSN_P.
7971 (set_dominates_use): Likewise.
7972 * varasm.c (mark_constant_pool): Use INSN_P.
7973 (mark_constants): Likewise.
7974 * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
7975 (alphaev4_next_group): Likewise.
7976 (alphaev5_next_group): Likewise.
7977 * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
7978 (c4x_rptb_rpts_p): Likewise.
7979 * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
7980 * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
7981 (rs6000_adjust_priority): Likewise.
7982 * config/sh/sh.c (sh_loop_align): Use INSN_P.
7983 (machine_dependent_reorg): Likewise.
7984 (split_branches): Likewise.
7985 * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
7987 Fri Aug 4 11:43:49 2000 John Wehle (john@feith.com)
7989 * combine.c (recog_for_combine): Remove the old notes
7990 prior to attempting to recognize the new pattern.
7991 (distribute_notes): Ignore REG_NONNEG notes.
7993 2000-08-04 Chandrakala Chavva <cchavva@redhat.com>
7995 * varasm.c (output_constructor): Add .align 0 for packed vars.
7997 2000-08-04 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7999 * configure.in: Use default thread_file even when enable_threads is
8000 yes or dce because hpux10.20 pa port uses MULTILIB implementation.
8001 * configure: Rebuilt.
8003 * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
8005 2000-08-04 Donn Terry (donnte@microsoft.com)
8007 * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
8009 2000-08-04 Mark Elbrecht <snowball3@bigfoot.com>
8011 * i386/x-djgpp: Delete code that conditionally modifies target_alias.
8012 Delete code that conditionally modifies 'version'.
8013 Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
8014 * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
8015 * gcc.c (main): Use it.
8016 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
8017 * prefix.c (update_path): Use it.
8018 * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
8019 (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
8020 (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
8022 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
8023 (SUBTARGET_SWITCHES): Adjust.
8024 (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
8026 (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
8028 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
8030 * c-common.h (flag_isoc94): Declare.
8031 * c-decl.c (flag_isoc94): Define.
8032 (c_decode_option): Set flag_isoc94 as appropriate.
8033 * c-common.c (T_PD, T_IM, T_UIM): Define.
8034 (format_char_info): Add tlen and jlen.
8035 (print_char_table): Add entries for %t and %j. Allow %zn. Allow
8037 (scan_char_table): Add entries for %t and %j. Allow %F. Allow
8039 (time_char_table): Add NULL entries for %t and %j.
8040 (check_format_info): Allow for %t and %j. Warn for %F if pedantic
8041 and not C99. Warn for %lc, %ls and %l[ if pedantic and not C94.
8042 Warn for printf %lf if pedantic and not C99. Don't warn for empty
8043 precision. Allow precision argument to be unsigned int. If
8044 pedantic, warn for %p passed an argument not a pointer to possibly
8045 qualified void or a possibly qualified character type, and for
8046 pointer targets of the wrong sign, except for character pointers.
8048 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
8050 * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
8051 * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
8052 (wint_type_node): Define.
8053 * c-decl.c (WINT_TYPE): Define.
8054 (init_decl_processing): Create the wint_type_node type.
8055 * c-common.c (T_WI): Define.
8056 (print_char_table): Use T_WI for %lc format.
8058 2000-08-04 Bruce Korb <bkorb@gnu.org>
8060 * fixinc/: Verified that the MSDOS patch does not break
8061 the UNIX functionality and applied the next three patches
8064 2000-07-28 Eli Zaretskii <eliz@is.elta.co.il>
8066 * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
8067 output file with the temporary one by appending ".X" to generate
8068 the temporary fuile's name. If the output file already has an
8069 extension, replace it with ".X".
8071 * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
8072 not $DESTDIR, to find applyfix. Use sprintf instead of snprintf;
8073 reallocate the command buffer while copying the command-line
8074 argument. Redirect the output directly to the temporary file,
8075 instead of going through another temporary file.
8076 (process): Close the temporary file before unlinking it.
8077 (machine_matches) [__MSDOS__]: If the machine doesn't match, set
8078 the FD_SKIP_TEST flag. Pay attention to the FD_MACH_IFNOT flag.
8079 (run_compiles): Pass p_fixd argument to machine_matches, as it
8082 * fixinc/fixincl.sh: Export ORIGDIR. If $DJDIR is set in the
8083 environment, assume there are no symlinks in the include
8084 directory. When cleaning up the DONE files, look for them
8085 case-insensitively. Don't try to remove symlinks if they aren't
8088 * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
8089 all callers changed. Declare pz "const char *", to avoid compiler
8092 * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
8093 Change prototype of make_raw_shell_str.
8095 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
8097 * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
8098 (initialize) [__MSDOS__]: Use tempnam.
8099 (initialize): Don't use SIGPIPE if it is not defined.
8101 * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
8104 2000-07-25 Bruce Korb <bkorb@gnu.org>
8106 * fixinc/fix*.[ch]: substantially reworked to make it possible
8107 to run this program without using fork(2) or pipe(2) (i.e. in
8110 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
8112 * cppdefault.h (WINT_TYPE): Define.
8113 * cppinit.c (builtin_array): Define __WINT_TYPE__.
8114 * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
8115 * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
8117 Fri Aug 4 06:53:46 2000 Clinton Popetz <cpopetz@cygnus.com>
8119 * (mips_legitimate_address_p): Don't allow register+offset
8120 if the offset is large and negative, and we are compiling
8121 for 64 bit registers.
8123 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8125 * gencodes.c (main): Define CODE_FOR_nothing as the last possible
8126 insn_code_number + 1.
8128 2000-08-04 Kazu Hirata <kazu@hxi.com>
8130 * h8300.c (function_prologue): Rearrange code for conciseness.
8131 (function_epilogue): Likewise.
8132 * h8300.h (OK_FOR_U): Fix formatting.
8134 * cse.c: Fix a comment typo. Fix formatting.
8136 2000-08-03 Richard Henderson <rth@cygnus.com>
8138 * config/i386/i386.md (return_indirect_internal): New.
8139 * config/i386/i386.c (ix86_expand_epilogue): Use it.
8141 2000-08-03 Zack Weinberg <zack@wolery.cumb.org>
8143 * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
8145 (lex_line): Glue @ onto the beginning of identifiers and
8146 string constants, in Objective-C mode.
8147 (output_token, spell_token): Handle CPP_OSTRING.
8148 (can_paste, maybe_paste_with_next): Handle pasting @ onto the
8149 beginning of a NAME or a STRING, in objc mode.
8151 * cpplib.c (get_define_node): Do not permit identifiers that
8152 begin with @ to be #defined.
8153 * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
8154 * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
8156 * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
8157 * c-tree.h (build_objc_string): Delete prototype.
8158 * objc/objc-tree.def: Delete OBJC_STRING_CST.
8159 * c-lex.c (yylex): Use build_string for all three kinds of strings.
8161 * c-parse.in, objc/objc-act.c: Update commentary.
8163 2000-08-03 Mark Mitchell <mark@codesourcery.com>
8165 * extend.texi: Fix typo in last change.
8167 * extend.texi: Add commentary on statement-expressions and their
8168 interactions with C++.
8170 2000-08-03 Nick Clifton <nickc@cygnus.com>
8172 * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
8173 * dwarf.h (LANG_JAVA): Change value to 0x000b.
8175 2000-08-03 Anthony Green <green@cygnus.com>
8177 * dwarf2out.c (gen_compile_unit_die): Add java language support.
8178 (add_bound_info): Check for java language.
8179 (is_java): New function.
8180 * dwarfout.c (output_compile_unit_die): Ditto.
8181 * dwarf.h (dwarf_source_language): Add java source language type.
8182 * dwarf2.h (dwarf_source_language): Ditto.
8184 Thu Aug 3 20:32:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
8186 * reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap
8189 * i386.c (ix86_expand_branch): Mode of comparison in
8190 IF_THEN_ELSE is VOIDmode.
8192 Thu Aug 3 10:05:53 2000 Akiko Matsushita <matusita@sra.co.jp>
8194 * gengenrtl.c, rtl.c: Avoid #elif.
8196 2000-08-03 Michael Poole <poole@troilus.org>
8198 * tm.texi (Register Classes): Clarify order of sub-initializers
8199 in REG_CLASS_CONTENTS.
8201 Thu Aug 3 15:53:03 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8203 From SAITOH Masanobu:
8204 * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
8206 2000-08-03 David Billinghurst <David.Billinghurst@riotinto.com.au>
8208 * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
8209 is not supported by tradcpp and isn't actually needed for cygwin.
8211 2000-08-03 Kazu Hirata <kazu@hxi.com>
8213 * h8300.c: Fix a comment typo.
8214 * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
8216 * jump.c: Fix formatting.
8218 * toplev.c: Fix formatting.
8220 Thu Aug 3 01:05:32 2000 Jeffrey A Law (law@cygnus.com)
8222 * flow.c (find_auto_inc): Verify that we've got a REG before
8223 peeking at its regno. Fail, don't abort if we can't find
8224 the increment of the desired register.
8226 * pa.md (shadd height reduction patterns/splitters): Remove.
8228 2000-08-02 Jim Wilson <wilson@cygnus.com>
8230 * config/ia64/ia64-protos.h (flag_ssa): Declare.
8231 * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
8233 2000-08-02 Mark Mitchell <mark@codesourcery.com>
8235 * dce.c: Remove all uses of assert.
8236 * dwarf2out.c: Likewise.
8237 * dwarfout.c: Likewise.
8240 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
8242 * gcc.h (lang_specific_driver): Constify second argument.
8243 * gcc.c (translate_options, process_command, main): Likewise.
8244 Constify variables to match. Cast second argument to
8247 * cppspec.c, gccspec.c: Adjust type of second argument to
8248 lang_specific_driver, and update code as necessary.
8250 2000-08-02 Jakub Jelinek <jakub@redhat.com>
8252 * loop.c (scan_loop): Ensure update_end label does not
8253 go away until reg_scan_update is run.
8255 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
8257 * c-common.h: Prototype min_precision and c_build_qualified_type here...
8258 * c-tree.h: ... not here.
8259 * errors.h: Prototype fancy_abort.
8261 * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
8262 HOST_BITS_PER_WIDE_INT == 64 ifdef block.
8263 * regrename.c (regrename_optimize): Make control flow explicit.
8264 (replace_reg_in_block): Initialize reg_use to 0.
8266 * i386.c (legitimate_address_p): Rename error label to
8267 report_error to avoid namespace clash.
8269 2000-08-02 Kazu Hirata <kazu@hxi.com>
8271 * fold-const.c: Fix formatting.
8273 Wed Aug 2 16:26:15 MET DST 2000 Jan Hubicka <jh@suse.cz>
8275 * i386.c (legitimate_address_p): Accept other bases than
8276 pic_offset_table_rtx for GOTOFF constructs.
8278 Wed Aug 2 15:59:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
8280 * i386.md (shift to lea splitter): Use const_int_operand.
8282 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
8284 * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
8285 cppspec.c: Do not use 'legal' or 'illegal' in error messages
8288 * cppmain.c (cb_define, cb_undef): Don't generate any output
8289 if not done_initializing.
8290 * cpplex.c (maybe_paste_with_next): When the token after a ##
8291 is an omitted rest argument, only delete the token before it
8292 if that token is a comma. Do not warn about bogus token
8293 pastes for , ## rest_arg.
8296 * cpp.1: Regenerate.
8298 2000-08-02 Fred Fish <fnf@be.com>
8300 * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
8301 when user gives -p option. Add init_term_dyn.o for BeOS 5.0
8304 * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
8305 Be directories to search path.
8307 Remove support for __declspec(dllimport) and __declspec(dllexport).
8308 This is leftover cruft from the earlier BeOS gcc port when BeOS
8309 used Microsoft's PE object file format.
8310 * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
8311 * config/i386/t-beos (winnt.o): Remove Makefile frag.
8312 * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
8313 (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
8314 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
8315 (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
8316 (REDO_SECTION_INFO_P): Remove.
8317 (ASM_EXPORT_DECL): Remove.
8318 (ASM_DECLARE_FUNCTION_NAME): Remove.
8319 (ASM_DECLARE_OBJECT_NAME): Remove.
8320 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
8321 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
8322 (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
8323 (STRIP_NAME_ENCODING): Remove.
8325 Remove support for obsolete version of BeOS that is no longer
8327 * configure.in (i*86-*-beospe*): Remove.
8328 * config/i386/beos-pe.h: Remove.
8330 2000-08-01 Jeffrey Oldham <oldham@codesourcery.com>
8331 Mark Mitchell <mark@codesourcery.com>
8333 * Makefile.in (OBJS): Added dce.o.
8334 (ssa.o): Updated target to include ssa.h.
8336 (toplev.o): Likewise.
8337 (dce.o): Created target.
8338 * basic-block.h: Added comments.
8339 (INVALID_BLOCK): Added definition.
8340 (connect_infinite_loops_to_exit): Added declaration.
8341 Moved SSA declarations to ssa.h.
8342 * flow.c: Added inclusion of ssa.h.
8343 (struct depth_first_search_dsS, depth_first_search_ds):
8345 (compute_immediate_postdominators): Added definition.
8346 (connect_infinite_loops_to_exit): Likewise.
8347 (flow_dfs_compute_reverse_init): Likewise.
8348 (flow_dfs_compute_reverse_add_bb): Likewise.
8349 (flow_dfs_compute_reverse_execute): Likewise.
8350 (flow_dfs_compute_reverse_finish): Likewise.
8351 * rtl.h (rtx/in_struct): Added use to determine insn necessity.
8352 (LABEL_P): Added definition.
8355 (BARRIER_P): Likewise.
8356 (JUMP_TABLE_DATA_P): Likewise.
8357 (INSN_DEAD_CODE_P): Likewise.
8358 * ssa.c: Replaced inclusions with ssa.h inclusion.
8359 (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
8360 (rename_registers): Removed unnecessary variables.
8361 * ssa.h: Created by moving declarations from ssa.c and
8363 * timevar.def: Defined TV_DEAD_CODE_ELIM.
8364 * toplev.c: Added ssa.h inclusion.
8365 (dump_file_index): Added DFI_dce.
8366 (dump_file): Added "dce" entry.
8368 (f_options): Added dce entry.
8369 * invoke.texi: Document -fdce. Emphasize experimental status of
8373 2000-08-01 Zack Weinberg <zack@wolery.cumb.org>
8375 * cpperror.c (v_message): Split into _cpp_begin_message and
8376 v_message macro. All callers updated.
8377 (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
8380 * cppfiles.c (cpp_syshdr_flags): New function.
8381 (read_include_file): Don't call cpp_output_tokens. Call
8383 * cppinit.c (dump_macros_helper): Moved to cppmain.c.
8384 (cpp_reader_init): Don't initialize token_buffer. Call
8385 _cpp_init_internal_pragmas.
8386 (cpp_cleanup): Don't clear token_buffer.
8387 (cpp_start_read): Don't worry about output from -D processing.
8388 Don't call cpp_output_tokens.
8389 (cpp_finish): Don't dump macros here. Don't call
8391 * cppmacro.c (_cpp_dump_definition): Rename
8392 cpp_dump_definition. Write directly to a FILE *.
8393 (dump_funlike_macro): Delete.
8394 (dump_macro_args): New.
8396 * cpplex.c (TOKEN_LEN): Convert to inline function.
8397 (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
8398 cpp_scan_line, _cpp_dump_list): Delete.
8399 (cpp_printf, cpp_output_list): New.
8400 (output_line_command): Don't worry about entering or leaving files.
8401 (cpp_scan_buffer): Just output each token as we hit it.
8402 (process_directive): Don't call cpp_output_tokens.
8403 (_cpp_glue_header_name): Don't use token_buffer.
8404 (output_token, dump_param_spelling): Write directly to a FILE *.
8406 * cpplib.c (pass_thru_directive, dump_macro_name,
8407 pragma_dispatch, do_pragma_gcc): Delete.
8408 (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
8409 do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
8411 (do_error, do_warning, pragma_dependency): Call
8412 _cpp_begin_message, then cpp_output_list.
8413 (cpp_register_pragma, cpp_register_pragma_space,
8414 _cpp_init_internal_pragmas): New.
8415 (do_pragma): Walk the pragmas table here.
8416 (do_pragma_once, do_pragma_poison, do_pragma_system_header,
8417 do_pragma_dependency): Return void.
8418 (do_pragma_implementation): Moved to cppmain.c.
8420 * cpplib.h: Update prototypes.
8421 (struct cpp_reader): Remove printer, token_buffer,
8422 token_buffer_size, and limit. Add struct cb, and pragmas.
8423 (struct cpp_printer): Remove last_id and written.
8424 (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
8425 CPP_ADJUST_WRITTEN): Delete.
8426 * cpphash.h: Update prototypes.
8427 (ufputs): New wrapper.
8429 * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
8430 cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
8431 (main): Set up callbacks. Register #pragma implementation.
8432 Dump macros from here.
8434 2000-08-01 Geoff Keating <geoffk@cygnus.com>
8436 * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
8437 * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
8438 * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
8439 insns if they have a REG_MAYBE_DEAD note attached.
8440 * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
8441 (rs6000_emit_load_toc_table): TOC loads may go dead.
8443 2000-08-01 Jim Wilson <wilson@cygnus.com>
8445 * config/ia64/ia64.c (ia64_function_arg): Fix last change. Verify
8446 type exists before using it. Use number of words as alignment
8448 (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
8449 ia64_va_arg): Propagate ia64_function_args changes here.
8451 2000-08-01 Richard Henderson <rth@cygnus.com>
8453 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
8454 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8456 2000-08-01 Bernd Schmidt <bernds@cygnus.co.uk>
8458 From Joern Rennecke:
8459 * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
8460 * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
8461 unless TARGET_SH3E is set.
8462 * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
8464 * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
8465 (ashlsi3_std): New pattern.
8466 (ashlsi3 expander): Use it for TARGET_SH3.
8467 * sh.c (gen_ashift): Use it instead of ashlsi3_k.
8469 Tue Aug 1 12:34:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
8471 * loop.c (canonicalize_condition): Use destination, not source to
8472 determine SET's mode.
8474 2000-07-31 Mark Mitchell <mark@codesourcery.com>
8476 * flow.c (clear_log_links): Fix typo.
8478 Mon Jul 31 22:19:24 2000 Jeffrey A Law (law@cygnus.com)
8480 * loop.c (check_dbra_loop): Make change from July 17, 2000 work
8481 on targets which need more than one insn for a compare/cbranch
8484 2000-07-31 Jim Wilson <wilson@cygnus.com>
8486 * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
8487 when computing offset.
8489 Mon Jul 31 20:35:50 2000 Denis Chertykov <denisc@overta.ru>
8491 * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
8493 2000-07-31 Geoff Keating <geoffk@cygnus.com>
8495 * flow.c (clear_log_links): Nuke global_live_at_start and
8496 global_live_at_end data, since if the log_links stuff is invalid
8497 so is global_live_at_*.
8499 2000-07-31 Richard Henderson <rth@cygnus.com>
8501 * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
8503 2000-07-31 Jakub Jelinek <jakub@redhat.com>
8505 * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
8506 (_cpp_get_token): Don't macro expand a just pasted token if it
8507 was pasted at no_expand_level.
8509 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
8511 * cppmacro.c (find_param, count_params, save_expansion):
8512 Permit 'defined' as a macro parameter name.
8514 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
8516 * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
8517 xcpp to cpp throughout.
8518 (native): Remove unnecessary dependency on cpp.
8520 * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
8521 tradcpp to tradcpp0.
8522 (.i spec): Add missing output-file spec to cc1 command line.
8523 * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
8525 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
8527 * c-decl.c (mesg_implicit_function_declaration): Init to -1.
8528 (implicit_decl_warning): New function.
8529 (implicitly_declare): Use it.
8530 * c-typeck.c (build_external_ref): Use implicit_decl_warning
8531 to complain about implicit decls of builtins.
8533 * c-lang.c (lang_init): Set mesg_implicit_function_declaration
8534 based on pedantic && flag_isoc99, if not already set.
8535 * c-tree.h: Declare mesg_implicit_function_declaration.
8536 Prototype implicit_decl_warning.
8538 2000-07-30 Jeffrey D. Oldham <oldham@codesourcery.com>
8540 * Makefile.in (ssa.o): Updated header files in dependences.
8541 * basic-block.h: Added compute_immediate_postdominators declaration.
8542 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
8544 * flow.c (compute_immediate_dominators): Updated comment.
8545 (compute_immediate_postdominators): Added definition.
8546 * rtl.h (HARD_REGISTER_P): Added definition.
8547 * ssa.c: Include additional header files.
8548 (assert): Added definition.
8549 (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
8550 include select hard registers.
8551 (ssa_rename_to_insert): Likewise.
8552 (ssa_rename_from_initialize): Likewise.
8553 (ssa_rename_from_lookup): Likewise.
8554 (original_register): Likewise.
8555 (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
8556 include select hard reigsters.
8557 (ssa_rename_from_traverse): Likewise.
8558 (ssa_rename_from_free): Likewise.
8559 (ssa_rename_from_print): Likewise.
8560 (ssa_rename_from_print_1): Likewise.
8561 (ssa_rename_from_hash_function): Likewise.
8562 (ssa_rename_from_equal): Likewise.
8563 (ssa_rename_from_delete): Likewise.
8564 (simplify_to_immediate_dominators): Removed in favor of
8565 flow.c:compute_immediate_dominators.
8566 (find_evaluations_1): Modified to work with hard registers.
8567 (insert_phi_node): Likewise.
8568 (insert_phi_nodes): Likewise.
8569 (struct rename_set_data): Updated prev_reg comment.
8570 (create_delayed_rename): Modified to work with hard registers.
8571 (RENAME_NO_RTX): Updated comment.
8572 (apply_delayed_renames): Modified to work with hard registers.
8573 (rename_insn_1): Likewise and added handling of CLOBBER rtls.
8574 (rename_block): Updated to use revised ssa_rename_to interface.
8575 (rename_registers): Updated to use revised ssa_rename_to and
8576 ssa_rename_from interface.
8577 (convert_to_ssa): Revised to use compute_immediate_dominators and
8578 deal with hard registers.
8579 (make_regs_equivalent_over_bad_edges): Modified to work with hard
8580 registers. Added check for illegal unification of hard register.
8581 (make_equivalent_phi_alternatives_equivalent): Modified to work
8582 with hard registers.
8583 (compute_conservative_reg_partition): Likewise.
8584 (coalesce_if_unconflicting): Modified to work with hard registers
8585 and check for conflicting hard registers.
8586 (mark_phi_and_copy_regs): Revised loop to work only on pseudo
8588 (rename_equivalent_regs_in_insn): Modified to work with hard
8590 (record_canonical_element_1): Added definition.
8591 (check_hard_regs_in_partition): Added definition.
8592 (convert_from_ssa): Added data structure deallocation and check
8593 for illegal hard register unification.
8594 (conflict_hard_regs_p): Added definition.
8595 * toplev.c (rest_of_compilation): Added comment.
8597 2000-07-31 Anthony Green <green@redhat.com>
8599 * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
8601 2000-07-31 Jason McMullan <jmcmullan@linuxcare.com>
8603 * builtins.c (expand_builtin_apply): Don't defer pop during
8606 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8608 * calls.c (combine_pending_stack_adjustment_and_call): Only use
8609 preferred_unit_stack_boundary when it is > 1.
8611 2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk>
8613 * c-common.c (init_function_format_info): Add C99 format functions
8616 * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
8617 void' or 'register void' as being the special case of 'void' alone
8618 in a parameter list.
8620 * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
8621 discarding qualifiers into a plain warning.
8623 2000-07-31 Kazu Hirata <kazu@hxi.com>
8625 * combine.c: Fix formatting.
8627 * h8300.md: Fix formatting.
8629 * local-alloc.c: Fix formatting.
8631 * h8300.c (get_shift_alg): Remove the variable alg.
8632 (emit_a_shift): Rearrange code to improve readability.
8634 * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
8636 * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
8637 HImode on all architectures and a combination of HImode and SImode
8638 on H8/300H and H8/S.
8640 * h8300.c (split_adds_subs): Rearrange code for conciseness.
8642 Mon Jul 31 12:27:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
8644 * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
8647 Mon Jul 31 10:41:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
8649 * recog.c (extract_insn): Set operand_mode according to
8650 operand if match_operand is VOIDmode.
8652 Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
8654 * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
8656 2000-07-31 Geoff Keating <geoffk@cygnus.com>
8658 * c-parse.in (extdefs): Call ggc_collect between external
8661 2000-07-30 Michael Hayes <mhayes@cygnus.com>
8662 Richard Henderson <rth@cygnus.com>
8664 * Makefile.in (OBJS): Add doloop.o.
8665 * doloop.c: New file.
8667 * final.c (insn_current_reference_address): Return 0 before final.
8668 * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
8669 * jump.c (any_uncondjump_p): Likewise.
8670 * loop.c (indirect_jump_in_function): Make static.
8671 (strength_reduce): Call doloop_optimize.
8672 (insert_bct, instrument_loop_bct): Remove.
8673 * loop.h (doloop_optimize): Prototype.
8674 * recog.c (split_all_insns): Split all INSN_P.
8675 * toplev.c (flag_branch_on_count_reg): Default on.
8677 * config/c4x/c4x.c (c4x_optimization_options): Don't set
8678 flag_branch_on_count_reg.
8679 * config/i386/i386.c (override_options): Likewise.
8680 * config/rs6000/rs6000.c (optimization_options): Likewise.
8682 * config/i386/i386.md (decrement_and_branch_on_count): Remove.
8684 (dbra_ge): Remove, as well as all it's splitters.
8686 * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
8689 * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
8690 (ia64_register_move_cost): Declare.
8691 * config/ia64/ia64.c (ar_lc_reg_operand): New.
8692 (struct ia64_frame_info): Add ar_size.
8693 (ia64_compute_frame_size): Set it.
8694 (save_restore_insns): Save and restore ar.lc.
8695 (ia64_register_move_cost): New, moved from header file. Handle
8696 application registers.
8697 (REG_AR_PFS, REG_AR_EC): Remove. Replace with AR_*_REGNUM numbers.
8698 (emit_insn_group_barriers): Special case doloop_end_internal.
8699 (ia64_epilogue_uses): Mark ar.lc live at end.
8700 * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
8701 (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
8702 (FIRST_PSEUDO_REGISTER): Make room.
8703 (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
8704 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
8705 (REG_ALLOC_ORDER): Update.
8706 (HARD_REGNO_MODE_OK): Update.
8707 (REGISTER_NAMES): Update.
8708 (enum reg_class): Add AR_M_REGS and AR_I_REGS.
8709 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
8710 (REGNO_REG_CLASS): Update.
8711 (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
8712 (REGISTER_MOVE_COST): Move out of line.
8713 (PREDICATE_CODES): Update.
8714 * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
8715 (addsi3_plus1_alt, adddi3_plus1_alt): New.
8716 (shladd_elim splitter): Allow constants in the predicate.
8717 (doloop_end, doloop_end_internal): New.
8719 2000-07-30 Richard Henderson <rth@cygnus.com>
8721 * genattrtab.c (struct insn_def): Add lineno member.
8722 (struct insn_ent): Likewise.
8723 (struct attr_desc): Likewise.
8724 (struct delay_desc): Likewise.
8725 (struct function_unit_op): Likewise.
8726 (struct function_unit): Likewise.
8727 (check_attr_value): Use message_with_line.
8728 (check_defs): Likewise.
8729 (expand_units): Likewise.
8730 (check_attr_test): Take a lineno argument.
8731 (gen_attr): Likewise.
8732 (gen_insn): Likewise.
8733 (gen_delay): Likewise.
8734 (gen_unit): Likewise.
8735 (main): Give it to them.
8736 (convert_set_attr_alternative): Take an insn_def argument
8737 instead of num_alt and insn_index.
8738 (convert_set_attr): Likewise.
8739 (write_test_expr): Protect INSN_ADDRESSES load
8740 with INSN_ADDRESSES_SET_P.
8742 2000-07-30 Richard Henderson <rth@cygnus.com>
8744 * flow.c (init_propagate_block_info): Use pc_set.
8746 Sun Jul 30 20:58:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
8748 * i386.md (*lea_general_[123]) New insns and splits.
8749 (addsi3 to lea splitter): Handle other modes too.
8750 (shlsi3 to lea splitter): Likewise.
8751 (addhi_1_lea, shlhi_1_lea): New patterns.
8752 (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
8754 Sun Jul 30 20:51:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
8756 * recog.c (general_operand, nonimmediate_operand): Accept
8757 any mode for VOIDmode CONSTANT_P operands.
8759 Sun Jul 30 20:42:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
8761 * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
8762 instead of replace_rtx.
8763 * recog.c (validate_replace_rtx_subexp): New function.
8764 * recog.h (validate_replace_rtx_subexp): Declare.
8766 Sun Jul 30 20:38:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
8768 * combine.c (simplify_set, make_extraction, make_compound_operation
8769 make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
8770 as force_to_mode argument.
8772 Sun Jul 30 20:30:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
8774 * combine.c (if_then_else_cond): Be sure that mode fits in
8777 Sun Jul 30 20:27:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
8779 * combine.c (record_promoted_value): Allow bitsize of mode
8780 to be equivalent to HOST_BITS_PER_WISE_INT.
8782 Sun Jul 30 20:25:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
8784 * function.c (assign_stack_local_1, assign_stack_temp_for_type):
8785 Do not call gen_mode_alignment when mode is BLKmode.
8787 Sun Jul 30 20:21:54 MET DST 2000 Jan Hubicka <jh@suse.cz>
8789 * loop.c (express_from_1): Fix call of simplify_gen_binary.
8791 Sun Jul 30 20:08:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
8793 * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
8794 VOIDmode implies both operands to be VOIDmode.
8795 (simplify_ternary_operation): Compute properly the mode of comparison.
8796 * combine.c (combine_simplify_rtx): Likewise.
8798 2000-07-25 Michael Hayes <mph@paradise.net.nz>
8800 * basic-block.h (struct loops): New field rc_order.
8801 * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
8802 (flow_loops_free): Free rc_order.
8803 (flow_depth_first_order_compute): New parameter rc_order.
8804 (flow_loops_find): Allocate rc_order and swap usage with
8807 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8808 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8810 * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
8811 (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
8812 (nodb_call, return_from_epilogue): Likewise.
8813 (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
8814 * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
8815 * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
8816 (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
8817 (c4x_valid_type_attribute_p): Likewise.
8818 * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
8819 (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
8821 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8823 * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
8824 and loadhi_big_constant if applicable.
8825 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
8826 and add new splitter.s
8828 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8830 * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
8832 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8834 * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
8836 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8838 * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
8840 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8842 * config/c4x/libgcc.S (divqf3): Improve accuracy.
8844 2000-07-27 Mark Mitchell <mark@codesourcery.com>
8846 Put phi nodes after NOTE_INSN_BASIC_BLOCK.
8847 * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
8848 * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
8849 (get_prev_bb_note): Likewise.
8850 (remove_scope_notes): Likewise.
8851 * flow.c (commit_one_edge_insertion): Likewise.
8852 (merge_blocks_nomove): Likewise.
8853 (verify_flow_info): Likewise.
8854 * gcse.c (insert_insn_end_bb): Likewise.
8855 * reg-stack.c (emit_swap_insn): Likewise.
8856 * ssa.c (first_insn_after_basic_block_note): New function.
8857 (insert_phi_node): Use it.
8858 (rename_block): Likewise.
8859 (eliminate_phi): Likewise.
8860 (make_regs_equivalent_over_bad_edges): Likewise.
8861 (make_equivalent_phi_alternatives_equivalent): Likewise.
8862 (for_each_successor_phi): Likewise.
8863 (convert_from_ssa): Modify phi-node deletion algorithm.
8865 2000-07-29 Andreas Jaeger <aj@suse.de>
8867 * configure.in (mips*-*-linux*): Use mips*el to check for little
8868 endian MIPS, add tmake_file.
8870 * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
8871 (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
8872 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
8874 2000-07-28 Richard Henderson <rth@cygnus.com>
8876 * config/ia64/ia64.c (ia64_print_operand): Fix typos.
8877 Sign extend mode size before negating.
8879 2000-07-28 Richard Henderson <rth@cygnus.com>
8881 * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
8883 2000-07-28 Bernd Schmidt <bernds@cygnus.co.uk>
8885 * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
8886 (cse_insn): Likewise.
8887 (addr_affects_sp_p): Likewise.
8888 * expr.c (move_by_pieces): Likewise.
8889 (clear_by_pieces): Likewise.
8890 * gcse.c (oprs_unchanged_p): Likewise.
8891 * haifa-sched.c (sched_analyze_2): Likewise.
8892 * recog.c (offsettable_address_p): Likewise.
8893 * regclass.c (record_address_regs): Likewise.
8894 * reload.c (find_reusable_reload): Likewise.
8895 (push_reload): Likewise.
8896 (operands_match_p): Likewise.
8897 (decompose): Likewise.
8898 (find_reloads_address_1): Likewise.
8899 (find_inc_amount): Likewise.
8900 * reload1.c (elimination_effects): Likewise.
8901 * resource.c (mark_set_resources): Likewise.
8902 * flow.c (attempt_auto_inc): New function; mostly broken out
8904 (find_auto_inc): Split into two functions and enhanced to
8905 generate POST_MODIFY.
8906 * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
8907 * rtl.h (count_all_occurrences): Declare.
8908 (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
8910 * rtlanal.c (count_all_occurrences): New function.
8911 * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
8912 HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
8914 * config/ia64/ia64-protos.h (destination_operand): Declare.
8915 * config/ia64/ia64.c (destination_operand): New function.
8916 (ia64_print_operand): Handle POST_MODIFY.
8917 (rtx_needs_barrier): Likewise.
8918 * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
8919 (HAVE_POST_MODIFY_REG): Define to 1.
8920 (MAX_REGS_PER_ADDRESS): Change to 2.
8921 (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
8922 (LEGITIMATE_ADDRESS_REG): New helper macro.
8923 (LEGITIMATE_ADDRESS_DISP): Likewise.
8924 (PREDICATE_CODES): Add entry for destination_operand.
8925 * config/ia64/ia64.md (all mov patterns): Use destination_operand
8926 predicate for operand 0.
8928 2000-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8930 * dwarf2out.c: Indent #error directive.
8932 * gbl-ctors.h: Fix typo in comment.
8933 (__do_global_ctors): Prototype.
8935 * gcse.c (record_one_set, pre_delete): Remove unused variables.
8937 * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
8938 (print_operand): Initialize variable `t'.
8940 2000-07-27 Aldy Hernandez <aldyh@redhat.com>
8942 * config/arm/arm.md ("call_value"): removed constraints.
8943 Constraints are ignored in expanders.
8944 (*call_value_reg): split =rf into various constraints.
8945 (*call_value_mem): same
8946 (*call_value_symbol): same
8947 (*sibcall_value_insn): same
8949 2000-07-28 Philipp Thomas <pthomas@suse.de>
8951 * install.texi (--enable-nls): Change the description of the NLS
8952 related configure options to match the current state.
8953 (--with-included-gettext): Likewise.
8954 (--enable-maintainer-mode): New description added.
8955 * extend.texi (-fstrict-prototype): Add missing '.'.
8957 2000-07-27 Jim Wilson <wilson@cygnus.com>
8959 * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
8960 DECL_INITIAL (decl) == NULL_TREE.
8962 2000-07-27 Alexandre Oliva <aoliva@redhat.com>
8964 * Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
8965 on insn-attr.h with it.
8966 * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
8967 * insn-addr.h: New header.
8968 (insn_addresses_): Renamed from insn_addresses.
8969 (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
8970 INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
8971 INSN_ADDRESSES_NEW): New macros.
8972 * genattrtab.c (write_test_expr): Use new macros.
8973 * final.c (insn_addresses, init_insn_lengths): Likewise.
8974 (align_fuzz, shorten_branches): Likewise.
8975 (final): Likewise. Do not reject new insns if their addresses
8976 have been added to INSN_ADDRESSES.
8977 * config/arm/arm.c, config/avr/avr.c: Use new macros.
8978 * config/h8300/h8300.c, config/i370/i370.c: Likewise.
8979 * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
8980 * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
8981 * config/sh/sh.c: Likewise.
8982 (output_branchy_insn): Use INSN_ADDRESSES_NEW.
8984 * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
8986 2000-07-27 Andrew Cagney <cagney@b1.cygnus.com>
8988 * gcc.c (struct prefix_list): Add member priority.
8989 (enum path_prefix_priority): Declare.
8990 (add_prefix): Replace ``first'' with ``priority''. Append new
8991 entry but keep list in priority order.
8992 (process_command): Update. Pass PREFIX_PRIORITY_B_OPT or
8993 PREFIX_PRIORITY_LAST to add_prefix.
8994 (process_command): Move include kludge - foo/stageN - to before
8997 2000-07-27 Jason Merrill <jason@redhat.com>
8999 * dwarf2out.c (gen_typedef_die): Abort if we get identical
9000 TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
9002 2000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
9004 * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
9005 * tree.h (get_alias_set, lang_get_alias_set): Prototype.
9007 2000-07-27 Joseph S. Myers <jsm28@cam.ac.uk>
9009 * c-decl.c (finish_function): Don't treat 'main' specially unless
9010 flag_hosted. In C99 mode, return 0 from 'main' unless
9011 DEFAULT_MAIN_RETURN is otherwise defined.
9013 * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
9014 parameters defaulting to int in an old-style function definition.
9016 2000-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9018 * c-parse.in (string): For -Wtraditional, warn about string
9019 concatenation only once per line.
9021 Thu Jul 27 09:25:17 2000 Akiko Matsushita <matusita@sra.co.jp>
9023 * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
9024 for HI-UX/WE2 systems.
9026 2000-07-24 Bruce Korb <bkorb@gnu.org>
9028 * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
9029 defining the __xxx_TYPE__ macros.
9030 * fixincl/fixincl.tpl(gnu_type_map): now obsolete
9031 * fixincl/fixlib.h: don't need to include "tm.h" anymore
9032 * fixincl/inclhack.def(type_map): now obsolete
9034 Thu Jul 27 11:54:17 2000 Andrew Cagney <cagney@b1.cygnus.com>
9036 * cpp.texi: Append a trailing full-stop to xrefs where needed.
9038 2000-07-26 Dave Pitts <dpitts@cozx.com>
9040 * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
9042 (mvs_hash_alias): New function.
9043 (mvs_add_alias): Change argument spacing.
9044 (mvs_need_alias): Change aliasing criteria. Added documentation.
9045 (mvs_get_alias): Change to use hashed name. The hashed name prevents
9046 CSECT name collisions.
9047 (mvs_check_alias): Likewise.
9048 (handle_pragma): Change documentation.
9049 * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
9050 mode from SImode to DImode.
9051 (iorhi3): Changed LTORG size for insn.
9053 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
9055 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
9056 mem if the address is a mode_dependent_address_p.
9058 2000-07-26 Kazu Hirata <kazu@hxi.com>
9060 * h8300.c (print_operand): Print ":8" when the 'R' operand is
9061 suitable for 8-bit absolute.
9062 * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
9063 (OK_FOR_U): Add a case for the 8-bit constant address on the
9066 Wed Jul 26 19:26:21 2000 Hans-Peter Nilsson <hp@axis.com>
9068 * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
9069 && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
9070 ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
9071 lack of implemented alignment.
9073 2000-07-26 Geoffrey Keating <geoffk@cygnus.com>
9075 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
9076 cross-compiling between 64-bit and 32-bit machines.
9078 2000-07-27 Richard Henderson <rth@cygnus.com>
9080 * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
9081 (movhicc_astep, movhi_internal_astep): New.
9082 (movsicc_astep, movsi_internal_astep): New.
9083 (movdicc_astep, movdi_internal_astep): New.
9084 (movsfcc_astep, movsf_internal_astep): New.
9085 (movdfcc_astep, movdf_internal_astep): New.
9086 (movxfcc_astep, movxf_internal_astep): New.
9087 (cmovdi_internal_astep, cmovsi_internal_astep): New.
9088 Unify the cmov[ds]i splitters.
9090 2000-07-27 Rodney Brown <RodneyBrown@pmsc.com>
9092 * real.c (asctoeg): Rename `error' label to unexpected_char_error
9094 2000-07-26 Nick Clifton <nickc@cygnus.com>
9096 * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
9097 __arm__. Allow it to be defined by CPP_ISA_SPEC in arm.h
9099 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
9100 well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
9102 2000-07-26 Alexandre Oliva <aoliva@redhat.com>
9104 * c-decl.c (finish_enum): Convert enumerations that fit in an
9106 (build_enumerator): In pedantic mode, cast to `int' those that
9109 2000-07-25 Rodney Brown <RodneyBrown@pmsc.com>
9111 * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
9113 Tue Jul 25 23:08:33 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9115 * sh.md (cmpgtdi_t): Must be split.
9116 (cmpgtdi_t+1): New splitter.
9118 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
9120 * cpplib.c (_cpp_check_directive): Issue -Wtraditional
9121 warnings for indented directives even if we are skipping.
9123 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
9125 * invoke.texi (strict-prototypes): Remove.
9126 * extend.texi (Deprecated Features): Add strict-prototypes.
9127 (Backwards Compatibility): New node.
9129 2000-07-25 Jakub Jelinek <jakub@redhat.com>
9131 * config/i386/i386.md (andsi_1+1): Allow HImode.
9132 (andsi_1+2): Require q_regs_operand.
9134 2000-07-25 Jakub Jelinek <jakub@redhat.com>
9136 * config/i386/i386.md (call_pop): Check operands[0],
9137 not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
9139 (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
9140 (call_value): Likewise.
9142 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
9144 * toplev.c (pipe_closed): Delete.
9145 (crash_signal): New. Generate ICE for a fatal signal.
9146 (float_signal): Call crash_signal outside a float-handler
9148 (main): Install crash_signal as handler for core-dumping signals.
9150 2000-07-25 David Edelsohn <edelsohn@gnu.org>
9152 * rs6000.c (print_operand, case 'T'): New case.
9154 * rs6000.md (call_indirect_aix32): Convert to expander of
9155 scheduled instructions.
9156 (call_indirect_aix64): Likewise.
9157 (call_value_indirect_aix{32,64}): Likewise.
9158 (call, call_value): Invoke expanders for AIX. Fall through to
9160 (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
9161 (call_value_indirect_nonlocal_aix{32,64}): New patterns.
9162 (call_nonlocal_aix32): Remove CALL_LONG alternative. Operand 1
9163 only "g" constraint.
9164 (call_nonlocal_aix64): Likewise.
9165 (call_value_nonlocal_aix{32,64}): Likewise.
9166 (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
9168 (call_value_nonlocal_sysv): New pattern.
9169 (indirect_jump{si,di}): Use new 'T' modifier.
9170 (tablejump{si,di} matchers): Likewise.
9171 (return_internal_{si,di}): Likewise.
9172 (return_eh_{si,di}): Likewise.
9174 2000-07-24 Richard Henderson <rth@cygnus.com>
9176 * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
9177 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
9178 * config/ia64/ia64.md (movdi_internal): Use it.
9180 2000-07-24 Zack Weinberg <zack@wolery.cumb.org>
9182 * cppexp.c: Warn about unary + if -Wtraditional.
9183 * cpplex.c (lex_line): Always set BOL on the first token of a line.
9185 2000-07-24 Michael Meissner <meissner@redhat.com>
9187 * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
9190 2000-07-24 Nick Clifton <nickc@cygnus.com>
9192 * config/arm/arm.c (emit_multi_reg_push): Generate a
9193 REG_FRAME_RELEATED_NOTE that is compatable with the code in
9194 dwarf2out_debug_frame_expr.
9196 2000-07-24 Jason Merrill <jason@redhat.com>
9198 * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
9199 UNALIGNED_INT_ASM_OP.
9200 (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
9201 a location expression.
9202 (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff. Don't
9203 assume indirect access if we're saving the CFA address exactly.
9205 * Makefile.in (bootstrap): Move -BstageN/ to the end.
9207 2000-07-24 Jakub Jelinek <jakub@redhat.com>
9209 * tradcpp.c (main): Update max_include_len for cpp_include_defaults
9212 2000-07-24 Michael Meissner <meissner@redhat.com>
9214 * invoke.texi (D30V Options): Add d30v options.
9216 Mon Jul 24 02:04:52 2000 Jeffrey A Law (law@cygnus.com)
9218 * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
9219 needed by our gcse pass anymore.
9220 (free_pre_mem): Corresponding changes.
9221 (compute_pre_data): Do not call compute_transpout anymore.
9223 * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
9224 (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
9227 * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
9228 (compute_pre_data): Do it here instead.
9230 * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
9232 (pre_delete): Corresponding changes.
9234 2000-07-23 Mark Mitchell <mark@codesourcery.com>
9236 * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
9237 to figure out whether or not a variable has already been emitted.
9239 Sun Jul 23 14:49:12 2000 Jason Eckhardt <jle@cygnus.com>
9241 * config/i860/i860.md (untyped_call expander): Use GEN_CALL
9242 instead of gen_call.
9244 Sun Jul 23 11:52:03 2000 George Helffrich (george@gly.bris.ac.uk)
9246 * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
9248 2000-07-23 Kazu Hirata <kazu@hxi.com>
9250 * h8300.c: Fix formatting.
9252 2000-07-23 Joseph S. Myers <jsm28@cam.ac.uk>
9254 * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
9255 for `long' switch expression into a plain warning.
9257 * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
9258 (yylex): Don't pedwarn for "inline" in C99 mode.
9260 * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
9262 * ggc-page.c (debug_print_page_list, alloc_page, free_page,
9263 ggc_alloc): Likewise.
9264 * bb-reorder.c (dump_scope_forest_1): Likewise.
9266 2000-07-22 Aldy Hernandez <aldyh@redhat.com>
9268 * reload.c (find_reloads_toplev): Add new parameter
9270 (find_reloads): Add new parameter to find_reloads_toplev calls.
9272 2000-07-22 Jeffrey Oldham <oldham@codesourcery.com>
9274 * collect2.c (main): Typo fixed.
9275 * diagnostic.c: Typo fixed.
9276 * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
9277 * eh-common.h: Typo fixed.
9278 * emit-rtl.c (start_sequence): Typo fixed.
9279 * flow.c (find_label_refs): Typo fixed.
9280 (calculate_global_regs_live): Typo fixed.
9281 (mark_regno_cond_dead): Typo fixed.
9282 (create_edge_list): Typos fixed.
9283 (verify_edge_list): Typo fixed.
9284 * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
9285 * loop.c (strength_reduce): Typo in function name fixed.
9286 * rtl.h: Added comments. Typo in function name fixed.
9287 * rtlanal.c: Typo in function name fixed.
9288 (insn_dependant_p): Rename to ...
9289 (insn_dependent_p): ... this.
9290 (computed_jumo_p): Typo fixed.
9292 2000-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9294 * system.h (__FUNCTION__): Wrap definition in #ifndef.
9296 2000-07-21 David Edelsohn <edelsohn@gnu.org>
9298 * rs6000.h (SIZE_TYPE): Define.
9300 2000-07-21 Mark Mitchell <mark@codesourcery.com>
9302 * ssa.c (rename_insn_1): Don't rename registers that are
9305 2000-07-21 Zack Weinberg <zack@wolery.cumb.org>
9307 * diagnostic.c (trim_filename, fancy_abort): Moved here from
9309 (fatal_function, set_fatal_function): Removed.
9310 (fatal): Don't prepare for or call the fatal_function.
9311 (diagnostic_lock, error_recursion): New.
9312 (diagnostic_for_decl, report_diagnostic): Guard against
9313 re-entering the error reporting routines.
9314 (fancy_abort): Assume function is not NULL.
9316 * errors.c (fancy_abort): New. Assume function is not NULL.
9317 * tradcpp.c (fancy_abort): Assume function is not NULL.
9319 * system.h: Provide default definition of __FUNCTION__.
9320 * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
9321 Always use __FUNCTION__ in definition of abort.
9323 * varray.h: Likewise.
9324 * toplev.h: Likewise. Don't prototype set_fatal_function.
9326 2000-07-20 Geoff Keating <geoffk@cygnus.com>
9328 * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
9330 * glimits.h: Don't do #if defined for ARCH_PPC.
9332 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
9333 constants of size no larger than a pointer should go in the TOC.
9334 Add 'MODE' parameter.
9335 (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
9336 ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
9337 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
9338 * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
9339 * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
9340 * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
9341 (rs6000_legitimize_address): Likewise.
9342 (rs6000_emit_move): Likewise.
9343 (rs6000_select_rtx_section): Likewise.
9344 (output_toc): Deal properly with outputting small constants like
9345 HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
9346 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
9347 MODE parameter. Put small constants in the TOC.
9349 * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
9351 (rs6000_emit_move): When reload calls us with an illegitimate
9352 address, exit early. Move the change_address calls to one place
9353 at the end of the routine. Merge the SImode and DImode expanders.
9354 When called by reload to put an integer into a FP register, force
9357 * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
9359 (rs6000_hash_constant): Hash mode too.
9360 (toc_hash_function): Allow for key_mode.
9361 (toc_hash_eq): Structures are different if key_mode differs.
9362 (output_toc): Add 'mode' parameter. Save key_mode.
9363 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
9364 Pass 'mode' parameter.
9365 * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
9367 * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
9368 for vtable references.
9370 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
9371 choice, don't put integer values in FP regs.
9373 Thu Jul 20 18:13:52 2000 Jeffrey A Law (law@cygnus.com)
9375 * flow.c (verify_flow_info): Revamp code to verify that the
9376 head and end of each basic block are in the insn chain.
9378 Thu Jul 20 18:02:35 2000 Michael Matz <matzmich@cs.tu-berlin.de>
9380 * gcse.c (record_one_set): Prepend instead of append onto
9381 reg_set_table, making it O(n) instead O(n^2).
9382 * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
9383 Use a queue instead of a stack as worklist.
9385 2000-07-20 Kazu Hirata <kazu@hxi.com>
9387 * h8300.c (two_insn_adds_subs_operand): Fix a typo.
9388 * h8300.h (OK_FOR_T): New.
9389 (EXTRA_CONSTRAINT): Support OK_FOR_T.
9390 * h8300.md: Use inc/dec.[wl] for increment/decrement
9391 by 1 and 2 in HI and SI modes.
9393 2000-07-20 Jim Wilson <wilson@cygnus.com>
9395 * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
9396 larger than 14 bits.
9398 2000-07-20 Zack Weinberg <zack@wolery.cumb.org>
9400 * cppmacro.c (CAN_PASTE_AFTER): New macro.
9401 (count_params): Don't set GNU_REST_ARGS on anything.
9402 (save_expansion): Set PASTE_LEFT only on tokens for which
9403 CAN_PASTE_AFTER is true, or which are named operators.
9405 * cpplex.c (parse_args): Distinguish between a rest argument
9406 given one empty argument, and a rest argument given zero arguments.
9407 (maybe_paste_with_next): Look for VOID_REST tag, and trigger
9408 deletion of previous token based on that.
9409 (get_raw_token): Flatten some control structure.
9411 * cpplib.h (CPP_LAST_EQ): Correct.
9412 (VOID_REST): New token flag.
9413 (GNU_REST_ARGS): Delete.
9415 * tradcpp.c (main): Don't munge -D options.
9416 (make_definition): Bring -D handling in line with cpplib.
9417 (do_define): Strip all leading whitespace from macro definitions.
9419 2000-07-20 David Billinghurst <David.Billinghurst@riotinto.com.au>
9421 * Makefile.in (tradcpp): Depend on intl.o and version.o.
9423 2000-07-20 Bruce Korb <bkorb@gnu.org>
9425 * fixincl/check.tpl: strip the platform specific types before testing
9426 * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
9427 * fixincl/fixincl.tpl: use platform specific types
9428 * fixincl/fixlib.h: include the platform specific types
9429 * fixincl/inclhack.def(gnu_types): don't supply the types
9430 * fixincl/fixincl.x: regen
9432 2000-07-19 Jim Wilson <wilson@cygnus.com>
9434 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
9437 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
9439 * tradcpp.c (rescan): Do not recognize directives when the #
9442 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
9444 Implement C++ named operators.
9446 * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
9447 of operators allowed in #if and having an _EQ variant. Add
9448 CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
9449 (cpp_token flags): Add NAMED_OP.
9450 (enum node_type): Add T_OPERATOR.
9451 (struct cpp_hashnode): Add code slot to value union.
9452 * cpphash.h (spec_nodes): Remove n_defined.
9454 * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
9455 (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
9456 (is_macro_disabled): Tweak error messages.
9458 * cpplib.c (get_define_node): Disallow all named operators as
9459 macro names. Tweak error messages.
9460 (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
9462 * cppinit.c (builtin_array): Add entries for the named operators.
9463 * cppexp.c (lex): Check for CPP_DEFINED token.
9464 (priority table): Add entries for CPP_MIN and CPP_MAX.
9465 (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
9467 2000-07-19 Bernd Schmidt <bernds@cygnus.co.uk>
9469 * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
9470 larger than the array of cuids.
9471 (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
9474 2000-07-19 Bruce Korb <bkorb@gnu.org>
9476 * fixinc/fixincl.c: Convert to using a table of environment variables
9477 and activate the auto-edit marker on the fixed output files.
9478 * fixinc/fixlib.h: Define the environment table
9479 * fixinc/fixincl.sh: export the ${INPUT} dir
9480 * fixinc/check.tpl: likewise
9482 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
9484 * gcc.c (.h spec): Fix typo.
9486 Wed Jul 19 01:22:15 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
9488 * Makefile.in: Fix tradcif.c path.
9490 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
9492 * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
9495 * cpphash.h (TOKEN_NAME): New macro.
9496 (_cpp_spell_operator): Deleted.
9497 (token_spellings): Now _cpp_token_spellings.
9499 * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
9500 * cpplex.c: Use OP and TK macros when expanding the
9501 TTYPE_TABLE. Eliminate token_names. For non-OPERATOR tokens,
9502 store the stringification of the enumeration name (CPP_CHAR,
9503 etc.) in the name slot of token_spellings.
9504 Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
9505 token_spellings directly.
9506 * cpplib.c: Use TOKEN_SPELL.
9508 * cpplex.c (_cpp_push_token): If the token being pushed back
9509 is the previous token in this context, just subtract one from
9511 * cppmacro.c (save_expansion): Clear aux field when storing a
9514 2000-07-18 Jakub Jelinek <jakub@redhat.com>
9516 * cpplex.c (cpp_scan_buffer): Output line command even at the stop
9517 buffer, provided it is not NULL.
9519 2000-07-18 Alexandre Oliva <aoliva@redhat.com>
9521 * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
9522 case of invalid volatile re-declaration.
9524 2000-07-18 Jakub Jelinek <jakub@redhat.com>
9526 * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
9527 (expand_call): Adjust caller.
9529 2000-07-17 Gabriel Dos Reis <gdr@codesourcery.com>
9531 * diagnostic.h (report_diagnostic): Change prototype.
9533 * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
9534 diagnostic_for_decl): Change prototype.
9535 (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
9536 error, warning, error_with_file_and_line,
9537 warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
9538 Adjust call to report_diagnostic, diagnostic_for_decl.
9539 (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
9540 (output_verbatim, verbatim): Adjust call to output_do_verbatim.
9542 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
9543 varaible argument list.
9545 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
9547 * cpphash.c: Don't include hashtab.h. Most macro-handling code
9548 moved to cppmacro.c.
9549 (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
9550 dump_hash_helper): Delete.
9551 (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
9552 cpp_forall_identifiers): New. Implement specialized version of
9553 Vlad's expandable hash table.
9554 (cpp_lookup): Use new functions.
9555 (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
9557 * cppmacro.c: New file.
9558 * cppinit.c (dump_macros_helper): New.
9559 (cpp_finish): Iterate over the identifier table directly.
9560 * cpplex.c (parse_name): Calculate the hash of the identifier
9561 while we scan it. Use _cpp_lookup_with_hash when we can.
9563 * cpphash.h: Update prototypes.
9564 (xcnewvec, HASHSTEP): New helper macros.
9565 * cpplib.h: Update prototypes.
9566 * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
9567 (cppmacro.o): New rule.
9568 (cpphash.o): Update deps.
9570 * cppmain.c: Do not set pfile->printer if no_output is on.
9572 2000-07-15 Neil Booth <neilb@earthling.net>
9574 * cpplib.c: Change all directive-handler functions to return
9576 * cpphash.h: Update typedefs.
9578 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
9580 * configure: Regenerate.
9582 * extend.texi (Extended Asm): Mention that a memory clobber
9583 does not count as a side-effect.
9585 * unroll.c (copy_loop_body): Fix one instance of using host
9586 arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
9589 * tlink.c (scan_linker_output): Tweak for output of AIX ld.
9591 2000-07-17 Richard Henderson <rth@cygnus.com>
9593 * config/ia64/ia64.md (movdi): Split out load address code.
9594 New post-reload splitter for symbolic operands.
9595 (movdi_internal): Abort if we didn't split symbolic operands
9596 when we should have.
9597 * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
9598 (ia64_reorg): Split insns when not optimizing.
9599 * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
9601 Mon Jul 17 23:43:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
9603 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
9604 instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
9606 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
9608 * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
9610 2000-07-17 Jason Merrill <jason@redhat.com>
9612 * Makefile.in (clean): Remove libgcc directory.
9614 * configure.in (-Wno-long-long check): Use higher-level macros.
9616 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
9618 * simplify-rtx.c (simplify_binary_operation): Recognize
9619 (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
9620 (simplify_ternary_operation): Do not examine MODE_BITSIZE of
9621 a CONST_INT, it will always be zero.
9623 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
9625 * loop.c (check_dbra_loop) : Return if more than one condition is
9626 present to control the loop.
9628 Mon Jul 17 08:26:35 2000 Clinton Popetz <cpopetz@cygnus.com>
9630 * mips.c (mips_expand_prologue): Don't calculate the last argument
9631 register unless we need it. When we are calculating this, make
9632 sure FUNCTION_ARG is giving us a REG.
9634 2000-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9636 * flow.c (libcall_dead_p): Use single_set to verify the insn
9637 has only one set and get for analysis.
9638 (propagate_one_insn): Don't pass the PATTERN of the insn.
9640 2000-07-17 Mark Klein <mklein@dis.com>
9642 * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
9644 2000-07-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
9646 * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
9647 * configure.in (TARGET_GETGROUPS_T): Evaluate.
9648 * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
9649 of second argument of getgroups.
9650 * configure, config.in: Rebuilt.
9652 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
9654 * simplify-rtx.c (simplify_relational_operation): Two signed
9655 values with equal high words are less/greater than each other if
9656 their low words are less/greater when considered as unsigned.
9658 Mon Jul 17 02:37:06 2000 Marc Espie <espie@openbsd.org>
9660 * configure.in (vax-*-openbsd): Change to new style configuration,
9661 add collect2/float_format information.
9662 * configure: Rebuilt.
9663 * config/vax/openbsd1.h: New.
9664 * config/vax/openbsd.h: New.
9665 * config/vax/t-openbsd: New.
9667 2000-07-17 Chip Salzenberg <chip@valinux.com>
9669 * c-common.c (shorten_compare): Quiet warnings about unsigned
9670 comparisons with zero when they occur in a system header.
9672 2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
9674 * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
9675 update to describe current practice.
9677 * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
9679 * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
9680 references to C9X. Change references to -fstd and -flang-isoc9x
9683 * c-common.c (scan_char_table): Allow "z" length modifiers on
9685 (check_format_info): Use TYPE_DOMAIN on the type matched against
9686 for "z" formats, to retrieve the language size_t rather than the
9689 * c-common.c (check_format_info): Do not make a pedantic objection
9690 to the 'L' length modifier if used with a floating point type
9693 * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
9694 constants in C99 mode.
9696 2000-07-17 Kazu Hirata <kazu@hxi.com>
9698 * h8300.md: Fix the format of mac.
9699 (movsi_h8300hs): Output a tab after stmac instead of a space.
9701 * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
9702 profitable adds/subs sequences.
9704 * fold-const.c: Fix comment typos.
9706 2000-07-16 Laurynas Biveinis <lauras@softhome.net>
9708 * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
9710 2000-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9712 * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
9714 2000-07-16 Neil Booth <NeilB@earthling.net>
9716 * cpplex.c: Update comments.
9717 * README.Portability: Small update.
9719 2000-07-16 Neil Booth <NeilB@earthling.net>
9721 * README.Portability: Small update.
9723 2000-07-15 Richard Henderson <rth@cygnus.com>
9725 * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
9726 * config/ia64/ia64.c (ia64_move_ok): New function.
9727 * config/ia64/ia64.md (movqi, movqi_internal): Use it.
9728 (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
9730 2000-07-15 Zack Weinberg <zack@wolery.cumb.org>
9732 * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
9733 immediately following a paste operator.
9734 * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
9735 (cpp_reader_init): Call it, if HOST_EBCDIC.
9736 (cpp_handle_options): Do not sort option list here.
9737 (handle_option): Rename to cpp_handle_option and export.
9738 * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
9739 _cpp_get_token directly.
9740 (cpp_scan_line): Return 0 at EOF, 1 otherwise.
9741 * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
9742 * cpplib.h: Prototype cpp_handle_option. Update prototype of
9745 2000-07-15 Richard Henderson <rth@cygnus.com>
9747 * fold-const.c (extract_muldiv): Don't optimize past an unsigned
9748 cast around an expression. Tidy other unsigned tests.
9750 2000-07-15 Gabriel Dos Reis <gdr@codesourcery.com>
9752 * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
9753 v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
9754 (v_message_with_decl): Rename to ...
9755 (format_with_decl): ... this. Tweak
9756 (diagnostic_for_decl): New function.
9757 (fatal_io_error): Use verbatim in lieu of notice.
9758 (announce_function): Use verbatim.
9759 (default_print_error_function): Likewise.
9760 (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
9763 2000-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9765 * mips.c (function_arg_pass_by_reference): Don't do automatic
9766 aggregate initialization.
9767 (machine_dependent_reorg): Initialize variable `mode'.
9769 * mips.md (absdi2): Change variable `regno1' to unsigned int.
9770 (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
9771 conflicts with sys/param.h macro of the same name.
9772 (reload_outdi): Likewise.
9774 2000-07-15 Michael Meissner <meissner@redhat.com>
9776 * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
9777 == CONST + INCREMENT, don't overwrite the tree node for FOO++,
9778 create a new node instead.
9780 2000-07-15 Neil Booth <NeilB@earthling.net>
9782 * README.Portability: Correct example about calling a function
9783 through a pointer to function. Format wide paragraphs.
9785 2000-07-15 Michael Meissner <meissner@redhat.com>
9787 * README.Portability: Update integer suffixes and function
9790 2000-07-15 Neil Booth <NeilB@earthling.net>
9792 * README.Portability: Small update.
9794 2000-07-15 Neil Booth <NeilB@earthling.net>
9796 * README.Portability: New file.
9798 Fri Jul 14 18:13:53 2000 Mark P Mitchell <mark@codesourcery.com>
9800 * INSTALL: Give special instructions for building GCC on Irix 6.
9801 * config/mips/x-iris6 (CC): Don't set it.
9804 2000-07-14 Jason Merrill <jason@redhat.com>
9806 * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
9807 register in the stack and later in another register, use the new
9810 Fri Jul 14 10:25:53 2000 Clinton Popetz <cpopetz@cygnus.com>
9812 * config/mips/mips.md: (absdi2): Handle sign_extend for
9815 2000-07-14 Nathan Sidwell <nathan@codesourcery.com>
9817 * cpplib.c (do_pragma_dependency): Tidy warning messages.
9819 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
9821 * .cvsignore: Correct typo.
9823 2000-07-13 Mark Mitchell <mark@codesourcery.com>
9825 * .cvsignore: Add generated YACC files.
9826 * objc/.cvsignore: New file.
9828 2000-07-14 Neil Booth <NeilB@earthling.net>
9830 * cpplex.c (adjust_column): New funcion.
9831 (skip_whitespace): Use it.
9832 (skip_block_comment): Use it, and warn about /*/* with
9835 2000-07-14 Neil Booth <NeilB@earthling.net>
9837 * cpphash.c (struct macro_info): Add new members.
9838 (_cpp_free_definition): Delete the macro directly.
9839 (count_params): Return void, with first token of
9840 expansion in struct macro_info on success.
9841 (parse_define): Return int. Hoist syntax checking from
9842 save_macro_expansion. Leave call to save_expansion to
9843 _cpp_create_definition.
9844 (alloc_macro): Needs just 2 arguments.
9845 (free_macro): Delete.
9846 (save_expansion): Don't perform syntax check.
9847 (_cpp_create_definition): Call save_expansion.
9849 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9851 * genrecog.c (write_header): Split long string.
9853 * cpphash.c (macro_info): Don't use the `signed' keyword.
9855 * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
9857 2000-07-13 Jakub Jelinek <jakub@redhat.com>
9859 * calls.c (stored_args_map): New variable.
9860 (check_sibcall_argument_overlap_1): New.
9861 (check_sibcall_argument_overlap): New.
9862 (expand_call): Initialize stored_args_map.
9863 Call check_sibcall_argument_overlap.
9865 2000-07-13 Bruce Korb <bkorb@gnu.org>
9867 * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
9868 (emit_gnu_type): utility procedure for gnu_type_fix
9869 (gnu_type_fix): implement various pre-processor guards around
9870 standard types so these types can be defined over and over
9871 * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
9872 types alluded to above will have GNU-compliant base types
9873 * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
9874 * fixinc/inclhack.def: add test_text entries and utilize the new
9875 "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
9876 * fixinc/fixincl.x: regenerate
9878 2000-07-12 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
9880 * diagnostic.c (vline_wrapper_message_with_location,
9881 v_message_with_file_and_line, v_error_with_file_and_file,
9882 v_error_for_asm, v_warning_for_asm, vfatal,
9883 v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
9884 vsorry, verror, vwarning, vpedwarn): Remove.
9885 (diagnostic_for_asm): New function.
9886 (pedwarn, error, warning, pedwarn_with_file_and_line,
9887 error_with_file_and_line, warning_with_file_and_line, sorry,
9888 error_for_asm, warning_for_asm, fatal): Reimplement.
9889 (finish_diagnostic): Clear diagnostic info as well.
9891 2000-07-13 Neil Booth <NeilB@earthling.net>
9893 * c-common.h (flag_digraphs): New.
9894 * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
9895 * c-lex.c (yylex): Use flag_digraphs to decide whether to
9898 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
9900 * gcc.c (do_spec_1): Add new %B operator.
9901 (set_input): Prepare for %B.
9903 (link_command_spec): Move up with the other tm.h-
9904 overrideable specs. Factor out the portion conditional on
9905 LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
9906 (struct compiler): Just have a single spec string. All users
9908 (default_compilers): Remove unnecessary braces.
9909 (static_specs): Update.
9911 (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
9913 (C and assembly specs): Use the new named specs, as appropriate.
9915 * objc/lang-specs.h: Use the new named specs.
9916 Remove unnecessary braces.
9918 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
9920 * gcc.c (execute): If a subprocess gets a fatal signal, report
9921 strsignal() of the signal number, and ask for a bug report.
9922 Do not do this for SIGPIPE if there's already been an error.
9924 * tradcpp.c: Don't include signal.h. Don't catch SIGPIPE.
9927 * tradcif.c: Remove.
9929 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
9931 * final.c (profile_function): Do not emit profile counters in
9932 the data section, if NO_PROFILE_COUNTERS is defined.
9933 * tm.texi: Document NO_PROFILE_COUNTERS. Update doc for
9936 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
9937 (FUNCTION_PROFILER): Just emit a call to mcount.
9939 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
9941 * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
9943 * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
9944 cpplib.c, cpplib.h: Eradicate all traces of code dependent on
9945 traditional, lang_chill, or lang_fortran.
9947 * cppfiles.c: #undef strcmp to suppress warning about macros
9948 used without arguments.
9949 (_cpp_execute_include): Use f, not fname, in "No include path"
9951 (_cpp_pop_file_buffer): New function.
9952 * cpplib.c: Don't include <sys/mman.h>.
9953 (cpp_push_buffer): Set line_base and lineno in new buffer.
9954 (cpp_pop_buffer): Use _cpp_pop_file_buffer.
9956 * cpplex.c: Move all prototypes and structure declarations to the
9957 top of the file. Properly parenthesise some macro arguments.
9958 (cpp_scan_line): New function.
9959 (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
9960 don't need to walk up the stack counting.
9962 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9964 * c-common.c (combine_strings): Emit a pedantic warning when a
9965 string length is greater than the minimum ANSI C is required
9968 Wed Jul 12 13:24:30 2000 Jeffrey A Law (law@cygnus.com)
9970 * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
9971 * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
9973 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9975 * c-decl.c (define_label): Warn about identifier conflicts with
9976 labels in traditional C.
9978 * c-parse.in (unop +): Warn about the unary plus operator for
9981 * c-typeck.c (store_init_value): Warn about automatic aggregate
9982 initialization for traditional C.
9984 * invoke.texi (-Wtraditional): Document new warnings.
9986 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
9988 * Makefile.in (c-errors.o): Fix thinko in dependency.
9990 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
9992 * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
9993 -traditional, -ftraditional, or -traditional-cpp was given.
9994 Do not pass -traditional to the preprocessor.
9995 (.S spec): Likewise. Don't bother defining __ASSEMBLER__, the
9996 preprocessor does it automatically.
9997 * objc/lang-specs.h: Likewise. Don't bother defining __OBJC__.
9999 * ch/lang-specs.h: Always use tradcpp. Do not pass
10000 -traditional, -trigraphs, or -pedantic to the preprocessor.
10001 * f/lang-specs.h (.F spec): Likewise. Don't bother defining
10004 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
10006 * cppexp.c (LOGICAL): Delete macro.
10007 (_cpp_parse_expr): Do not use UNARY for unary +. Implement ||
10010 * cpphash.c (HASHSIZE): Increase to 4096.
10011 (struct hashdummy): Add hash field.
10012 (eq_HASHNODE): Compare unreduced hashes, then lengths, then
10013 the string values using memcmp.
10014 (cpp_lookup): Set dummy.hash.
10016 Wed Jul 12 13:15:16 2000 Marc Espie <espie@openbsd.org>
10018 * configure.in (m88k-openbsd): Express configuration using new fragment
10020 * configure: Rebuilt.
10021 * m88k/aout-dbx.h: New.
10022 * m88k/openbsd.h: New.
10023 * m88k/xm-openbsd.h: New.
10025 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10027 * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
10029 2000-07-12 Richard Henderson <rth@cygnus.com>
10031 * reload.c (push_secondary_reload): Make sure to add the new
10032 reload at the end, after acquiring secondary memory.
10034 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10036 * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
10038 * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
10039 lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
10041 * c-parse.in (stmt): Delete unused variables.
10043 * convert.c (convert_to_vector): Likewise.
10045 * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
10047 * tree.c (finish_vector_type): Prototype.
10049 2000-07-12 Bruce Korb <bkorb@gnu.org>
10051 * fixinc/fixfixes.c: use xmalloc
10052 * fixinc/fixincl.c(initialize): set program name for xmalloc
10053 * fixinc/fixlib.c(must_malloc): obsolete
10054 (is_cxx_header): no longer used - disabled
10055 (skip_quote): inserted and disabled for future use
10056 * fixinc/fixlib.h: reflects above
10057 * fixinc/fixtests.c: removed dinkleberries
10059 2000-07-12 Neil Booth <NeilB@earthling.net>
10061 * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
10062 * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
10064 * cpphash.c: (struct macro_info, alloc_macro, free_macro,
10065 struct toklist_dummy): New.
10066 (cpp_free_definition): Free macros with free_macro.
10067 (count_params): Don't save paramter spellings. Save macro
10068 information in a struct macro_info.
10069 (parse_define): Don't allocate a token list.
10070 (save_expansion): Allocate the macro's token list, and
10071 save parameter spellings if necessary. Use TOKEN_SPELL.
10072 (cpp_create_definition): Make list const.
10074 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
10076 * c-typeck.c (pedwarn_c99): Move to
10077 * c-errors.c: ... Here.
10078 * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
10079 * diagnostic.c (verror, vwarning, vpedwarn): Make static.
10080 * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
10081 (c-errors.o): List dependency.
10083 2000-07-12 Mark Mitchell <mark@codesourcery.com>
10085 * c-parse.c: Remove.
10086 * c-parse.h: Likewise.
10087 * c-parse.y: Likewise.
10088 * objc/objc-parse.c: Likewise.
10089 * objc/objc-pasre.y: Likewise.
10091 2000-07-11 Rodney Brown <RodneyBrown@pmsc.com>
10093 * gcc.texi: Fix minor typos
10094 * extend.texi: Fix minor typos
10096 2000-07-11 Marc Espie <espie@openbsd.org>
10098 * collect2.c (main): Recognize .lo as object files.
10100 2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10102 * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
10105 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
10106 with MAP_ANONYMOUS and MAP_ANON.
10107 * configure, config.in: Rebuilt.
10109 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
10111 * diagnostic.c (save_output_state): Remove.
10112 (restore_output_state): Likewise.
10113 (clear_text_info): New function.
10114 (clear_diagnostic_info): Likewise.
10115 (output_text_length, is_starting_newline, output_prefix,
10116 line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
10117 prefixing_policy, output_buffer_ptr_to_format_args): New macros
10118 (set_real_maximum_length, output_set_maximum_length,
10119 output_set_prefix, output_get_prefix, output_set_maximum_length,
10120 output_destroy_prefix, init_output_buffer,
10121 reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
10122 output_add_newline, output_add_character, output_add_space,
10123 output_append_r, output_append, wrap_text, output_format,
10124 output_do_printf, output_printf, output_do_verbatim,
10125 output_verbatim, verbatim): Use them.
10126 (output_clear): Split into cleat_text_info and
10127 clear_diagnostic_info.
10128 (struct output_state): Move to...
10130 * diagnostic.h: ...Here
10131 (struct output_buffer): Adjust.
10133 2000-07-11 Zack Weinberg <zack@wolery.cumb.org>
10135 * cpplex.c (parse_name): No longer inline (premature optimization).
10136 (do_pop_context): Fold into pop_context.
10137 (pop_context): Returns int.
10138 (lex_next): Hoist test for end of directive into pop_context.
10139 (push_macro_context): Returns int; takes just reader and token.
10140 Hoist test for excessive nesting to caller.
10141 (push_arg_context): Returns void; takes just reader and token.
10142 Do not call stringify_arg or get_raw_token.
10143 (get_raw_token): Convert tail recursion through push_arg_context
10144 to a loop at this level. Call stringify_arg here if appropriate.
10145 (maybe_paste_with_next): Convert tail recursion to a while loop.
10146 Hoist test of paste_level to caller.
10148 (stringify_arg): Push arg context at beginning.
10149 (cpp_get_token): Split out core into _cpp_get_token. Call
10150 process_directive here. Throw away CPP_PLACEMARKER tokens.
10151 (_cpp_get_token): Convert tail recursion through
10152 push_macro_context to a loop at this level.
10153 (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
10154 _cpp_get_raw_token): Use _cpp_get_token.
10155 (_cpp_skip_rest_of_line): Drop the context stack directly; do
10156 not call pop_context.
10157 (_cpp_run_directive): Call lex_next directly.
10159 * cpphash.h: Prototype _cpp_get_token.
10160 * cppexp.c (lex): Use it.
10161 * cpphash.c (parse_define): Use it.
10162 * cpplib.c (get_define_node, do_undef, parse_include,
10163 read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
10164 do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
10165 parse_ifdef, validate_else): Use it.
10166 (cpp_push_buffer): Tweak error message; abort if anyone tries
10167 to push a buffer while macro expansions are stacked.
10169 2000-07-11 Donn Terry <donnte@microsoft.com>
10171 * cpplex.c (free_macro_args, save_token): Cast arg of free
10172 and/or xrealloc to PTR.
10173 (_cpp_init_input_buffer): Clear all fields of the base context.
10175 Tue Jul 11 15:28:21 CDT 2000 Clinton Popetz <cpopetz@cygnus.com>
10177 * gensupport.c (process_rtx): Make rtl checking stop
10178 complaining about the define_insn while it is being
10179 converted from a define_insn_and_split.
10181 Tue Jul 11 16:26:17 2000 Clinton Popetz <cpopetz@cygnus.com>
10183 * config/mips/mips.c (simple_memory_operand): Access the
10184 INTVAL of the address, not it's containing MEM.
10186 2000-07-11 Bruce Korb <bkorb@gnu.org>
10188 * fixinc/fixtests.c(double_slash): obsolete
10189 (else_endif_label): likewise
10190 * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
10191 (libc1_ifdefd_memx): correct initial comment
10192 and omit the #if/#endif pair from the memxxx declarations
10193 * fixinc/fixincl.x: regen
10195 2000-07-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10197 * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
10199 2000-07-11 Neil Booth <NeilB@earthling.net>
10201 * cpp.texi: Update.
10203 2000-07-11 Neil Booth <NeilB@earthling.net>
10205 * cppinit.c: (cpp_reader_init): Allow digraphs by default.
10206 (handle_option): Set digraphs according to standard.
10207 Merge OPT_lang_c89 handler with OPT_std_c89.
10209 * cpplex.c: (lex_line, can_paste): Honour digraphs in
10210 accordance with the digraphs flag.
10212 * cpplib.h: (struct cpp_options): New option digraphs.
10214 2000-07-10 Hans-Peter Nilsson <hp@axis.com>
10215 Bruce Korb <bkorb@gnu.org>
10217 * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
10218 * fixinc/fixincl.x: Regenerate.
10219 * fixinc/tests/base/testing.h: Add testcase.
10221 2000-07-10 Richard Henderson <rth@cygnus.com>
10223 * config/ia64/ia64.c (got_symbolic_operand): New.
10224 (symbolic_operand, move_operand): Revert 0701 change.
10225 * config/ia64/ia64.h (PREDICATE_CODES): Update.
10226 * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
10227 * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
10228 split the offset into a 14-bit low part instead of a 13-bit low part.
10229 (load_fptr): Mark the mem as unchanging.
10230 (load_symptr): Use got_symbolic_operand.
10232 2000-07-10 Nick Clifton <nickc@cygnus.com>
10234 * libgcc2.c (next_stack_level): Cast result of computation to
10235 (void **) so that the assignment does not generate a warning.
10237 2000-07-10 Chandrakala Chavva <cchavva@redhat.com>
10239 * flags.h : Add new variable flag_single_precision_constant.
10240 * toplev.c (display_help) : Add -fsingle-precision-constant option.
10241 (flag_single_precision_constant): New.
10242 * c-lex.c (yylex): Convert floating point constant to single
10243 precision constant.
10244 * invoke.texi : Add documentation for this new option.
10246 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
10248 * diagnostic.c (output_octal): Second parameter is unsigned.
10249 (output_long_octal): Likewise.
10250 (output_hexadecimal): Likewise.
10251 (output_long_hexadecimal): Likewise.
10252 (output_format): Adjust arguments extraction. Tweak.
10253 (output_verbatim, verbatim): End variable argument list.
10254 (report_diagnostic): Improve documentation.
10256 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
10258 * c-common.h (build_stmt): Declare.
10259 (build_continue_stmt): Likewise.
10260 (build_break_stmt): Likewise.
10261 (build_return_stmt): Likewise.
10263 * c-decl.c (do_case): Rewrite to do what previously done in
10266 * c-semantics.c (build_stmt): Define.
10267 (build_return_stmt): Likewise.
10268 (build_break_stmt): Likewise.
10269 (build_continue_stmt): Likewise.
10270 (build_case_label): Likewise.
10272 * c-parse.in (BREAK): Change to build tree, then generate RTL.
10273 (CONTINUE): Likewise.
10274 (RETURN): Likewise.
10276 (DEFAULT): Likewise.
10278 * c-parse.y: Regenerate.
10279 * c-pasre.c: Likewise.
10281 2000-07-09 Jason Merrill <jason@redhat.com>
10283 * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
10285 * tree.h (STRIP_NOPS): Check for error_mark_node.
10286 (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
10287 (dwarf2out_*): Remove duplicate declarations.
10289 * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
10290 DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
10292 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
10294 * diagnostic.c (wrap_text): New function.
10295 (maybe_wrap_text): Likewise.
10296 (output_add_string): Use it.
10297 (output_format): Likewise.
10298 (count_error): Use verbatim instead of notice.
10299 (report_error_function): Likewise. Don't use plain fprintf.
10300 (finish_diagnostic): New function.
10301 (output_do_verbatim): Tweak. Commonalize functionalities in
10302 output_verbatim and verbatim.
10303 (output_verbatim): Adjust.
10304 (verbatim): Likewise.
10305 (report_diagnostic): Define.
10307 * diagnostic.h (report_diagnostic): Prototype.
10309 2000-07-09 Zack Weinberg <zack@wolery.cumb.org>
10311 * cppexp.c (_cpp_parse_expr): Don't use unary plus.
10313 2000-07-09 Neil Booth <NeilB@earthling.net>
10315 * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
10316 IShspace, ISspace: Update.
10318 * cppinit.c: ISTABLE: Update.
10321 * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
10322 (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
10323 (skip_block_comment, skip_line_comment, parse_string,
10324 lex_line): Use is_vspace rather than IS_NEWLINE.
10325 (skip_whitespace, lex_line): Clean up to use is_nvspace.
10326 (lex_line): Use KNOWN_DIRECTIVE. Any kind of directive
10328 (lex_next): Unconditionally stop if within a directive.
10329 Treat directives within macro invocations as directives
10330 (after parse_args emits error), not as the argument.
10332 2000-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
10334 * diagnostic.c (diagnostic_args): New macro.
10335 (diagnostic_msg): Likewise.
10336 (output_formatted_integer): Likewise.
10337 (output_state): New data type.
10338 (digit_buffer): Make global.
10339 (output_add_integer): Rename to output_decimal. Squeeze
10341 (output_long_decimal, output_unsigned_decimal,
10342 output_long_unsigned_decimal, output_octal, output_long_octal,
10343 output_hexadecimal, output_long_hexadecimal): New functions.
10344 (output_append_r): New function.
10345 (output_append): Tweak.
10346 (output_flush_on): Rename to output_to_stream.
10347 (output_format): Change prototype. Improve documentation. Handle
10348 more format specifiers.
10349 (build_location_prefix): Rename to context_as_prefix.
10350 (output_notice): Rename to output_do_printf.
10351 (output_printf): Tweak.
10352 (line_wrapper_printf): Likewise.
10353 (vline_wrapper_message_with_location): Adjust call to renamed
10355 (v_message_with_decl): Likewise.
10356 (default_print_error_function): Likewise.
10357 (save_output_state): New function.
10358 (restore_output_state): Likewise.
10359 (output_do_verbatim): Likewise.
10360 (output_verbatim): Define.
10361 (verbatim): Likewise.
10363 * diagnostic.h (printer_fn): Change return type from void to int.
10364 Improve documentation.
10365 (output_add_integer): Rename to output_decimal.
10366 (output_flush_on, output_format): Don't export.
10367 (output_verbatim, verbatim): Declare.
10369 2000-07-08 Toon Moene <toon@moene.indiv.nluug.nl>
10371 * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
10372 Check whether c divides op1 exactly if operation is not
10375 2000-07-08 Richard Henderson <rth@cygnus.com>
10377 * final.c (final): Do not abort when reg-stack introduces
10380 2000-07-08 Zack Weinberg <zack@wolery.cumb.org>
10382 * cpplib.h (struct cpp_name): Now struct cpp_string.
10383 (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
10384 CPP_HEADER_NAME): Change to type S.
10385 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
10386 field, a cpp_hashnode *. All references to val.name updated
10387 to use val.str or val.node as appropriate.
10388 (struct cpp_reader): Add spec_nodes field.
10389 (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
10391 * cpphash.h (struct spec_nodes): New.
10392 (enum spell_type): Reorder. Only SPELL_STRING tokens use
10393 val.str. All references to 'spelling > SPELL_NONE' updated to
10396 (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
10397 pfile->buffer->inc are not NULL before dereferencing them.
10399 * cpplex.c (parse_name): Take a pointer to the current token,
10400 plus current position and limit as args; return the new
10401 position; don't copy the text of a name into the string
10402 buffer, instead call cpp_lookup and store the node pointer.
10403 If extending a token, copy out the text of the old into a
10404 scratch buffer, append the new, look that up and store the new
10405 node pointer. Inline.
10406 (maybe_paste_with_next): If the result of paste is a NAME,
10407 then look up the pasted text and store its node pointer.
10408 (lex_line): Adjust for new parse_name interface.
10409 Check for L"str", L'str' using spec_nodes->n_L.
10410 (spell_token): SPELL_IDENT tokens have their spelling in
10411 val.node->name. Handle SPELL_STRING tokens that don't have
10413 (_cpp_expand_name_space,
10414 (can_paste): Check for L ## "str" using spec_nodes->n_L.
10415 (cpp_get_token, special_symbol): No need to call cpp_lookup.
10416 (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
10417 return 1=equal 0=not, not a tristate.
10419 * cpphash.c (var_args_str): Delete.
10420 (find_param): Compare node fields directly.
10421 (is__va_args__): Use CPP_PEDANTIC. Just compare
10422 token->val.node with spec_nodes->n__VA_ARGS__.
10423 (dump_funlike_macro): Don't use var_args_str.
10425 * cpplib.c (_cpp_check_directive): Just walk through
10426 spec_nodes->dirs comparing pointers.
10427 (get_define_node, do_pragma_poison, detect_if_not_defined,
10428 parse_ifdef): The identifier has already been looked up.
10429 (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
10431 (do_if): Only call detect_if_not_defined at beginning of file.
10432 (_cpp_parse_assertion): Only copy string pointers for
10433 SPELL_STRING tokens.
10434 (pragma_dispatch): Take a node pointer and examine its name
10436 (_cpp_init_stacks): Also initialize the spec_nodes structure.
10438 * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
10440 (cpp_cleanup): Free pfile->spec_nodes. Call _cpp_cleanup_* in
10441 reverse order from the corresponding _cpp_init_* routines.
10443 * cppexp.c (parse_number, parse_charconst, parse_defined,
10444 lex): Check val.node->type instead of calling cpp_defined.
10445 Use spec_nodes entries where appropriate.
10447 * fix-header.c, scan-decls.c: Update for interface changes.
10449 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
10451 * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
10452 emitting aux_truncdfsf2.
10454 2000-07-03 Donn Terry (donnte@microsoft.com)
10456 * cppinit.c (print_help): split overlong line into ISO C89
10459 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
10461 * cppexp.c: Update all code for new lexer interface.
10462 (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
10463 (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
10464 * cpplex.c (token_names): Trim leading CPP_ from names; make
10465 the strings unsigned.
10466 (_cpp_spell_operator): New.
10467 (is_macro_disabled): Disable all macros if rescanning
10469 (_cpp_get_directive_token): Remove.
10471 * cppinit.c: Don't set no_macro_expand.
10472 * cpplib.c (read_line_number, do_line): Check only for EOF,
10474 * cpphash.h: Update prototypes.
10475 * cpplib.h (CPP_VSPACE): Remove.
10476 (struct cpp_reader): Remove no_macro_expand.
10478 2000-07-08 Neil Booth <NeilB@earthling.net>
10480 * cpphash.c (is__va_args__): New function.
10481 (count_params): Fix line reported in error messages. Use
10482 is__va_args__. Don't return ')' on error. Flag GNU style
10483 rest args macro definitions.
10484 (parse_define): Check macro name is not __VA_ARGS__.
10485 (save_expansion): Check identifier in non-varargs-macro is
10486 not __VA_ARGS__. Don't flag GNU_VARARGS.
10487 * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
10488 (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
10489 than per-token GNU_VARARGS.
10490 * cpplib.h (GNU_VARARGS): Remove.
10491 (GNU_REST_ARGS): New.
10493 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
10495 * i386.md (call_pop, call, call_value_pop): Do not set
10496 current_function_uses_pic_offset_table for calls to static
10497 functions or indirect calls.
10499 2000-07-07 Jim Wilson <wilson@cygnus.com>
10501 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
10502 is_predicate_reg, then take max write_count of register pair.
10504 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10506 * tradcpp.c (main): Rename label `include' to `add_include' to
10507 avoid conflicts with variable `include' in traditional C.
10509 2000-07-07 Jakub Jelinek <jakub@redhat.com>
10511 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
10513 2000-07-07 Jakub Jelinek <jakub@redhat.com>
10515 * sibcall.c (uses_addressof): Add INMEM argument, check for
10516 current_function_internal_arg_pointer outside of MEM rtxs in addition
10518 (sequence_uses_addressof): Update caller.
10520 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
10522 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
10525 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10527 * system.h (UNION_INIT_ZERO): New macro for initializing union
10528 members in structs.
10530 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
10532 2000-07-07 Neil Booth <NeilB@earthling.net>
10534 * cpp.texi: Update.
10536 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
10538 * final.c (final): Detect out of bounds array access to
10539 the insn_lengths array.
10541 2000-07-07 Kazu Hirata <kazu@hxi.com>
10543 * fold-const.c (fold): Fix a comment typo.
10545 2000-07-07 Neil Booth <NeilB@earthling.net>
10547 * cpp.texi: Update to new lexer.
10549 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
10551 * tradcpp.c: New file.
10552 * tradcif.y: New file.
10553 * tradcif.c: New generated file.
10555 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
10556 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
10557 dependencies of C. Install tradcpp from install-common, in
10560 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
10562 * cppinit.c: Include cppdefault.h. Refer to
10563 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
10564 to GCC_INCLUDE_DIR and its length.
10565 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
10566 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
10567 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
10569 (include_defaults_array): Move to cppdefault.c.
10571 * cppdefault.h: New file.
10572 * cppdefault.c: New file.
10574 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
10575 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
10576 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
10579 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10581 * reload.c (push_reload): When seeing if can reuse a register,
10582 check extra registers against widest of INMODE and OUTMODE.
10584 2000-07-06 Neil Booth <NeilB@earthling.net>
10586 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
10587 based on full length of predicate.
10589 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
10591 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
10592 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
10594 2000-07-05 Kazu Hirata <kazu@hxi.com>
10596 * h8300-proto.h: Fix formatting.
10597 * h8300.c: Likewise.
10598 * h8300.h: Likewise.
10600 2000-07-05 Jim Wilson <wilson@cygnus.com>
10602 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
10605 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
10607 * invoke.texi: Fix minor typos
10608 * md.texi: Fix minor typos
10610 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
10612 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
10614 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
10616 * cpplex.c: Don't include sys/mman.h.
10617 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
10619 * cpplib.c: Include sys/mman.h and obstack.h.
10620 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
10622 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
10623 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
10624 bother freeing if stack entries (they will be freed with their buffer).
10625 (do_endif): Free if stack entries from the buffer obstack.
10626 (push_conditional): Allocate if stack entries from the buffer obstack.
10628 (find_answer): Rename to _cpp_find_answer.
10629 (do_assert, do_unassert): Update.
10631 * cpphash.h: Update prototypes.
10632 (xobnew): New convenience macro.
10633 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
10635 (struct cpp_hashnode): Remove disabled field.
10637 * cppinit.c: Don't include hashtab.h or splay-tree.h.
10638 (report_missing_guard): Moved to cppfiles.c.
10639 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
10641 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
10642 cpp_cleanup_includes. Don't destroy hashtab or
10643 all_include_files here.
10644 (cpp_finish): Use _cpp_report_missing_guards.
10646 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
10647 (_cpp_init_include_table): Rename _cpp_init_includes.
10648 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
10650 * cppexp.c (parse_assertion): Update for new name of
10653 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
10655 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
10657 * cpplib.c (do_ident): s/VSPACE/EOF/
10659 2000-07-05 Neil Booth <NeilB@earthling.net>
10661 * cpplex.c: Fix trigraph replacement within strings.
10663 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10665 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
10667 * xcoffout.c (assign_type_number): Constify.
10668 (xcoffout_source_file): Add static prototype. Don't needlessly
10669 cast away const-ness.
10671 2000-07-04 Jason Merrill <jason@redhat.com>
10673 * frame.h (frame_state): Move base_offset to end.
10675 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
10677 * calls.c (emit_library_call_value_1): Revert previous change.
10679 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
10681 * fix-header.c (struct partial_proto): Remove unnecessary fields.
10682 (recognized_extern, recognized_function, read_scan_file):
10683 Update for new scheme.
10684 (check_protection): It's still a multiple include guard even
10685 if it doesn't always trigger.
10686 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
10688 * scan.h: Declare struct cpp_token. Update prototypes.
10690 2000-07-03 Neil Booth <neilb@earthling.net>
10691 Zack Weinberg <zack@wolery.cumb.org>
10693 Complete overhaul of the lexer and macro expander.
10695 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
10696 arg, arglist, argdata, reflist, collect_objlike_expansion,
10697 collect_funlike_expansion, collect_params,
10698 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
10699 unsafe_chars, macarg, compare_defs, special_symbol,
10700 scan_arguments, stringify, funlike_macroexpand,
10701 _cpp_quote_string, monthnames): Delete.
10702 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
10703 _cpp_create_definition, _cpp_dump_definition,
10704 dump_hash_helper): Adjust.
10705 (find_param, count_params, parse_define, var_args_str,
10706 check_macro_redefinition, save_expansion): New.
10708 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
10709 parse_string, output_line_command, trigraph_replace,
10710 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
10711 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
10712 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
10713 _cpp_skip_rest_of_line): Modify.
10715 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
10716 find_position, null_warning, bump_column, expand_name_space,
10717 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
10718 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
10719 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
10720 _cpp_prescan): Delete.
10722 (dump_param_spelling, process_directive, lex_next,
10723 is_macro_disabled, stringify_arg, expand_context_stack,
10724 output_token, make_string_token, alloc_number_token,
10725 special_symbol, duplicate_token, maybe_paste_with_next,
10726 can_paste, prevent_macro_expansion, restore_macro_expansion,
10727 get_temp_token, release_temp_tokens, quote_string,
10728 token_names, token_spellings, _cpp_expand_name_space,
10729 _cpp_glue_header_name, _cpp_reserve_name_space,
10730 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
10731 placemarker_token, eof_token, cpp_context, macro_args,
10732 get_raw_token, parse_arg, parse_args, save_token,
10733 push_arg_context, push_macro_context, pop_context,
10734 do_pop_context, free_macro_args, _cpp_get_line,
10735 _cpp_run_directive): New.
10737 * cpplib.c (validate_else, parse_include, push_conditional,
10738 pass_thru_directive, read_line_number, parse_ifdef,
10739 detect_if_not_defined, _cpp_check_directive, do_define,
10740 do_undef, do_include, do_import, do_include_next, do_error,
10741 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
10742 top_pragmas, do_pragma_gcc, do_pragma_implementation,
10743 do_pragma_poison, do_pragma_system_header,
10744 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
10745 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
10746 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
10747 cpp_defined): Update for new scheme.
10748 (strtoul_for_line, get_define_node, dump_macro_name,
10749 _cpp_check_linemarker, _cpp_parse_assertion): New.
10750 (_cpp_handle_directive, do_pragma_default): Delete.
10752 * cpphash.h (struct predicate): Now struct answer.
10753 (enum spell_type, struct token_spelling, struct directive,
10754 directive_handler): New.
10755 Update prototypes. Remove unused macros.
10756 * cpplib.h: Update prototypes. Remove unused macros,
10757 structure definitions, and fields.
10759 * cpperror.c (print_containing_files, v_message): Adjust.
10760 * cppexp.c (parse_assertion, lex, parse_escape,
10761 _cpp_parse_expr): Adjust.
10762 * cppfiles.c (open_include_file, _cpp_execute_include,
10763 _cpp_compare_file_date, cpp_read_file, read_include_file):
10765 * cppinit.c (dump_special_to_buffer): Delete.
10766 (append_include_chain, merge_include_chains, cpp_reader_init,
10767 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
10768 cpp_finish, handle_option, print_help): Adjust.
10769 * cppmain.c (main): Adjust.
10771 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
10773 * cppspec.c (lang_specific_driver): Use double quotes in error
10776 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
10778 * calls.c (emit_library_call_value_1): Use valreg instead
10779 of hard_libcall_value.
10781 2000-07-03 Geoff Keating <geoffk@cygnus.com>
10783 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
10784 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
10785 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
10793 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
10794 mode instead of wider_mode is being used.
10796 2000-07-03 Jakub Jelinek <jakub@redhat.com>
10798 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
10799 of 'r'. Use q_regs_operand.
10800 (andsi_1+2): Use q_regs_operand.
10802 2000-07-03 Jakub Jelinek <jakub@redhat.com>
10804 * builtins.c (get_memory_rtx): Always put into alias set 0.
10806 2000-07-03 Nick Clifton <nickc@cygnus.com>
10808 * config/arm/arm.md: Fix post increment and pre increment
10809 peepholes so that they do not generate UNPREDICATBLE opcodes.
10810 (ie ones where the increment clobbers the source/destination).
10812 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
10814 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
10815 change too big for -mtiny-stack" a warning, if larger than 63.
10816 (out_set_stack_ptr): Change the logic so -mno-interrupts is
10817 always safe to use on possible future devices.
10818 (function_prologue): Write SPH before SPL, for consistency.
10819 If interrupt_func_p true, we know we have enabled interrupts.
10820 (avr_num_arg_regs): New function. Round up to even number of
10821 bytes if no -mpack-args or if calling a libgcc function.
10822 (function_arg, function_arg_advance): Use it.
10823 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
10824 Output "movw" if available.
10825 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
10826 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
10827 (asm_output_section_name): Add blanks for consistent output.
10828 (encode_section_info): Set TREE_READONLY for progmem data to
10829 avoid gas warnings about changed section attributes.
10830 (avr_hard_regno_mode_ok): Force non-QImode data to start in
10831 even numbered registers on devices with "movw".
10832 * config/avr/avr.h (MASK_*): Define bits for target_flags.
10833 (TARGET_SWITCHES): Mark help strings for translation.
10834 Add new -mpack-args and -menhanced switches.
10835 (TARGET_OPTIONS): Mark help strings for translation.
10836 (progmem_section): Add section attributes.
10837 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
10838 Output "movw" if available.
10839 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
10841 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
10842 call convention (arguments aligned on even registers).
10843 (_cleanup, _exit): Make weak symbols libc can override.
10845 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10847 * fp-bit.h: New file.
10849 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
10850 Comment #endif statements.
10851 (__thenan_sf, __thenan_df): Add missing braces around initializer.
10853 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
10855 * gcse.c (compute_pre_data): Compute ae_kill using other local
10856 properties instead of calling compute_ae_kill.
10858 * alias.c (init_alias_analysis): Do not call
10859 prologue_epilogue_contains until after reload has completed.
10861 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
10863 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
10864 (genrtl_finish_compound_stmt): Likewise.
10865 (genrtl_compound_stmt): Change to return void.
10867 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
10868 move code from here to ...
10869 (genrtl_compound_stmt): ... here.
10870 (genrtl_finish_compound_stmt): Remove.
10871 (expand_stmt): Add comment.
10873 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
10875 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
10878 2000-07-02 Jakub Jelinek <jakub@redhat.com>
10880 * cpplib.h (struct cpp_reader): New field include_depth.
10881 (struct cpp_printer): Rename last_bsd to last_id.
10882 * cppfiles.c (read_include_file): Bump include_depth.
10883 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
10884 (output_line_command): Output correct #line if a header
10885 is including itself and is not protected against multiple inclusion.
10886 Use include_depth instead of buffer_stack_depth, last_id instead of
10888 * cppinit.c (cpp_start_read): Initialize last_id instead of
10891 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
10893 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
10894 (c-semantics.o): New target.
10896 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
10897 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
10898 (genrtl_clear_out_block): Likewise.
10899 (genrtl_goto_stmt): Likewise.
10900 (genrtl_expr_stmt): Likewise.
10901 (genrtl_decl_stmt): Likewise.
10902 (genrtl_if_stmt): Likewise.
10903 (genrtl_while_stmt): Likewise.
10904 (genrtl_do_stmt): Likewise.
10905 (genrtl_return_stmt): Likewise.
10906 (genrtl_for_stmt): Likewise.
10907 (genrtl_break_stmt): Likewise.
10908 (genrtl_continue_stmt): Likewise.
10909 (genrtl_scope_stmt): Likewise.
10910 (genrtl_switch_stmt): Likewise.
10911 (genrtl_case_label): Likewise.
10912 (genrtl_begin_compound_stmt): Likewise.
10913 (gerntl_finish_compound_stmt): Likewise.
10914 (genrtl_compound_stmt): Likewise.
10915 (genrtl_asm_stmt): Likewise.
10916 (genrtl_decl_cleanup): Likewise.
10917 (DECL_ANON_UNION_ELEMS): Likewise.
10918 (emit_local_var): Likewise.
10919 (make_rtl_for_local_static): Likewise.
10920 (expand_cond): Likewise.
10921 (expand_stmt): Likewise.
10922 (c_expand_return): Likewise.
10923 (c_expand_start_case): Likewise.
10924 (do_case): Likewise.
10925 (COMPOUND_STMT_NO_SCOPE): Likewise.
10926 (c_expand_asm_operands): Likewise.
10927 (NEW_FOR_SCOPE_P): New macro.
10928 (expand_expr_stmt_fn): New type.
10930 (set_current_function_name_declared): Likewise.
10931 (current_function_name_declared): Likewise.
10932 (lang_expand_stmt): Likewise.
10933 (stmts_are_full_exprs_p): Likewise.
10934 (anon_aggr_type_p): Likewise.
10935 (lang_expand_expr_stmt): Likewise.
10936 (build_case_label): Likewise.
10938 * c-decl.c (lang_expand_expr_stmt): Initialize.
10939 (stmts_are_full_exprs_p): Define.
10940 (current_function_name_declared): Likewise.
10941 (do_case): Likewise.
10942 (lang_expand_stmt): Likewise.
10943 (set_current_function_name_declared): Likewise.
10944 (anon_aggr_type_p): Likewise.
10946 * c-semantics.c: New file.
10947 (expand_cond): Moved from cp/semantics.c.
10948 (genrtl_do_pushlevel): Likewise.
10949 (genrtl_clear_out_block): Likewise.
10950 (genrtl_goto_stmt): Likewise.
10951 (genrtl_expr_stmt): Likewise.
10952 (genrtl_decl_stmt): Likewise.
10953 (genrtl_if_stmt): Likewise.
10954 (genrtl_while_stmt): Likewise.
10955 (genrtl_do_stmt): Likewise.
10956 (genrtl_return_stmt): Likewise.
10957 (genrtl_for_stmt): Likewise.
10958 (genrtl_break_stmt): Likewise.
10959 (genrtl_continue_stmt): Likewise.
10960 (genrtl_scope_stmt): Likewise.
10961 (genrtl_switch_stmt): Likewise.
10962 (genrtl_case_label): Likewise.
10963 (genrtl_begin_compound_stmt): Likewise.
10964 (genrtl_finish_compound_stmt): Likewise.
10965 (genrtl_compound_stmt): Likewise.
10966 (genrtl_asm_stmt): Likewise.
10967 (genrtl_decl_cleanup): Likewise.
10968 (make_rtl_for_local_static): Moved from cp/decl.c.
10969 (emit_local_var): Likewise.
10970 (expand_stmt): Define.
10972 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
10973 (c_expand_return): Likewise.
10974 (c_expand_start_case): Likewise.
10976 2000-07-01 Richard Henderson <rth@cygnus.com>
10978 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
10979 with the low 13 bits set.
10980 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
10981 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
10982 of the low 13 bits into a CONST plus an adddi3.
10983 (load_symptr): Set RTX_UNCHANGING_P.
10985 See ChangeLog.3 for earlier changes.