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