diagnostic.c. (diagnostic_report_current_module): Update to match 2003-06-05 changes...
[official-gcc.git] / gcc / ChangeLog
blob21263c2869400298d898d5aec9dd94a1354e3ff3
1 2003-07-22  Per Bothner  <pbothner@apple.com>
3         * diagnostic.c.(diagnostic_report_current_module):  Update to match
4         2003-06-05 changes to push_srcloc and pop_srcloc.
6 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
8         * doc/trouble.texi: Better document two-stage name lookup.
10 2003-07-22  Eric Christopher <echristo@redhat.com>
12         * config/s390.c (s390_valid_pointer_mode): New.
13         (TARGET_VALID_POINTER_MODE): Use.
14         (s390_emit_prologue): Add tpf profiling hooks.
15         (s390_emit_epilogue): Ditto.
16         * config/s390.h (MASK_TPF): New.
17         (TARGET_TPF): Use.
18         (POINTERS_EXTEND_UNSIGNED): Define.
19         * config/s390.md (ptr_extend): New pattern.
21 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
23         * hashtable.c (approx_sqrt): Make static.
24         * hashtable.h: Don't prototype approx_sqrt.
25         * line-map.c (init_line_maps): Rename linemap_init.
26         (free_line_maps): Rename linemap_free.
27         (add_line_map): Rename linemap_add.
28         (lookup_line): Rename linemap_lookup.
29         (print_containing_files): Rename linemap_print_containing_files.
30         * linemap.h: Update to match.
32         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
33         linemap routines to use new names.
35 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
37         * c-common.c (handle_packed_attribute): Don't pack a struct via a
38         typedef. Propagate packedness from a main variant.
40 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
42         * Makefile.in (install-common): Add dependency on installdirs.
44 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
46         * c-common.c (c_common_type_for_mode): Return integer types for
47         pointer modes.
49 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
51         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
52         (finish_decl): Call maybe_apply_pragma_weak here.
53         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
54         TREE_PUBLIC and TREE_STATIC are decided.
55         (start_function): Move call to maybe_apply_pragma_weak.  Check that
56         DECL_ASSEMBLER_NAME isn't set too early.
58         * cpplex.c (_cpp_process_line_notes): Mention option name in
59         trigraphs warning.
61 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
63         * combine.c (if_then_else_cond): Simplify the comparison of
64         rtx against -1, 0, and 1.
65         * loop.c (check_dbra_loop): Likewise.
66         * optabs.c (emit_conditional_move): Likewise.
67         (emit_conditional_add): Likewise.
68         * config/i386/i386.md (*movsi_or): Likewise.
69         (*movdi_or_rex6): Likewise.
71 Tue Jul 22 00:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
73         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
75 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
77         * cppfiles.c (open_file_pch): Don't put unused entries in the
78         splay tree.  Remove dead code.
80 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
82         * c-common.h (num_in_fnames): Declare.
83         (c_static_assembler_name): Move from here...
84         * c-tree.h (c_static_assembler_name): ... to here.
85         * c-opts.c: Don't include langhooks-def.h.
86         (c_static_assembler_name): Move to c-decl.c.
87         (num_in_fnames): Make externally visible.
88         * c-decl.c: Include langhooks-def.h.
89         (c_static_assembler_name): Move from c-opts.c.
90         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
91         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
93         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
94         when it's not needed.
96 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
98         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
99         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
100         (rs6000_emit_prologue): Save FPRs inline if set.
102 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
104         * config/ia64/ia64.md (prefetch): Support predicate.
106 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
108         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
109         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
110         table.
112 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
114         PR optimization/11536
115         * unroll.c (loop_iterations): Do not replace a register holding
116         the final value by its equivalent before the loop if it is not
117         invariant.
119 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
121         * doc/extend.texi: Fixes to spelling, grammar, and diction.
123 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
125         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
126         (V850 Options): Spelling fixes.
128 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
130         * doc/invoke.texi: Fixes to style, grammar and diction.
132 2003-07-20  Roger Sayle  <roger@eyesopen.com>
134         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
135         * system.h (SMALL_STACK): Poison obsolete target macro.
136         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
138 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
140         * configure.in:  Cache the results of testing for cmp's capabilities.
141         * configure:  Regenerate.
143 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
145         PR debug/11279
146         * dwarf2out.c (gen_enumeration_type_die): Remember that
147         enumerators can be unsigned.
149 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
151         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
152         (push_label_level, pop_label_level): Kill.
153         (struct binding_level): Rename level_chain to outer.
154         Add outer_function field.  Change parm_flag, function_body,
155         keep, keep_if_subblocks to 1-bit bitfields of type bool.
156         (current_function_level): New variable.
157         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
158         (keep_next_level, declare_parm_level, warn_if_shadowing):
159         Update to match.
160         (struct language_function): Kill named_labels, shadowed_labels fields.
161         (c_init_decl_processing, start_function, c_push__function_context)
162         (c_pop_function_context): No need to muck with named_labels nor
163         shadowed_labels.
165         (make_binding_level): No need to clear the structure here.
166         (pop_binding_level): Always operate on current_binding_level.
167         Update current_function_level if necessary.
168         (pushlevel): Don't clear named_labels.  Update current_function_level
169         if necessary.  Use "true" and "false" where appropriate.
170         (poplevel): Diagnose labels defined but not used, or vice
171         versa, and clear out label-meanings leaving scope, while
172         walking down the decls list, for all binding levels.
173         Handle LABEL_DECLs appearing in the shadowed list.
174         pop_binding_level takes no arguments.
175         (pushdecl_function_level): Use current_function_level.
177         (make_label, bind_label): New static functions.
178         (declare_label): New exported function.
179         (lookup_label, define_label): Rewritten for new data structure.
180         (shadow_label): Kill.
182         * c-tree.h: Prototype declare_label; don't prototype
183         push_label_level, pop_label_level, nor shadow_label.
184         * c-parse.in: Remove all calls to push_label_level and
185         pop_label_level.  Use declare_label for __label__ decls.
187         * doc/extend.texi: Clarify that __label__ can be used to
188         declare labels with local scope in any nested block, not
189         just statement expressions.  Cross-reference nested functions
190         section from local labels section.
192 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
194         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
196 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
198         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
200 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
202         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
203         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
205 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
207         * config/s390/s390.c (legitimize_pic_address): Access local symbols
208         relative to the GOT instead of relative to the literal pool base.
209         (s390_output_symbolic_const): Handle new GOT-relative accesses.
210         * config/s390/s390.md ("call"): Access local functions and PLT stubs
211         relative to the GOT instead of relative to the literal pool base.
212         ("call_value"): Likewise.
213         ("call_value_tls"): Likewise.
215         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
216         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
217         (s390_chunkify_finish): Likewise.
218         (s390_chunkify_cancel): Likewise.
219         (s390_reorg): Adapt caller.
220         (find_base_register_in_addr,
221         find_base_register_ref, replace_base_register_ref): Delete.
222         (find_ltrel_base, replace_ltrel_base): New functions.
223         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
224         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
225         base vs. index register usage.
226         (struct constant_pool): Remove 'anchor'.
227         (s390_add_anchor): Delete.
228         (s390_dump_pool): Remove anchor handling.
229         * config/s390/s390.md ("reload_anchor"): Remove.
231         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
232         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
233         (s390_emit_prologue): Use it.
234         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
235         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
236         hard-code register 14.
237         * config/s390/s390-protos.h (s390_load_got): Declare.
239         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
240         Support TImode constants.
241         * config/s390/s390.md ("consttable_ti"): New.
242         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
244         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
245         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
246         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
247         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
248         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
249         New symbolic constants.
250         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
251         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
252         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
253         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
254         symbolic UNSPEC values.
255         * config/s390/s390.c (larl_operand, s390_short_displacement,
256         bras_sym_operand, s390_cannot_force_const_mem,
257         s390_delegitimize_address, s390_decompose_address,
258         legitimize_pic_address, s390_output_symbolic_const,
259         s390_function_profiler): Use symbolic UNSPEC values.
261 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
263         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
264         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
265         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
266         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
267         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
268         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
269         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
270         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
271         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
272         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
273         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
274         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
275         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
276         postreload.c prefix.c print-tree.c protoize.c ra-build.c
277         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
278         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
279         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
280         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
281         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
282         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
283         casts.
285 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
287         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
288         * toplev.h (warning): Remove attribute.
290 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
292         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
293         (pop_label_level): Likewise.
294         (duplicate_decls): Likewise.
295         (implicitly_declare): Likewise.
296         (shadow_label): Likewise.
297         (start_decl): Likewise.
298         (finish_decl): Likewise.
299         (grokdeclarator): Likewise.
300         (get_parm_info): Likewise.
301         (detect_field_duplicates): Likewise.
302         (finish_struct): Likewise.
303         (start_function): Likewise.
304         (store_parm_decls): Likewise.
305         (finish_function): Likewise.
306         (c_expand_body_1): Likewise.
307         (check_for_loop_decls): Likewise.
308         (merge_translation_unit_decls): Likewise.
310 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
312         * common.opt:  Document --param.
313         * opts.c (columns, undocumented_msg): New.
314         (print_help): Get number of columns from environment.  Print
315         --param help.  Tweak newline handling.
316         (print_param_help): New.
317         (print_filtered_help): Better handling of duplicates.  Complain
318         about undocumented switches.
319         (print_switch): New.
320         (wrap_help): Improve wrapping, use COLUMNS.
321         * opts.sh: Ignore comments in records.
322         * params.def: Fix typos and remove trailing periods.
323         * toplev.c (display_help): Don't dump --param help.
324         * doc/sourcebuild.texi: Update.
326 2003-07-18  Richard Henderson  <rth@redhat.com>
328         PR target/11556
329         * optabs.c (prepare_operand): Fail gracefully instead of abort
330         if the predicate doesn't satisfy.
331         (gen_cond_trap): Allow prepare_operand to fail.
333 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
335         * c-common.c: Don't undefine GCC_DIAG_STYLE.
336         (fname_decl): Don't use xxx_with_decl.
337         (c_add_case_label): Likewise.
338         (handle_section_attribute): Likewise.
339         (handle_alias_attribute): Likewise.
340         (handle_no_instrument_function_attribute): Likewise.
341         (handle_no_limit_stack_attribute): Likewise.
342         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
343         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
345 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
347         * Makefile.in (ifcvt.o): Add cfgloop.h.
348         * basic-block.h (EDGE_LOOP_EXIT): New flag.
349         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
350         * ifcvt.c: Include cfgloop.h.
351         (mark_loop_exit_edges): New static function.
352         (if_convert): Call it.
353         (find_if_header): Ignore branches out of loops.
355 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
357         * combine.c (simplify_comparison): Don't share rtx when converting
358         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
360 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
362         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
363         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
364         (MUST_PASS_IN_STACK): Define.
365         (BLOCK_REG_PADDING): Define.
367 2003-07-18  Richard Henderson  <rth@redhat.com>
369         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
370         to skip the addr_vec.
372 Fri Jul 18 15:22:28 2003  Alexandre Oliva  <aoliva@redhat.com>
374         * combine.c (combinable_i3pat): Don't forbid occurrences of
375         i2dest or i1dest in inner_dest if inner_dest is a mem.
377 Fri Jul 18 17:05:57 CEST 2003  Jan Hubicka  <jh@suse.cz>
379         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
381 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
383         PR target/11087
384         * loop.c (basic_induction_var): Check if convert_modes emitted any
385         instructions. Remove them and return 0 if so.
387 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
389         PR optimization/11083
390         * toplev.c (rest_of_handle_addresof): Rename into
391         rest_of_handle_addressof.  Delete unreachable blocks
392         if dead edges were purged after the addressof pass.
394 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
396         * Makefile.in, configure, configure.in: Remove handling of
397         lang-options.h and options_.h.
398         * toplev.c (struct lang_opt, documented_lang_options): Remove.
399         (display_help): Don't use documented_lang_options.
401 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
403         * c-decl.c (pushdecl_function_level): Make static, return nothing.
404         (kept_level_p): Fold into poplevel.
405         (undeclared_variable): Moved here from c-typeck.c.  Export.
406         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
407         (undeclared_variable): Prototype here.  Don't prototype
408         kept_level_p nor pushdecl_function_level.
409         * c-parse.in: Change first argument to poplevel from
410         "kept_level_p()" to "KEEP_MAYBE".
411         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
413 2003-07-17  Roger Sayle  <roger@eyesopen.com>
415         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
416         commutative operands instead of modifying the RTL in-place.
418 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
420         PR optimization/11557
421         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
422         unless we know which function is being called.
424 2003-07-17  Roger Sayle  <roger@eyesopen.com>
426         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
427         whether to reorder the operands of a commutative binary operator.
429 2003-07-17  Roger Sayle  <roger@eyesopen.com>
431         * fold-const.c (const_binop): Avoid performing the FP operation at
432         compile-time, if either operand is NaN and we honor signaling NaNs,
433         or if we're dividing by zero and either flag_trapping_math is set
434         or the desired mode doesn't support infinities.
435         (fold_initializer): New function to fold an expression ignoring any
436         potential run-time exceptions or traps.
437         * tree.h (fold_initializer): Prototype here.
438         * c-typeck.c (build_binary_op): Move to the end of the file so
439         that intializer_stack is in scope.  If constructing an initializer,
440         i.e. when initializer_stack is not NULL, use fold_initializer to
441         fold expressions.
442         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
443         performing FP operations at compile-time, if they would raise an
444         exception at run-time.
446 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
448         PR 11498
449         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
450         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
451         (GTFILES): Add langhooks.c.
452         (gt-langhooks.h): New.
453         * c-common.h (c_static_assembler_name): Prototype.
454         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
455         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
456         * c-opts.c: Include langhooks-def.h.
457         (c_static_assembler_name): New.
458         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
459         (var_labelno): New.
460         (lhd_set_decl_assembler_name): Give static objects with context
461         unique names.
462         * varasm.c (var_labelno): Delete.
463         (make_decl_rtl): Don't change the assembler name once it's set.
465         * c-opts.c (this_input_filename): New.
466         (finish_options): Take new parameter, name of file being compiled.
467         Update callers.  Set this_input_filename.
468         (push_command_line_include): Use this_input_filename not
469         main_input_filename.
471 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
473         * Makefile.in: Depend .pot generation on options.c.
474         * po/exgettext: Add an extra_files variable containing additional
475         files to scan.
477 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
479         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
480         c_write_global_declarations.
482         * c-decl.c: Fix typos in several comments.  Remove all
483         #if 0 blocks; reindent as needed.  Remove unused argument
484         to declare_parm_level; all callers changed.
485         * c-parse.in: Update calls to declare_parm_level.  Avoid
486         issuing a double warning in some circumstances.
487         * c-typeck.c: Update calls to declare_parm_level.
488         * c-tree.h: Update prototype of declare_parm_level.
490         * c-pragma.c (apply_pragma_weak): Don't complain about a
491         redundant #pragma weak.
493         * objc/objc-act.c (forward_declare_categories,
494         build_selector_reference_decl, build_class_reference_decl,
495         build_objc_string_decl, synth_forward_declarations,
496         build_protocol_reference): Set TREE_PUBLIC on synthetic
497         forward decl to 0, consistent with eventual definition.
498         Correct comments to match.
500         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
501         in regexp that don't form a range expression.
502         * fixinc/fixincl.def: Regenerate.
504 2003-07-17  Richard Henderson  <rth@redhat.com>
506         PR target/10907
507         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
508         even with !TARGET_CONST_GP.
509         (ia64_function_ok_for_sibcall): Reject non-local functions.
511 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
513         * c-common.c (c_estimate_num_insns_1): Don't handle
514         METHOD_CALL_EXPR.
515         * expr.c (safe_from_p): Likewise.
516         * gengtype.c (adjust_field_tree_exp): Likewise.
517         * stmt.c (warn_if_unused_value): Likewise
518         * tree.c (first_rtl_op): Likewise.
519         * tree.def: Don't define METHOD_CALL_EXPR.
520         * java/lang.c (java_estimate_num_insns_1): Don't handle
521         METHOD_CALL_EXPR.
523 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
525         PR other/11466
526         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
527         and its restrictions for the SPARC64 port.
528         Move the entry of "-mimpure-text" before that of "-mv8".
530 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
531             Phil Edwards <phil@jaj.com>
533         * doc/install.texi (*-*-solaris2*): Document the step-by-step
534         procedure to bootstrap and install.
535         Document the preference for the legacy Sun tools in /usr/bin
536         over the POSIX tools in /usr/xpg4/bin for the build process.
538 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
540         * c.opt: Document Uncodumented; use it.  Document ObjC options.
541         * opts.c (print_filtered_help): Skip undocumented switches.
542         * opts.h (CL_UNDOCUMENTED): New.
543         * opts.sh: Handle Undocumented.
544         * toplev.c (documented_lang_options): Prevent its becoming empty.
545 objc:
546         * lang-options.h: Remove.
548 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
550         * loop.c (check_ext_dependent_givs): Pass const struct loop *
551         instead of struct loop_info * as argument.  Accept BIVs with
552         increment +/- 1 provided there is a friendly exit test against
553         a loop-invariant value.
554         (strength_reduce): Adapt call to check_ext_dependent_givs.
556 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
557             Con Bradley <con.bradley@superh.com>
559         * sh-protos.h (sh_get_pr_initial_val): Declare.
560         * sh.c (regno_reg_class): Make its elements type enum reg_class.
561         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
562         and live_regs_mask arguments.  Changed all callers.
563         (save_schedule_s): New structure.
564         (save_schedule): New typedef.
565         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
566         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
567         In interrupts handlers, also save registers that are usually
568         partially saved, and make sure there is at least one general purpose
569         register saved if a target register needs saving.
570         Add casts in comparisons to avoid warnings.
571         (sh_media_register_for_return): return -1 for interrupt handlers.
572         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
573         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
574         registers used are available.
575         Set RTX_FRAME_RELATED_P where appropriate.
576         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
577         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
578         (initial_elimination_offset): Likewise.
579         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
580         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
581         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
582         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
583         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
584         and for target registers.
585         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
586         (regno_reg_class): Make its elements type enum reg_class.
587         (CONSTRAINT_LEN): Don't use isdigit.
588         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
589         (FUNCTION_ARG): Add parentheses to avoid warnings.
590         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
591         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
592         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
593         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
594         * sh.md (xordi3+1): Remove unused variable regno.
595         (return_media): Check that tr0 is available before using it.
597 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
599         * c.opt: Document more options.
601 2003-07-16  Roger Sayle  <roger@eyesopen.com>
603         * combine.c (subst): Also handle (subreg (const_double ...)) case
604         if created by a substitution, by using the original inner mode.
606 2003-07-16  Roger Sayle  <roger@eyesopen.com>
608         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
609         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
610         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
612 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
614         * doc/install.texi (--without-headers): New.
616         Partial Fix PR/10129
617         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
618         (machopic_output_function_base_name): New; print the true pic label.
619         (machopic_classify_ident): Pic Base is always a defined data.
620         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
621         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
623         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
624         if they are not floating point registers.
626         PR c/10962
627         * ggc.h: Add header guards.
628         * c-decl.c (finish_struct): Sort fields if
629         number greater than 15 and there are no
630         anonymous structs/unions.
631         * c-common.h: Include ggc.h.
632         (sorted_fields_type): New struct.
633         (field_decl_cmp): New prototype.
634         (resort_sorted_fields): New prototype.
635         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
636         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
637         as s, removing other fields.
638         * c-typeck.c (lookup_field): Use s in lang_type.
639         These were mostly moved from cp/class.c:
640         * c-common.c (field_decl_cmp): New static function.
641         (field_decl_cmp): New function.
642         (resort_sorted_fields): New function.
644 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
646         * config/darwin.c (machopic_select_section): Use decl_readonly_section
647         to do most of the work.
649 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
651         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
652         * config/mmix/mmix.c: Convert functions to ISO C90.
653         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
654         formatting.
655         (mmix_get_hard_reg_initial_val): Tweak section head comment.
657 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
659         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
661 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
663         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
664         (uw_update_context_1): Use it.
665         * config/rs6000/rs6000.c (insn_after_throw): Remove.
666         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
667         in parent frame if _Unwind_* called directly instead of through
668         .plt.
669         (rs6000_emit_eh_toc_restore): Remove.
670         (rs6000_emit_prologue): Update stack pointer before doing any saving
671         if current_function_calls_eh_return.  Generate unwind info for $r2.
672         (rs6000_emit_epilogue): Restore stack pointer after doing all
673         restoring if current_function_calls_eh_return.  Restore $r2.
674         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
675         * config/rs6000/rs6000.md (eh_return): Remove call to
676         rs6000_emit_eh_toc_restore.
677         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
678         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
680 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
682         * expr.c (emit_block_move): Don't move anything if size is const 0.
683         (clear_storage): Test against const0_rtx instead of comparing INTVAL
684         against 0.
686 2003-07-15  David S. Miller  <davem@redhat.com>
688         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
689         emit nop if the last real insn is CALL_INSN.
691 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
693         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
694         as "nul".
695         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
697 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
699         * config/i386/winnt.c (associated_type): Artificial methods are not
700         affected by the import/export status of their class unless they are
701         COMDAT.
702         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
704         * config/i386/winnt.c: Fix GCC copyright comment.
706 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
708         PR c++/11531
709         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
710         not recursing on hard error.
711         (diagnostic_for_decl): Likewise.
712         * diagnostic.def: Rearrange.
714 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
716         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
717         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
719 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
720             Richard Henderson  <rth@redhat.com>
722         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
723         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
724         (_Unwind_SetGR): Likewise.
725         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
726         (Unwind_SpTmp): New typedef.
727         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
728         (uw_update_context): Use _Unwind_GetPtr.
729         (init_dwarf_reg_size_table): Move above uw_init_context_1.
730         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
731         Use _Unwind_SetSpColumn.
732         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
733         Use _Unwind_GetPtr.
735 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
737         * c.opt: Document more options.
738         * toplev.c (documented_lang_options): Remove all local help strings.
740 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
742         PR debug/11473
743         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
744         base classes.
746 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
748         PR target/10795
749         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
750         swap comparison operands if doing so would generate an
751         unrecognizable insn.
753 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
755         PR optimization/11320
756         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
757         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
758         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
759         current_sched_info->compute_jump_reg_dependencies. Record which
760         registers are used and which registers are set by the jump.
761         Clear deps->reg_conditional_sets after a barrier.
762         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
763         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
764         (init_deps): Initialize reg_conditional_sets.
765         (free_deps): Clear reg_conditional_sets.
766         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
767         Mark registers live on entry of the fallthrough block and conditionally
768         set as set by the jump. Mark registers live on entry of non-fallthrough
769         blocks as used by the jump.
770         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
771         Mark new parameters as unused.
773 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
775         * doc/invoke.texi: Resync MIPS -march documentation.
777 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
779         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
780         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
781         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
782         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
783         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
784         (mips_issue_rate): Handle PROCESSOR_R9000.
785         (mips_use_dfa_pipeline_interface): Likewise.
786         * config/mips/9000.md: New file.
787         * config/mips/mips.md: Include it.
788         (define_attr cpu): Add r9000.
789         (mulsi3_mult3): Use "mul" for rm9000 code.
791 2003-07-15  Stan Cox  <scox@redhat.com>
793         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
794         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
795         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
796         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
797         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
798         (mips_issue_rate): Handle PROCESSOR_R7000.
799         (mips_use_dfa_pipeline_interface): Likewise.
800         * config/mips/7000.md: New file.
801         * config/mips/mips.md: Include it.
802         (define_attr cpu): Add r7000.
803         (mulsi3_mult3): Use "mul" for rm7000 code.
805 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
807         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
808         the conditional move patterns.
809         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
810         Check for condmove type.
811         (ir_vr54_arith): Add move type.
812         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
813         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
815 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
817         * c-opts.c (print_help): Remove.
818         (c_common_handle_option): Don't handle --help.
819         * c.opt: Document some options.
820         (--help): Remove.
821         * opts.c (print_filtered_help): New.
822         (print_help): Use it.
824 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
826         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
827         * tree.c: (build_common_tree_nodes_2): Likewise.
828         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
829         (V4DF_type_node): New.
831         * c-opts.c (push_command_line_include): Don't free deferred_opts,
832         we'll need it.
833         (finish_options): Reset init_cursor.
835 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
837         * expr.c (expand_assignment): Remove an unused argument
838         SUGGEST_REG.
839         * expr.h: Update the prototype.
840         * function.c: Update the callers.
841         * stmt.c: Likewise.
843 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
845         PR debug/11098
846         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
847         as DECL_ABSTRACT.
849 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
851         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
852         with __cplusplus, not "we must use the C++ compiler's type"
853         * fixinc/inclhack.def (void_null): Note that Interix needs this.
854         * fixinc/fixincl.x: Regenerate.
856 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
858         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
859         and unseen_objects from the global data before calling
860         __deregister_frame_info_bases.
861         (examine_objects): Insert objects into the seen_objects list,
862         not unseen_objects.
863         (_Unwind_Find_FDE): Always unlock the global object lists, even if
864         we couldn't allocate a data structure to put in it.
866         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
867         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
868         (SET_TYPE_PROTOCOL_LIST): New.
869         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
870         (get_object_reference): Likewise.
872 Mon Jul 14 23:14:28 CEST 2003  Jan Hubicka  <jh@suse.cz>
874         * cfglayout.c (locator_file): Break out from ....
875         (insn_file): ... here.
876         (locator_line): Break out from ....
877         (insn_line): ... here.
878         * rtl.h (locator_file, locator_line): Declare.
879         (final_start_function): Set proper line/file info.
881 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
883         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
884         handled by pp_c_cast_expression.
886 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
888         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
889         allocate 32768 bytes of stack.  Use addition rather than subtraction
890         when a single insn is enough.
891         * config/mips/mips.md: Remove insns and splitters for subtracting
892         constants.
893         (subsi3): Only accept register operands.
894         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
895         (subdi3_internal_3, subsi3_internal_2): Likewise.
896         (casesi): Use expand_binop to subtract the lower bound.
898 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
900         * config/mips/mips.c (mips_in_small_data_p): Don't handle
901         TARGET_MIPS16 specially.
903 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
905         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
906         mips_output_aligned_bss.
907         * config/mips/linux.h: Likewise.
908         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
909         * config/mips/mips.c (mips_output_aligned_bss): New function.
911         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
912         * config/mips/elf64.h: Likewise.
914         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
915         mips_declare_object_name.
916         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
917         * config/mips/elf64.h: As for elf.h.
918         * config/mips/iris6.h: Likewise.
919         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
920         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
921         do...while (0) block.
922         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
923         (mips_finish_declare_object): Declare.
924         * config/mips/mips.c (mips_declare_object_name): New function.
925         (mips_finish_declare_object): New function.
927         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
928         * config/mips/linux.h: Likewise.
930         * config/mips/mips.c (inside_function): Delete.
931         (file_in_function_warning, ignore_line_number): Delete.
932         (mips_output_filename): Don't warn about changing filenames within
933         a function.
934         (mips_output_lineno): Update accordingly.
935         (mips_output_function_prologue): Don't reset the deleted variables.
936         * config/mips/mips.h (inside_function): Delete.
937         (file_in_function_warning, ignore_line_number): Delete.
939         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
940         * config/mips/elf64.h: Likewise.
941         * config/mips/openbsd.h: Likewise.
942         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
943         * config/mips/linux.h: Likewise.
944         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
945         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
947         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
948         to the list of include files when using gas.
949         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
950         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
951         * config/mips/elf64.h: Likewise.
952         * config/mips/iris5.h: Likewise.
953         * config/mips/linux.h: Likewise.
954         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
955         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
956         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
957         * config/mips/sdb.h: ...this new file.
959 2003-07-14  Douglas Rupp  <rupp@gnat.com>
961         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
962         argument to getcwd; use fixed buffer instead.
964 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
966         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
967         * fixinc/fixinc.wrap: Delete.
969 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
971         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
972         don't have 2.
974 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
976         * ggc-page.c (struct globals): Add new fields to keep track of the
977         total allocated memory and overhead.
978         (ggc_print_statistics): Print them.
979         (ggc_alloc): Keep track of the total allocated memory and the
980         overhead.
982         * tree.c (dump_tree_statistics): Increase spacing.
983         (enum tree_node_kind): Move to ...
984         * tree.h (enum tree_node_kind): ... here.
985         (tree_node_counts, tree_node_sizes): Declare.
987 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
989         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
991 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
993         PR optimization/11440
994         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
995         SIGN_EXTRACT SETs.
997 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
999         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
1000         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
1001         (emit_group_load, emit_group_store): Adjust declarations.
1002         Remove most occurrences of #ifdef TREE_CODE.
1003         * expr.c (emit_group_load): Add "type" param, and use
1004         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
1005         aligned accesses if !SLOW_UNALIGNED_ACCESS.
1006         (emit_group_store): Likewise.
1007         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
1008         emit_group_load and emit_group_store calls.
1009         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
1010         BLOCK_REG_PADDING to determine whether we need endian_correction.
1011         (load_register_parameters): Localize vars.  Handle shifting of
1012         small values to the correct end of regs.  Adjust emit_group_load
1013         call.
1014         (expand_call, emit_library_call_value_1): Adjust emit_group_load
1015         and emit_group_store calls.
1016         * function.c (assign_parms): Set mem alignment for stack slots.
1017         Adjust emit_group_store call.  Store values at the "wrong" end
1018         of regs to the stack.  Use BLOCK_REG_PADDING.
1019         (locate_and_pad_parm): Save where_pad.
1020         (expand_function_end): Adjust emit_group_load call.
1021         * stmt.c (expand_value_return): Adjust emit_group_load call.
1022         * Makefile.in (calls.o): Depend on $(OPTABS_H).
1023         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
1024         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
1025         (MUST_PASS_IN_STACK): Define.
1026         (BLOCK_REG_PADDING): Define.
1027         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
1028         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
1029         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
1030         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
1031         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
1033 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
1035         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
1037 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1039         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
1040         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
1042 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
1044         PR other/11123
1045         * toplev.c: Don't cut off option names.
1047 2003-07-13  Andreas Jaeger  <aj@suse.de>
1049         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
1050         to integer of different size.
1052 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
1054         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
1055         to (eq (and X 1) 0).
1057 2003-07-13  Andreas Jaeger  <aj@suse.de>
1059         * config.gcc: Add pmmintrin.h for x86_64-*-*.
1061 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
1063         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
1064         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
1065         list.  Move these all together down by cpplib.
1067         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
1068         definition of CPPCHAR_SIGNED_T.
1070         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
1071         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
1072         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
1074         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
1075         * cppinit.c (cpp_create_reader): Likewise.
1077         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
1078         * cpptrad.c: Likewise.  All callers changed.
1079         * cpplib.c: All callers changed.
1080         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
1081         * hashtable.h: Define GTY(x) to nothing here too.
1083 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1085         * stor-layout.c (compute_record_mode): Remove very obsolete test
1086         that forces BLKmode for records with fields crossing word boundary.
1088 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
1090         * Makefile.in: Remove orphan reference to acconfig.h.
1092 2003-07-13  Andreas Jaeger  <aj@suse.de>
1094         * cgraphunit.c: Convert prototypes to ISO C90.
1096 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
1098         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
1099         (for OpenBSD).
1100         * fixinc/fixincl.x: Rebuild.
1102 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
1104         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
1105         i?86-*-*.  Use correct name of cache variable.
1106         * configure: Regenerate.
1108 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
1110         * config/alpha/alpha.c: Fix comment typos.
1111         * config/alpha/alpha.md: Likewise.
1112         * config/arm/arm.c: Likewise.
1113         * config/arm/arm.md: Likewise.
1114         * config/arm/lib1funcs.asm: Likewise.
1115         * config/avr/avr.md: Likewise.
1116         * config/arm/README-interworking: Fix typos.
1118 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
1120         * c-format.c: Fix comment formatting.
1121         * c-typeck.c: Likewise.
1122         * coverage.c: Likewise.
1123         * cppcharset.c: Likewise.
1124         * cpplib.c: Likewise.
1125         * dbxout.c: Likewise.
1126         * gcov-io.h: Likewise.
1127         * toplev.c: Likewise.
1129 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
1131         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
1132         fix.
1134 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
1136         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
1137         uses three-argument AC_DEFINE so no acconfig.h entries are
1138         needed.
1139         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
1140         which contains the GAS version number as a scaled integer.
1141         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
1142         ability to check for ELF assembler.
1143         (gcc_GAS_CHECK_FEATURE): New macro.
1144         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
1145         assembler feature checks using gcc_GAS_CHECK_FEATURE.
1146         Use three-argument AC_DEFINE everywhere.
1147         * acconfig.h: Deleted.
1148         * config.in, configure: Regenerate.
1150 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
1152         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
1153         (on OpenBSD).
1154         * fixinc/fixincl.x: Regenerate.
1156         * fixinc/inclhack.def (gnu_types): Improve comment.
1158 2003-07-12  Andreas Jaeger  <aj@suse.de>
1160         * fp-test.c (main): Use ISO C90 prototype.
1162         * version.c: Remove unneded include of ansidecl.h.
1164         * cgraph.h: Convert prototypes to ISO C90.
1165         * cgraph.c: Likewise.
1166         * fix-header.c: Likewise.
1167         * ra.h: Likewise.
1168         * protoize.c: Likewise.
1170 Sat Jul 12 06:09:38 CEST 2003  Jan Hubicka  <jh@suse.cz>
1172         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
1173         warning.
1175 Sat Jul 12 03:06:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
1176                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1178         * cgraph.c (cgraph_max_uid): New global variable.
1179         (cgraph_node): Set uid field.
1180         (create_edge): Keep inline flags consistent.
1181         (dump_cgraph): Dump more info.
1182         * cgraph.h (struct cgraph_local_info): Remove inline_many and
1183         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
1184         (struct cgraph_global_info): Add insns, calls, cloned_times,
1185         will_be_output.
1186         (struct cgraph_node): Add uid.
1187         (struct cgraph_edge): Add inline_call.
1188         (cgraph_max_uid, cgraph_inline_p): Declare.
1189         * cgraph.c: Include params.h and fibheap.h
1190         (cgraph_mark_functions_to_inline_once): Kill.
1191         (INSNS_PER_CALL): New constant.
1192         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
1193         static variables.
1194         (cgraph_finalize_function): Do not analyze inlining.
1195         (cgraph_finalize_compilation_unit): Set inlining attributes.
1196         (cgraph_mark_functions_to_output): More consistency checks.
1197         (cgraph_optimize_function): Set current_function_decl to NULL.
1198         (cgraph_expand_function): Use new inline flags.
1199         (cgraph_postorder): Expand from cgraph_expand_functions.
1200         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
1201         (cgraph_inlined_into, cgraph_inlined_callees,
1202         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
1203         cgraph_mark_inline, cgraph_check_inline_limits,
1204         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
1205         cgraph_decide_inlining, cgraph_inline_p): New functions.
1206         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
1207         PARAM_INLINE_UNIT_GROWTH): New parameters.
1208         * tree-inline.c (struct inline_data): New field current_decl.
1209         (expand_call_inline): Avoid forward declarations; use
1210         inlinable_function_p.
1211         (optimize_inline_calls): Set id.current_decl.
1213 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
1215         * configure.in: Remove wrongly added definition of
1216         local_prefix.
1217         * configure: Regenerate.
1219 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
1221         * rtl.def (NOTE): Do not use padding.
1223 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
1225         * doc/install.tex: Update required binutils for i?86-*-linux*
1227 2003-07-11  Richard Henderson  <rth@redhat.com>
1229         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
1231 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
1233         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
1234         TRANSLATION_UNIT_DECL as top_level.
1236 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
1238         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
1239         then fall back to cmpstrM.
1240         * builtins.c (expand_builtin_memcmp): Likewise.
1241         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
1242         (s390_expand_cmpmem): ... this.
1243         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
1244         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
1245         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
1246         to s390_expand_cmpmem.
1247         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
1248         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
1249         to cmpmem*.
1250         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
1251         cmpstr* patterns.
1252         * doc/md.texi (cmpstrM): Describe as String compare insn, not
1253         Block compare insn.
1254         (cmpmemM): Add.
1256 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
1258         * config/i386/freebsd.h (SET_ASM_OP): Remove.
1259         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
1260         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
1261          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
1263 2003-07-11  Richard Henderson  <rth@redhat.com>
1265         * function.c (assign_parms): Don't recombine complex args if
1266         fnargs is unchanged from orig_fnargs.
1267         (split_complex_args): Return args without complex before copying.
1268         Re-layout the modified parameters.
1270 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
1272         * regclass.c (choose_hard_reg_mode): Add third argument.
1273         Changed all callers.
1274         * rtl.h (choose_hard_reg_mode): Update declaration.
1275         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1276         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
1278 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
1280         * c-decl.c (finish_decl): Handle 'used' here...
1281         * cgraphunit.c (cgraph_finalize_function): ... and here ...
1282         * c-common.c: (handle_used_attribute): ... not here.
1284         * configure.in (onstep): Support --enable-intermodule.
1285         * Makefile.in (OBJS-common): New.
1286         (OBJS-md): New.
1287         (OBJS-archive): New.
1288         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
1289         (OBJS-onestep): New.
1290         (libbackend.a): Support @onestep@.
1291         (libbackend.o): New.
1292         * configure: Regenerate.
1294         * c-common.h (c_reset_state): New prototype.
1295         (c_parse_file): New prototype.
1296         (finish_file): Move prototype from c-tree.h.
1297         * c-decl.c: Include <hashtab.h>.
1298         (builtin_decls): New.
1299         (current_file_decl): New.
1300         (duplicate_decls): Add extra parameter. Change all callers.  Don't
1301         output duplicate common symbols.
1302         (link_hash_hash): New.
1303         (link_hash_eq): New.
1304         (poplevel): Handle popping of the top level.
1305         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
1306         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
1307         (pushdecl_top_level): Likewise.
1308         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
1309         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
1310         (finish_decl): Handle TRANSLATION_UNIT_DECL.
1311         (merge_translation_unit_decls): New.
1312         (c_write_global_declarations): New.
1313         (c_reset_state): New.
1314         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
1315         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
1316         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
1317         TRANSLATION_UNIT_DECL.
1318         (c_objc_common_finish_file): Call merge_translation_unit_decls.
1319         * c-opts.c (in_fnames): Rename from in_fname.
1320         (c_common_decode_option): Handle multiple input filenames.
1321         (c_common_post_options): Likewise.
1322         (c_common_parse_file): Likewise; also, call c_parse_file rather than
1323         yyparse.
1324         * c-parse.in: Move cleanup code to c_parse_file.
1325         (free_parser_stacks): Move contents to c_parse_file.
1326         (c_parse_file): New.
1327         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
1328         for integer types.
1329         (C_DECL_FILE_SCOPE): New.
1330         (finish_file): Move prototype to c-common.h.
1331         (merge_translation_unit_decls): New prototype.
1332         (comptypes): Add extra parameter to prototype.
1333         (c_write_global_declarations): New prototype.
1334         * c-typeck.c (tagged_types_tu_compatible_p): New.
1335         (function_types_compatible_p): Add extra parameter, change all callers.
1336         (type_lists_compatible_p): Likewise.
1337         (comptypes): Likewise.
1338         (struct tagged_tu_seen): New.
1339         (tagged_tu_seen_base): New.
1340         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
1341         (c_mark_addressable): Remove #if 0 code.
1342         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
1343         comment explaining why it shouldn't have to.
1344         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
1345         options.
1346         * cppinit.c (cpp_read_next_file): New.
1347         (cpp_read_main_file): Use it.
1348         * cpplib.c (undefine_macros): New.
1349         (cpp_undef_all): New.
1350         * cpplib.h (cpp_read_next_file): Prototype.
1351         (cpp_undef_all): Prototype.
1352         * langhooks-def.h (write_global_declarations): Remove prototype.
1353         * toplev.h (write_global_declarations): Add prototype.
1354         * tree.c (decl_type_context): Use switch statement, handle
1355         TRANSLATION_UNIT_DECL.
1356         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
1357         (TRANSLATION_UNIT_DECL): New kind of tree.
1358         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
1359         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
1360         * doc/invoke.texi: Make attempt to document new functionality.
1362         2003-05-19  Per Bothner <bothner@apple.com>
1364         * gcc.c (combine_inputs): New.
1365         (process_command): Set combine_inputs.
1366         (do_spec_1): Handle combine_inputs.
1367         (main): Likewise.
1369 2003-07-10  James E Wilson  <wilson@tuliptree.org>
1371         PR optimization/9745
1372         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
1373         loop_insn_emit_before.
1374         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
1376 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
1378         * cppcharset.c: Fix comment.
1379         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
1380         (EILSEQ): #define to EINVAL if not already defined.
1381         (convert_using_iconv): #if out when !HAVE_ICONV.
1382         (init_iconv_desc): Handle !HAVE_ICONV here...
1383         (cpp_init_iconv): ...not here.
1385 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
1387         * common.opt: More --help messages.
1388         * opts.c (print_help): Use puts().
1389         * toplev.c (f_options): Remove help text.
1390         (display_help): Don't dump f_options.
1392 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
1394         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
1395         Move i?86-*-interix* to the don't-fix list.
1396         * fixinc/fixinc.interix: Delete with extreme prejudice.
1398 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
1400         PR bootstrap/10758
1401         * doc/install.texi: Document requirements for ia64-*-hpux* target.
1403 2003-07-10  Roger Sayle  <roger@eyesopen.com>
1405         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
1407 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
1409         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
1410         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
1411         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
1412         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
1413         convert_no_conversion, convert_using_iconv): New functions.
1414         (APPLY_CONVERSION): New macro.
1415         (struct conversion, conversion_tab): New data structure.
1416         (init_iconv_desc): Check conversion_tab for a custom conversion
1417         primitive before trying to use iconv.
1418         (convert_cset): Deleted.
1419         (cpp_init_iconv): Use UTF- terminology, not UCS-.
1420         (_cpp_destroy_iconv): Update to match.
1421         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
1422         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
1423         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
1424         (_cpp_interpret_string_notranslate): New function, moved here
1425         from cpplib.c.
1427         * cpphash.h (convert_f, struct cset_converter): New types.
1428         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
1429         are now struct cset_converter, not bare iconv_t.
1430         Update prototypes.
1431         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
1432         all callers changed.
1434 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
1436         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
1437         to opts.sh command line.
1438         * opts.sh: Write to temporary files with a move-if-change at the end.
1440 2003-07-10  Denis Chertykov  <denisc@overta.ru>
1441             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1443         * combine.c (gen_binary): Handle the CLOBBER rtx and
1444         don't build a binary operation with it.
1446 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1448         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
1449         store_killed_after, store_killed_before): Keep track of the correct
1450         dependency function to use.
1452 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
1453         * toplev.c (do_compile): Don't try to open dump files before
1454         lang_dependent_init initializes dump_base_name.
1456 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1458         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
1459         Use ARRAY_SIZE.
1460         * config/frv/frv.c (frv_expand_builtin): Likewise.
1461         * config/sh/sh.c (sh_media_init_builtins): Likewise.
1463 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
1465         PR c++/10032
1466         * doc/invoke.texi (C++ Dialect Options): Change documentation of
1467         -fpermissive.
1469 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
1471         * tm.texi (RETURN_ADDR_OFFSET): Document.
1473 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
1475         * gcov-io.h: Update documentation.
1476         (GCOV_UNSIGNED2STRING): New.
1477         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
1478         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
1479         GCOV_TAG_SUMMARY_LENGTH): Adjust.
1480         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
1481         GCOV_TAG_COUNTER_NUM): New.
1482         (GCOV_BLOCK_SIZE): Number of words.
1483         (gcov_var): Adjust buffer type.
1484         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
1485         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
1486         count, not byte count.
1487         (gcov_open): Adjust overread init.
1488         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
1489         gcov_write_string, gcov_write_tag, gcov_write_length,
1490         gcov_write_tag_length): Adjust.
1491         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
1492         (gcov_sync, gcov_seek): Adjust.
1493         * gcov-dump.c (print_usage): Show gcc version only.
1494         (dump_file): Use GCOV_UNSIGNED2STRING.
1495         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
1496         * gcov.c (print_version): Show gcc version only.
1497         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
1498         GCOV_TAG_*_NUM macros.
1499         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
1500         GCOV_TAG_COUNTER_LENGTH.
1501         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
1502         Use GCOV_TAG_COUNTER_NUM.
1503         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
1504         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
1506 2003-07-10  Andreas Schwab  <schwab@suse.de>
1508         * gcov-dump.c (dump_file): Fix missing address operator.
1510 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
1512         PR c/11449
1513         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
1514         of HOST_WIDE_INT.
1515         (fold_single_bit_test): If sign_bit_p() fails, assume that the
1516         bit being tested is not a sign bit.
1518 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
1520         * config/h8300/h8300.md (a peephole2): New.
1522 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
1524         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
1525         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
1526         from ld-linux.so.2 to ld.so.1.
1527         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
1528         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
1529         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
1530         nor -Wl,-rpath-link.
1531         (LIB_SPEC): Add -rpath-link if !static.
1532         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
1533         * config/mn10300/mn10300.c (mn10300_protect_label): New
1534         variable.
1535         * config/mn10300/linux.h (PRINT_OPERAND,
1536         PRINT_OPERAND_ADDRESS): Set it during their execution.
1537         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
1538         mn10300_protect_label is set.
1539         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
1540         -Wl,-rpath-link.
1541         (LIB_SPEC, STARTFILE_SPEC): Define.
1542         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
1543         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
1544         FLOAT_BIT_ORDER_MISMATCH.
1545         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
1546         * config.gcc (am33_2.0-*-linux*): Added.
1547         * config/mn10300/linux.h: New.
1548         * config/mn10300/t-linux: New.
1550 2003-07-10  Andreas Jaeger  <aj@suse.de>
1552         * fold-const.c: Properly wrap prototypes.
1554 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
1556         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
1557         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
1558         Moved from...
1559         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
1560         * config/mn10300/mn10300.h: GTY-declare it.
1561         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
1562         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
1563         prototype.  Use incoming RTL argument.
1564         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
1565         * config/mn10300/mn10300.md (int_label): Move C statements...
1566         (GOTaddr2picreg): ... here.
1567         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
1568         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
1569         * config/mn10300/mn10300.c (mn10300_encode_section_info):
1570         ... here.  New function.
1571         (TARGET_ENCODE_SECTION_INFO): Define to it.
1572         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
1573         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
1574         pattern name.
1575         (mn10300_loadPC): Define as insn splittable after reload.
1576         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
1577         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
1578         be defined in .rodata even in PIC, now that the assembler
1579         supports that.
1580         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
1581         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
1582         symbol take an underscore prefix.
1583         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
1584         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
1585         legitimize_pic_address): Declare.
1586         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
1587         the PIC register as fixed.
1588         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
1589         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
1590         PIC.
1591         (LEGITIMATE_PIC_OPERAND_P): Define.
1592         (PIC_OFFSET_TABLE_REGNUM): Define.
1593         (GOT_SYMBOL_NAME): Define.
1594         (SYMBOLIC_CONST_P): Define.
1595         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
1596         symbols.
1597         (MN10300_GLOBAL_P): Test it.
1598         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
1599         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
1600         * config/mn10300/mn10300.c (print_operand): Handle unspec.
1601         (expand_prologue): Set PIC register.
1602         (call_address_operand): Don't match SYMBOL_REFs in PIC.
1603         (legitimize_address): Call legitimize_pic_address.
1604         (legitimize_pic_address): New fn.
1605         (legitimate_pic_operand_p): New fn.
1606         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
1607         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
1608         UNSPEC_PLT): New constants.
1609         (pop_pic_reg): New insn.
1610         (movsi): Adjust non-PIC addresses.
1611         (builtin_setjmp_receiver): Restore the PIC register.
1612         (casesi): New insn.
1613         (call): Adjust non-PIC addresses.
1614         (int_label, GOTaddr2picreg): New expands.
1615         (am33_loadPC): New insn.
1616         (mn10300_loadPC): New expand.
1617         (call_next_insn): New insn.
1618         (add_GOT_to_pic_reg): New expand.
1619         (symGOT2reg, symGOT2reg_i): New expands.
1620         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
1621         (sym2PIC, sym2PLT): New expands.
1623 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
1625         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
1626         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
1627         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
1628         to flag_unsafe_math_optimizations.
1629         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
1630         * config/mn10300/mn10300.c (expand_prologue): Mark
1631         FP-register-saving insns as frame-related.
1632         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
1633         * config/mn10300/mn10300.c
1634         (mn10300_get_live_callee_saved_regs): Don't search past
1635         LAST_EXTENDED_REGNUM.
1636         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
1637         * config/mn10300/mn10300.md: Remove excessive line breaks from
1638         `@' output patterns that were accounted as additional
1639         alternatives.
1640         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
1641         Re-introduce changes accidentally removed in Richard Sandiford's
1642         2000-12-05's patch.
1643         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
1644         Re-instate am33-2 lost in merge from net GCC.
1645         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
1646         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
1647         floating-point registers.
1648         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
1649         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
1650         pessimizations that had gone in on 2000-05-08.
1651         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
1652         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
1653         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
1654         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
1655         operand 0.
1656         * (movhi): Likewise.
1657         * (movsi): Likewise.
1658         * (movsf): Likewise.
1659         * (movdi): Likewise.
1660         * (movdf): Likewise.
1661         Wed May 24 13:16:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
1662         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
1663         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
1664         (expand_prologue, expand_epilogue): Save and restore FP regs.
1665         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
1666         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
1667         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
1668         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
1669         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
1670         Do not clobber cc0.
1671         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
1672         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
1673         Discourage the two-argument, longer opcodes.
1674         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
1675         ones.
1676         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
1677         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
1678         * config/mn10300/mn10300.md (cmpsf): New pattern.
1679         (branch): Test mdep.fpCC and output fbCC.
1680         * config/mn10300/mn10300.c (print_operand): Output conditions.
1681         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
1682         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
1683         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
1684         mulsf3, divsf3): Use the `F' constraint for FP values.
1685         * config/mn10300/mn10300.c (const_1f_operand): New function.
1686         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
1687         * config/mn10300/mn10300.md (sqrtsf2): New expand.
1688         (rsqrtsf2): New insn.
1689         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
1690         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
1691         previous check-in.
1692         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
1693         * config/mn10300/mn10300.md (abssf2, negdf2): On
1694         TARGET_AM33_2, expand to...
1695         (abssf2_am33_2, negdf2_am33_2): New insns.
1696         (addsf3, subsf3, mulsf3, divsf3): Likewise.
1697         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
1698         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
1699         movdi, movdf): Added FP regs.
1700         * invoke.texi (-mam33-2, -mno-am33-2): Document.
1701         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
1702         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
1703         New macros.
1704         (REGNO_AM33_2_FP_P): Renamed to...
1705         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
1706         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
1707         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
1708         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
1709         regs from GENERAL_REGS.
1710         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
1711         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
1712         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
1713         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
1714         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
1715         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
1716         as FP_REGS.
1717         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
1718         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
1719         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
1720         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
1721         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
1722         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
1723         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
1724         AM33/2.0 floating-point registers.
1725         (CONDITIONAL_REGISTER_USAGE): Adjust.
1726         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
1727         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
1728         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
1729         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
1730         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
1731         (MULTILIB_DIRNAMES): Likewise.
1732         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
1733         `__AM33_2__' when `-mam33-2' is given.
1734         (TARGET_AM33_2): Define.
1735         (TARGET_SWITCHES): Adjust.
1736         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
1737         when appropriate.
1739 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
1741         * doc/install.texi: Add missing @.
1743 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
1745         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
1747 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
1749         PR/11144
1750         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
1752 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
1754         PR bootstrap/11043
1755         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
1756         "x-crtfini.o" with "crtinit.o", "crtfini.o".
1758         * fixinc/inclhack.def (limits_ifndefs): Add select test.
1759         * fixinc/fixincl.x: Rebuild.
1761         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
1762         * fixinc/fixincl.x: Rebuild.
1764 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
1766         * doc/install.texi (Configuration): Document the valgrind option
1767         to --enable-checking.
1769 Wed Jul  9 16:16:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
1771         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
1773 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1775         * c-lex.c (cb_ident): Cast cstr.text to const char *.
1777 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
1779         * gcov-io.h: Update documentation.
1780         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
1781         GCOV_NOTE_MAGIC.
1782         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
1783         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
1784         (struct gcov_var): Change buffer's type. Add endian flag.
1785         (gcov_open): Remove mode in libgcov.
1786         (gcov_magic): Prototype.
1787         * gcov-io.c (from_file): New.
1788         (gcov_open): Clear endian flag.
1789         (gcov_magic): New.
1790         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
1791         pointers.
1792         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
1793         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
1794         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
1795         * gcov-iov.c (main): Correct cast.
1796         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
1797         conversion.
1798         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
1799         (coverage_init): Use GCOV_NOTE_SUFFIX.
1800         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
1801         Rename to gcov_version, and return flag.
1802         (gcov_exit): Use gcov_version.
1803         (__gcov_init): Use gcov_version.
1804         * Makefile.in (coverageexts): Update.
1805         * gcov.c (print_version): Remove endianness conversion.
1806         (create_file_names): Use GCOV_NOTE_SUFFIX.
1807         (read_graph_file): Use gcov_magic.
1808         (read_count_file): Likewise.
1809         * gcov-dump.c (dump_file): Remove endianness conversion, use
1810         gcov_magic.
1812 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
1814         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
1815         coverage is on.
1816         * configure: Regenerated.
1817         * Makefile.in (ALL_CFLAGS): Correct its comment.
1819 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
1821         * fold-const.c (make_range): Do not access operand 1 for a
1822         zero-operand operator.
1824 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
1826         * toplev.c (warn_dummy, W_options): Die.
1827         (display_help): Don't print W_options.
1828         * common.opt: Add W_options help from toplev.c.
1830 2003-07-09  Andreas Jaeger  <aj@suse.de>
1832         * opts.c (wrap_help): Only pass int arguments as arguments to
1833         printf's '*' modifier.  Change argument of function.
1835 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
1837         * doc/invoke.texi: Fix misspelling of "@item".
1839 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
1841         * config/i386/i386.md: Remove an old comment about
1842         NOTICE_UPDATE_CC.
1844 Wed Jul  9 03:00:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
1846         * cgraph.c (cgraph_node_name): New function.
1847         (dump_cgraph): Use it.
1848         * cgraph.h (cgraph_dump_file): Declare.
1849         (cgraph_node_name): Declare.
1850         * cgraphunit.c: Include timevar.h
1851         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
1852         (cgraph_optimize_function): Use TV_INTEGRATION.
1853         (cgraph_mark_local_functions): reorganize dumps.
1854         (cgraph_mark_functions_to_inline_once): Likewise.
1855         (cgraph_optimize): Likewise; use timevar.
1856         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
1857         * toplev.c (dump_file_index): Add DFI_cgraph.
1858         (dump_file_info): Likewise.
1859         (cgraph_dump_file): New global variable.
1860         (do_compile): Open and close cgraph dump.
1861         * invoke.texi (-d): Document new flag; renumber.
1863 2003-07-08  Roger Sayle  <roger@eyesopen.com>
1865         PR c/11370
1866         * calls.c (emit_call_1): Don't bother popping the arguments off of
1867         the stack after a noreturn function call;  The adjustment is dead.
1868         (expand_call): Likewise.
1870 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
1872         * expr.c (MOVE_MAX_PIECES): Move from here...
1873         * defaults.h (MOVE_MAX_PIECES): ... to here.
1875 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
1877         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
1879 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1881         * genattr.c (internal_dfa_insn_code): Don't prototype.
1882         * genattrtab.c (attr_desc): Add `static_p' field.
1883         (expand_units): Make blockage range and ready cost functions
1884         static.
1885         (write_attr_get): Don't add extern prototypes in C file.  Mark
1886         static functions as appropriate.
1887         (find_attr, make_internal_attr): Initialize static_p.
1888         * genattrtab.h (ATTR_STATIC): New macro.
1889         * genautomata.c (output_internal_reset_func): Mark output function
1890         as inline.
1891         (make_internal_dfa_insn_code_attr): Mark output function as static.
1893 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1895         * genattrtab.h: Add new macros for attr `special' flags.
1896         * genattrtab.c (attr_desc): Reorder/resize fields better.
1897         Use attr `special' macros in all calls to make_internal_attr.
1898         * genautomata.c: Likewise.
1900 Wed Jul  9 02:25:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
1902         * c-common.c (c_estimate_num_insns_1): New static function.
1903         (c_estimate_num_insns): New global function.
1904         * c-common.h (DECL_NUM_STMTS): Rename to...
1905         (DECL_ESTIMATED_INSNS): ... this.
1906         (c_estimate_num_insns): Declare.
1907         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
1908         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
1909         * c-semantics.c (add_stmt): Do not account statements.
1910         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
1911         New.
1912         * langhooks.h (lang_hooks_for_tree_inlining): Add
1913         estimate_num_insns
1914         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
1915         to 100.
1916         (max-inline-insns): set to 300.
1917         (min-inline-insns): set to 10.
1918         * tree-inline.c (struct inline_data): Rename inlined_stmts to
1919         inlined-insns.
1920         (INSNS_PER_STMT): Kill.
1921         (inlinable_function_p): Compute and store body size.
1922         (expand_call_inline): Likewise.
1923         (optimize_inline_calls): Likewise.
1925 2003-07-08  James E Wilson  <wilson@tuliptree.org>
1927         PR target/10021
1928         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
1929         loop over new variable t2 instead of t.
1931 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
1933         PR bootstrap/11455
1934         * config/i386/winnt.c: Replace use of error(), warning() with
1935         error_with_decl(), warning_with_decl(),  throughout.
1937 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
1939         * opts.c (wrap_help): Use unsigned int, not size_t.
1941 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
1943         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
1944         as .file/.loc directives are incompatible with linker relaxation.
1946 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
1948         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
1949         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
1950         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
1951         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
1952         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
1953         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
1954         Escape { and } characters which are not part of range expressions.
1955         * fixinc/fixincl.x: Regenerate.
1956         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
1958 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
1960         PR c/1687
1961         * tree-inline.c (find_alloca_call): Use
1962         walk_tree_without_duplicates, instead of walk_tree.
1963         (find_builtin_longjmp_call): Likewise.
1964         * c-objc-common.c (c_cannot_inline_fn): Likewise.
1965         * c-semantics.c (find_reachable_label): Likewise.
1967 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
1969         PR c/11420
1970         * config/i386/i386.c (ix86_check_movabs): New function.
1971         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
1972         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
1973         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
1975 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
1977         * Makefile.in (install-po): Cope with empty CATALOGS.
1979 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
1981         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
1982         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1983         (SECTION_FUNCTION_TEMPLATE): Delete.
1984         * config/mips/elf.h: As for elf64.h.
1985         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
1986         * config/mips/linux.h: As for elf.h
1987         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
1988         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
1989         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
1990         of in_sdata from current_section_name and current_section_flags.
1991         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
1992         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
1993         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
1994         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
1995         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
1996         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
1997         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
1998         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
1999         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
2000         (override_options): Remove setting of MASK_GPOPT.
2001         (mips_output_external): Use mips_in_small_data_p to check whether a
2002         symbol needs an .extern directive.  Don't emit such directives for
2003         TARGET_EXPLICIT_RELOCS.
2004         (mips_declare_object): Update accordingly.
2005         (mips_select_rtx_section): Call named_section rather than
2006         SMALL_DATA_SECTION.
2007         (mips_select_section): Use default_elf_section_section for everything
2008         except .text string constants.
2009         (mips_in_small_data_p): New function.
2010         (mips_encode_section_info): Remove small data handling.
2011         (mips_unique_section): Delete.
2012         (iris6_section_type_flags): New function.
2013         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
2015 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2017         PR Target/11453
2018         * pa.md: Disparage all mtsar constraints.
2019         (extzv, extv, insv): Don't fail on length of {32|64}.
2021 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
2023         * system.h: Poison MAP_CHARACTER.
2024         * config/i370/i370-protos.h (mvs_map_char): Delete.
2025         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
2026         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
2027         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
2029 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
2031         * toplev.c (randomize): Correct call to time().
2033 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
2035         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
2036         REG_EQUIV notes as well.
2038 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
2040         * doc/md.texi: Fix the description of addmodecc.
2042 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
2044         * Makefile.in (top_builddir): Set to "..", not ".".
2045         (INTLLIBS, INTLDEPS): Delete.
2046         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
2047         (LIBDEPS): Add $(LIBICONV_DEP).
2048         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
2049         (INCLUDES): Replace -I../intl with @INCINTL@.
2050         ($(top_builddir)/intl/libintl.a): Delete rule.
2051         (stage2-start, stage3-start, stage4-start, stageprofile-start,
2052         stagefeedback-start): Use $$ for variable to be evaluated by
2053         shell, not make.
2054         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
2055         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
2056         * aclocal.m4: sinclude ../config/progtest.m4.  Add
2057         contents of lcmessage.m4 from gettext distro.
2058         * configure.in: Check for wchar.h and setlocale.  Set
2059         LIBICONV_DEP to the empty string and substitute it.
2060         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
2061         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
2062         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
2063         in $LIBINTL, to avoid linking it twice.
2064         * configure, config.in: Regenerate.
2066 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
2068         * fixinc/mkfixinc.sh: Remove winnt support.
2069         * fixinc/fixinc.winnt: Delete with extreme prejudice.
2071 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
2073         * Makefile.in: Update.
2074         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
2075         * c.opt: Update documentation.
2076         * common.opt: Add some help text.
2077         * opts.c: Include intl.h.
2078         (wrap_help, print_help): New.
2079         (find_opt, handle_option, common_handle_option): opt_text now
2080         contains the '-'.  Use print_help to output help.
2081         * opts.h (struct cl_option): New member "help".
2082         * opts.sh: Update to handle help text output and to prepend
2083         options with '-'.
2084         * toplev.c (display_help): Remove some help text.
2086 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
2087             Fariborz Jahanian  <fjahanian@apple.com>
2089         * configure.in: Test for PowerPC mfcr field support in assembler.
2090         * config.in, configure: Regenderated.
2092         * config/rs6000/power4.md: Add mfcrf reservation.
2093         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
2094         * config/rs6000/rs6000.c (mfcr_operation): Define.
2095         (print_operand): Add 'Q' case for mfcrf.
2096         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
2097         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
2098         (movcc_internal1): Emit optional field operand for mfcr and set
2099         "type" attribute appropriately.
2100         (mfcr SCC): Likewise.
2101         (movesi_from_cr_one): New.
2103 2003-07-07  Roger Sayle  <roger@eyesopen.com>
2105         * config/i386/i386.md: Correct check-in of incorrect version.
2107 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2109         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
2110         adjacent stdio calls.
2111         * c-decl.c (c_print_identifier): Likewise.
2112         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
2113         * print-rtl.c (print_rtx): Likewise.
2114         * print-tree.c (print_node_brief, print_node): Likewise.
2115         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
2117         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
2118         * config.in, configure: Regenerated.
2120 2003-07-07  Roger Sayle  <roger@eyesopen.com>
2122         PR target/10979
2123         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
2124         Changed to define_expand patterns that copy operand[1] to prevent
2125         it from being clobbered before emitting an atan2?f3_1 insn.
2126         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
2127         patterns that actually specify the behaviour of x87's FPATAN.
2129 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
2131         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
2132         clearing of SYMBOL_FLAG_LOCAL bit.
2133         If vcall_offset fits into signed 16-bit immediate, use
2134         one instruction for both addition and load.
2136 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
2138         * opts.c (common_handle_option): Correct handling of the
2139         -falign- switches that do and don't take an argument.
2141 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
2143         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
2144         today.
2145         (pushhi1_h8300hs): Likewise.
2147 2003-07-07  Andreas Jaeger  <aj@suse.de>
2149         * genextract.c: Convert remaining prototypes to ISO C90.
2151         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
2152         * fold-const.c (fold_single_bit_test): Likewise.
2153         * diagnostic.c (default_diagnostic_finalizer): Likewise.
2154         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
2156         * gengtype.c (write_array): Generate ISO C90 prototypes.
2158         * genflags.c (gen_proto): Generate ISO C90 prototypes.
2160 2003-07-07  Roger Sayle  <roger@eyesopen.com>
2162         PR optimization/11059
2163         * expr.c (can_store_by_pieces): Return true if length is zero.
2164         (store_by_pieces): If length is zero and endp is two, abort,
2165         othwerise, if length is zero and endp is not two, return "to".
2166         (clear_by_pieces): Do nothing if length is zero.
2167         (clear_storage): Do nothing if length is zero.
2168         (store_constructor): Simplify code when size is zero, or the
2169         target has already been cleared.  This avoids emitting a
2170         blockage instruction when initializing empty structures.
2172 2003-07-07  Andreas Jaeger  <aj@suse.de>
2174         * mips-tfile.c: Convert prototypes to ISO C90.
2175         * mips-tdump.c: Convert prototypes to ISO C90.
2177 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
2179         * rtl.h (emit_line_note): Take a location_t.
2180         (emit_line_note_force): Remove.
2181         (set_file_and_line_for_statement): Take a location_t.
2182         * tree.g (emit_line_note): Take a location_t.
2183         * emit-rtl.c (emit_line_note): Take a location_t.
2184         (emit_line_note_force): Remove.
2185         * function.c (init_function_start): Adjust emit_line_note call.
2186         (expand_function_end): Use force_next_line_note, not
2187         emit_line_note_force.
2188         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
2189         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
2190         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
2191         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
2192         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
2193         genrtl_continue_stmt, genrtl_switch_stmt,
2194         genrtl_asm_stmt): Likewise.
2195         * expr.c (expand_expr): Likewise.
2196         * integrate.c (expand_inline_function): Likewise.
2197         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
2198         (expand_decl_init): Adjust emit_line_note call.
2200 2003-07-07  Dale Johannesen  <dalej@apple.com>
2202         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
2204 2003-07-07  Andreas Jaeger  <aj@suse.de>
2206         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
2207         * config/i386/i386.c: Likewise.
2209 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
2211         * config/h8300/h8300.md: Use gen_int_mode instead of
2212         GEN_INT (trunc_int_for_mode (...)).
2214 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
2216         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
2217         2 bytes and then subtract 2 from the stack pointer.
2218         (pushhi1_h8300hs): Likewise.
2220 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
2222         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
2223         -frandom-seed.
2224         * configure: Regenerated.
2225         * Makefile.in: Remove extraneous comment.
2226         * toplev.c (randomize): Protect against potential multiple calls.
2227         * doc/invoke.texi (-frandom-seed): Document use for in coverage
2228         files.
2230 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2231             Eric Botcazou  <ebotcazou@libertysurf.fr>
2233         PR optimization/11198
2234         * alias.c (objects_must_conflict_p): Return 1 if the types have
2235         the same alias set, not if the alias sets only conflict.
2237 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
2239         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
2240         (convert_cset): Change inbuf to type ICONV_CONST char.
2241         * Makefile.in (LIBS): Add LIBICONV.
2243         * doc/invoke.texi (-falign-functions): Document that
2244         when n is zero then a machine-dependent default is used.
2245         (-falign-labels): Document that when n is zero then a
2246         machine-dependent default is used and that -falign-labels =1
2247         is equivalent to -fno-align-labels.
2248         (-falign-loops): Likewise.
2249         (-falign-jumps): Likewise.
2251 2003-07-06  Art Haas  <ahaas@airmail.net>
2253         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
2254         initializer syntax.
2256 2003-07-06  James E Wilson  <wilson@tuliptree.org>
2258         PR optimization/9812
2259         * rtl.h (mem_for_const_double): Delete prototype.
2260         * varasm.c (mem_for_const_double): Delete function.
2261         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
2262         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
2263         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
2264         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
2265         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
2266         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
2267         comment about confused support for XFmode constants.
2269 Mon Jul  7 02:03:56 CEST 2003  Jan Hubicka  <jh@suse.cz>
2271         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
2273 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
2275         * config/h8300/h8300.c: Fix comment typos.
2276         * config/h8300/h8300.md: Likewise.
2277         * config/i386/athlon.md: Likewise.
2278         * config/i386/i386.c: Likewise.
2279         * config/i386/pentium.md: Likewise.
2280         * config/ia64/ia64.c: Likewise.
2281         * config/ia64/itanium1.md: Likewise.
2282         * config/ia64/itanium2.md: Likewise.
2283         * config/m32r/m32r.md: Likewise.
2284         * config/m68hc11/m68hc11.c: Likewise.
2285         * config/mcore/mcore.c: Likewise.
2286         * config/mips/sr71k.md: Likewise.
2287         * config/mips/t-iris5-as: Likewise.
2288         * config/mmix/mmix.h: Likewise.
2289         * config/ns32k/ns32k.h: Likewise.
2290         * config/ns32k/NOTES: Fix a typo.
2292 2003-07-06  Andreas Jaeger  <aj@suse.de>
2294         * stmt.c: Convert remaining prototypes to ISO C90.
2295         * cfglayout.c: Likewise.
2296         * dbxout.c: Likewise.
2297         * gcc.c: Likewise.
2298         * genemit.c: Likewise.
2300         * basic-block.h: Convert prototypes to ISO C90.
2301         * c-parse.in: Likewise.
2302         * c-pragma.h: Likewise.
2303         * c-typeck.c: Likewise.
2304         * cfghooks.h: Likewise.
2305         * cfgloopanal.c: Likewise.
2306         * dbxout.h: Likewise.
2307         * debug.h: Likewise.
2308         * dwarf2asm.h: Likewise.
2309         * gcov.c: Likewise.
2310         * gengtype-lex.l: Likewise.
2311         * sched-int.h: Likewise.
2312         * timevar.c: Likewise.
2314 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
2316         * c-common.h (c_comon_handle_filename,
2317         c_common_missing_arguement): New.
2318         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2319         LANG_HOOKS_MISSING_ARGUMENT): New.
2320         * c-opts.c (missing_arg): Rename c_common_missing_argument,
2321         update to be an appropriate langhook.
2322         (c_common_handle_option): Don't handle filenames.
2323         (c_common_handle_filename): New.
2324         * hooks.c (hook_void_constcharptr,
2325         hook_bool_constcharptr_size_t_false): New.
2326         * hooks.h (hook_void_constcharptr,
2327         hook_bool_constcharptr_size_t_false): New.
2328         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
2329         LANG_HOOKS_MISSING_ARGUMENT): New.
2330         (LANG_HOOKS_INITIALIZER): Update.
2331         * langhooks.h (struct lang_hooks): Add handle_filename and
2332         missing_argument.
2333         * opts.c (handle_option): Don't handle filenames here, but ...
2334         (handle_options): ... here.
2335         (common_handle_option): Don't handle missing arguments here.
2336         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2337         LANG_HOOKS_MISSING_ARGUMENT): New.
2339 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
2341         * Makfile.in: Remove traces of mbchar.
2342         * c-parse.in (MULTIBYTE_CHARS): Remove.
2343         * config.in (MULTIBYTE_CHARS): Remove.
2344         * configure: Remove --enable-mbchar.
2345         * configure.in: Remove --enable-mbchar.
2346         * mbchar.c, mbchar.h: Remove.
2347         * system.h: Poison MULTIBYTE_CHARS.
2348         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
2349         * config/linux.h (MULTIBYTE_CHARS): Remove.
2350         * config/svr4.h (MULTIBYTE_CHARS): Remove.
2351         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
2353 2003-07-06  Andreas Jaeger  <aj@suse.de>
2355         * varray.c (varray_check_failed): Fix typo.
2357         * unroll.c: Convert prototypes to ISO C90.
2358         * varasm.c: Likewise.
2359         * varray.c: Likewise.
2360         * varray.h: Likewise.
2361         * vmsdbgout.c: Likewise.
2362         * xcoffout.c: Likewise.
2363         * xcoffout.h: Likewise.
2365 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
2367         * gcov-io.h: Add a local time stamp.
2368         (struct gcov_info): Add stamp field.
2369         (gcov_truncate): New.
2370         * coverage.c (read_counts_file): Skip the stamp.
2371         (coverage_begin_output): Write the stamp.
2372         (build_gcov_info): Declare and init the stamp.
2373         (coverage_finish): Only unlink data file, if stamp is zero.
2374         * gcov-dump.c (dump_file): Dump the stamp.
2375         * gcov.c (bbg_stamp): New.
2376         (release_structures): Clear bbg_stamp.
2377         (read_graph_file): Read stamp.
2378         (read_count_file): Check stamp.
2379         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
2381 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
2383         * tree.h (default_flag_random_seed): Remove.
2384         * toplev.h (local_tick): Declare.
2385         * tree.c (flag_random_seed, default_flag_random_seed): Move to
2386         toplev.c.
2387         (append_random_chars): Don't call default_flag_random_seed.
2388         * toplev.c (flag_random_seed): Define here. Set local_tick.
2389         (local_tick): Define.
2390         (randomize): New, moved from tree.c.
2391         (print_switch_values): Adjust.
2392         (toplev_main): Call randomize.
2394 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
2396         * tree.h (crc32_string): Declare.
2397         * tree.c (append_random_chars): Remove.
2398         (crc32_string): New.
2399         (get_file_function_name_long): Use crc32_string here.
2401 2003-07-06  Andreas Jaeger  <aj@suse.de>
2403         * gcc.c: Convert prototypes to ISO C90.
2404         * gcc.h: Likewise.
2405         * gcov-dump.c: Likewise.
2406         * gcov-iov.c: Likewise.
2407         * gcse.c: Likewise.
2408         * genattrtab.h: Likewise.
2409         * ggc.h: Likewise.
2410         * global.c: Likewise.
2411         * graph.c: Likewise.
2412         * graph.h: Likewise.
2413         * hosthooks.h: Likewise.
2414         * hooks.h: Likewise.
2415         * hooks.c: Likewise.
2416         * hashtable.h: Likewise.
2417         * hashtable.c: Likewise.
2418         * haifa-sched.c: Likewise.
2419         * integrate.h: Likewise.
2420         * integrate.c: Likewise.
2421         * input.h: Likewise.
2422         * ifcvt.c: Likewise.
2423         * jump.c: Likewise.
2424         * langhooks-def.h: Likewise.  Add extern to prototypes.
2425         * langhooks.c: Likewise.
2426         * langhooks.h: Likewise.
2427         * lcm.c: Likewise.
2428         * local-alloc.c: Likewise.
2429         * loop-init.c: Likewise.
2430         * loop-unroll.c: Likewise.
2431         * loop-unswitch.c: Likewise.
2432         * loop.c: Likewise.
2433         * loop.h: Likewise. Add extern to prototypes.
2434         * machmode.h: Likewise.
2435         * main.c: Likewise.
2436         * mbchar.c: Likewise.
2437         * mbchar.h: Likewise.
2438         * mkdeps.c: Likewise.
2439         * mkdeps.h: Likewise.
2440         * optabs.c: Likewise.
2441         * optabs.h: Likewise.
2442         * output.h: Likewise.
2443         * gccspec.c: Likwise.
2444         * postreload.c: Likewise.
2445         * prefix.c: Likewise.
2446         * prefix.h: Likewise.
2447         * print-rtl.c: Likewise.
2448         * print-tree.c: Likewise.
2449         * profile.c: Likewise.
2450         * read-rtl.c: Likewise.
2451         * real.c: Likewise.
2452         * real.h: Likewise.
2453         * recog.c: Likewise.
2454         * recog.h: Likewise.
2455         * reg-stack.c: Likewise.
2456         * regclass.c: Likewise.
2457         * regmove.c: Likewise.
2458         * regrename.c: Likewise.
2459         * regs.h: Likewise.
2460         * reload.c: Likewise.
2461         * reload.h: Likewise.
2462         * reload1.c: Likewise.
2463         * reorg.c: Likewise.
2464         * resource.c: Likewise.
2465         * resource.h: Likewise.
2466         * rtl-error.c: Likewise.
2467         * rtl.c: Likewise.
2468         * rtl.h: Likewise.
2469         * rtlanal.c: Likewise.
2470         * sbitmap.c: Likewise.
2471         * sbitmap.h: Likewise.
2472         * scan-decls.c: Likewise.
2473         * scan.c: Likewise.
2474         * sched-deps.c: Likewise.
2475         * sched-ebb.c: Likewise.
2476         * sched-int.h: Likewise.
2477         * sched-rgn.c: Likewise.
2478         * sched-vis.c: Likewise.
2479         * sibcall.c: Likewise.
2480         * simplify-rtx.c: Likewise.
2481         * sreal.c: Likewise.
2482         * sreal.h: Likewise.
2483         * ssa-ccp.c: Likewise.
2484         * ssa-dce.c: Likewise.
2485         * ssa.c: Likewise.
2486         * ssa.h: Likewise.
2487         * stack.h: Likewise.
2488         * stmt.c: Likewise.
2489         * stor-layout.c: Likewise.
2490         * stringpool.c: Likewise.
2491         * target.h: Likewise.
2492         * timevar.c: Likewise.
2493         * timevar.h: Likewise.
2494         * tlink.c: Likewise.
2495         * tracer.c: Likewise.
2496         * tree-inline.c: Likewise.
2497         * tree-inline.h: Likewise.
2498         * tree.c: Likewise.
2499         * tree.h: Likewise.
2501 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
2503         * combine.c (nonzero_bits1): Fix a warning.
2505 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
2507         * config/h8300/h8300.c (compute_mov_length): Correct the
2508         length of loading CONST0_RTX (SFmode).
2510 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
2512         * toplev.c (output_clean_symbol_name): Remove.
2513         * toplev.h (output_clean_symbol_name): Remove.
2514         * config/alpha/alpha.c (unicosmk_output_module_name): Use
2515         lbasename & clean_symbol_name.
2517 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
2519         * ggc.h: Follow spelling conventions.
2520         * config/i386/i386.c: Likewise.
2521         * config/i386/winnt.c: Likewise.
2522         * config/rs6000/rs6000.c: Likewise.
2524 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
2526         * bt-load.c: Fix comment typos.
2527         * c-incpath.c: Likewise.
2528         * cfg.c: Likewise.
2529         * cfgcleanup.c: Likewise.
2530         * cfgloop.h: Likewise.
2531         * cfgloopmanip.c: Likewise.
2532         * cfgrtl.c: Likewise.
2533         * diagnostic.h: Likewise.
2534         * dwarfout.c: Likewise.
2535         * emit-rtl.c: Likewise.
2536         * et-forest.c: Likewise.
2537         * et-forest.h: Likewise.
2538         * expr.c: Likewise.
2539         * gcse.c: Likewise.
2540         * genattr.c: Likewise.
2541         * jump.c: Likewise.
2542         * langhooks.h: Likewise.
2543         * local-alloc.c: Likewise.
2544         * loop-unroll.c: Likewise.
2545         * loop-unswitch.c: Likewise.
2546         * ra-build.c: Likewise.
2547         * regclass.c: Likewise.
2548         * regmove.c: Likewise.
2549         * rtl.def: Likewise.
2550         * rtlanal.c: Likewise.
2551         * sched-ebb.c: Likewise.
2552         * sched-rgn.c: Likewise.
2553         * simplify-rtx.c: Likewise.
2554         * ssa.c: Likewise.
2555         * tracer.c: Likewise.
2556         * tree.c: Likewise.
2558 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
2560         * cppcharset.c: Use the correct return type for the fallback iconv
2561         macro.
2563 Sat Jul  5 16:18:53 CEST 2003  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2565         Blame to Jan Hubicka  <jh@suse.cz>
2566         * cfglayout.c (record_effective_endpoints): Split insns before
2567         first basic block correctly.
2569 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2571         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
2572         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
2573         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
2575 2003-07-05  Andreas Jaeger  <aj@suse.de>
2577         * genattrtab.c (write_attr_get): Revert part of last patch to
2578         always write out a prototype.
2580         * genemit.c (gen_split): Readd lost unused attributes in last
2581         patch.
2583 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2585         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
2586         different from header.
2588 2003-07-05  Andreas Schwab  <schwab@suse.de>
2590         * config/m68k/m68k.c: Remove code protected by CRDS.
2591         * config/m68k/m68k.md: Likewise.
2593 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
2595         PR driver/11417
2596         * c-opts.c (permit_fortran_options): New.
2597         (c_common_init_options): Accept fortran front end options if
2598         it looks like we might be preprocessing Fortran.
2599         (c_common_handle_option): Don't reject switch if permit_fotran_options.
2601 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2603         * genattr.c (internal_dfa_insn_code): Output prototype.
2604         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
2605         * genautomata.c: Likewise.
2606         * genconditions.c: Likewise.
2607         * genemit.c: Likewise.
2608         * genextract.c: Likewise.
2609         * gengenrtl.c: Likewise.
2610         * gengtype.c: Likewise.
2611         * genopinit.c: Likewise.
2612         * genoutput.c: Likewise.
2613         * genpeep.c: Likewise.
2614         * genrecog.c: Likewise.
2616 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
2618         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
2619         (struct cpp_options): Add narrow_charset, wide_charset,
2620         bytes_big_endian fields.  Remove EBCDIC field.
2621         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
2623         * cpphash.h: Include <iconv.h> if we have it, otherwise
2624         provide a dummy definition of iconv_t.
2625         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
2626         (_cpp_valid_ucn): Update prototype.
2627         (_cpp_destroy_iconv): New prototype.
2629         * doc/cpp.texi: Document character set handling.
2630         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
2631         * doc/extend.texi: Delete entire section on multiline strings.
2632         Rewrite section on __FUNCTION__ etc now that these are
2633         variables in C.
2635         * cppucnid.tab, cppucnid.pl: New files.
2636         * cppucnid.h: New generated file.
2637         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
2638         (iconv_open, iconv, iconv_close): Provide dummy definitions
2639         if !HAVE_ICONV.
2640         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
2641         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
2642         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
2643         cpp_interpret_string, narrow_str_to_charconst,
2644         wide_str_to_charconst): New.
2645         (ucn_valid_in_identifier): Use a binary search through the
2646         ucnranges table defined in cppucnid.h, not a long chain of if
2647         statements.
2648         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
2649         character names are only valid in C++ and C99" to a warning.
2650         Issue the "meaning of \[uU] is different in traditional C"
2651         warning here.  Take care not to let iconv see an invalid UCS
2652         value if we get a malformed UCN.  Issue an error if we don't
2653         have iconv.
2654         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
2655         cpp_interpret_string to do the heavy lifting.
2657         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
2658         narrow_charset, wide_charset fields of options structure.
2659         (cpp_destroy): Call _cpp_destroy_iconv.
2660         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
2661         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
2662         (cpp_interpret_charconst): Moved to cppcharset.c.
2663         * cpplib.c (dequote_string): Delete.
2664         (interpret_string_notranslate): New.
2665         (do_line, do_linemarker): Use interpret_string_notranslate.
2667         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
2669         * c-common.c (fname_string, combine_strings): Delete.
2670         * c-common.h (fname_string, combine_strings): Delete prototypes.
2671         * c-lex.c (ignore_escape_flag): Delete.
2672         (cb_ident): Use cpp_interpret_string, not lex_string.
2673         (get_nonpadding_token): New function.
2674         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
2675         Adjust calls to lex_string.  Don't write *value twice.
2676         (lex_string): Now handles string constant concatenation.
2677         Most of the work handed off to cpp_interpret_string.
2678         Call fix_string_type here.
2679         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
2680         FUNC_NAME, throughout.
2681         (OBJC_STRING): New token type.
2682         (primary:STRING): No need to call fix_string_type here.
2683         (primary:objc_string): Make that OBJC_STRING.
2684         (objc_string nonterminal): Delete.
2685         (yylexname): Delete code to handle fake string constants.
2686         (yylexstring): Delete entirely.
2687         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
2688         to handle CPP_ATSIGN.
2690         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
2691         * c-opts.c (missing_arg, c_common_handle_option): Handle
2692         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
2693         (c_common_init): Set cpp_opts->bytes_big_endian, not
2694         cpp_opts->EBCDIC.  Call cpp_init_iconv.
2695         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
2696         (TARGET_EBCDIC): Delete default definition.
2698         * objc/objc-act.c (build_objc_string_object): No need to
2699         handle string constant concatenation.
2701 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
2703         * doc/install.texi: Fix typos.
2704         * doc/invoke.texi: Likewise.
2705         * doc/tm.texi: Likewise.
2707 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
2709         * config/pa/fptr.c: Fix comment typos.
2710         * config/pa/pa-64.h: Likewise.
2711         * config/pa/pa.c: Likewise.
2712         * config/pa/pa.h: Likewise.
2713         * config/rs6000/603.md: Likewise.
2714         * config/rs6000/7xx.md: Likewise.
2715         * config/rs6000/darwin.h: Likewise.
2716         * config/rs6000/freebsd.h: Likewise.
2717         * config/rs6000/rs6000.c: Likewise.
2718         * config/rs6000/rs6000.md: Likewise.
2719         * config/rs6000/spe.h: Likewise.
2721 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
2723         * config/s390/2064.md: Change GNU CC to GCC.
2724         * config/s390/2084.md: Likewise.
2725         * config/s390/fixdfdi.h: Likewise.
2726         * config/s390/linux.h: Likewise.
2727         * config/s390/s390-modes.def: Likewise.
2728         * config/s390/s390-protos.h: Likewise.
2729         * config/s390/s390.c: Likewise.
2730         * config/s390/s390.h: Likewise.
2731         * config/s390/s390.md: Likewise.
2732         * config/s390/s390x.h: Likewise.
2734 2003-07-04  Jeff Law  <law@redhat.com>
2736         PR c/11428
2737         * expr.c (do_store_flag): Pass in the correct result type
2738         when calling fold_single_bit_test.
2739         * fold-const.c (fold_single_bit_test): Use result_type for the
2740         result when folding a sign bit test.
2742 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
2744         * opts.c (common_handle_options): Negate sense of -falign- switches.
2746 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
2748         * Makefile.in: Replace PWD with PWD_COMMAND.
2750 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2752         * cfgloopanal.c (count_strange_loop_iterations): New static function.
2753         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
2754         Handle strange loops.
2756 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
2758         * install.texi: Even the g77 manpage is derived from
2759         the full g77 manual.
2761 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
2763         * ABOUT-NLS: Delete.
2764         * intl: Delete entire directory.
2765         * aclocal.m4: Include ../config/gettext.m4.  Delete
2766         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
2767         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
2768         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
2769         Remove intl/Makefile from all_outputs.
2770         * configure, config.in: Regenerate.
2771         * Makefile.in: Expunge all references to intl subdirectory.
2772         Add -I../intl to INCLUDES.
2773         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
2775 2003-07-04  Roger Sayle  <roger@eyesopen.com>
2777         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
2778         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
2780 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
2782         PR c++/5287, PR c++/7910, PR c++/11021
2783         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
2784         dllimport attribute if function is defined at declaration, but
2785         report error instead. Likewise for dllimport'd variable
2786         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
2787         declared within functions, Report error if dllimport or dllexport
2788         symbol is not global.
2789         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
2790         if defined after declaration or if inlined. Don't allow definition
2791         of static data members of C++ classes. Don't dllimport virtual
2792         methods.
2793         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
2794         (i386_pe_mark_dllimport): Remove unnecessary checks.
2795         (i386_pe_encode_section_info): Warn if the dllimport attribute
2796         and symbol prefix have been instantiated and then overridden.
2798         * doc/extend.texi: Document dllimport and dllexport attributes.
2800         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
2802 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
2804         * config/kaos.h (CPP_PREDEFINES): Delete.
2805         (TARGET_OS_CPP_BUILTINS): New.
2807 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2809         * c-aux-info.c: Include toplev.h after c-tree.h.
2810         * c-common.c: Likewise.
2811         (GCC_DIAG_STYLE): Undef.
2812         * c-semantics.c (GCC_DIAG_STYLE): Define.
2813         * c-tree.h (GCC_DIAG_STYLE): Likewise.
2814         * diagnostic.h (inform): Move prototype to toplev.h.
2815         * jump.c: Include diagnostic.h before toplev.h.
2816         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
2817         (warning, error, fatal_error, pedwarn, sorry, inform,
2818         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
2820 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2822         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
2823         at all if edge is not specified.
2824         (can_copy_bbs_p, copy_bbs): New.
2825         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
2826         * cfgloop.c (get_loop_body): Comment more precisely.
2827         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
2828         (scale_bbs_frequencies): Fix comment typo.
2829         (can_duplicate_loop_p): Use can_copy_bbs_p.
2830         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
2832 2003-07-03  Devang Patel <dpatel@apple.com>
2834         * c-opts.c (c_common_parse_file): Remove extra
2835         debug_hooks->start_source_file call.
2837 2003-07-03  Roger Sayle  <roger@eyesopen.com>
2839         * real.c (real_trunc, real_floor, real_ceil): New functions
2840         to implement trunc, floor and ceil respectively.
2841         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
2842         * builtins.c (integer_valued_real_p): New function to test if
2843         a floating point expression has an integer valued result.
2844         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
2845         foo(x) where foo is an integer rounding function.  Similarly,
2846         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
2847         (double)(int)x when both foo and bar are integer rounding
2848         functions and we don't need to honor errno.
2849         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
2850         New functions to fold trunc, floor and ceil.
2851         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
2852         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
2853         to fold BUILT_IN_CEIL*.
2854         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
2855         the remaining integer rounding functions.
2857 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
2859         * config/sparc/sparc.c (function_arg_partial_nregs): Use
2860         SPARC_INT_ARG_MAX to determine where to split unnamed
2861         complex FP arguments.
2863 Thu Jul  3 20:36:47 CEST 2003  Jan Hubicka  <jh@suse.cz>
2865         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
2866         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
2867         (merge_blocks_move_predecessor_nojumps,
2868          merge_blocks_move_successor_nojumps): Use merge_blocks.
2869         (try_optimize_cfg): Use merge_blocks_move.
2870         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
2871         (merge_blocks_nomove): Rename to rtl_merge_blocks.
2872         (cfg_layout_create_basic_block): New.
2873         (rtl_can_merge_blocks): New.
2874         (cfg_layout_split_block): Do not alloc aux by hand.
2875         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
2876         merge_blocks.
2877         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
2878         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
2879         * cfgloopmanip.c (loop_split_edge_with): Likewise.
2880         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
2882         * basic-block.h (basic_block_def): Add field 'rbi'.
2883         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
2884         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
2885         * cfg.c (entry_exit_blocks): Add new field.
2886         * cfglayout.c: Include alloc-pool.h;
2887         (cfg_layout_pool): New.
2888         (record_effective_endpoints, fixup_reorder_chain,
2889         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
2890         of rbi.
2891         (cfg_layout_initialize_rbi): New function.
2892         (cfg_layout_initialize): Use it.
2893         (cfg_layout_finalize): Clear rbi fields.
2894         * cfglayout.h (RBI): Kill.
2895         (cfg_layout_initialize_rbi): Declare.
2896         * cfgloopmanip.c (copy_bbs): Use rbi.
2897         (record_exit_edges): Likewise.
2898         (duplicate_loop_to_header_edge): Likewise.
2899         * cfgrtl.c (cfg_layout_create_basic_block): Use
2900         cfg_layout_initialize_rbi.
2901         (cfg_layout_split_block): Use rbi.
2902         (cfg_layout_delete_block): Likewise.
2903         * loop-init.c (loop_optimizer_finalize): Likewise.
2904         * loop-unswitch.c (unswitch_loop): Likewise.
2905         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
2907         * cfgrtl.c: Update comments.
2908         (try_redirect_by_replacing_jump): New argument.
2909         (redirect_branch_edge): Break out from ...
2910         (rtl_redirect_edge_and_branch): ... this one.
2911         (update_cfg_after_block_merging): Break out from ...
2912         (rtl_merge_blocks): ... this one.
2913         (cfg_layout_split_edge): New.
2914         (cfg_layout_merge_blocks): New.
2915         (cfg_layout_can_merge_blocks_p): New.
2916         (cfg_layout_redirect_edge_and_branch): Reorganize.
2917         (cfg_layout_rtl_cfg_hooks): Fill in.
2918         (cfg_layout_delete_block): Kill barriers.
2919         * cfganal.c (can_fallthru): Deal with exit blocks
2920         * cfglayout.c (cfg_layout_function_header): New function
2921         (record_effective_endpoints): Record function header.
2922         (fixup_reorder_chain): Fixup dead jumptables; place header
2924         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
2925         * bb-reorder.c (cfg_layout_initialize): Update call.
2926         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
2927         edges in cfglayout mode.
2928         * cfglayout.c (cleanup_unconditional_jumps): Kill.
2929         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
2930         * cfglayout.h (cfg_layout_initialize): Update prototype.
2931         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
2932         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
2933         * flow.c (propagate_block): Do not crash when basic block ends
2934         by first insn in the chain.
2935         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
2936         do loop discovery.
2937         * tracer.c (tracer): Update call of cfg_layout_initialize.
2939 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2941         * Makefile.in: Use dependency variables in lieu of explicit
2942         files throughout.
2944 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
2946         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
2947         * tree.h: ...to here.
2949 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
2951         * config/s390/2064.md: Fix comment typos.
2952         * config/s390/2084.md: Likewise.
2953         * config/s390/s390.c: Likewise.
2954         * config/s390/s390.md: Likewise.
2955         * config/sh/sh.c: Likewise.
2956         * config/sh/sh.h: Likewise.
2957         * config/sh/sh.md: Likewise.
2958         * config/sparc/sparc.c: Likewise.
2959         * config/sparc/sparc.h: Likewise.
2960         * config/sparc/sparc.md: Likewise.
2961         * config/stormy16/stormy16.c: Likewise.
2962         * config/stormy16/stormy16.h: Likewise.
2963         * config/stormy16/stormy-abi: Fix a typo.
2965 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
2967         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
2969 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2971         * config/mips/mips.h (save_argv): Delete.
2973 2003-07-03  Roger Sayle  <roger@eyesopen.com>
2975         PR target/10700
2976         * fold-const.c (extract_muldiv_1): There's nothing that can be done
2977         if the expression is a SAVE_EXPR.
2979 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
2981         * config/m32r/m32r.c: Fix comment typos.
2982         * config/m68hc11/m68hc11.c: Likewise.
2983         * config/m68hc11/m68hc11.h: Likewise.
2984         * config/m68k/m68k.c: Likewise.
2985         * config/mcore/mcore.c: Likewise.
2986         * config/mcore/mcore.h: Likewise.
2987         * config/mcore/mcore.md: Likewise.
2988         * config/mips/mips.c: Likewise.
2989         * config/mips/mips.h: Likewise.
2990         * config/mips/mips.md: Likewise.
2991         * config/mips/netbsd.h: Likewise.
2992         * config/mn10300/mn10300.c: Likewise.
2994 2003-07-03  Andreas Schwab  <schwab@suse.de>
2996         * dbxout.c (pending_bincls): Move decl down inside
2997         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
2999 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
3001         * rtl.h (NOTE_DATA): Refer to whole union.
3002         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
3004 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3006         PR optimization/11381
3007         * simplify-rtx.c (simplify_relational_operation): Check that
3008         two equal operands have no side-effects before simplifying
3009         the comparison.
3011 2003-07-02  Jeff Law  <law@redhat.com>
3013         * expr.c (do_store_flag): Remove special case folding for
3014         single bit tests.  Instead call back into the commonized folder
3015         routine.
3016         * fold-const.c (fold_single_bit_test): New function, mostly
3017         extracted from do_store_flag, with an additional case extracted
3018         from fold.
3019         (fold): Call fold_single_bit_test appropriately.
3020         * tree.h (fold_single_bit_test): Prototype.
3022 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
3024         * system.h: Include filenames.h.
3025         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
3026         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
3027         define based on HAVE_DOS_BASED_FILE_SYSTEM.
3028         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
3029         * config/i386/xm-mingw32.h: Don't define
3030         HAVE_DOS_BASED_FILE_SYSTEM,
3031         DIR_SEPARATOR, or DIR_SEPARATOR_2.
3032         * doc/hostconfig.texi: Update to match.
3034         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
3035         config/i386/cygwin.h:
3036         Use IS_ABSOLUTE_PATH throughout.
3037         * gcc.c (DIR_UP): Delete, unused.
3038         * protoize.c (IS_SAME_PATH): Define in terms of
3039         FILENAME_CMP.
3040         (is_abspath): Delete.
3042 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
3044         * config/i386/emmintrin.h: Fix comment typos.
3045         * config/i386/i386.c: Likewise.
3046         * config/i386/i386.h: Likewise.
3047         * config/i386/sco5.h: Likewise.
3048         * config/ia64/ia64.c: Likewise.
3049         * config/ia64/itanium2.md: Likewise.
3051 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
3053         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
3054         DBX_USE_BINCL.
3055         (emit_bincl_stab): Same.
3056         (emit_pending_bincls): Same.
3058 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
3060         * config/h8300/h8300.c (compute_mov_length): Fix the length of
3061         loading CONST0_RTX (SFmode).
3062         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
3063         'G' to CONST0_RTX (SFmode).
3064         * config/h8300/h8300.md (movsf_h8300): Change the first
3065         constraint to 'G'.
3066         (movsf_h8300h): Likewise.
3068 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
3070         * c-common.h (c_common_init_options): New prototype.
3071         * c-opts.c (deferred_size): Remove.
3072         (defer_opt): Array is now pre-allocated.
3073         (c_common_init_options): Pre-allocate deferred_opts.  Make
3074         lang_flags unsigned.
3075         (push_command_line_options): Free deferred_opts.
3076         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
3077         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
3078         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
3079         * langhooks.h (struct lang_hooks): New prototype for init_options.
3080         * main.c (main): Cast argv.
3081         * opts.c (handle_option, handle_options): Update prototypes.
3082         (decode_options): save_argc, save_argv are not global.  Constify.
3083         * opts.h (decode_options): New prototype.
3084         * toplev.c (general_init): New protoype.
3085         (save_argv): Make static.
3086         (save_argc): Remove.
3087         (print_switch_values, general_init): Constify.
3088         (toplev_main): Save argv.
3089         * toplev.h (toplev_main): Update prototype.
3090         (save_argc, save_argv): Remove.
3092 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
3094         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
3095         (emit_bincl_stab): Same.
3096         (emit_pending_bincls): Same.
3098 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
3100         PR c++/11072
3101         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
3103 2003-07-02  Andreas Schwab  <schwab@suse.de>
3105         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
3107 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
3109         PR optimization/11210
3110         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
3111         about the behaviour with regard to bitfields.
3112         * fold-const (decode_field_reference): Record outermost type in
3113         case the expression is a NOP. Strip all NOPs. Set the signedness
3114         to that of the outermost type (if any) when the bitsize is equal
3115         to the size of the type.
3117 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
3119         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
3120         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
3121         (adddi3_internal_3, addsi3_internal_2): Likewise.
3123 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
3125         * config/mips/mips.c (machine_function): Add new fields:
3126         ignore_hazard_length_p and all_noreorder_p.
3127         (mips_flag_delayed_branch): New variable.
3128         (override_options): Treat '/' as an operand punctuation character.
3129         Set up mips_flag_delayed_branch.
3130         (print_operand): Handle '/'.
3131         (mips_output_function_prologue): Put the whole function in
3132         .set noreorder and .set nomacro if all_noreorder_p is true.
3133         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
3134         (mips16_optimize_gp): Remove "first insn" parameter.
3135         (mips16_lay_out_constants): New function, split out from mips_reorg.
3136         (mips_avoid_hazard, mips_avoid_hazards): New functions.
3137         (mips_reorg): For mips16 code, call mips16_lay_out_constant
3138         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
3139         do delayed-branch scheduling followed by hazard detection.
3140         (mips_adjust_insn_length): Only account for hazards if
3141         !ignore_hazard_length_p.
3142         (mips_output_load_label): Add a nop to the o32 sequence if
3143         the target suffers from load delays.
3144         (mips_output_conditional_branch): Add %/ to the end of branches.
3145         (mips_output_division): Fill the branch delay slot with %#.
3146         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
3147         instructions.  End all other %* branches with %/.
3148         (ffssi2, ffsdi2): Fix lengths.
3149         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
3150         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
3151         (fix_truncsfsi2_macro): Likewise.
3152         (mov_lwl): Set hazard to "none".
3153         (ashldi3_internal): Fill the branch delay slot with %#.
3154         (ashrdi3_internal, lshrdi3_internal): Likewise.
3155         (exception_receiver): Explicitly set $28.
3156         (hazard_nop): New pattern.
3158 Wed Jul  2 08:12:36 CEST 2003  Jan Hubicka  <jh@suse.cz>
3160         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
3161         before calling tree_inlinable_function_p.
3163 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3165         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
3166         <internal/stdio_core.h> too.
3167         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
3168         <internal/wchar_core.h> too.
3169         Substitute va_list uses in inline definition.
3170         * fixinc/fixincl.x: Regenerate.
3172 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3174         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
3175         Undef before redefinition.
3176         (LABEL_AFTER_LOC): Likewise.
3177         (DEFAULT_SIGNED_CHAR): Likewise.
3178         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
3179         Fix IRIX spelling.
3181         * config/mips/iris3.h: Remove, unused.
3182         * config/mips/iris4.h: Likewise.
3184         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
3186         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
3187         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
3188         target_cpu_default.
3190         * config/mips/iris5.h: Move explicit includes ...
3191         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
3193         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
3194         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
3195         tm_defines.
3197         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
3198         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
3199         target_cpu_default.
3201         * config/mips/iris6.h: Fix IRIX spelling.
3202         (MULTILIB_DEFAULTS): Undef before redefinition.
3204         * config/mips/iris6.h: Move explicit includes ...
3205         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
3207 Wed Jul  2 02:16:48 CEST 2003  Jan Hubicka  <jh@suse.cz>
3209         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
3210         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
3211         Use next_needed field instead of aux to maintain the queue.
3212         * cgraph.h (cgraph_node): Add next_needed.
3213         (cgraph_varpool_node): Add next_needed; remove aux.
3214         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
3216 Wed Jul  2 02:12:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
3218         * cgraphunit.c (cgraph_finalize_function): Set finalized.
3219         (cgraph_finalize_function): Do not examine inlinablility.
3220         (cgraph_finalize_compilation_unit): Do it here.
3221         * cgraph.h (cgraph_local_info): Add finalized field.
3223 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3225         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
3226         (gt_pch_restore): Likewise.
3228 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
3230         * config/alpha/alpha.c: Fix comment typos.
3231         * config/alpha/elf.h: Likewise.
3232         * config/arm/arm.c: Likewise.
3233         * config/arm/arm.h: Likewise.
3234         * config/arm/arm.md: Likewise.
3235         * config/arm/t-arm-coff: Likewise.
3236         * config/arm/t-strongarm-pe: Likewise.
3237         * config/arm/xscale-elf.h: Likewise.
3238         * config/avr/avr.h: Likewise.
3240 2003-07-01  Jeff Law  <law@redhat.com>
3242         * stmt.c (any_pending_cleanups): Remove another redundant test.
3244 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
3245             J"orn Rennecke <joern.rennecke@superh.com>
3247         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
3248         for MEM case.
3250 2003-07-01  Devang Patel  <dpatel@apple.com>
3252         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
3253         (binclstatus): New.
3254         (struct dbx_file): New members - bincl_status, pending_bincl_name and
3255         prev.
3256         (pending_bincls): New.
3257         (dbxout_init): Initialize new dbx_file members.
3258         (dbxout_start_source_file): Same.
3259         (emit_bincl_stab): New function.
3260         (emit_pending_bincls): Same.
3261         (emit_pending_bincls_if_required): Same.
3262         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
3263         processed.
3264         (dbxout_begin_block): Emit pending BINCL stabs.
3265         (dbxout_end_block): Same.
3266         (dbxout_function_decl): Same.
3267         (dbxout_continue): Same.
3268         (dbxout_type): Same.
3269         (dbxout_class_name_qualifiers): Same.
3270         (dbxout_symbol): Same.
3271         (dbxout_symbol_location): Same.
3272         (dbxout_parms): Same.
3274 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3276         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
3277         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
3279 2003-07-01  Andreas Jaeger  <aj@suse.de>
3281         * fold-const.c: Convert prototypes to ISO C90.
3282         * function.c: Likewise.
3283         * function.h: Likewise.
3285 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
3287         * doc/contrib.texi: Fix typos.
3288         * doc/invoke.texi: Likewise.
3289         * doc/passes.texi: Likewise.
3290         * doc/sourcebuild.texi: Likewise.
3291         * doc/tm.texi: Likewise.
3293 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
3295         * basic-block.h: Fix comment typos.
3296         * bb-reorder.c: Likewise.
3297         * c-format.c: Likewise.
3298         * cfgcleanup.c: Likewise.
3299         * cfghooks.h: Likewise.
3300         * cfgloop.c: Likewise.
3301         * cfgloopmanip.c: Likewise.
3302         * cfgrtl.c: Likewise.
3303         * cgraph.h: Likewise.
3304         * cgraphunit.c: Likewise.
3305         * combine.c: Likewise.
3306         * convert.c: Likewise.
3307         * dbxout.c: Likewise.
3308         * df.c: Likewise.
3309         * df.h: Likewise.
3310         * diagnostic.c: Likewise.
3311         * dwarf2out.c: Likewise.
3312         * et-forest.h: Likewise.
3313         * flow.c: Likewise.
3314         * fold-const.c: Likewise.
3315         * function.h: Likewise.
3316         * gcov-io.h: Likewise.
3317         * gcov.c: Likewise.
3318         * gcse.c: Likewise.
3319         * genautomata.c: Likewise.
3320         * ggc-common.c: Likewise.
3321         * ggc-page.c: Likewise.
3322         * loop-unroll.c: Likewise.
3323         * loop-unswitch.c: Likewise.
3324         * loop.c: Likewise.
3325         * mips-tfile.c: Likewise.
3326         * optabs.c: Likewise.
3327         * ra-build.c: Likewise.
3328         * ra-colorize.c: Likewise.
3329         * ra-rewrite.c: Likewise.
3330         * ra.h: Likewise.
3331         * regmove.c: Likewise.
3332         * reload.c: Likewise.
3333         * rtlanal.c: Likewise.
3334         * sched-ebb.c: Likewise.
3335         * sched-int.h: Likewise.
3336         * sched-vis.c: Likewise.
3337         * sreal.c: Likewise.
3338         * ssa-ccp.c: Likewise.
3339         * ssa.c: Likewise.
3340         * toplev.c: Likewise.
3341         * tree-inline.c: Likewise.
3342         * value-prof.c: Likewise.
3343         * value-prof.h: Likewise.
3345 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
3347         * rtl.h (emit_line_note_after): Remove.
3348         (emit_note_copy_after, emit_note_copy): New.
3349         * emit-rtl.c (reorder_insns_with_line_notes): Replace
3350         emit_line_note_after with emit_note_copy_after.
3351         (emit_insn_after_with_line_notes): Likewise.
3352         (emit_line_note_after): Kill.
3353         (emit_note_copy_after): New.
3354         (emit_note_copy): New.
3355         * function.c (emit_return_into_block): Use emit_note_copy_after.
3356         (thread_prologue_and_epilogue_insns): Likewise.
3357         * integrate.c (expand_inline_function): Use emit_note_copy.
3358         (copy_insn_list): Likewise.
3359         * unroll.c (copy_loop_body): Likewise.
3360         * cfglayout.c (duplicate_insn_chain): Likewise.
3362 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
3364         * c-tree.h (define_label): Replace filename and lineno arguments
3365         with a location_t.
3366         * c-decl.c (poplevel): Adjust define_label call.
3367         (pop_label_level): Likewise.
3368         (define_label): Replace filename and lineno arguments with a
3369         location_t.
3370         (store_parm_decls): Use DECL_SOURCE_LOCATION.
3371         * c-parse.in (label): Adjust define_label call.
3373 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
3375         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
3376         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
3377         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
3378         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
3379         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
3381 2003-07-01  Andreas Jaeger  <aj@suse.de>
3383         * final.c: Convert prototypes to ISO C90.
3384         * flow.c: Likewise.
3385         * flags.h: Likewise.
3386         * gcov-io.c: Likewise.
3387         * gcov-io.h: Likewise.
3389 See ChangeLog.9 for earlier changes.