1 2004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
3 * config/m32r/m32r.h (CPP_SPEC): Define.
5 2004-01-21 Zack Weinberg <zack@codesourcery.com>
7 * c-decl.c (merge_decls): Kill different_binding_level and
8 different_tu arguments; simplify throughout.
9 (duplicate_decls): Likewise.
10 (pushdecl, merge_translation_unit_decls): Update calls to
13 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
17 (print-rtl1.o): Depend on $(SYSTEM_H).
19 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
22 * configure.ac: Delete definition and subsitution of docdir.
23 Add info, man, srcman and srcinfo to target hooks. Create doc/
25 * configure: Regenerate.
26 * Makefile.in: Don't substitute docdir and delete all references
28 (MAKEINFOFLAGS): Define.
29 (stmp-docobjdir): Delete.
30 (INFOFILES, MANFILES): Define.
31 (info): Call lang.info, srcinfo and lang.srcinfo.
32 (generated-manpages): Call lang.man, srcman and lang.srcman.
33 (srcinfo, srcman): New rules to copy back files to source directory.
34 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
35 (install-man): Revamp rule.
36 (clean): Update dvi directory.
37 (distclean): Delete TAGS from front end directorys.
38 (maintainer-clean): Delete all document files in source directory.
40 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
41 (objc.srcman, objc.srcinfo): Likewise.
43 2004-01-20 Bruce Korb <bkorb@gnu.org>
45 * fixinc/inclhack.def(math_exception): bypass only for glibc.
46 (matherr_decl): rename & relocate as exception_structure.
47 This fix must precede the math_exception fix.
49 2004-01-20 Roger Sayle <roger@eyesopen.com>
51 * fold-const.c (fold_convert): Rename to fold_convert_const.
52 (fold_convert_const): Change arguments to take a tree_code,
53 a type and the operand/expression to be converted. Return
54 NULL_TREE if no simplification is possible. Add support for
55 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
56 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
57 Adjust call to fold_convert to match new fold_convert_const.
58 Avoid modifying the tree passed to fold in-place.
60 2004-01-21 Alan Modra <amodra@bigpond.net.au>
62 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
63 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
64 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
66 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
68 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
69 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
70 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
71 (emit_move_sequence): Check scratch_reg first in various if statements.
72 Extend source simplification to handle all 64-bit CONST_INTs.
73 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
75 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
76 frame offset calculations.
77 * pa.h (NEW_HP_ASSEMBLER): Add comment.
78 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
79 LEGITIMATE_64BIT_CONST_INT_P): Define.
80 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
81 any CONST_INT as legitimate during and after reload.
82 (VAL_32_BITS_P, INT_32_BITS): Define.
83 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
85 2004-01-20 Jan Hubicka <jh@suse.cz>
87 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
88 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
89 containing hard regs are shared.
90 (gen_hard_reg_clobber): New function.
91 (hard_reg_clobbers): New array.
92 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
93 (copy_rtx): Do not copy clobbers containing hard regs.
94 * rtl.h (gen_hard_reg_clobber): Declare.
96 2004-01-20 Jan Hubicka <jh@suse.cz>
98 * varray.c: Include hashtab.h
99 (varray_descriptor): New structure.
100 (hash_descriptor, eq_descriptor, varray_descriptor,
101 print_statistics): New static functions
102 (varray_init, varray_grow): Update statistics
103 (dump_varray_statistics): New function.
104 * varray.h (dump_varray_statistics): Declare.
105 * toplev.c (finalize): Call it.
106 * Makefile.in (varray.o): Add dependency.
108 2004-01-20 Jan Hubicka <jh@suse.cz>
110 * cselib.c: Include alloc-pool.h
111 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
112 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
113 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
114 unchain_one_elt_loc_list_pool, unchain_one_value,
115 new_cselib_val): Simplify using allocpool.
116 (cselib_init): Initialize allocpools.
117 (cselib_finish): Finish allocpools.
118 * Makefile.in (cselib.o): Depend on alloc-pool.h
120 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
122 * config/mips/mips.c (mips_load_call_address): Make the call insn
123 use $gp if it could be calling a lazy binding stub.
125 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
127 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
128 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
129 (TARGET_STRUCT_VALUE_RTX): Likewise.
130 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
131 (PROMOTE_FUNCTION_RETURN): Remove.
132 (STRUCT_VALUE): Remove.
134 2004-01-20 Denis Chertykov <denisc@overta.ru>
136 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
137 register as pointer after reload.
139 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
141 PR optimization/12440
142 * loop.c: Include ggc.h.
143 (loop_optimize): Run garbage collector between optimization of loops.
144 * Makefile.in (loop.o): Add GGC_H dependency.
146 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
148 * gcc/config/rs6000/rs6000.c (function_arg) Handle
149 vector register special in function without prototype.
150 (function_arg_advance): Vector parameters get always
151 GPRs allocated for the linux64 target.
153 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
155 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
156 not TARGET_M32RX_MASK.
158 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
161 * config/sparc/sparc.c (function_arg): Reorder the cases.
163 2004-01-19 Per Bothner <per@bothner.com>
165 Move cpp_reader's line_maps field to a shared global.
166 * cpphash.h (cpp_reader): Rename line_maps field to line_table
167 and change the type to a pointer rather than a struct.
168 * cppinit.c (cpp_push_main_field): Adjust accordingly.
169 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
171 * cppfiles.c (validate_pch): Likewise.
172 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
174 * cpperror.c (print_location): Likewise.
175 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
176 * cppinit.c (cpp_create_reader): Handle new parameter.
177 (cpp_destroy): Don't free line_maps - that's no longer our job.
178 * input.h (line_table): New variable.
179 * toplev.c (line_table): Declare variable.
180 (general_init): Initialize line_table.
181 * c-opts.c (c_common_init_options): Pass line_table to
183 * fix-header.c (read_scan_file): New local variable line_table.
184 Initialize, and pass it to cpp_create_reader.
185 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
186 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
188 2004-01-19 Per Bothner <per@bothner.com>
190 Implement a cache for linemap_lookup.
191 * line-map.h (struct_line_maps): Add cache field.
192 * line-map.c (linemap_init): Zero cache field.
193 (linemap_add): Set cache field to offset of newly allocated map.
194 (linemap_lookup): Use and set cache field.
196 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
198 PR optimization/13567
199 * cse.c (cse_basic_block): Call cse_insn with a non-null
200 libcall_insn for the last SET insn of a no-confilict block.
202 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
204 * Makefile.in (target_noncanonical, program_transform_name): Use
205 immediate define instead of deferred.
206 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
207 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
208 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
211 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
213 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
214 true unconditionally.
215 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
217 (build_unary_op, build_modify_expr): Don't handle extended
219 (build_component_ref, build_conditional_expr): Call non_lvalue
220 instead of pedantic_non_lvalue.
221 (build_c_cast): Don't condition use of non_lvalue on pedantic.
222 * fold-const.c (fold): Don't check pedantic directly for
223 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
224 passed to pedantic_non_lvalue.
225 * doc/extend.texi: Remove documentation of extended lvalues.
227 2004-01-19 Roger Sayle <roger@eyesopen.com>
230 * simplify-rtx.c (associative_constant_p): Delete.
231 (simplify_associative_operation): Rewrite to linearize terms, and
232 attempt to simplify new term against both left and right subterms.
233 (simplify_binary_operation): Call swap_commutative_operands_p on
234 op0 and op1, not trueop0 and trueop1. Move the initialization of
235 trueop0 and trueop1 down to where first needed.
236 (simplify_relational_operation): Likewise.
237 * rtlanal.c (commutative_operand_precedence): Also order constant
238 operands using avoid_constant_pool_reference.
240 2004-01-19 Richard Henderson <rth@redhat.com>
242 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
243 don't check memory mode.
244 (unaligned_memory_operand): Likewise.
245 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
246 abort for op0 not MEM.
248 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
249 is not a reg, copy to a scratch first.
250 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
251 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
252 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
253 (reload_inqi, reload_inhi): Fix mode of op0.
254 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
255 reload_outhi_help): Likewise. Use define_insn_and_split.
257 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
260 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
262 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
263 "tls_object" for thread-local objects.
264 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
265 "#tls" for thread-local sections.
266 * configure.ac (thread-local checks): Specify --fatal-warnings in
267 every binutils-specific checks. For sparc*-*-*, test whether the
268 OS is Solaris and the tools are native and act accordingly.
269 * configure: Rebuild.
271 2004-01-19 Jeff Law <law@redhat.com>
273 * contrib.texi: Update Paolo Carlini's entry. New entries for
274 Jerry Quinn and Petur Runolfsson.
276 2004-01-19 Roger Sayle <roger@eyesopen.com>
278 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
279 size, don't use the larger zero-extending loads.
281 2004-01-19 Richard Henderson <rth@redhat.com>
283 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
284 * alpha.md (UNSPEC_NT_LDA): Remove.
285 (UNSPEC_CVTLQ, cvtlq): New.
286 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
287 (extendsidi2_fix): Remove.
288 (extendsidi2 splitter): Use cvtlq.
289 (extendsidi2 fp peepholes): Remove.
290 (cvtql): Use SFmode instead of SImode.
291 (fix_trunc?fsi): Update to match.
292 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
293 (movsi): Rename from movsi_nofix, remove f alternatives.
294 (movsi_nt_vms): Similarly.
295 (movsi_fix, movsi_nt_vms_fix): Remove.
297 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
299 2004-01-19 Jan Hubicka <jh@suse.cz>
301 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
302 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
304 (cgraph_remove_unreachable_nodes): New function
305 (cgraph_decide_inlining_of_small_function): Fix pasto.
306 (cgraph_decide_inlining_incrementally): Fix pasto.
307 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
309 2004-01-19 Steven Bosscher <stevenb@suse.de>
311 * gengtype.c (header_file): Make it static.
312 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
313 * gengtype.h (header_file): No longer extern.
315 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
317 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
318 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
319 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
321 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
323 * stmt.c (HAVE_casesi): Define it not already defined.
324 (HAVE_tablejump): Likewise.
325 (expand_end_case_type): Resort to the binary tree method if
326 neither casesi or tablejump is available.
328 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
330 * final.c (final_scan_insn): Make non-static again.
331 * output.h (final_scan_insn): Re-add prototype.
332 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
333 to final_scan_insn call.
334 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
335 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
336 * config/pa/pa.c (output_lbranch, output_call): Likewise.
337 * config/sh/sh.c (print_slot): Likewise.
338 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
339 (output_sibcall, sparc_flat_function_epilogue): Likewise.
341 2004-01-18 Jan Hubicka <jh@suse.cz>
343 * basic-block.h (try_redirect_by_replacing_jump): Declare.
344 * cfgcleanup.c (try_optimize_cfg): Use it.
345 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
346 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
348 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
351 2004-01-16 Geoffrey Keating <geoffk@apple.com>
353 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
354 even after reload, just don't remove the actual jump tables.
356 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
358 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
360 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
362 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
363 the size of a pointer in bytes.
365 2004-01-18 Roger Sayle <roger@eyesopen.com>
367 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
368 live "next" variable, which could lead to an infinite loop.
370 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
372 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
375 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
376 Check for NULL in the chain and remove repeated code.
378 2004-01-18 Jan Hubicka <jh@suse.cz>
380 * coverage.c (checksum_string): Rename to ...
381 (coverage_checksum_string): ... this one, Use crc32_string; recognize
382 names containing random number and zero the number out in order to get
385 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
387 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
389 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
391 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
392 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
393 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
394 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
395 doc/trouble.texi: Remove trailing whitespace.
397 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
400 * config/mips/mips.c: Include cfglayout.h.
401 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
402 (mips_unspec_offset_high): Add temporary register argument.
403 (mips_load_call_address): New function, split out from...
404 (mips_expand_call): ...here.
405 (mips_output_cplocal): New function.
406 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
407 (mips_emit_loadgp): New function, split out from...
408 (mips_expand_prologue): ...here.
409 (mips_output_mi_thunk): New function.
411 2004-01-17 Bernardo Innocenti <bernie@develer.com>
413 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
414 mcpu32): Remove redundant checks for implied target predefines.
416 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
418 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
419 Return type is unsigned int not int.
420 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
423 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
425 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
426 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
427 "GNU/Linux" and "Microsoft Windows" terminology.
429 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
431 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
432 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
433 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
434 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
435 @smallexample instead of @example.
437 2004-01-17 Ziemowit Laski <zlaski@apple.com>
439 * objc/objc-act.c (build_objc_method_call): Use target
440 hooks instead of macros to determine if ..._stret
441 dispatchers should be used (NeXT runtime only).
443 2004-01-17 Roger Sayle <roger@eyesopen.com>
445 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
446 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
448 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
450 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
451 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
452 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
454 * reload1.c (emit_reload_insns): Use them.
455 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
456 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
459 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
461 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
462 (final_scan_insn): Update to take an additional SEEN argument. Emit
463 a line note after the prologue. Make static.
464 (line_note_exists): Remove.
465 (final): Don't initialize line_note_exists. Update call to
467 * output.h (final_scan_insn): Remove prologue.
468 * function.c (set_insn_locators): Update comment.
469 (thread_prologue_and_epilogue_insns): Add a comment.
471 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
474 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
476 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
478 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
479 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
480 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
482 2004-01-17 Jan Hubicka <jh@suse.cz>
484 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
487 * toplev.c (HAVE_conditional_execution): Provide default.
488 (rest_of_handle_reorder_blocks): For conditional_execution target
489 update liveness once after all transformations
490 (rest_of_compilation): Do crossjumping before ce3.
492 2004-01-17 Geoffrey Keating <geoffk@apple.com>
494 * alias.c (new_alias_set): Mark last_alias_set for PCH.
495 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
497 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
498 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
499 (get_TOC_alias_set): Mark 'set' for PCH.
501 2004-01-16 Geoffrey Keating <geoffk@apple.com>
503 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
504 even after reload, just don't remove the actual jump tables.
506 2004-01-17 J. Brobecker <brobecker@gnat.com>
508 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
509 Remove checks for is_ada() and TREE_UNSIGNED.
510 (subrange_type_die): Emit a byte_size attribute if the subrange
511 type size is different from the base type size.
512 (modified_type_die): Replace call to is_ada_subrange_type() by
513 call to is_subrange_type().
515 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
517 * config/sh/sh.c: Include ggc.h.
519 2004-01-16 Geoffrey Keating <geoffk@apple.com>
521 * Makefile.in (MD5_H): New.
522 (fold-const.o): Depend on md5.h.
523 (dwarf2out.o): Likewise.
524 (cppfiles.o): Likewise.
525 * cppfiles.c: Include md5.h.
526 (should_stack_file): Check against list read from PCH file.
527 (struct pchf_data): New.
528 (pchf): New variable.
529 (struct pchf_adder_info): New.
531 (pchf_save_compare): New.
532 (_cpp_save_file_entries): New.
533 (_cpp_read_file_entries): New.
534 (struct pchf_compare_data): New.
536 (check_file_against_entries): New.
537 * cpphash.h (_cpp_save_file_entries): Prototype.
538 (_cpp_read_file_entries): Prototype.
539 * cpppch.c (cpp_write_pch_state): Write the list of headers.
540 (cpp_read_state): Read the list of headers.
542 2004-01-17 Jan Hubicka <jh@suse.cz>
544 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
545 builtin_expect specially.
546 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
547 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
548 * invoke.texi (max-inline-insns-single): Set to 100.
549 (large-function-insns): Set to 3000.
551 2004-01-16 Eric Christopher <echristo@redhat.com>
552 Chandrakala Chavva <cchavva@redhat.com>
554 * cppcharset.c (one_iso88591_to_utf8): New function.
555 (convert_iso88591_utf8): Ditto. Use.
556 (conversion_tab): Use.
557 (_cpp_input_to_utf8): New function.
558 (_cpp_init_iconv_buffer): Ditto.
559 (_cpp_close_iconv_buffer): Ditto.
560 * cpphash.h: Prototype new functions.
561 (cpp_buffer): Add input_cset_desc.
562 * cppinit.c: Add input_charset default.
563 * cpplib.c (cpp_push_buffer): Support init and
565 * cpplib.h (cpp_options): Add input_charset.
567 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
569 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
570 * config/alpha/unicosmk.h: Remove a commented-out definition
571 of ASM_OUTPUT_SECTION_NAME.
572 * config/stormy16/stormy16.h: Likewise.
574 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
576 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
577 (alpha___extern_prefix_sys_stat): ... this.
578 Apply to <sys/mount.h>, too.
579 Tweak to match more variations.
580 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
582 * fixinc/inclhack.def (alpha___extern_prefix,
583 alpha___extern_prefix_standards): New hacks to obey
584 __PRAGMA_EXTERN_PREFIX.
585 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
587 * fixinc/tests/base/standards.h: Likewise.
589 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
592 * fixinc/tests/base/pthread.h: Handle it.
594 * fixincl/inclhack.def (bad_lval): Sort file list.
595 Add many missing files up to Tru64 UNIX V5.1B.
596 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
597 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
600 * fixinc/fixincl.x: Regenerate.
602 2004-01-16 Mark Mitchell <mark@codesourcery.com>
604 * version.c (version_string): Change to 3.5.0.
605 * doc/include/gcc-common.texi (version-GCC): Likewise.
607 2004-01-16 Jan Hubicka <jh@suse.cz>
609 * i386.md (load_tp_di): Fix pasto.
612 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
614 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
615 pp_c_character_constant, pp_c_floating_constant,
616 pp_c_additive_expression, pp_c_shift_expression,
617 pp_c_equality_expression, pp_c_and_expression,
618 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
619 pp_c_logical_and_expression): Remove inline modifier.
620 * dwarf2out.c (get_AT): Likewise.
621 * et-forest.c (et_splay): Likewise.
622 * ra.h (ra_alloc, ra_calloc): Likewise
624 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
626 * config/frv/frv-protos.h: Fix comment formatting.
627 * config/frv/frv.c: Likewise.
628 * config/frv/frv.h: Likewise.
629 * config/frv/frv.md: Likewise.
630 * config/frv/frvbegin.c: Likewise.
631 * config/frv/frvend.c: Likewise.
633 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
635 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
636 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
637 LINKER_DOES_NOT_WORK_WITH_DWARF2.
638 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
640 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
643 * postreload.c (reload_cse_simplify_operands): Don't remove
644 implicit extension from LOAD_EXTEND_OP.
646 2004-01-16 Jan Hubicka <jh@suse.cz>
649 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
651 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
652 rtl_try_redirect_by_replacing_branch): Likewise.
654 2004-01-15 Geoffrey Keating <geoffk@apple.com>
657 * alias.c (struct alias_set_entry): Mark for GC.
658 (alias_sets): Make static, mark for GC.
659 (record_alias_subset): Use GC to allocate alias structures.
660 * varray.c (element): Make generic varrays GCed.
663 * c-typeck.c (constructor_asmspec): Delete.
664 (struct initializer_stack): Delete field 'asmspec'.
665 (start_init): Delete saving of asmspec.
666 (finish_init): Don't update constructor_asmspec.
667 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
668 * stmt.c (expand_asm): Duplicate strings from tree.
669 (expand_asm_operands): Likewise.
670 * tree.c (tree_size): Update computation of size of STRING_CST.
671 (make_node): Don't make STRING_CST nodes.
672 (build_string): Allocate string with tree node.
673 * tree.def (STRING_CST): Update comment.
674 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
675 (tree_string): Place contents of string in tree node.
676 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
679 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
682 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
684 * c-common.h: Fix comment formatting.
685 * c-cppbuiltin.c: Likewise.
686 * c-pragma.c: Likewise.
688 * collect2.c: Likewise.
689 * cppcharset.c: Likewise.
690 * cpptrad.c: Likewise.
691 * dbxout.c: Likewise.
692 * defaults.h: Likewise.
693 * dwarf2out.c: Likewise.
694 * fold-const.c: Likewise.
695 * genautomata.c: Likewise.
696 * genconditions.c: Likewise.
697 * genflags.c: Likewise.
698 * gengtype.c: Likewise.
699 * integrate.c: Likewise.
701 * predict.c: Likewise.
702 * sdbout.c: Likewise.
704 2004-01-15 Zack Weinberg <zack@codesourcery.com>
706 * config/ia64/ia64.md (*movti_internal): C output template
708 (*movti_internal_reg): Delete.
709 (reload_inti, reload_outti): Use the correct mode on operand 2
710 in the first place, don't fix it up in the output template.
711 (movtf, reload_ointf, reload_outtf): New expanders.
712 (*movtf_internal): New define_insn_and_split.
713 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
714 make static; do not hand TFmode CONST_DOUBLEs to split_double.
715 (ia64_split_tmode_move): New function, body mostly pulled
716 from ia64.md:*movti_internal.
717 (ia64_function_arg_words): New function, extracted common
718 logic from ia64_function_arg et seq.
719 (ia64_function_arg_offset): Likewise. Handle correctly the
720 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
721 (ia64_function_arg, ia64_function_arg_partial_nregs)
722 (ia64_function_arg_advance): Use ia64_function_arg_words and
723 ia64_function_arg_offset.
724 (ia64_function_value): TCmode does not go in float regs.
725 (ia64_secondary_reload_class): Also handle TFmode.
726 * config/ia64/ia64-protos.h: Remove prototype for
727 ia64_split_timode; add prototype for ia64_split_tmode_move.
729 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
731 * Makefile.in (MAINT): Make it an immediate assignment.
733 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
735 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
737 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
739 * config/h8300/coff.h: Replace Hitachi with Renesas.
740 * config/h8300/elf.h: Likewise.
741 * config/h8300/h8300-protos.h: Likewise.
742 * config/h8300/h8300.c: Likewise.
743 * config/h8300/h8300.h: Likewise.
744 * config/h8300/h8300.md: Likewise.
745 * config/h8300/lib1funcs.asm: Likewise.
747 2004-01-15 Andrew Pinski <apinski@apple.com>
749 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
752 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
754 * config/h8300/h8300.c (h8300_return_in_memory): New.
755 (TARGET_STRUCT_VALUE_RTX): Likewise.
756 (TARGET_RETURN_IN_MEMORY): Likewise.
757 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
758 (RETURN_IN_MEMORY): Likewise.
760 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
762 PR optimization/13375
763 * gcse.c (handle_avail_expr): Just return if the source is not a
766 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
767 Daniel Jacobowitz <drow@mvista.com>
769 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
771 (ARM_FUNC_ALIAS): New macro.
772 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
773 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
775 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
777 PR optimization/12372
778 * calls.c (expand_call): Add call_fusage data for stack arguments in
781 2004-01-15 Alan Modra <amodra@bigpond.net.au>
783 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
784 (rs6000_elf_declare_function_name): Formatting.
785 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
787 2004-01-15 Jan Hubicka <jh@suse.cz>
790 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
793 2004-01-15 Richard Henderson <rth@redhat.com>
795 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
796 integer regs of the same call-savedness.
798 2004-01-15 Andreas Schwab <schwab@suse.de>
801 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
802 status for NOTB/NOTW/NEGW methods.
804 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
806 * doc/invoke.texi: Update dump file names. Fix a typo.
808 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
810 * builtins.c (expand_builtin_va_end): Don't use
811 EXPAND_BUILTIN_VA_END.
812 * system.h (EXPAND_BUILTIN_VA_END): Poison.
813 * config/d30v/d30v.h: Remove a commented-out definition of
814 EXPAND_BUILTIN_VA_END.
815 * config/stormy16/stormy16.h: Likewise.
817 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
819 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
820 * targhooks.c (default_struct_value_rtx): Don't use
821 STRUCT_VALUE_INCOMING_REGNUM.
823 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
826 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
827 GENINSRC and not parsedir. Define srcextra as a langhook.
828 * configure: Regenerate.
829 * Makefile.in: Suppress default .l.c rule. Don't substitute
830 parsedir and delete all references throughout. Conditionally define
831 rule for srcextra dependent on GENINSRC.
832 (stmp-docobjdir): Delete.
833 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
834 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
835 and gengtype-yacc.h back to source directory.
836 (maintainer-clean): Delete all parse files in source directory.
837 (distclean): Delete generated files.
839 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
840 (objc-parse.c, objc-parse.y): Don't use parsedir.
841 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
842 directory if requested.
843 (po-generated): Don't use parsedir.
844 (objc.maintainer-clean): Delete above files from source directory.
846 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
848 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
850 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
852 * doc/tm.texi: Replace RETURN_IN_MEMORY with
853 TARGET_RETURN_IN_MEMORY.
855 2004-01-15 Jan Hubicka <jh@suse.cz>
857 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
858 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
859 functions accepting SSE arguments
860 (function_arg): Warn only when asked to warn.
861 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
863 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
865 * c-parse.in (stmts_and_decls): Make label at end of compound
866 statement a hard error.
868 2004-01-14 Jan Hubicka <jh@suse.cz>
870 * cgraph.c (create_edge): Use local.redefined_extern_inline.
871 * cgraph.h (cgraph_local_info): Sort fields by size; add
872 redefined_extern_inline
873 (cgraph_global_info): Sort fields by size.
874 (cgraph_node): Likewise.
875 * cgraphunit.c (cgraph_finalize_function): Se
876 local.redefined_extern_inline on redefinition.
877 (cgraph_analyze_function): Use it; fix formating.
879 2004-01-14 Jan Hubicka <jh@suse.cz>
882 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
883 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
885 (cache_size): New variable
886 (add_dependence): Update use; canonize early memory locations
887 (sched_analyze_1): Likewise.
888 (sched_analyze_2): Likewise.
889 (init_dependency_caches): Initialize bitmaps.
890 (free_dependency_caches): Free bitmaps
892 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
894 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
895 targetm.calls.strict_argument_naming().
896 * target.h: Likewise.
898 2004-01-14 Richard Henderson <rth@redhat.com>
901 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
904 2004-01-14 Richard Henderson <rth@redhat.com>
907 * except.c (struct eh_region): Add u.fixup.resolved.
908 (resolve_one_fixup_region): Split out from ...
909 (resolve_fixup_regions): ... here.
911 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
913 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
915 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
917 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
918 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
919 (STRUCT_VALUE): Remove.
921 2004-01-14 Steven Bosscher <stevenb@suse.de>
923 * system.h: Poison PROMOTED_MODE
924 * integrate.c (expand_inline_function): Don't mention the
926 * loop.c (update_giv_derive): Same.
927 * tree.h (DECL_RTL): Same.
929 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
932 * sh.c (gen_block_redirect): Add special handling of RETURN.
933 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
934 far branch target (i.e. it's a return).
936 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
938 * regrename.c (find_oldest_value_reg): Fix a warning.
940 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
943 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
944 Move linux-gas.h and linux-elf.h before aout.h.
945 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
946 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
948 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
950 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
951 (CONST_INT, VOIDmode, ...).
953 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
955 * regrename.c (find_oldest_value_reg): If the replacement uses
956 multiple hard registers, check that all of them are in CLASS.
958 2004-01-14 Jan Hubicka <jh@suse.cz>
960 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
963 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
965 * Makefile.in: Define MAINT from --enable-maintainer-mode.
967 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
969 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
970 Calculate always vrsave_mask if TARGET_ALTIVEC.
971 (rs6000_emit_prologue): Emit code for vrsave
972 only if TARGET_ALTIVEC_VRSAVE.
973 (rs6000_emit_epilogue): Likewise.
975 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
977 * config/sparc/sparc.md (tie_add32): Fix pasto.
978 (tie_add64): Likewise.
980 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
982 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
984 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
986 * config/iq2000/iq2000-protos.h: Fix comment formatting.
987 * config/iq2000/iq2000.c: Likewise.
988 * config/iq2000/iq2000.md: Likewise.
990 2004-01-14 J. Brobecker <brobecker@gnat.com>
992 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
993 (subrange_type_die): Add handle for nameless subrange types.
995 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
997 * config/h8300/h8300-protos.h: Replace do_movsi with
999 * config/h8300/h8300.c (do_movsi): Change to
1001 * config/h8300/h8300.md (movsi): Replace do_movsi with
1005 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
1007 * config/h8300/h8300.c (dosize): Change to
1008 h8300_emit_stack_adjustment. Update callers.
1010 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
1012 * config/h8300/h8300.md (movstrictqi): Add an alternative with
1013 the source being post_inc. Tighten the predicate for the
1014 destination to register_operand.
1015 (movstricthi): Likewise.
1017 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
1019 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
1020 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
1021 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
1023 2004-01-14 Jan Hubicka <jh@suse.cz>
1025 Partial fix PR c++/12850
1026 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
1029 2004-01-13 Bernardo Innocenti <bernie@develer.com>
1031 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
1034 2004-01-13 Devang Patel <dpatel@apple.com
1037 * dbxout.c (dbxout_symbol_name): Emit mangled names for
1038 NAMESPACE_DECL memebers.
1040 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
1043 * c-common.c (finish_fname_decls): Use the chain only if the
1044 tree is an expr_stmt.
1046 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
1048 * rtl.def: Add comment about new option in automata_option.
1050 * genautomata.c (PROGRESS_OPTION): New macro.
1051 (progress_flag): New global variable.
1052 (gen_automata_option): Process `progress'.
1053 (transform_insn_regexps, check_unit_distributions_to_automata,
1054 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
1055 expand_automata, write_automata): Print about the progress only if
1056 progress_flag. Remove fflush.
1057 (initiate_automaton_gen): Process command line flag `-progress'.
1059 * doc/md.texi: Describe the new option.
1061 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1063 * cfg.c (dump_bb): Dump entry edges.
1065 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
1067 * arm.c (thumb_legitimate_address_p): Only allow constant pool
1068 references from SImode.
1069 * arm.md (thumb_movhi_insn): Don't allow minipool references.
1071 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
1073 * system.h (TEXT_SECTION): Poison.
1074 * varasm.c (text_section): Don't use TEXT_SECTION.
1075 * config/sh/sh.c (sh_file_start): Fix a comment typo.
1076 * doc/tm.texi (TEXT_SECTION): Remove.
1078 2004-01-13 Ben Elliston <bje@wasabisystems.com>
1080 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
1082 2004-01-12 James E Wilson <wilson@specifixinc.com>
1084 * unwind-libunwind.c: Delete.
1086 2004-01-12 Zack Weinberg <zack@codesourcery.com>
1089 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
1090 oldtype is set, set *newtypep or *oldtypep too. Do not set
1091 them at the very end.
1092 (validate_proto_after_old_defn): Restructure for comprehensibility;
1093 make error messages clearer.
1095 2004-01-12 Zack Weinberg <zack@codesourcery.com>
1097 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
1098 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
1099 * varray.c: No need to prototype error.
1100 (varray_check_failed): Wrap long string onto two lines.
1101 (varray_underflow): New function.
1103 2004-01-13 Steven Bosscher <stevenb@suse.de>
1106 * function.h (struct function): Kill `name' field.
1107 (current_function_name): Make it an extern function.
1108 * function.c (current_function_name): New function.
1109 * graph.c: Update all uses of current_function_name.
1111 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
1112 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
1113 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
1114 instead of a strcmp with "main".
1116 2004-01-13 Jan Hubicka <jh@suse.cz>
1118 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
1120 * cgraphunit.c (cgraph_optimize_function): Always do
1121 optimize_inline_calls when there is always_inline callee.
1122 (cgraph_decide_inlining): Fix formating.
1123 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
1125 (expand_call_inline): Likewise.
1126 * toplev.h (sorry): Fix prototype.
1128 2004-01-12 Roger Sayle <roger@eyesopen.com>
1130 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
1131 conditional jumps that drop through to unconditional jumps or the
1132 end of the sequence.
1134 2004-01-13 Jan Hubicka <jh@suse.cz>
1136 * alias.c (new_alias_set): Construct the alias_set varray.
1137 (init_alias_once): Don't do it here.
1139 2004-01-12 Marc Espie <espie@openbsd.org>
1141 * system.h: handle YYBYACC like YYBISON.
1143 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
1146 * config.gcc: No longer includes conflicting header sparc/sol2.h when
1147 building on sparc64-*-openbsd*.
1149 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
1152 * dbxout.c (dbxout_type): Protected inheritance is not
1153 private but protected.
1155 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
1157 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
1159 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
1161 PR optimization/12508.
1162 * combine.c (try_combine): Remove a dead set in a parallel
1163 even if its destination is a subreg.
1166 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
1167 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
1168 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
1170 2004-01-12 Geoffrey Keating <geoffk@apple.com>
1172 * real.c: Update copyright date.
1173 * emit-rtl.c: Likewise.
1175 * dwarf2out.c: Likewise.
1176 * config/rs6000/darwin-ldouble.c: Likewise.
1177 * config/rs6000/rs6000.md: Likewise.
1179 2004-01-12 David Edelsohn <edelsohn@gnu.org>
1181 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
1182 TFmode to SImode libfuncs.
1184 2004-01-12 Roger Sayle <roger@eyesopen.com>
1187 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
1189 2004-01-12 Jan Hubicka <jh@suse.cz>
1192 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
1196 * cfgcleanup.c (label_is_jump_target_p): Move to...
1197 * rtlanal.c (label_is_jump_target_p): ... here.
1198 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
1199 edges unified with branch edges.
1201 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
1203 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
1204 high word of an integral CONST_DOUBLE.
1206 2004-01-12 Paul Brook <paul@codesourcery.com>
1208 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
1210 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
1213 * sh-protos.h (check_use_sfunc_addr): Declare.
1214 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
1215 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
1217 2004-01-12 Jan Hubicka <jh@suse.cz>
1219 * alias.c: Invlude varray.h
1220 (alias_sets): Turn into varray.
1221 (get_alias_set_entry): Use VARRAY; mark inline.
1222 (mems_in_disjoint_alias_sets_p): Mark inline.
1223 (record_alias_subset): Use varray.
1224 (init_alias_once): Initialize varray.
1225 (new_alias_set): Grow array.
1226 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
1228 2004-01-12 Jan Hubicka <jh@suse.cz>
1230 Partial fix for PR opt/10776 II
1231 * cselib.c: Include params.h
1232 (cselib_invalidate_mem): Limit amount of nonconflicting memory
1234 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
1235 * Makefile.in (cselib.o): Depend on params.h
1237 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
1239 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
1240 simplify_unary_operation if the operand has a known mode.
1242 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
1245 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
1246 predicate to handle 'ld' conform addresses.
1247 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
1249 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
1250 are memory contraints.
1251 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
1253 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
1254 Change 'o' to 'Y' constraint.
1255 (*movdf_softfloat64): Ditto.
1257 2004-01-12 Bernardo Innocenti <bernie@develer.com>
1259 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
1260 brace-enclosed syntax in all C output statements.
1262 2004-01-12 David Edelsohn <edelsohn@gnu.org>
1265 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1266 Objective-C language type value is 14.
1268 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
1271 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
1272 `int' in a number of places to make sure we always have a SImode
1273 and not a HImode. Add a 'L' suffix to a number of constants.
1275 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1277 * pa.c: Don't include obstack.h.
1279 * pa.md: Correct constraint in pattern for loading PIC label address.
1281 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
1283 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
1286 2004-01-11 Steven Bosscher <stevenb@suse.de>
1289 * toplev.c (rest_of_handle_inline): Also consider functions
1290 for deferral if the language is GNU F77.
1292 2004-01-11 Zack Weinberg <zack@codesourcery.com>
1294 * c-decl.c (diagnose_arglist_conflict): Add missing space to
1295 diagnostic messages.
1297 2004-01-11 Jakub Jelinek <jakub@redhat.com>
1300 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
1301 to drop through label. Don't fall back to SCC even when conditional
1302 jump has not been found.
1304 2004-01-11 Jan Hubicka <jh@suse.cz>
1306 * invoke.texi: Fix syntax error in previous patch.
1308 Partial fix for PR opt/10776
1309 * Makefile.in (reload.o): Include param.h
1310 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
1311 * reload.c: Include params.h.
1312 (find_equiv_reg): Work limiting check.
1313 * invoke.texi: Document.
1315 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
1317 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
1318 out-of-bounds accesses to string constants. Simplify mips16
1321 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
1323 PR optimization/13469
1324 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
1325 reload_cse_regs (-fnon-call-exceptions only).
1327 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
1329 * config/mcore/lib1.asm: Fix comment formatting.
1330 * config/mcore/mcore-elf.h: Likewise.
1331 * config/mcore/mcore.c: Likewise.
1332 * config/mcore/mcore.h: Likewise.
1333 * config/mcore/mcore.md: Likewise.
1335 2004-01-10 Zack Weinberg <zack@codesourcery.com>
1337 * c-decl.c (duplicate_decls): Break apart into...
1338 (diagnose_arglist_conflict, validate_proto_after_old_defn)
1339 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
1340 ... these new functions. Restructure for comprehensibility.
1341 Remove various archaic special cases. Always report the
1342 location of the previous declaration when a diagnostic is issued.
1343 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
1344 (match_builtin_function_types): Delete unnecessary forward declaration.
1346 2004-01-10 Zack Weinberg <zack@codesourcery.com>
1348 * genautomata.c (make_automaton, NDFA_to_DFA):
1349 Print progress bars with '.' characters instead of '*'.
1350 (build_automaton): Change notes to match.
1352 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
1354 * config/m32r/m32r.md: Use define_constants for unspec and
1357 2004-01-10 Jan Hubicka <jh@suse.cz>
1360 * expr.c (expand_expr_real): More curefully expand union casts.
1362 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
1364 * config/m32r/m32r.md (flush_icache): Use 1 for
1367 2004-01-10 David Edelsohn <edelsohn@gnu.org>
1368 James E Wilson <wilson@specifixinc.com>
1371 * dbxout.c (dbxout_symbol): Remove initialization of
1372 current_sym_code, current_sym_value, and current_sym_addr.
1373 (dbxout_symbol_location): Same.
1374 (dbxout_prepare_symbol): Zero current_sym_code,
1375 current_sym_value, and current_sym_addr.
1377 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
1379 * tree.c (get_unwidened): Reorder conditions so that the null pointer
1380 check is done first.
1382 2004-01-09 Eric Christopher <echristo@redhat.com>
1384 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
1385 if we're running mark_constant_function.
1387 2004-01-09 Jeff Bailey <jbailey@nisa.net>
1390 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
1392 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
1395 * dbxout.c (dbxout_type_fields): Return if any item is
1396 error_mark_node or the type is error_mark_node.
1398 2004-01-09 Geoffrey Keating <geoffk@apple.com>
1400 * config/rs6000/darwin-ldouble.c: Add big comment explaining
1401 exactly what is expected as a 'long double'.
1402 (_xlqadd): When a value to be returned is representable as a
1403 'double', just return it directly, do not construct it using a union.
1404 Also, correct final fixup.
1405 (_xlqmul): Likewise.
1406 (_xlqdiv): Likewise.
1407 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
1409 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
1411 2004-01-09 Richard Henderson <rth@redhat.com>
1413 * recog.c (constrain_operands): Validate mem operands.
1415 2004-01-09 James E Wilson <wilson@specifixinc.com>
1417 * gcc.c (init_spec): Remove -lunwind from shared case.
1418 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
1420 2004-01-09 Steve Ellcey <sje@cup.hp.com>
1422 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
1423 * configure: Regenerate
1425 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
1428 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
1429 between function and object pointers.
1430 (digest_init): When comparing a pointer to function type to the
1431 target type, only apply TREE_TYPE once to the pointer to function
1433 * except.c (for_each_eh_label_1): Treat data as a pointer to a
1434 function pointer rather than casting it to a function pointer.
1435 (for_each_eh_label): Update caller.
1436 * recog.h (struct insn_data): Use a struct or union for output.
1437 * genoutput.c (output_insn_data): Update.
1438 * final.c (get_insn_template): Update.
1440 2004-01-09 Mark Mitchell <mark@codesourcery.com>
1442 * expr.h (expand_expr): Make it a macro, not a function.
1443 (expand_expr_real): New function.
1444 * expr.c (store_expr): Adjust logic for deciding whether or not to
1445 copy the value returned by expand_expr.
1446 (expand_expr): Rename to ...
1447 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
1448 calls to language hooks.
1449 * c-common.h (c_expand_expr): Adjust prototype.
1450 * c-common.c (c_expand_expr): Add alt_rtl parameter.
1451 * langhooks-def.h (lhd_expand_expr): Change prototype.
1452 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
1453 * langhooks.h (lang_hooks): Change type of expand_expr.
1454 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
1455 (last_expr_alt_rtl): Likewise.
1456 (expand_expr_stmt_value): Set last_expr_alt_rtl.
1457 (clear_last_expr): Clear it.
1458 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
1459 (expand_end_bindings): Save and restor last_expr_alt_rtl.
1460 * tree.def (RTL_EXPR): Give it an additional operand.
1461 * tree.h (RTL_EXPR_ALT_RTL): New macro.
1463 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1465 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
1466 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
1468 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
1471 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
1472 or (ne:SI (reg:CC 17) (const_int 0)).
1473 Be specific about modes wherever possible.
1475 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
1477 * config/m32r/m32r.c (m32r_expand_block_move): Call
1478 gen_movestrsi_internal with two more arguments.
1479 (m32r_output_block_move): Adjust operand numbers.
1480 Properly update the source and destination pointers.
1481 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
1482 'r+'. Change the set detinations to match_operand.
1484 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
1486 * final.c (FIRST_INSN_ADDRESS): Remove.
1487 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
1488 * system.h (FIRST_INSN_ADDRESS): Poison.
1489 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
1490 * config/m32r/m32r-protos.h: Remove the prototype for
1491 m32r_first_insn_address.
1492 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
1493 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
1494 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
1496 2004-01-09 J. Brobecker <brobecker@gnat.com>
1498 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
1500 (is_ada_subrange_type): DIEs for enumeration subtypes should be
1501 emitted as subrange types too.
1502 (subrange_type_die): Add handling of enumeration subtypes.
1504 2004-01-08 Richard Henderson <rth@redhat.com>
1507 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
1508 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1509 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1510 (ix86_address_cost): Be prepared for SUBREGed registers.
1511 (legitimate_address_p): Accept SUBREGed registers.
1513 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
1515 * Makefile.in: Rename configure.in to configure.ac
1516 * doc/sourcebuild.texi: Likewise.
1517 * configure: Regenerate.
1518 * config.in: Regenerate.
1520 2004-01-08 Stuart Hastings <stuart@apple.com>
1522 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
1524 2004-01-08 Jan Hubicka <jh@suse.cz>
1526 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
1528 2004-01-08 Geoffrey Keating <geoffk@apple.com>
1530 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
1531 (UNSPEC_FIX_TRUNC_TF): New constant.
1532 (movtf_internal): Make splitter active only when insn is active.
1533 (extenddftf2): Rewrite to properly load zero into low part.
1534 (extenddftf2_internal): New.
1535 (extendsftf2): Rewrite.
1536 (truncdftf2): Correct length.
1537 (floatditf2): Delete.
1538 (fix_trunc_helper): New.
1539 (fix_trunctfdi2): Use fix_trunc_helper.
1540 (fix_trunctfsi2): Likewise.fix_trunc
1541 (fix_trunctfsi2_internal): New.
1543 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
1544 addresses are legitimate on Darwin even when flag_pic.
1545 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
1546 non-offsettable addresses for loads of TFmode constants.
1548 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1550 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
1551 variables in the appropriate bss section.
1553 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1555 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
1556 target_flags has MASK_POWERPC64 when -m64.
1557 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
1558 to 620, 630, power3, power4 and rs64a entries.
1559 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
1561 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
1563 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
1564 floating-point constants.
1566 2004-01-08 J. Brobecker <brobecker@gnat.com>
1568 * dwarf2out.c (subrange_type_die): Add context_die parameter.
1569 Create the subrange_type DIE using the given context DIE.
1570 (modified_type_die): Update call to subrange_type_die.
1572 2004-01-08 Zack Weinberg <zack@codesourcery.com>
1574 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
1575 Add multiple-include guard.
1577 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
1579 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
1580 all vector constant loadable by vsplt*.
1581 (output_vec_const_move): Likewise.
1583 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
1586 * c-typeck.c (comptypes): Only treat enumerated types in the same
1587 translation unit as compatible with each other when they are the
1589 * doc/extend.texi: Update.
1591 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
1594 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
1595 array type from the array element type.
1597 2004-01-07 Alan Modra <amodra@bigpond.net.au>
1599 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
1600 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
1601 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
1602 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
1603 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
1605 2004-01-06 Eric Christopher <echristo@redhat.com>
1607 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
1608 (DWARF2_DEBUGGING_INFO): Define.
1609 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
1610 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
1611 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
1613 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
1614 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
1615 * config/mips/iris5gas.h: Ditto.
1616 (DBX_DEBUGGING_INFO): Remove.
1617 (DWARF2_DEBUGGING_INFO): Ditto.
1618 (MIPS_DEBUGGING_INFO): Ditto.
1619 (PREFERRED_DEBUGGING_TYPE): Ditto.
1620 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
1621 (PREFERRED_DEBUGGING_TYPE): Ditto.
1622 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
1623 * config/mips/elf64.h: Ditto.
1625 2004-01-06 Jan Hubicka <jh@suse.cz>
1627 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
1628 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
1630 2004-01-06 Geoffrey Keating <geoffk@apple.com>
1632 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
1633 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
1634 * config/rs6000/darwin-ldouble.c: New.
1636 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
1638 (constant_subword): Delete.
1639 * rtl.h (constant_subword): Delete prototype.
1640 (immed_double_const): Is not in varasm.c.
1641 * simplify-rtx.c (simplify_immed_subreg): New.
1642 (simplify_subreg): Use simplify_immed_subreg.
1644 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
1645 than trying to generate RTL directly.
1646 (fix_trunctfsi2): Use expand_fix rather than trying to generate
1649 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
1651 2004-01-06 David Edelsohn <edelsohn@gnu.org>
1653 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
1654 function into a separate macro.
1655 (read_only_data_section): Add void argument.
1656 (private_data_section): Same.
1657 (read_only_private_data_section): Same.
1658 (toc_section): Same.
1660 2004-01-06 Jan Hubicka <jh@suse.cz>
1662 * invoke.texi: Remove typo in last change.
1665 * config.gcc: Accept opteron and athlon-64 as variants
1667 * i386.c (override_options): Likewise.
1668 * invoke.texi (i386 -mtune): Expand documentation.
1670 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
1672 * alias.c: Fix comment typos.
1673 * builtins.c: Likewise.
1676 * dominance.c: Likewise.
1677 * dwarf2out.c: Likewise.
1678 * emit-rtl.c: Likewise.
1680 * final.c: Likewise.
1681 * fold-const.c: Likewise.
1683 * genattrtab.c: Likewise.
1684 * genrecog.c: Likewise.
1685 * gensupport.c: Likewise.
1686 * ggc-zone.c: Likewise.
1687 * integrate.c: Likewise.
1688 * local-alloc.c: Likewise.
1690 * recog.c: Likewise.
1691 * regmove.c: Likewise.
1692 * reg-stack.c: Likewise.
1693 * reorg.c: Likewise.
1694 * rtlanal.c: Likewise.
1696 * sched-ebb.c: Likewise.
1697 * simplify-rtx.c: Likewise.
1698 * toplev.c: Likewise.
1699 * varasm.c: Likewise.
1701 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
1703 * doc/install.texi: Fix typos.
1704 * doc/invoke.texi: Likewise.
1705 * doc/md.texi: Likewise.
1707 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1709 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
1711 2004-01-06 Jan Hubicka <jh@suse.cz>
1713 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
1714 (function_arg_advance): Do not pass aggregates in SSE; deal handling
1716 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
1718 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
1719 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
1720 (MMX_REGPARM_MAX): Similarly for -mmmx.
1722 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1724 * config/sh/linux.h: Fix comment formatting.
1725 * config/sh/netbsd-elf.h: Likewise.
1726 * config/sh/sh.c: Likewise.
1727 * config/sh/sh.h: Likewise.
1728 * config/sh/vxworks.h: Likewise.
1730 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1732 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
1733 * toplev.c (output_file_directive): Don't use
1734 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
1736 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
1738 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
1739 (USING_MMAP): We don't support non-mmap.
1740 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
1742 (struct page_entry): Remove bytes_free.
1743 (struct page_table_chain): Remove.
1744 (struct globals): Remove page_table member.
1745 (loookup_page_table_entry): Function deleted.
1746 (set_page_table_entry): Ditto.
1747 (ggc_allocated_p): No longer need page table lookups.
1748 (ggc_marked_p): Ditto.
1749 (alloc_small_page): Don't care about bytes_free anymore.
1750 (alloc_large_page): Round up size.
1751 (ggc_alloc_zone_1): Mark large objects as such, and calculate
1752 their size the new way.
1753 Remove page table lookups and setting.
1754 (ggc_get_size): Calculate large object size the new way.
1755 (sweep_pages): Redo to account for fact that we no longer have
1757 (ggc_collect): No longer need to reincrement bytes_free.
1758 (ggc_pch_alloc_object): Handle new large objects properly.
1759 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
1761 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1763 * doc/invoke.texi: Remove a page break.
1765 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1767 * config/avr/avr.c (avr_output_function_prologue): Remove an
1768 extra pair of curly braces.
1770 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1772 * config/mn10300/mn10300.c: Fix comment formatting.
1773 * config/mn10300/mn10300.h: Likewise.
1775 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1777 * tree.h: Update documentation on nothrow_flag.
1778 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
1781 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1783 * doc/invoke.texi: Remove traces of dead ports.
1785 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1787 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
1790 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1793 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
1795 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
1796 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
1797 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
1798 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
1799 (mips_symbol_insns): Don't trust the local/global classification.
1800 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
1801 (override_options): Make -mabicalls -fno-unit-at-a-time imply
1802 -mno-explicit-relocs.
1803 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
1804 between local and global symbols.
1806 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1808 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
1809 (mips_preferred_reload_class): Declare.
1810 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
1811 (EXTRA_CONSTRAINT): Update accordingly.
1812 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
1813 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
1814 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
1815 mips_dangerous_for_la25_p.
1816 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
1817 if mips_dangerous_for_la25_p.
1819 2004-01-05 Bernardo Innocenti <bernie@develer.com>
1821 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
1824 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
1826 * configure.ac: Use AC_PROG_CPP_WERROR.
1827 * configure: Regenerate.
1829 2004-01-04 Zack Weinberg <zack@codesourcery.com>
1831 * .cvsignore: Add autom4te.cache.
1833 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
1835 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
1836 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
1837 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
1838 then architecture options, then ABI options. General rewording.
1840 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
1843 * doc/extend.texi: Clarify definition of malloc attribute.
1845 2004-01-04 Jan Hubicka <jh@suse.cz>
1847 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
1848 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
1849 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
1850 (cgraph_inline_p): Add extra argument reason.
1851 * cgraphunit.c: Minor formating fixes.
1852 cgraph_first_inlined_callee): New functions.
1853 (record_call_1): Record builtins too.
1854 (cgraph_analyze_function): Update inline_failed messages.
1855 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
1856 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
1857 (cgraph_check_inline_limits): Likewise; Add argument reason.
1858 (cgraph_set_inline_failed): New static function.
1859 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
1861 (cgraph_inline_p): Add new argument reason.
1862 * tree-inline.c (expand_call_inline): Update warning.
1864 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
1866 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
1867 with modern equivalents.
1868 * configure: Regenerate.
1870 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
1871 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
1872 * configure: Regenerate.
1874 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
1876 * configure.in: Rename to configure.ac.
1877 * configure.ac: Renamed from configure.in; make minimum necessary
1878 changes for autoconf 2.5x.
1879 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
1880 * configure: Regenerate with autoconf 2.57.
1882 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
1884 * config/mips/linux.h: Fix comment formatting.
1885 * config/mips/mips.c: Likewise.
1886 * config/mips/mips.h: Likewise.
1887 * config/mips/mips.md: Likewise.
1888 * config/mips/netbsd.h: Likewise.
1889 * config/mips/windiss.h: Likewise.
1891 2004-01-02 Richard Henderson <rth@redhat.com>
1893 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
1894 for sse and 387; add suppression for mmx.
1896 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
1898 * loop.c (loop_optimize): Free all loops_info's mems.
1900 * c-typeck.c (finish_init): Free spelling_base before
1903 * cfgloop.c (flow_loops_find): Always free the sbitmap
1906 * predict.c (estimate_probability): Free bbs after being
1909 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
1911 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
1912 const_8bit_operand and call_address_operand.
1914 2004-01-02 Jan Hubicka <jh@suse.cz>
1916 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
1917 when there is nothing to inline but warnings are requested.
1918 (cgraph_decide_inlining): Fix memory leak.
1920 2004-01-02 Jan Hubicka <jh@suse.cz>
1922 * expr.c (store_constructor): Fix pasto in previous patch.
1924 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
1926 * config/i386/cygming.h: Fix comment formatting.
1927 * config/i386/djgpp.h: Likewise.
1928 * config/i386/gthr-win32.c: Likewise.
1929 * config/i386/i386-interix.h: Likewise.
1930 * config/i386/i386.c: Likewise.
1931 * config/i386/i386.h: Likewise.
1932 * config/i386/openbsd.h: Likewise.
1933 * config/i386/winnt.c: Likewise.
1934 * config/i386/xm-mingw32.h: Likewise.
1936 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
1938 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
1939 copyright and last modification dates.
1941 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
1943 * doc/install.texi (Specific): Mention x86_64.
1945 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
1947 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
1948 Call force_operand on plus_constant result.
1950 2004-01-01 Jan Hubicka <jh@suse.cz>
1952 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
1953 * expr.c (store_constructor): Use vec_init pattern.
1954 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
1955 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
1956 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
1957 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
1959 (sse2_unpc?pd): Fix pattern.
1960 (sse2_movlpd): Kill.
1961 (sse2_movsd): Deal with movlpd too.
1962 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
1963 (ix86_expand_vector_init): New.
1964 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
1965 * md.texi (vec_set, vec_extract): Document
1967 2003-12-31 Jan Hubicka <jh@suse.cz>
1970 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
1974 * toplev.c (dump_file_index): Reorder ce3 and bbro.
1975 (dump_file): Likewise.
1976 (rest_of_compilation): Likewise.
1979 * cgraph.c (cgraph_function_possibly_inlined): Even with
1980 flag_really_no_inline we inline always_inline functions.
1981 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
1982 for non-always_inline functions when there is flag_really_no_inline.
1983 (cgraph_decide_inlining): Limit work done when not inlining.
1984 (cgraph_decide_inlining_incrementally): Likewise.
1985 (cgraph_optimize_function): Check whether something got inlined.
1986 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
1987 extern inline functions when not inlining.
1989 * opts.c (decode_options): Disable crossjumping at -O1
1990 * invoke.texi (-O1): Document change.
1992 See ChangeLog.10 for earlier changes.