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