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