* builtins.def (DEF_FALLBACK_BUILTIN): Delete.
[official-gcc.git] / gcc / ChangeLog
blobf1aaa6d1a067550a731a365290b7ac9905d12b47
1 2003-07-26  Roger Sayle  <roger@eyesopen.com>
3         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
4         (DEF_EXT_FALLBACK_BUILTIN): Delete.
5         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
6         the regular DEF_EXT_LIB_BUILTIN macro.
7         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
8         the regular DEF_LIB_BUILTIN macro.
9         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
10         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
11         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
12         DEF_EXT_LIB_BUILTIN macro.
14         * c-decl.c (duplicate_decls): Remove code to handle builtin
15         functions prototyped without an argument list.
17 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
19         * config/i386/winnt.c: Revert 2003-07-08 change.
20         (i386_pe_section_type_flags): Remove error_with_decl here too.
22 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
24         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
25         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
26         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
27         (v850_handle_data_area_attribute): Likewise.
29 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
31         * Makefile.in (libbackend.o): Remove options_.h.
32         (mostlyclean): Likewise.
34         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
35         insert a label at the end of an function under Mach-O.
37         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
39 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
41         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
42         equality.
43         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
45         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
47 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
49         * doc/passes.texi (Passes): Mention pretty-printing and
50         diagnostic files.
52 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
54         * doc/extend.texi (Function Attributes): GNU C++ does now allow
55         unused parameter decls.
56         (Attribute Syntax): GNU C++ does not allow label attributes to be
57         after the ':'.
59 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
61         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
62         (objc_declare_class): Likewise.
63         (error_with_ivar): Likewise.
64         (start_class): Likewise.
65         (warn_with_method): Likewise.
67 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
69         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
70         from GCC. 
71         * calls.c (try_to_integrate): Don't use xxx_with_decl.
72         (expand_call): Likewise.
73         * dwarfout.c (output_reg_number): Likewise.
74         * expr.c (expand_expr): Likewise.
75         * function.c (assign_temp): Likewise.
76         (uninitialized_vars_warning): Likewise.
77         (setjmp_args_warning): Likewise.
78         (expand_function_end): Likewise.
79         * stmt.c (fixup_gotos): Likewise.
80         (warn_about_unused_variables): Likewise.
81         (expand_end_bindings): Likewise.
82         * stor-layout.c (layout_decl): Likewise.
83         (place_field): Likewise.
84         * toplev.c (check_global_declarations): Likewise.
85         (rest_of_handle_inlining): Likewise.
86         (default_tree_printer): New function.
87         (general_init): Initialize diagnostic machinery before routing
88         signals to the ICE machinery.  Set default tree printer.
89         * toplev.h (pedwarn_with_decl): Remove declaration.
90         (warning_with_decl): Likewise.
91         (error_with_decl): Likewise.
92         (pedwarn): Remove attribute for the time being. 
93         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
94         * varasm.c (named_section): Likewise.
95         (make_decl_rtl): Likewise.
96         (assemble_variable): Likewise.
97         (merge_weak): Likewise.
98         (declare_weak): Likewise.
100         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
101         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
102         (format_with_decl): Remove.
103         (diagnostic_for_decl): Likewise.
104         (pedwarn_with_decl): Likewise.
105         (warning_with_decl): Likewise.
106         (error_with_decl): Likewise.
107         (diagnostic_initialize): Adjust.
108         (diagnostic_count_diagnostic): Likewise.
109         (announce_function): Likewise.
110         (lhd_print_error_function): Likewise.
111         (diagnostic_report_current_module): Likewise.
112         (default_diagnostic_starter): Likewise.
113         (diagnostic_report_diagnostic): Likewise.
114         (default_diagnostic_finalizer): Likewise.
115         (verbatim): Likewise.
116         (error): Likewise.
117         (warning): Likewise.
118         * opts.c (common_handle_option): Likewise.
119         * pretty-print.c: New file.
120         * c-pretty-print.h (pp_base): Override.
121         * c-pretty-print.c: Adjust use of macros throughout.
122         (pp_buffer): New macro.
123         (pp_newline): Likewise.
124         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
125         * Makefile.in (DIAGNOSTIC_H): New variable.
126         (c-errors.o): Use it.
127         (c-objc-common.o): Likewise.
128         (c-common.o): Likewise.
129         (c-opts.o): Likewise.
130         (c-format.o): Likewise.
131         (diagnostic.o): Likewise.
132         (opts.o): Likewise.
133         (toplev.o): Likewise.
134         (rtl-error.o): Likewise.
135         (dwarf2out.o): Likewise.
136         (jump.o): Likewise.
137         (pretty-print.o): New rule.
139 2003-07-24  Roger Sayle  <roger@eyesopen.com>
141         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
142         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
143         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
144         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
145         (DEF_FRONT_END_LIB_BUILTIN): Delete.
146         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
147         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
149         * builtins.c (build_string_literal): New function to construct
150         a char* pointer to a string literal.
151         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
152         "rtx target" to be consistent with other expand_builtin_* functions.
153         Change 3rd argument from "int unlocked" to "bool unlocked".
154         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
155         c-common.c to avoid front-end dependencies.  Optimize printf("")
156         as a no-op when the result isn't required.  Handle embedded NULs
157         in format string.
158         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
159         from c-common.c to avoid front-end dependencies.  Likewise, optimize
160         fprintf(fp,"") as a no-op when the result isn't required, evaluating
161         fp for side-effects.  Handle embedded NULs in format string.
162         (expand_builtin_sprintf): Fix typo.
163         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
164         optimizing.  Adjust calls of expand_builtin_fputs to match the API
165         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
166         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
167         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
169         * c-common.c (is_valid_printf_arglist): Delete.
170         (c_expand_builtin): Delete.
171         (c_expand_builtin_printf): Moved to builtins.c. Delete.
172         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
173         (c_expand_expr): No longer treat CALL_EXPRs specially.
174         (CALLED_AS_BUILT_IN): Delete.
176 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
178         PR optimization/11631
179         * gcse.c (store_motion): Connect infinite loops to exit.
181 2003-07-24  Jason Merrill  <jason@redhat.com>
183         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
184         (boolean_true_node, boolean_false_node): Likewise.
185         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
186         * tree.c (build_common_tree_nodes): Init boolean_type_node.
187         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
188         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
189         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
190         (truthvalue_true_node): Renamed from boolean_true_node.
191         (truthvalue_false_node): Renamed from boolean_false_node.
192         * c-decl.c: Just set truthvalue_* to integer_*.
193         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
195 2003-07-24  Roger Sayle  <roger@eyesopen.com>
197         * c-decl.c (match_builtin_function_types): New subroutine of
198         duplicate_decls to test whether a redeclaration of a builtin
199         function is suitably close, i.e. the return type and all of
200         the argument types have the same modes as the builtin expects.
201         (duplicate_decls): Fuzzy type matching for builtin functions
202         moved to match_builtin_function_types.
204 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
206         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
207         flag correctly.
209 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
211         * c-decl.c: Search-and-replace change 'binding level' to
212         'scope' in commentary.
213         (struct binding_level): Now struct c_scope.
214         (current_binding_level): Now current_scope.
215         (free_binding_level): Now scope_freelist.
216         (current_function_level): Now current_function_scope.
217         (global_binding_level): Now global_scope.
218         (make_binding_level): Now make_scope.
219         (pop_binding_level): Now pop_scope.
221 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
223         * configure.in (libgcc_visibility): Add missing whitespace.
225 2003-07-24  Richard Henderson  <rth@redhat.com>
227         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
228         __gcc_personality_v0.
230 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
232         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
234 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
236         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
237         documentation missed from my 2003-07-09 patch.
239 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
241         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
242         it's not provided.
243         * configure: Rebuild.
245 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
247         PR c/10602
248         * c-typeck.c (type_lists_compatible_p): Do not compare
249         arguments if one of them is an error_mark_node
251 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
253         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
254         if current_function_calls_eh_return.
256 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
258         * doc/c-tree.texi (OFFSET_TYPE): Update description.
260 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
262         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
263         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
264         __umodsi3, __modsi3): Increase frame size to 32.
266 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
268         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
269         prototype.
271 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
273         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
275         PR optimization/10679
276         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
278 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
280         PR target/11607 and PR target/11516
281         * pa.md (extzv, extv, insv): Revert latter half of last patch.
283 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
285         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
286         * varasam.c (output_constant): Likewise.
288 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
290         * alias.c: Fix comment formatting.
291         * c-common.c: Likewise.
292         * c-decl.c: Likewise.
293         * c-opts.c: Likewise.
294         * combine.c: Likewise.
295         * cpplib.c: Likewise.
296         * diagnostic.c: Likewise.
297         * dojump.c: Likewise.
298         * final.c: Likewise.
299         * fold-const.c: Likewise.
300         * gcc.c: Likewise.
301         * gcse.c: Likewise.
302         * ggc-page.c: Likewise.
303         * jump.c: Likewise.
304         * loop.c: Likewise.
305         * mips-tfile.c: Likewise.
306         * recog.c: Likewise.
307         * regclass.c: Likewise.
308         * regmove.c: Likewise.
309         * tree.c: Likewise.
310         * tree.h: Likewise.
312 2003-07-22  Per Bothner  <pbothner@apple.com>
314         * line-map.c (add_line_map):  Handle invalid LEAVE request.
315         Fixes PR preprocessor/11361.
317 2003-07-22  Per Bothner  <pbothner@apple.com>
319         * diagnostic.c.(diagnostic_report_current_module):  Update to match
320         2003-06-05 changes to push_srcloc and pop_srcloc.
322 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
324         * doc/trouble.texi: Better document two-stage name lookup.
326 2003-07-22  Eric Christopher <echristo@redhat.com>
328         * config/s390.c (s390_valid_pointer_mode): New.
329         (TARGET_VALID_POINTER_MODE): Use.
330         (s390_emit_prologue): Add tpf profiling hooks.
331         (s390_emit_epilogue): Ditto.
332         * config/s390.h (MASK_TPF): New.
333         (TARGET_TPF): Use.
334         (POINTERS_EXTEND_UNSIGNED): Define.
335         * config/s390.md (ptr_extend): New pattern.
337 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
339         * hashtable.c (approx_sqrt): Make static.
340         * hashtable.h: Don't prototype approx_sqrt.
341         * line-map.c (init_line_maps): Rename linemap_init.
342         (free_line_maps): Rename linemap_free.
343         (add_line_map): Rename linemap_add.
344         (lookup_line): Rename linemap_lookup.
345         (print_containing_files): Rename linemap_print_containing_files.
346         * linemap.h: Update to match.
348         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
349         linemap routines to use new names.
351 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
353         * c-common.c (handle_packed_attribute): Don't pack a struct via a
354         typedef. Propagate packedness from a main variant.
356 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
358         * Makefile.in (install-common): Add dependency on installdirs.
360 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
362         * c-common.c (c_common_type_for_mode): Return integer types for
363         pointer modes.
365 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
367         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
368         (finish_decl): Call maybe_apply_pragma_weak here.
369         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
370         TREE_PUBLIC and TREE_STATIC are decided.
371         (start_function): Move call to maybe_apply_pragma_weak.  Check that
372         DECL_ASSEMBLER_NAME isn't set too early.
374         * cpplex.c (_cpp_process_line_notes): Mention option name in
375         trigraphs warning.
377 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
379         * combine.c (if_then_else_cond): Simplify the comparison of
380         rtx against -1, 0, and 1.
381         * loop.c (check_dbra_loop): Likewise.
382         * optabs.c (emit_conditional_move): Likewise.
383         (emit_conditional_add): Likewise.
384         * config/i386/i386.md (*movsi_or): Likewise.
385         (*movdi_or_rex6): Likewise.
387 Tue Jul 22 00:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
389         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
391 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
393         * cppfiles.c (open_file_pch): Don't put unused entries in the
394         splay tree.  Remove dead code.
396 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
398         * c-common.h (num_in_fnames): Declare.
399         (c_static_assembler_name): Move from here...
400         * c-tree.h (c_static_assembler_name): ... to here.
401         * c-opts.c: Don't include langhooks-def.h.
402         (c_static_assembler_name): Move to c-decl.c.
403         (num_in_fnames): Make externally visible.
404         * c-decl.c: Include langhooks-def.h.
405         (c_static_assembler_name): Move from c-opts.c.
406         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
407         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
409         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
410         when it's not needed.
412 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
414         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
415         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
416         (rs6000_emit_prologue): Save FPRs inline if set.
418 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
420         * config/ia64/ia64.md (prefetch): Support predicate.
422 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
424         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
425         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
426         table.
428 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
430         PR optimization/11536
431         * unroll.c (loop_iterations): Do not replace a register holding
432         the final value by its equivalent before the loop if it is not
433         invariant.
435 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
437         * doc/extend.texi: Fixes to spelling, grammar, and diction.
439 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
441         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
442         (V850 Options): Spelling fixes.
444 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
446         * doc/invoke.texi: Fixes to style, grammar and diction.
448 2003-07-20  Roger Sayle  <roger@eyesopen.com>
450         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
451         * system.h (SMALL_STACK): Poison obsolete target macro.
452         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
454 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
456         * configure.in:  Cache the results of testing for cmp's capabilities.
457         * configure:  Regenerate.
459 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
461         PR debug/11279
462         * dwarf2out.c (gen_enumeration_type_die): Remember that
463         enumerators can be unsigned.
465 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
467         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
468         (push_label_level, pop_label_level): Kill.
469         (struct binding_level): Rename level_chain to outer.
470         Add outer_function field.  Change parm_flag, function_body,
471         keep, keep_if_subblocks to 1-bit bitfields of type bool.
472         (current_function_level): New variable.
473         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
474         (keep_next_level, declare_parm_level, warn_if_shadowing):
475         Update to match.
476         (struct language_function): Kill named_labels, shadowed_labels fields.
477         (c_init_decl_processing, start_function, c_push__function_context)
478         (c_pop_function_context): No need to muck with named_labels nor
479         shadowed_labels.
481         (make_binding_level): No need to clear the structure here.
482         (pop_binding_level): Always operate on current_binding_level.
483         Update current_function_level if necessary.
484         (pushlevel): Don't clear named_labels.  Update current_function_level
485         if necessary.  Use "true" and "false" where appropriate.
486         (poplevel): Diagnose labels defined but not used, or vice
487         versa, and clear out label-meanings leaving scope, while
488         walking down the decls list, for all binding levels.
489         Handle LABEL_DECLs appearing in the shadowed list.
490         pop_binding_level takes no arguments.
491         (pushdecl_function_level): Use current_function_level.
493         (make_label, bind_label): New static functions.
494         (declare_label): New exported function.
495         (lookup_label, define_label): Rewritten for new data structure.
496         (shadow_label): Kill.
498         * c-tree.h: Prototype declare_label; don't prototype
499         push_label_level, pop_label_level, nor shadow_label.
500         * c-parse.in: Remove all calls to push_label_level and
501         pop_label_level.  Use declare_label for __label__ decls.
503         * doc/extend.texi: Clarify that __label__ can be used to
504         declare labels with local scope in any nested block, not
505         just statement expressions.  Cross-reference nested functions
506         section from local labels section.
508 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
510         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
512 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
514         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
516 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
518         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
519         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
521 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
523         * config/s390/s390.c (legitimize_pic_address): Access local symbols
524         relative to the GOT instead of relative to the literal pool base.
525         (s390_output_symbolic_const): Handle new GOT-relative accesses.
526         * config/s390/s390.md ("call"): Access local functions and PLT stubs
527         relative to the GOT instead of relative to the literal pool base.
528         ("call_value"): Likewise.
529         ("call_value_tls"): Likewise.
531         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
532         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
533         (s390_chunkify_finish): Likewise.
534         (s390_chunkify_cancel): Likewise.
535         (s390_reorg): Adapt caller.
536         (find_base_register_in_addr,
537         find_base_register_ref, replace_base_register_ref): Delete.
538         (find_ltrel_base, replace_ltrel_base): New functions.
539         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
540         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
541         base vs. index register usage.
542         (struct constant_pool): Remove 'anchor'.
543         (s390_add_anchor): Delete.
544         (s390_dump_pool): Remove anchor handling.
545         * config/s390/s390.md ("reload_anchor"): Remove.
547         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
548         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
549         (s390_emit_prologue): Use it.
550         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
551         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
552         hard-code register 14.
553         * config/s390/s390-protos.h (s390_load_got): Declare.
555         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
556         Support TImode constants.
557         * config/s390/s390.md ("consttable_ti"): New.
558         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
560         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
561         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
562         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
563         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
564         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
565         New symbolic constants.
566         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
567         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
568         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
569         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
570         symbolic UNSPEC values.
571         * config/s390/s390.c (larl_operand, s390_short_displacement,
572         bras_sym_operand, s390_cannot_force_const_mem,
573         s390_delegitimize_address, s390_decompose_address,
574         legitimize_pic_address, s390_output_symbolic_const,
575         s390_function_profiler): Use symbolic UNSPEC values.
577 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
579         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
580         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
581         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
582         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
583         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
584         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
585         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
586         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
587         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
588         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
589         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
590         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
591         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
592         postreload.c prefix.c print-tree.c protoize.c ra-build.c
593         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
594         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
595         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
596         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
597         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
598         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
599         casts.
601 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
603         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
604         * toplev.h (warning): Remove attribute.
606 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
608         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
609         (pop_label_level): Likewise.
610         (duplicate_decls): Likewise.
611         (implicitly_declare): Likewise.
612         (shadow_label): Likewise.
613         (start_decl): Likewise.
614         (finish_decl): Likewise.
615         (grokdeclarator): Likewise.
616         (get_parm_info): Likewise.
617         (detect_field_duplicates): Likewise.
618         (finish_struct): Likewise.
619         (start_function): Likewise.
620         (store_parm_decls): Likewise.
621         (finish_function): Likewise.
622         (c_expand_body_1): Likewise.
623         (check_for_loop_decls): Likewise.
624         (merge_translation_unit_decls): Likewise.
626 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
628         * common.opt:  Document --param.
629         * opts.c (columns, undocumented_msg): New.
630         (print_help): Get number of columns from environment.  Print
631         --param help.  Tweak newline handling.
632         (print_param_help): New.
633         (print_filtered_help): Better handling of duplicates.  Complain
634         about undocumented switches.
635         (print_switch): New.
636         (wrap_help): Improve wrapping, use COLUMNS.
637         * opts.sh: Ignore comments in records.
638         * params.def: Fix typos and remove trailing periods.
639         * toplev.c (display_help): Don't dump --param help.
640         * doc/sourcebuild.texi: Update.
642 2003-07-18  Richard Henderson  <rth@redhat.com>
644         PR target/11556
645         * optabs.c (prepare_operand): Fail gracefully instead of abort
646         if the predicate doesn't satisfy.
647         (gen_cond_trap): Allow prepare_operand to fail.
649 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
651         * c-common.c: Don't undefine GCC_DIAG_STYLE.
652         (fname_decl): Don't use xxx_with_decl.
653         (c_add_case_label): Likewise.
654         (handle_section_attribute): Likewise.
655         (handle_alias_attribute): Likewise.
656         (handle_no_instrument_function_attribute): Likewise.
657         (handle_no_limit_stack_attribute): Likewise.
658         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
659         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
661 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
663         * Makefile.in (ifcvt.o): Add cfgloop.h.
664         * basic-block.h (EDGE_LOOP_EXIT): New flag.
665         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
666         * ifcvt.c: Include cfgloop.h.
667         (mark_loop_exit_edges): New static function.
668         (if_convert): Call it.
669         (find_if_header): Ignore branches out of loops.
671 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
673         * combine.c (simplify_comparison): Don't share rtx when converting
674         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
676 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
678         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
679         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
680         (MUST_PASS_IN_STACK): Define.
681         (BLOCK_REG_PADDING): Define.
683 2003-07-18  Richard Henderson  <rth@redhat.com>
685         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
686         to skip the addr_vec.
688 Fri Jul 18 15:22:28 2003  Alexandre Oliva  <aoliva@redhat.com>
690         * combine.c (combinable_i3pat): Don't forbid occurrences of
691         i2dest or i1dest in inner_dest if inner_dest is a mem.
693 Fri Jul 18 17:05:57 CEST 2003  Jan Hubicka  <jh@suse.cz>
695         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
697 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
699         PR target/11087
700         * loop.c (basic_induction_var): Check if convert_modes emitted any
701         instructions. Remove them and return 0 if so.
703 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
705         PR optimization/11083
706         * toplev.c (rest_of_handle_addresof): Rename into
707         rest_of_handle_addressof.  Delete unreachable blocks
708         if dead edges were purged after the addressof pass.
710 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
712         * Makefile.in, configure, configure.in: Remove handling of
713         lang-options.h and options_.h.
714         * toplev.c (struct lang_opt, documented_lang_options): Remove.
715         (display_help): Don't use documented_lang_options.
717 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
719         * c-decl.c (pushdecl_function_level): Make static, return nothing.
720         (kept_level_p): Fold into poplevel.
721         (undeclared_variable): Moved here from c-typeck.c.  Export.
722         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
723         (undeclared_variable): Prototype here.  Don't prototype
724         kept_level_p nor pushdecl_function_level.
725         * c-parse.in: Change first argument to poplevel from
726         "kept_level_p()" to "KEEP_MAYBE".
727         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
729 2003-07-17  Roger Sayle  <roger@eyesopen.com>
731         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
732         commutative operands instead of modifying the RTL in-place.
734 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
736         PR optimization/11557
737         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
738         unless we know which function is being called.
740 2003-07-17  Roger Sayle  <roger@eyesopen.com>
742         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
743         whether to reorder the operands of a commutative binary operator.
745 2003-07-17  Roger Sayle  <roger@eyesopen.com>
747         * fold-const.c (const_binop): Avoid performing the FP operation at
748         compile-time, if either operand is NaN and we honor signaling NaNs,
749         or if we're dividing by zero and either flag_trapping_math is set
750         or the desired mode doesn't support infinities.
751         (fold_initializer): New function to fold an expression ignoring any
752         potential run-time exceptions or traps.
753         * tree.h (fold_initializer): Prototype here.
754         * c-typeck.c (build_binary_op): Move to the end of the file so
755         that intializer_stack is in scope.  If constructing an initializer,
756         i.e. when initializer_stack is not NULL, use fold_initializer to
757         fold expressions.
758         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
759         performing FP operations at compile-time, if they would raise an
760         exception at run-time.
762 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
764         PR 11498
765         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
766         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
767         (GTFILES): Add langhooks.c.
768         (gt-langhooks.h): New.
769         * c-common.h (c_static_assembler_name): Prototype.
770         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
771         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
772         * c-opts.c: Include langhooks-def.h.
773         (c_static_assembler_name): New.
774         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
775         (var_labelno): New.
776         (lhd_set_decl_assembler_name): Give static objects with context
777         unique names.
778         * varasm.c (var_labelno): Delete.
779         (make_decl_rtl): Don't change the assembler name once it's set.
781         * c-opts.c (this_input_filename): New.
782         (finish_options): Take new parameter, name of file being compiled.
783         Update callers.  Set this_input_filename.
784         (push_command_line_include): Use this_input_filename not
785         main_input_filename.
787 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
789         * Makefile.in: Depend .pot generation on options.c.
790         * po/exgettext: Add an extra_files variable containing additional
791         files to scan.
793 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
795         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
796         c_write_global_declarations.
798         * c-decl.c: Fix typos in several comments.  Remove all
799         #if 0 blocks; reindent as needed.  Remove unused argument
800         to declare_parm_level; all callers changed.
801         * c-parse.in: Update calls to declare_parm_level.  Avoid
802         issuing a double warning in some circumstances.
803         * c-typeck.c: Update calls to declare_parm_level.
804         * c-tree.h: Update prototype of declare_parm_level.
806         * c-pragma.c (apply_pragma_weak): Don't complain about a
807         redundant #pragma weak.
809         * objc/objc-act.c (forward_declare_categories,
810         build_selector_reference_decl, build_class_reference_decl,
811         build_objc_string_decl, synth_forward_declarations,
812         build_protocol_reference): Set TREE_PUBLIC on synthetic
813         forward decl to 0, consistent with eventual definition.
814         Correct comments to match.
816         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
817         in regexp that don't form a range expression.
818         * fixinc/fixincl.def: Regenerate.
820 2003-07-17  Richard Henderson  <rth@redhat.com>
822         PR target/10907
823         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
824         even with !TARGET_CONST_GP.
825         (ia64_function_ok_for_sibcall): Reject non-local functions.
827 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
829         * c-common.c (c_estimate_num_insns_1): Don't handle
830         METHOD_CALL_EXPR.
831         * expr.c (safe_from_p): Likewise.
832         * gengtype.c (adjust_field_tree_exp): Likewise.
833         * stmt.c (warn_if_unused_value): Likewise
834         * tree.c (first_rtl_op): Likewise.
835         * tree.def: Don't define METHOD_CALL_EXPR.
836         * java/lang.c (java_estimate_num_insns_1): Don't handle
837         METHOD_CALL_EXPR.
839 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
841         PR other/11466
842         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
843         and its restrictions for the SPARC64 port.
844         Move the entry of "-mimpure-text" before that of "-mv8".
846 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
847             Phil Edwards <phil@jaj.com>
849         * doc/install.texi (*-*-solaris2*): Document the step-by-step
850         procedure to bootstrap and install.
851         Document the preference for the legacy Sun tools in /usr/bin
852         over the POSIX tools in /usr/xpg4/bin for the build process.
854 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
856         * c.opt: Document Uncodumented; use it.  Document ObjC options.
857         * opts.c (print_filtered_help): Skip undocumented switches.
858         * opts.h (CL_UNDOCUMENTED): New.
859         * opts.sh: Handle Undocumented.
860         * toplev.c (documented_lang_options): Prevent its becoming empty.
861 objc:
862         * lang-options.h: Remove.
864 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
866         * loop.c (check_ext_dependent_givs): Pass const struct loop *
867         instead of struct loop_info * as argument.  Accept BIVs with
868         increment +/- 1 provided there is a friendly exit test against
869         a loop-invariant value.
870         (strength_reduce): Adapt call to check_ext_dependent_givs.
872 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
873             Con Bradley <con.bradley@superh.com>
875         * sh-protos.h (sh_get_pr_initial_val): Declare.
876         * sh.c (regno_reg_class): Make its elements type enum reg_class.
877         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
878         and live_regs_mask arguments.  Changed all callers.
879         (save_schedule_s): New structure.
880         (save_schedule): New typedef.
881         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
882         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
883         In interrupts handlers, also save registers that are usually
884         partially saved, and make sure there is at least one general purpose
885         register saved if a target register needs saving.
886         Add casts in comparisons to avoid warnings.
887         (sh_media_register_for_return): return -1 for interrupt handlers.
888         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
889         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
890         registers used are available.
891         Set RTX_FRAME_RELATED_P where appropriate.
892         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
893         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
894         (initial_elimination_offset): Likewise.
895         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
896         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
897         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
898         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
899         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
900         and for target registers.
901         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
902         (regno_reg_class): Make its elements type enum reg_class.
903         (CONSTRAINT_LEN): Don't use isdigit.
904         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
905         (FUNCTION_ARG): Add parentheses to avoid warnings.
906         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
907         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
908         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
909         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
910         * sh.md (xordi3+1): Remove unused variable regno.
911         (return_media): Check that tr0 is available before using it.
913 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
915         * c.opt: Document more options.
917 2003-07-16  Roger Sayle  <roger@eyesopen.com>
919         * combine.c (subst): Also handle (subreg (const_double ...)) case
920         if created by a substitution, by using the original inner mode.
922 2003-07-16  Roger Sayle  <roger@eyesopen.com>
924         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
925         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
926         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
928 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
930         * doc/install.texi (--without-headers): New.
932         Partial Fix PR/10129
933         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
934         (machopic_output_function_base_name): New; print the true pic label.
935         (machopic_classify_ident): Pic Base is always a defined data.
936         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
937         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
939         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
940         if they are not floating point registers.
942         PR c/10962
943         * ggc.h: Add header guards.
944         * c-decl.c (finish_struct): Sort fields if
945         number greater than 15 and there are no
946         anonymous structs/unions.
947         * c-common.h: Include ggc.h.
948         (sorted_fields_type): New struct.
949         (field_decl_cmp): New prototype.
950         (resort_sorted_fields): New prototype.
951         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
952         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
953         as s, removing other fields.
954         * c-typeck.c (lookup_field): Use s in lang_type.
955         These were mostly moved from cp/class.c:
956         * c-common.c (field_decl_cmp): New static function.
957         (field_decl_cmp): New function.
958         (resort_sorted_fields): New function.
960 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
962         * config/darwin.c (machopic_select_section): Use decl_readonly_section
963         to do most of the work.
965 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
967         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
968         * config/mmix/mmix.c: Convert functions to ISO C90.
969         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
970         formatting.
971         (mmix_get_hard_reg_initial_val): Tweak section head comment.
973 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
975         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
977 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
979         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
980         (uw_update_context_1): Use it.
981         * config/rs6000/rs6000.c (insn_after_throw): Remove.
982         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
983         in parent frame if _Unwind_* called directly instead of through
984         .plt.
985         (rs6000_emit_eh_toc_restore): Remove.
986         (rs6000_emit_prologue): Update stack pointer before doing any saving
987         if current_function_calls_eh_return.  Generate unwind info for $r2.
988         (rs6000_emit_epilogue): Restore stack pointer after doing all
989         restoring if current_function_calls_eh_return.  Restore $r2.
990         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
991         * config/rs6000/rs6000.md (eh_return): Remove call to
992         rs6000_emit_eh_toc_restore.
993         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
994         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
996 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
998         * expr.c (emit_block_move): Don't move anything if size is const 0.
999         (clear_storage): Test against const0_rtx instead of comparing INTVAL
1000         against 0.
1002 2003-07-15  David S. Miller  <davem@redhat.com>
1004         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
1005         emit nop if the last real insn is CALL_INSN.
1007 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
1009         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
1010         as "nul".
1011         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
1013 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
1015         * config/i386/winnt.c (associated_type): Artificial methods are not
1016         affected by the import/export status of their class unless they are
1017         COMDAT.
1018         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
1020         * config/i386/winnt.c: Fix GCC copyright comment.
1022 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
1024         PR c++/11531
1025         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
1026         not recursing on hard error.
1027         (diagnostic_for_decl): Likewise.
1028         * diagnostic.def: Rearrange.
1030 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
1032         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1033         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
1035 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
1036             Richard Henderson  <rth@redhat.com>
1038         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
1039         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
1040         (_Unwind_SetGR): Likewise.
1041         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
1042         (Unwind_SpTmp): New typedef.
1043         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
1044         (uw_update_context): Use _Unwind_GetPtr.
1045         (init_dwarf_reg_size_table): Move above uw_init_context_1.
1046         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
1047         Use _Unwind_SetSpColumn.
1048         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
1049         Use _Unwind_GetPtr.
1051 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
1053         * c.opt: Document more options.
1054         * toplev.c (documented_lang_options): Remove all local help strings.
1056 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
1058         PR debug/11473
1059         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
1060         base classes.
1062 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
1064         PR target/10795
1065         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
1066         swap comparison operands if doing so would generate an
1067         unrecognizable insn.
1069 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
1071         PR optimization/11320
1072         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
1073         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
1074         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
1075         current_sched_info->compute_jump_reg_dependencies. Record which
1076         registers are used and which registers are set by the jump.
1077         Clear deps->reg_conditional_sets after a barrier.
1078         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
1079         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
1080         (init_deps): Initialize reg_conditional_sets.
1081         (free_deps): Clear reg_conditional_sets.
1082         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
1083         Mark registers live on entry of the fallthrough block and conditionally
1084         set as set by the jump. Mark registers live on entry of non-fallthrough
1085         blocks as used by the jump.
1086         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
1087         Mark new parameters as unused.
1089 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
1091         * doc/invoke.texi: Resync MIPS -march documentation.
1093 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
1095         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
1096         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
1097         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
1098         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
1099         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
1100         (mips_issue_rate): Handle PROCESSOR_R9000.
1101         (mips_use_dfa_pipeline_interface): Likewise.
1102         * config/mips/9000.md: New file.
1103         * config/mips/mips.md: Include it.
1104         (define_attr cpu): Add r9000.
1105         (mulsi3_mult3): Use "mul" for rm9000 code.
1107 2003-07-15  Stan Cox  <scox@redhat.com>
1109         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
1110         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
1111         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
1112         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
1113         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
1114         (mips_issue_rate): Handle PROCESSOR_R7000.
1115         (mips_use_dfa_pipeline_interface): Likewise.
1116         * config/mips/7000.md: New file.
1117         * config/mips/mips.md: Include it.
1118         (define_attr cpu): Add r7000.
1119         (mulsi3_mult3): Use "mul" for rm7000 code.
1121 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
1123         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
1124         the conditional move patterns.
1125         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
1126         Check for condmove type.
1127         (ir_vr54_arith): Add move type.
1128         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
1129         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
1131 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
1133         * c-opts.c (print_help): Remove.
1134         (c_common_handle_option): Don't handle --help.
1135         * c.opt: Document some options.
1136         (--help): Remove.
1137         * opts.c (print_filtered_help): New.
1138         (print_help): Use it.
1140 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
1142         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
1143         * tree.c: (build_common_tree_nodes_2): Likewise.
1144         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
1145         (V4DF_type_node): New.
1147         * c-opts.c (push_command_line_include): Don't free deferred_opts,
1148         we'll need it.
1149         (finish_options): Reset init_cursor.
1151 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
1153         * expr.c (expand_assignment): Remove an unused argument
1154         SUGGEST_REG.
1155         * expr.h: Update the prototype.
1156         * function.c: Update the callers.
1157         * stmt.c: Likewise.
1159 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
1161         PR debug/11098
1162         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
1163         as DECL_ABSTRACT.
1165 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
1167         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
1168         with __cplusplus, not "we must use the C++ compiler's type"
1169         * fixinc/inclhack.def (void_null): Note that Interix needs this.
1170         * fixinc/fixincl.x: Regenerate.
1172 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
1174         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
1175         and unseen_objects from the global data before calling
1176         __deregister_frame_info_bases.
1177         (examine_objects): Insert objects into the seen_objects list,
1178         not unseen_objects.
1179         (_Unwind_Find_FDE): Always unlock the global object lists, even if
1180         we couldn't allocate a data structure to put in it.
1182         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
1183         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
1184         (SET_TYPE_PROTOCOL_LIST): New.
1185         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
1186         (get_object_reference): Likewise.
1188 Mon Jul 14 23:14:28 CEST 2003  Jan Hubicka  <jh@suse.cz>
1190         * cfglayout.c (locator_file): Break out from ....
1191         (insn_file): ... here.
1192         (locator_line): Break out from ....
1193         (insn_line): ... here.
1194         * rtl.h (locator_file, locator_line): Declare.
1195         (final_start_function): Set proper line/file info.
1197 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1199         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
1200         handled by pp_c_cast_expression.
1202 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
1204         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
1205         allocate 32768 bytes of stack.  Use addition rather than subtraction
1206         when a single insn is enough.
1207         * config/mips/mips.md: Remove insns and splitters for subtracting
1208         constants.
1209         (subsi3): Only accept register operands.
1210         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
1211         (subdi3_internal_3, subsi3_internal_2): Likewise.
1212         (casesi): Use expand_binop to subtract the lower bound.
1214 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
1216         * config/mips/mips.c (mips_in_small_data_p): Don't handle
1217         TARGET_MIPS16 specially.
1219 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
1221         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
1222         mips_output_aligned_bss.
1223         * config/mips/linux.h: Likewise.
1224         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
1225         * config/mips/mips.c (mips_output_aligned_bss): New function.
1227         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
1228         * config/mips/elf64.h: Likewise.
1230         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
1231         mips_declare_object_name.
1232         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
1233         * config/mips/elf64.h: As for elf.h.
1234         * config/mips/iris6.h: Likewise.
1235         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
1236         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
1237         do...while (0) block.
1238         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
1239         (mips_finish_declare_object): Declare.
1240         * config/mips/mips.c (mips_declare_object_name): New function.
1241         (mips_finish_declare_object): New function.
1243         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
1244         * config/mips/linux.h: Likewise.
1246         * config/mips/mips.c (inside_function): Delete.
1247         (file_in_function_warning, ignore_line_number): Delete.
1248         (mips_output_filename): Don't warn about changing filenames within
1249         a function.
1250         (mips_output_lineno): Update accordingly.
1251         (mips_output_function_prologue): Don't reset the deleted variables.
1252         * config/mips/mips.h (inside_function): Delete.
1253         (file_in_function_warning, ignore_line_number): Delete.
1255         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
1256         * config/mips/elf64.h: Likewise.
1257         * config/mips/openbsd.h: Likewise.
1258         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
1259         * config/mips/linux.h: Likewise.
1260         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
1261         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
1263         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
1264         to the list of include files when using gas.
1265         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
1266         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
1267         * config/mips/elf64.h: Likewise.
1268         * config/mips/iris5.h: Likewise.
1269         * config/mips/linux.h: Likewise.
1270         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
1271         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
1272         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
1273         * config/mips/sdb.h: ...this new file.
1275 2003-07-14  Douglas Rupp  <rupp@gnat.com>
1277         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
1278         argument to getcwd; use fixed buffer instead.
1280 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
1282         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
1283         * fixinc/fixinc.wrap: Delete.
1285 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
1287         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
1288         don't have 2.
1290 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
1292         * ggc-page.c (struct globals): Add new fields to keep track of the
1293         total allocated memory and overhead.
1294         (ggc_print_statistics): Print them.
1295         (ggc_alloc): Keep track of the total allocated memory and the
1296         overhead.
1298         * tree.c (dump_tree_statistics): Increase spacing.
1299         (enum tree_node_kind): Move to ...
1300         * tree.h (enum tree_node_kind): ... here.
1301         (tree_node_counts, tree_node_sizes): Declare.
1303 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
1305         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
1307 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1309         PR optimization/11440
1310         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
1311         SIGN_EXTRACT SETs.
1313 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
1315         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
1316         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
1317         (emit_group_load, emit_group_store): Adjust declarations.
1318         Remove most occurrences of #ifdef TREE_CODE.
1319         * expr.c (emit_group_load): Add "type" param, and use
1320         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
1321         aligned accesses if !SLOW_UNALIGNED_ACCESS.
1322         (emit_group_store): Likewise.
1323         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
1324         emit_group_load and emit_group_store calls.
1325         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
1326         BLOCK_REG_PADDING to determine whether we need endian_correction.
1327         (load_register_parameters): Localize vars.  Handle shifting of
1328         small values to the correct end of regs.  Adjust emit_group_load
1329         call.
1330         (expand_call, emit_library_call_value_1): Adjust emit_group_load
1331         and emit_group_store calls.
1332         * function.c (assign_parms): Set mem alignment for stack slots.
1333         Adjust emit_group_store call.  Store values at the "wrong" end
1334         of regs to the stack.  Use BLOCK_REG_PADDING.
1335         (locate_and_pad_parm): Save where_pad.
1336         (expand_function_end): Adjust emit_group_load call.
1337         * stmt.c (expand_value_return): Adjust emit_group_load call.
1338         * Makefile.in (calls.o): Depend on $(OPTABS_H).
1339         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
1340         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
1341         (MUST_PASS_IN_STACK): Define.
1342         (BLOCK_REG_PADDING): Define.
1343         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
1344         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
1345         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
1346         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
1347         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
1349 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
1351         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
1353 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1355         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
1356         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
1358 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
1360         PR other/11123
1361         * toplev.c: Don't cut off option names.
1363 2003-07-13  Andreas Jaeger  <aj@suse.de>
1365         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
1366         to integer of different size.
1368 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
1370         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
1371         to (eq (and X 1) 0).
1373 2003-07-13  Andreas Jaeger  <aj@suse.de>
1375         * config.gcc: Add pmmintrin.h for x86_64-*-*.
1377 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
1379         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
1380         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
1381         list.  Move these all together down by cpplib.
1383         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
1384         definition of CPPCHAR_SIGNED_T.
1386         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
1387         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
1388         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
1390         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
1391         * cppinit.c (cpp_create_reader): Likewise.
1393         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
1394         * cpptrad.c: Likewise.  All callers changed.
1395         * cpplib.c: All callers changed.
1396         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
1397         * hashtable.h: Define GTY(x) to nothing here too.
1399 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1401         * stor-layout.c (compute_record_mode): Remove very obsolete test
1402         that forces BLKmode for records with fields crossing word boundary.
1404 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
1406         * Makefile.in: Remove orphan reference to acconfig.h.
1408 2003-07-13  Andreas Jaeger  <aj@suse.de>
1410         * cgraphunit.c: Convert prototypes to ISO C90.
1412 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
1414         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
1415         (for OpenBSD).
1416         * fixinc/fixincl.x: Rebuild.
1418 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
1420         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
1421         i?86-*-*.  Use correct name of cache variable.
1422         * configure: Regenerate.
1424 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
1426         * config/alpha/alpha.c: Fix comment typos.
1427         * config/alpha/alpha.md: Likewise.
1428         * config/arm/arm.c: Likewise.
1429         * config/arm/arm.md: Likewise.
1430         * config/arm/lib1funcs.asm: Likewise.
1431         * config/avr/avr.md: Likewise.
1432         * config/arm/README-interworking: Fix typos.
1434 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
1436         * c-format.c: Fix comment formatting.
1437         * c-typeck.c: Likewise.
1438         * coverage.c: Likewise.
1439         * cppcharset.c: Likewise.
1440         * cpplib.c: Likewise.
1441         * dbxout.c: Likewise.
1442         * gcov-io.h: Likewise.
1443         * toplev.c: Likewise.
1445 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
1447         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
1448         fix.
1450 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
1452         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
1453         uses three-argument AC_DEFINE so no acconfig.h entries are
1454         needed.
1455         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
1456         which contains the GAS version number as a scaled integer.
1457         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
1458         ability to check for ELF assembler.
1459         (gcc_GAS_CHECK_FEATURE): New macro.
1460         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
1461         assembler feature checks using gcc_GAS_CHECK_FEATURE.
1462         Use three-argument AC_DEFINE everywhere.
1463         * acconfig.h: Deleted.
1464         * config.in, configure: Regenerate.
1466 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
1468         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
1469         (on OpenBSD).
1470         * fixinc/fixincl.x: Regenerate.
1472         * fixinc/inclhack.def (gnu_types): Improve comment.
1474 2003-07-12  Andreas Jaeger  <aj@suse.de>
1476         * fp-test.c (main): Use ISO C90 prototype.
1478         * version.c: Remove unneded include of ansidecl.h.
1480         * cgraph.h: Convert prototypes to ISO C90.
1481         * cgraph.c: Likewise.
1482         * fix-header.c: Likewise.
1483         * ra.h: Likewise.
1484         * protoize.c: Likewise.
1486 Sat Jul 12 06:09:38 CEST 2003  Jan Hubicka  <jh@suse.cz>
1488         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
1489         warning.
1491 Sat Jul 12 03:06:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
1492                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1494         * cgraph.c (cgraph_max_uid): New global variable.
1495         (cgraph_node): Set uid field.
1496         (create_edge): Keep inline flags consistent.
1497         (dump_cgraph): Dump more info.
1498         * cgraph.h (struct cgraph_local_info): Remove inline_many and
1499         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
1500         (struct cgraph_global_info): Add insns, calls, cloned_times,
1501         will_be_output.
1502         (struct cgraph_node): Add uid.
1503         (struct cgraph_edge): Add inline_call.
1504         (cgraph_max_uid, cgraph_inline_p): Declare.
1505         * cgraph.c: Include params.h and fibheap.h
1506         (cgraph_mark_functions_to_inline_once): Kill.
1507         (INSNS_PER_CALL): New constant.
1508         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
1509         static variables.
1510         (cgraph_finalize_function): Do not analyze inlining.
1511         (cgraph_finalize_compilation_unit): Set inlining attributes.
1512         (cgraph_mark_functions_to_output): More consistency checks.
1513         (cgraph_optimize_function): Set current_function_decl to NULL.
1514         (cgraph_expand_function): Use new inline flags.
1515         (cgraph_postorder): Expand from cgraph_expand_functions.
1516         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
1517         (cgraph_inlined_into, cgraph_inlined_callees,
1518         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
1519         cgraph_mark_inline, cgraph_check_inline_limits,
1520         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
1521         cgraph_decide_inlining, cgraph_inline_p): New functions.
1522         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
1523         PARAM_INLINE_UNIT_GROWTH): New parameters.
1524         * tree-inline.c (struct inline_data): New field current_decl.
1525         (expand_call_inline): Avoid forward declarations; use
1526         inlinable_function_p.
1527         (optimize_inline_calls): Set id.current_decl.
1529 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
1531         * configure.in: Remove wrongly added definition of
1532         local_prefix.
1533         * configure: Regenerate.
1535 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
1537         * rtl.def (NOTE): Do not use padding.
1539 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
1541         * doc/install.tex: Update required binutils for i?86-*-linux*
1543 2003-07-11  Richard Henderson  <rth@redhat.com>
1545         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
1547 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
1549         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
1550         TRANSLATION_UNIT_DECL as top_level.
1552 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
1554         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
1555         then fall back to cmpstrM.
1556         * builtins.c (expand_builtin_memcmp): Likewise.
1557         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
1558         (s390_expand_cmpmem): ... this.
1559         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
1560         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
1561         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
1562         to s390_expand_cmpmem.
1563         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
1564         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
1565         to cmpmem*.
1566         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
1567         cmpstr* patterns.
1568         * doc/md.texi (cmpstrM): Describe as String compare insn, not
1569         Block compare insn.
1570         (cmpmemM): Add.
1572 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
1574         * config/i386/freebsd.h (SET_ASM_OP): Remove.
1575         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
1576         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
1577          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
1579 2003-07-11  Richard Henderson  <rth@redhat.com>
1581         * function.c (assign_parms): Don't recombine complex args if
1582         fnargs is unchanged from orig_fnargs.
1583         (split_complex_args): Return args without complex before copying.
1584         Re-layout the modified parameters.
1586 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
1588         * regclass.c (choose_hard_reg_mode): Add third argument.
1589         Changed all callers.
1590         * rtl.h (choose_hard_reg_mode): Update declaration.
1591         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1592         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
1594 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
1596         * c-decl.c (finish_decl): Handle 'used' here...
1597         * cgraphunit.c (cgraph_finalize_function): ... and here ...
1598         * c-common.c: (handle_used_attribute): ... not here.
1600         * configure.in (onstep): Support --enable-intermodule.
1601         * Makefile.in (OBJS-common): New.
1602         (OBJS-md): New.
1603         (OBJS-archive): New.
1604         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
1605         (OBJS-onestep): New.
1606         (libbackend.a): Support @onestep@.
1607         (libbackend.o): New.
1608         * configure: Regenerate.
1610         * c-common.h (c_reset_state): New prototype.
1611         (c_parse_file): New prototype.
1612         (finish_file): Move prototype from c-tree.h.
1613         * c-decl.c: Include <hashtab.h>.
1614         (builtin_decls): New.
1615         (current_file_decl): New.
1616         (duplicate_decls): Add extra parameter. Change all callers.  Don't
1617         output duplicate common symbols.
1618         (link_hash_hash): New.
1619         (link_hash_eq): New.
1620         (poplevel): Handle popping of the top level.
1621         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
1622         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
1623         (pushdecl_top_level): Likewise.
1624         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
1625         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
1626         (finish_decl): Handle TRANSLATION_UNIT_DECL.
1627         (merge_translation_unit_decls): New.
1628         (c_write_global_declarations): New.
1629         (c_reset_state): New.
1630         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
1631         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
1632         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
1633         TRANSLATION_UNIT_DECL.
1634         (c_objc_common_finish_file): Call merge_translation_unit_decls.
1635         * c-opts.c (in_fnames): Rename from in_fname.
1636         (c_common_decode_option): Handle multiple input filenames.
1637         (c_common_post_options): Likewise.
1638         (c_common_parse_file): Likewise; also, call c_parse_file rather than
1639         yyparse.
1640         * c-parse.in: Move cleanup code to c_parse_file.
1641         (free_parser_stacks): Move contents to c_parse_file.
1642         (c_parse_file): New.
1643         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
1644         for integer types.
1645         (C_DECL_FILE_SCOPE): New.
1646         (finish_file): Move prototype to c-common.h.
1647         (merge_translation_unit_decls): New prototype.
1648         (comptypes): Add extra parameter to prototype.
1649         (c_write_global_declarations): New prototype.
1650         * c-typeck.c (tagged_types_tu_compatible_p): New.
1651         (function_types_compatible_p): Add extra parameter, change all callers.
1652         (type_lists_compatible_p): Likewise.
1653         (comptypes): Likewise.
1654         (struct tagged_tu_seen): New.
1655         (tagged_tu_seen_base): New.
1656         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
1657         (c_mark_addressable): Remove #if 0 code.
1658         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
1659         comment explaining why it shouldn't have to.
1660         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
1661         options.
1662         * cppinit.c (cpp_read_next_file): New.
1663         (cpp_read_main_file): Use it.
1664         * cpplib.c (undefine_macros): New.
1665         (cpp_undef_all): New.
1666         * cpplib.h (cpp_read_next_file): Prototype.
1667         (cpp_undef_all): Prototype.
1668         * langhooks-def.h (write_global_declarations): Remove prototype.
1669         * toplev.h (write_global_declarations): Add prototype.
1670         * tree.c (decl_type_context): Use switch statement, handle
1671         TRANSLATION_UNIT_DECL.
1672         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
1673         (TRANSLATION_UNIT_DECL): New kind of tree.
1674         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
1675         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
1676         * doc/invoke.texi: Make attempt to document new functionality.
1678         2003-05-19  Per Bothner <bothner@apple.com>
1680         * gcc.c (combine_inputs): New.
1681         (process_command): Set combine_inputs.
1682         (do_spec_1): Handle combine_inputs.
1683         (main): Likewise.
1685 2003-07-10  James E Wilson  <wilson@tuliptree.org>
1687         PR optimization/9745
1688         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
1689         loop_insn_emit_before.
1690         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
1692 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
1694         * cppcharset.c: Fix comment.
1695         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
1696         (EILSEQ): #define to EINVAL if not already defined.
1697         (convert_using_iconv): #if out when !HAVE_ICONV.
1698         (init_iconv_desc): Handle !HAVE_ICONV here...
1699         (cpp_init_iconv): ...not here.
1701 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
1703         * common.opt: More --help messages.
1704         * opts.c (print_help): Use puts().
1705         * toplev.c (f_options): Remove help text.
1706         (display_help): Don't dump f_options.
1708 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
1710         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
1711         Move i?86-*-interix* to the don't-fix list.
1712         * fixinc/fixinc.interix: Delete with extreme prejudice.
1714 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
1716         PR bootstrap/10758
1717         * doc/install.texi: Document requirements for ia64-*-hpux* target.
1719 2003-07-10  Roger Sayle  <roger@eyesopen.com>
1721         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
1723 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
1725         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
1726         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
1727         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
1728         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
1729         convert_no_conversion, convert_using_iconv): New functions.
1730         (APPLY_CONVERSION): New macro.
1731         (struct conversion, conversion_tab): New data structure.
1732         (init_iconv_desc): Check conversion_tab for a custom conversion
1733         primitive before trying to use iconv.
1734         (convert_cset): Deleted.
1735         (cpp_init_iconv): Use UTF- terminology, not UCS-.
1736         (_cpp_destroy_iconv): Update to match.
1737         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
1738         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
1739         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
1740         (_cpp_interpret_string_notranslate): New function, moved here
1741         from cpplib.c.
1743         * cpphash.h (convert_f, struct cset_converter): New types.
1744         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
1745         are now struct cset_converter, not bare iconv_t.
1746         Update prototypes.
1747         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
1748         all callers changed.
1750 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
1752         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
1753         to opts.sh command line.
1754         * opts.sh: Write to temporary files with a move-if-change at the end.
1756 2003-07-10  Denis Chertykov  <denisc@overta.ru>
1757             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1759         * combine.c (gen_binary): Handle the CLOBBER rtx and
1760         don't build a binary operation with it.
1762 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1764         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
1765         store_killed_after, store_killed_before): Keep track of the correct
1766         dependency function to use.
1768 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
1769         * toplev.c (do_compile): Don't try to open dump files before
1770         lang_dependent_init initializes dump_base_name.
1772 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1774         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
1775         Use ARRAY_SIZE.
1776         * config/frv/frv.c (frv_expand_builtin): Likewise.
1777         * config/sh/sh.c (sh_media_init_builtins): Likewise.
1779 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
1781         PR c++/10032
1782         * doc/invoke.texi (C++ Dialect Options): Change documentation of
1783         -fpermissive.
1785 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
1787         * tm.texi (RETURN_ADDR_OFFSET): Document.
1789 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
1791         * gcov-io.h: Update documentation.
1792         (GCOV_UNSIGNED2STRING): New.
1793         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
1794         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
1795         GCOV_TAG_SUMMARY_LENGTH): Adjust.
1796         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
1797         GCOV_TAG_COUNTER_NUM): New.
1798         (GCOV_BLOCK_SIZE): Number of words.
1799         (gcov_var): Adjust buffer type.
1800         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
1801         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
1802         count, not byte count.
1803         (gcov_open): Adjust overread init.
1804         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
1805         gcov_write_string, gcov_write_tag, gcov_write_length,
1806         gcov_write_tag_length): Adjust.
1807         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
1808         (gcov_sync, gcov_seek): Adjust.
1809         * gcov-dump.c (print_usage): Show gcc version only.
1810         (dump_file): Use GCOV_UNSIGNED2STRING.
1811         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
1812         * gcov.c (print_version): Show gcc version only.
1813         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
1814         GCOV_TAG_*_NUM macros.
1815         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
1816         GCOV_TAG_COUNTER_LENGTH.
1817         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
1818         Use GCOV_TAG_COUNTER_NUM.
1819         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
1820         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
1822 2003-07-10  Andreas Schwab  <schwab@suse.de>
1824         * gcov-dump.c (dump_file): Fix missing address operator.
1826 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
1828         PR c/11449
1829         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
1830         of HOST_WIDE_INT.
1831         (fold_single_bit_test): If sign_bit_p() fails, assume that the
1832         bit being tested is not a sign bit.
1834 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
1836         * config/h8300/h8300.md (a peephole2): New.
1838 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
1840         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
1841         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
1842         from ld-linux.so.2 to ld.so.1.
1843         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
1844         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
1845         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
1846         nor -Wl,-rpath-link.
1847         (LIB_SPEC): Add -rpath-link if !static.
1848         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
1849         * config/mn10300/mn10300.c (mn10300_protect_label): New
1850         variable.
1851         * config/mn10300/linux.h (PRINT_OPERAND,
1852         PRINT_OPERAND_ADDRESS): Set it during their execution.
1853         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
1854         mn10300_protect_label is set.
1855         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
1856         -Wl,-rpath-link.
1857         (LIB_SPEC, STARTFILE_SPEC): Define.
1858         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
1859         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
1860         FLOAT_BIT_ORDER_MISMATCH.
1861         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
1862         * config.gcc (am33_2.0-*-linux*): Added.
1863         * config/mn10300/linux.h: New.
1864         * config/mn10300/t-linux: New.
1866 2003-07-10  Andreas Jaeger  <aj@suse.de>
1868         * fold-const.c: Properly wrap prototypes.
1870 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
1872         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
1873         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
1874         Moved from...
1875         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
1876         * config/mn10300/mn10300.h: GTY-declare it.
1877         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
1878         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
1879         prototype.  Use incoming RTL argument.
1880         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
1881         * config/mn10300/mn10300.md (int_label): Move C statements...
1882         (GOTaddr2picreg): ... here.
1883         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
1884         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
1885         * config/mn10300/mn10300.c (mn10300_encode_section_info):
1886         ... here.  New function.
1887         (TARGET_ENCODE_SECTION_INFO): Define to it.
1888         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
1889         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
1890         pattern name.
1891         (mn10300_loadPC): Define as insn splittable after reload.
1892         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
1893         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
1894         be defined in .rodata even in PIC, now that the assembler
1895         supports that.
1896         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
1897         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
1898         symbol take an underscore prefix.
1899         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
1900         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
1901         legitimize_pic_address): Declare.
1902         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
1903         the PIC register as fixed.
1904         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
1905         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
1906         PIC.
1907         (LEGITIMATE_PIC_OPERAND_P): Define.
1908         (PIC_OFFSET_TABLE_REGNUM): Define.
1909         (GOT_SYMBOL_NAME): Define.
1910         (SYMBOLIC_CONST_P): Define.
1911         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
1912         symbols.
1913         (MN10300_GLOBAL_P): Test it.
1914         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
1915         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
1916         * config/mn10300/mn10300.c (print_operand): Handle unspec.
1917         (expand_prologue): Set PIC register.
1918         (call_address_operand): Don't match SYMBOL_REFs in PIC.
1919         (legitimize_address): Call legitimize_pic_address.
1920         (legitimize_pic_address): New fn.
1921         (legitimate_pic_operand_p): New fn.
1922         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
1923         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
1924         UNSPEC_PLT): New constants.
1925         (pop_pic_reg): New insn.
1926         (movsi): Adjust non-PIC addresses.
1927         (builtin_setjmp_receiver): Restore the PIC register.
1928         (casesi): New insn.
1929         (call): Adjust non-PIC addresses.
1930         (int_label, GOTaddr2picreg): New expands.
1931         (am33_loadPC): New insn.
1932         (mn10300_loadPC): New expand.
1933         (call_next_insn): New insn.
1934         (add_GOT_to_pic_reg): New expand.
1935         (symGOT2reg, symGOT2reg_i): New expands.
1936         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
1937         (sym2PIC, sym2PLT): New expands.
1939 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
1941         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
1942         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
1943         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
1944         to flag_unsafe_math_optimizations.
1945         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
1946         * config/mn10300/mn10300.c (expand_prologue): Mark
1947         FP-register-saving insns as frame-related.
1948         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
1949         * config/mn10300/mn10300.c
1950         (mn10300_get_live_callee_saved_regs): Don't search past
1951         LAST_EXTENDED_REGNUM.
1952         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
1953         * config/mn10300/mn10300.md: Remove excessive line breaks from
1954         `@' output patterns that were accounted as additional
1955         alternatives.
1956         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
1957         Re-introduce changes accidentally removed in Richard Sandiford's
1958         2000-12-05's patch.
1959         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
1960         Re-instate am33-2 lost in merge from net GCC.
1961         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
1962         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
1963         floating-point registers.
1964         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
1965         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
1966         pessimizations that had gone in on 2000-05-08.
1967         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
1968         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
1969         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
1970         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
1971         operand 0.
1972         * (movhi): Likewise.
1973         * (movsi): Likewise.
1974         * (movsf): Likewise.
1975         * (movdi): Likewise.
1976         * (movdf): Likewise.
1977         Wed May 24 13:16:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
1978         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
1979         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
1980         (expand_prologue, expand_epilogue): Save and restore FP regs.
1981         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
1982         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
1983         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
1984         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
1985         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
1986         Do not clobber cc0.
1987         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
1988         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
1989         Discourage the two-argument, longer opcodes.
1990         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
1991         ones.
1992         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
1993         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
1994         * config/mn10300/mn10300.md (cmpsf): New pattern.
1995         (branch): Test mdep.fpCC and output fbCC.
1996         * config/mn10300/mn10300.c (print_operand): Output conditions.
1997         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
1998         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
1999         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
2000         mulsf3, divsf3): Use the `F' constraint for FP values.
2001         * config/mn10300/mn10300.c (const_1f_operand): New function.
2002         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
2003         * config/mn10300/mn10300.md (sqrtsf2): New expand.
2004         (rsqrtsf2): New insn.
2005         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
2006         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
2007         previous check-in.
2008         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
2009         * config/mn10300/mn10300.md (abssf2, negdf2): On
2010         TARGET_AM33_2, expand to...
2011         (abssf2_am33_2, negdf2_am33_2): New insns.
2012         (addsf3, subsf3, mulsf3, divsf3): Likewise.
2013         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
2014         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
2015         movdi, movdf): Added FP regs.
2016         * invoke.texi (-mam33-2, -mno-am33-2): Document.
2017         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
2018         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
2019         New macros.
2020         (REGNO_AM33_2_FP_P): Renamed to...
2021         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
2022         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
2023         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
2024         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
2025         regs from GENERAL_REGS.
2026         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
2027         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
2028         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
2029         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
2030         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
2031         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
2032         as FP_REGS.
2033         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
2034         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
2035         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
2036         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
2037         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
2038         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
2039         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
2040         AM33/2.0 floating-point registers.
2041         (CONDITIONAL_REGISTER_USAGE): Adjust.
2042         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
2043         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
2044         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
2045         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
2046         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
2047         (MULTILIB_DIRNAMES): Likewise.
2048         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
2049         `__AM33_2__' when `-mam33-2' is given.
2050         (TARGET_AM33_2): Define.
2051         (TARGET_SWITCHES): Adjust.
2052         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
2053         when appropriate.
2055 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
2057         * doc/install.texi: Add missing @.
2059 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
2061         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
2063 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
2065         PR/11144
2066         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
2068 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
2070         PR bootstrap/11043
2071         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
2072         "x-crtfini.o" with "crtinit.o", "crtfini.o".
2074         * fixinc/inclhack.def (limits_ifndefs): Add select test.
2075         * fixinc/fixincl.x: Rebuild.
2077         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
2078         * fixinc/fixincl.x: Rebuild.
2080 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
2082         * doc/install.texi (Configuration): Document the valgrind option
2083         to --enable-checking.
2085 Wed Jul  9 16:16:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
2087         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
2089 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2091         * c-lex.c (cb_ident): Cast cstr.text to const char *.
2093 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
2095         * gcov-io.h: Update documentation.
2096         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
2097         GCOV_NOTE_MAGIC.
2098         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
2099         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
2100         (struct gcov_var): Change buffer's type. Add endian flag.
2101         (gcov_open): Remove mode in libgcov.
2102         (gcov_magic): Prototype.
2103         * gcov-io.c (from_file): New.
2104         (gcov_open): Clear endian flag.
2105         (gcov_magic): New.
2106         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
2107         pointers.
2108         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
2109         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
2110         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
2111         * gcov-iov.c (main): Correct cast.
2112         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
2113         conversion.
2114         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
2115         (coverage_init): Use GCOV_NOTE_SUFFIX.
2116         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
2117         Rename to gcov_version, and return flag.
2118         (gcov_exit): Use gcov_version.
2119         (__gcov_init): Use gcov_version.
2120         * Makefile.in (coverageexts): Update.
2121         * gcov.c (print_version): Remove endianness conversion.
2122         (create_file_names): Use GCOV_NOTE_SUFFIX.
2123         (read_graph_file): Use gcov_magic.
2124         (read_count_file): Likewise.
2125         * gcov-dump.c (dump_file): Remove endianness conversion, use
2126         gcov_magic.
2128 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
2130         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
2131         coverage is on.
2132         * configure: Regenerated.
2133         * Makefile.in (ALL_CFLAGS): Correct its comment.
2135 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
2137         * fold-const.c (make_range): Do not access operand 1 for a
2138         zero-operand operator.
2140 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
2142         * toplev.c (warn_dummy, W_options): Die.
2143         (display_help): Don't print W_options.
2144         * common.opt: Add W_options help from toplev.c.
2146 2003-07-09  Andreas Jaeger  <aj@suse.de>
2148         * opts.c (wrap_help): Only pass int arguments as arguments to
2149         printf's '*' modifier.  Change argument of function.
2151 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
2153         * doc/invoke.texi: Fix misspelling of "@item".
2155 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
2157         * config/i386/i386.md: Remove an old comment about
2158         NOTICE_UPDATE_CC.
2160 Wed Jul  9 03:00:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
2162         * cgraph.c (cgraph_node_name): New function.
2163         (dump_cgraph): Use it.
2164         * cgraph.h (cgraph_dump_file): Declare.
2165         (cgraph_node_name): Declare.
2166         * cgraphunit.c: Include timevar.h
2167         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
2168         (cgraph_optimize_function): Use TV_INTEGRATION.
2169         (cgraph_mark_local_functions): reorganize dumps.
2170         (cgraph_mark_functions_to_inline_once): Likewise.
2171         (cgraph_optimize): Likewise; use timevar.
2172         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
2173         * toplev.c (dump_file_index): Add DFI_cgraph.
2174         (dump_file_info): Likewise.
2175         (cgraph_dump_file): New global variable.
2176         (do_compile): Open and close cgraph dump.
2177         * invoke.texi (-d): Document new flag; renumber.
2179 2003-07-08  Roger Sayle  <roger@eyesopen.com>
2181         PR c/11370
2182         * calls.c (emit_call_1): Don't bother popping the arguments off of
2183         the stack after a noreturn function call;  The adjustment is dead.
2184         (expand_call): Likewise.
2186 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
2188         * expr.c (MOVE_MAX_PIECES): Move from here...
2189         * defaults.h (MOVE_MAX_PIECES): ... to here.
2191 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
2193         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
2195 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2197         * genattr.c (internal_dfa_insn_code): Don't prototype.
2198         * genattrtab.c (attr_desc): Add `static_p' field.
2199         (expand_units): Make blockage range and ready cost functions
2200         static.
2201         (write_attr_get): Don't add extern prototypes in C file.  Mark
2202         static functions as appropriate.
2203         (find_attr, make_internal_attr): Initialize static_p.
2204         * genattrtab.h (ATTR_STATIC): New macro.
2205         * genautomata.c (output_internal_reset_func): Mark output function
2206         as inline.
2207         (make_internal_dfa_insn_code_attr): Mark output function as static.
2209 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2211         * genattrtab.h: Add new macros for attr `special' flags.
2212         * genattrtab.c (attr_desc): Reorder/resize fields better.
2213         Use attr `special' macros in all calls to make_internal_attr.
2214         * genautomata.c: Likewise.
2216 Wed Jul  9 02:25:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
2218         * c-common.c (c_estimate_num_insns_1): New static function.
2219         (c_estimate_num_insns): New global function.
2220         * c-common.h (DECL_NUM_STMTS): Rename to...
2221         (DECL_ESTIMATED_INSNS): ... this.
2222         (c_estimate_num_insns): Declare.
2223         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
2224         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
2225         * c-semantics.c (add_stmt): Do not account statements.
2226         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
2227         New.
2228         * langhooks.h (lang_hooks_for_tree_inlining): Add
2229         estimate_num_insns
2230         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
2231         to 100.
2232         (max-inline-insns): set to 300.
2233         (min-inline-insns): set to 10.
2234         * tree-inline.c (struct inline_data): Rename inlined_stmts to
2235         inlined-insns.
2236         (INSNS_PER_STMT): Kill.
2237         (inlinable_function_p): Compute and store body size.
2238         (expand_call_inline): Likewise.
2239         (optimize_inline_calls): Likewise.
2241 2003-07-08  James E Wilson  <wilson@tuliptree.org>
2243         PR target/10021
2244         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
2245         loop over new variable t2 instead of t.
2247 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
2249         PR bootstrap/11455
2250         * config/i386/winnt.c: Replace use of error(), warning() with
2251         error_with_decl(), warning_with_decl(),  throughout.
2253 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
2255         * opts.c (wrap_help): Use unsigned int, not size_t.
2257 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
2259         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
2260         as .file/.loc directives are incompatible with linker relaxation.
2262 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
2264         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
2265         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
2266         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
2267         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
2268         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
2269         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
2270         Escape { and } characters which are not part of range expressions.
2271         * fixinc/fixincl.x: Regenerate.
2272         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
2274 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
2276         PR c/1687
2277         * tree-inline.c (find_alloca_call): Use
2278         walk_tree_without_duplicates, instead of walk_tree.
2279         (find_builtin_longjmp_call): Likewise.
2280         * c-objc-common.c (c_cannot_inline_fn): Likewise.
2281         * c-semantics.c (find_reachable_label): Likewise.
2283 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
2285         PR c/11420
2286         * config/i386/i386.c (ix86_check_movabs): New function.
2287         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
2288         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
2289         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
2291 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
2293         * Makefile.in (install-po): Cope with empty CATALOGS.
2295 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
2297         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2298         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2299         (SECTION_FUNCTION_TEMPLATE): Delete.
2300         * config/mips/elf.h: As for elf64.h.
2301         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
2302         * config/mips/linux.h: As for elf.h
2303         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2304         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
2305         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
2306         of in_sdata from current_section_name and current_section_flags.
2307         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2308         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
2309         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
2310         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
2311         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
2312         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2313         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
2314         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
2315         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
2316         (override_options): Remove setting of MASK_GPOPT.
2317         (mips_output_external): Use mips_in_small_data_p to check whether a
2318         symbol needs an .extern directive.  Don't emit such directives for
2319         TARGET_EXPLICIT_RELOCS.
2320         (mips_declare_object): Update accordingly.
2321         (mips_select_rtx_section): Call named_section rather than
2322         SMALL_DATA_SECTION.
2323         (mips_select_section): Use default_elf_section_section for everything
2324         except .text string constants.
2325         (mips_in_small_data_p): New function.
2326         (mips_encode_section_info): Remove small data handling.
2327         (mips_unique_section): Delete.
2328         (iris6_section_type_flags): New function.
2329         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
2331 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2333         PR Target/11453
2334         * pa.md: Disparage all mtsar constraints.
2335         (extzv, extv, insv): Don't fail on length of {32|64}.
2337 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
2339         * system.h: Poison MAP_CHARACTER.
2340         * config/i370/i370-protos.h (mvs_map_char): Delete.
2341         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
2342         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
2343         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
2345 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
2347         * toplev.c (randomize): Correct call to time().
2349 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
2351         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
2352         REG_EQUIV notes as well.
2354 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
2356         * doc/md.texi: Fix the description of addmodecc.
2358 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
2360         * Makefile.in (top_builddir): Set to "..", not ".".
2361         (INTLLIBS, INTLDEPS): Delete.
2362         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
2363         (LIBDEPS): Add $(LIBICONV_DEP).
2364         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
2365         (INCLUDES): Replace -I../intl with @INCINTL@.
2366         ($(top_builddir)/intl/libintl.a): Delete rule.
2367         (stage2-start, stage3-start, stage4-start, stageprofile-start,
2368         stagefeedback-start): Use $$ for variable to be evaluated by
2369         shell, not make.
2370         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
2371         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
2372         * aclocal.m4: sinclude ../config/progtest.m4.  Add
2373         contents of lcmessage.m4 from gettext distro.
2374         * configure.in: Check for wchar.h and setlocale.  Set
2375         LIBICONV_DEP to the empty string and substitute it.
2376         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
2377         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
2378         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
2379         in $LIBINTL, to avoid linking it twice.
2380         * configure, config.in: Regenerate.
2382 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
2384         * fixinc/mkfixinc.sh: Remove winnt support.
2385         * fixinc/fixinc.winnt: Delete with extreme prejudice.
2387 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
2389         * Makefile.in: Update.
2390         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
2391         * c.opt: Update documentation.
2392         * common.opt: Add some help text.
2393         * opts.c: Include intl.h.
2394         (wrap_help, print_help): New.
2395         (find_opt, handle_option, common_handle_option): opt_text now
2396         contains the '-'.  Use print_help to output help.
2397         * opts.h (struct cl_option): New member "help".
2398         * opts.sh: Update to handle help text output and to prepend
2399         options with '-'.
2400         * toplev.c (display_help): Remove some help text.
2402 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
2403             Fariborz Jahanian  <fjahanian@apple.com>
2405         * configure.in: Test for PowerPC mfcr field support in assembler.
2406         * config.in, configure: Regenderated.
2408         * config/rs6000/power4.md: Add mfcrf reservation.
2409         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
2410         * config/rs6000/rs6000.c (mfcr_operation): Define.
2411         (print_operand): Add 'Q' case for mfcrf.
2412         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
2413         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
2414         (movcc_internal1): Emit optional field operand for mfcr and set
2415         "type" attribute appropriately.
2416         (mfcr SCC): Likewise.
2417         (movesi_from_cr_one): New.
2419 2003-07-07  Roger Sayle  <roger@eyesopen.com>
2421         * config/i386/i386.md: Correct check-in of incorrect version.
2423 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2425         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
2426         adjacent stdio calls.
2427         * c-decl.c (c_print_identifier): Likewise.
2428         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
2429         * print-rtl.c (print_rtx): Likewise.
2430         * print-tree.c (print_node_brief, print_node): Likewise.
2431         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
2433         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
2434         * config.in, configure: Regenerated.
2436 2003-07-07  Roger Sayle  <roger@eyesopen.com>
2438         PR target/10979
2439         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
2440         Changed to define_expand patterns that copy operand[1] to prevent
2441         it from being clobbered before emitting an atan2?f3_1 insn.
2442         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
2443         patterns that actually specify the behaviour of x87's FPATAN.
2445 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
2447         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
2448         clearing of SYMBOL_FLAG_LOCAL bit.
2449         If vcall_offset fits into signed 16-bit immediate, use
2450         one instruction for both addition and load.
2452 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
2454         * opts.c (common_handle_option): Correct handling of the
2455         -falign- switches that do and don't take an argument.
2457 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
2459         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
2460         today.
2461         (pushhi1_h8300hs): Likewise.
2463 2003-07-07  Andreas Jaeger  <aj@suse.de>
2465         * genextract.c: Convert remaining prototypes to ISO C90.
2467         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
2468         * fold-const.c (fold_single_bit_test): Likewise.
2469         * diagnostic.c (default_diagnostic_finalizer): Likewise.
2470         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
2472         * gengtype.c (write_array): Generate ISO C90 prototypes.
2474         * genflags.c (gen_proto): Generate ISO C90 prototypes.
2476 2003-07-07  Roger Sayle  <roger@eyesopen.com>
2478         PR optimization/11059
2479         * expr.c (can_store_by_pieces): Return true if length is zero.
2480         (store_by_pieces): If length is zero and endp is two, abort,
2481         othwerise, if length is zero and endp is not two, return "to".
2482         (clear_by_pieces): Do nothing if length is zero.
2483         (clear_storage): Do nothing if length is zero.
2484         (store_constructor): Simplify code when size is zero, or the
2485         target has already been cleared.  This avoids emitting a
2486         blockage instruction when initializing empty structures.
2488 2003-07-07  Andreas Jaeger  <aj@suse.de>
2490         * mips-tfile.c: Convert prototypes to ISO C90.
2491         * mips-tdump.c: Convert prototypes to ISO C90.
2493 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
2495         * rtl.h (emit_line_note): Take a location_t.
2496         (emit_line_note_force): Remove.
2497         (set_file_and_line_for_statement): Take a location_t.
2498         * tree.g (emit_line_note): Take a location_t.
2499         * emit-rtl.c (emit_line_note): Take a location_t.
2500         (emit_line_note_force): Remove.
2501         * function.c (init_function_start): Adjust emit_line_note call.
2502         (expand_function_end): Use force_next_line_note, not
2503         emit_line_note_force.
2504         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
2505         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
2506         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
2507         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
2508         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
2509         genrtl_continue_stmt, genrtl_switch_stmt,
2510         genrtl_asm_stmt): Likewise.
2511         * expr.c (expand_expr): Likewise.
2512         * integrate.c (expand_inline_function): Likewise.
2513         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
2514         (expand_decl_init): Adjust emit_line_note call.
2516 2003-07-07  Dale Johannesen  <dalej@apple.com>
2518         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
2520 2003-07-07  Andreas Jaeger  <aj@suse.de>
2522         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
2523         * config/i386/i386.c: Likewise.
2525 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
2527         * config/h8300/h8300.md: Use gen_int_mode instead of
2528         GEN_INT (trunc_int_for_mode (...)).
2530 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
2532         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
2533         2 bytes and then subtract 2 from the stack pointer.
2534         (pushhi1_h8300hs): Likewise.
2536 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
2538         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
2539         -frandom-seed.
2540         * configure: Regenerated.
2541         * Makefile.in: Remove extraneous comment.
2542         * toplev.c (randomize): Protect against potential multiple calls.
2543         * doc/invoke.texi (-frandom-seed): Document use for in coverage
2544         files.
2546 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2547             Eric Botcazou  <ebotcazou@libertysurf.fr>
2549         PR optimization/11198
2550         * alias.c (objects_must_conflict_p): Return 1 if the types have
2551         the same alias set, not if the alias sets only conflict.
2553 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
2555         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
2556         (convert_cset): Change inbuf to type ICONV_CONST char.
2557         * Makefile.in (LIBS): Add LIBICONV.
2559         * doc/invoke.texi (-falign-functions): Document that
2560         when n is zero then a machine-dependent default is used.
2561         (-falign-labels): Document that when n is zero then a
2562         machine-dependent default is used and that -falign-labels =1
2563         is equivalent to -fno-align-labels.
2564         (-falign-loops): Likewise.
2565         (-falign-jumps): Likewise.
2567 2003-07-06  Art Haas  <ahaas@airmail.net>
2569         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
2570         initializer syntax.
2572 2003-07-06  James E Wilson  <wilson@tuliptree.org>
2574         PR optimization/9812
2575         * rtl.h (mem_for_const_double): Delete prototype.
2576         * varasm.c (mem_for_const_double): Delete function.
2577         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
2578         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
2579         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
2580         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
2581         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
2582         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
2583         comment about confused support for XFmode constants.
2585 Mon Jul  7 02:03:56 CEST 2003  Jan Hubicka  <jh@suse.cz>
2587         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
2589 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
2591         * config/h8300/h8300.c: Fix comment typos.
2592         * config/h8300/h8300.md: Likewise.
2593         * config/i386/athlon.md: Likewise.
2594         * config/i386/i386.c: Likewise.
2595         * config/i386/pentium.md: Likewise.
2596         * config/ia64/ia64.c: Likewise.
2597         * config/ia64/itanium1.md: Likewise.
2598         * config/ia64/itanium2.md: Likewise.
2599         * config/m32r/m32r.md: Likewise.
2600         * config/m68hc11/m68hc11.c: Likewise.
2601         * config/mcore/mcore.c: Likewise.
2602         * config/mips/sr71k.md: Likewise.
2603         * config/mips/t-iris5-as: Likewise.
2604         * config/mmix/mmix.h: Likewise.
2605         * config/ns32k/ns32k.h: Likewise.
2606         * config/ns32k/NOTES: Fix a typo.
2608 2003-07-06  Andreas Jaeger  <aj@suse.de>
2610         * stmt.c: Convert remaining prototypes to ISO C90.
2611         * cfglayout.c: Likewise.
2612         * dbxout.c: Likewise.
2613         * gcc.c: Likewise.
2614         * genemit.c: Likewise.
2616         * basic-block.h: Convert prototypes to ISO C90.
2617         * c-parse.in: Likewise.
2618         * c-pragma.h: Likewise.
2619         * c-typeck.c: Likewise.
2620         * cfghooks.h: Likewise.
2621         * cfgloopanal.c: Likewise.
2622         * dbxout.h: Likewise.
2623         * debug.h: Likewise.
2624         * dwarf2asm.h: Likewise.
2625         * gcov.c: Likewise.
2626         * gengtype-lex.l: Likewise.
2627         * sched-int.h: Likewise.
2628         * timevar.c: Likewise.
2630 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
2632         * c-common.h (c_comon_handle_filename,
2633         c_common_missing_arguement): New.
2634         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2635         LANG_HOOKS_MISSING_ARGUMENT): New.
2636         * c-opts.c (missing_arg): Rename c_common_missing_argument,
2637         update to be an appropriate langhook.
2638         (c_common_handle_option): Don't handle filenames.
2639         (c_common_handle_filename): New.
2640         * hooks.c (hook_void_constcharptr,
2641         hook_bool_constcharptr_size_t_false): New.
2642         * hooks.h (hook_void_constcharptr,
2643         hook_bool_constcharptr_size_t_false): New.
2644         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
2645         LANG_HOOKS_MISSING_ARGUMENT): New.
2646         (LANG_HOOKS_INITIALIZER): Update.
2647         * langhooks.h (struct lang_hooks): Add handle_filename and
2648         missing_argument.
2649         * opts.c (handle_option): Don't handle filenames here, but ...
2650         (handle_options): ... here.
2651         (common_handle_option): Don't handle missing arguments here.
2652         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2653         LANG_HOOKS_MISSING_ARGUMENT): New.
2655 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
2657         * Makfile.in: Remove traces of mbchar.
2658         * c-parse.in (MULTIBYTE_CHARS): Remove.
2659         * config.in (MULTIBYTE_CHARS): Remove.
2660         * configure: Remove --enable-mbchar.
2661         * configure.in: Remove --enable-mbchar.
2662         * mbchar.c, mbchar.h: Remove.
2663         * system.h: Poison MULTIBYTE_CHARS.
2664         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
2665         * config/linux.h (MULTIBYTE_CHARS): Remove.
2666         * config/svr4.h (MULTIBYTE_CHARS): Remove.
2667         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
2669 2003-07-06  Andreas Jaeger  <aj@suse.de>
2671         * varray.c (varray_check_failed): Fix typo.
2673         * unroll.c: Convert prototypes to ISO C90.
2674         * varasm.c: Likewise.
2675         * varray.c: Likewise.
2676         * varray.h: Likewise.
2677         * vmsdbgout.c: Likewise.
2678         * xcoffout.c: Likewise.
2679         * xcoffout.h: Likewise.
2681 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
2683         * gcov-io.h: Add a local time stamp.
2684         (struct gcov_info): Add stamp field.
2685         (gcov_truncate): New.
2686         * coverage.c (read_counts_file): Skip the stamp.
2687         (coverage_begin_output): Write the stamp.
2688         (build_gcov_info): Declare and init the stamp.
2689         (coverage_finish): Only unlink data file, if stamp is zero.
2690         * gcov-dump.c (dump_file): Dump the stamp.
2691         * gcov.c (bbg_stamp): New.
2692         (release_structures): Clear bbg_stamp.
2693         (read_graph_file): Read stamp.
2694         (read_count_file): Check stamp.
2695         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
2697 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
2699         * tree.h (default_flag_random_seed): Remove.
2700         * toplev.h (local_tick): Declare.
2701         * tree.c (flag_random_seed, default_flag_random_seed): Move to
2702         toplev.c.
2703         (append_random_chars): Don't call default_flag_random_seed.
2704         * toplev.c (flag_random_seed): Define here. Set local_tick.
2705         (local_tick): Define.
2706         (randomize): New, moved from tree.c.
2707         (print_switch_values): Adjust.
2708         (toplev_main): Call randomize.
2710 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
2712         * tree.h (crc32_string): Declare.
2713         * tree.c (append_random_chars): Remove.
2714         (crc32_string): New.
2715         (get_file_function_name_long): Use crc32_string here.
2717 2003-07-06  Andreas Jaeger  <aj@suse.de>
2719         * gcc.c: Convert prototypes to ISO C90.
2720         * gcc.h: Likewise.
2721         * gcov-dump.c: Likewise.
2722         * gcov-iov.c: Likewise.
2723         * gcse.c: Likewise.
2724         * genattrtab.h: Likewise.
2725         * ggc.h: Likewise.
2726         * global.c: Likewise.
2727         * graph.c: Likewise.
2728         * graph.h: Likewise.
2729         * hosthooks.h: Likewise.
2730         * hooks.h: Likewise.
2731         * hooks.c: Likewise.
2732         * hashtable.h: Likewise.
2733         * hashtable.c: Likewise.
2734         * haifa-sched.c: Likewise.
2735         * integrate.h: Likewise.
2736         * integrate.c: Likewise.
2737         * input.h: Likewise.
2738         * ifcvt.c: Likewise.
2739         * jump.c: Likewise.
2740         * langhooks-def.h: Likewise.  Add extern to prototypes.
2741         * langhooks.c: Likewise.
2742         * langhooks.h: Likewise.
2743         * lcm.c: Likewise.
2744         * local-alloc.c: Likewise.
2745         * loop-init.c: Likewise.
2746         * loop-unroll.c: Likewise.
2747         * loop-unswitch.c: Likewise.
2748         * loop.c: Likewise.
2749         * loop.h: Likewise. Add extern to prototypes.
2750         * machmode.h: Likewise.
2751         * main.c: Likewise.
2752         * mbchar.c: Likewise.
2753         * mbchar.h: Likewise.
2754         * mkdeps.c: Likewise.
2755         * mkdeps.h: Likewise.
2756         * optabs.c: Likewise.
2757         * optabs.h: Likewise.
2758         * output.h: Likewise.
2759         * gccspec.c: Likwise.
2760         * postreload.c: Likewise.
2761         * prefix.c: Likewise.
2762         * prefix.h: Likewise.
2763         * print-rtl.c: Likewise.
2764         * print-tree.c: Likewise.
2765         * profile.c: Likewise.
2766         * read-rtl.c: Likewise.
2767         * real.c: Likewise.
2768         * real.h: Likewise.
2769         * recog.c: Likewise.
2770         * recog.h: Likewise.
2771         * reg-stack.c: Likewise.
2772         * regclass.c: Likewise.
2773         * regmove.c: Likewise.
2774         * regrename.c: Likewise.
2775         * regs.h: Likewise.
2776         * reload.c: Likewise.
2777         * reload.h: Likewise.
2778         * reload1.c: Likewise.
2779         * reorg.c: Likewise.
2780         * resource.c: Likewise.
2781         * resource.h: Likewise.
2782         * rtl-error.c: Likewise.
2783         * rtl.c: Likewise.
2784         * rtl.h: Likewise.
2785         * rtlanal.c: Likewise.
2786         * sbitmap.c: Likewise.
2787         * sbitmap.h: Likewise.
2788         * scan-decls.c: Likewise.
2789         * scan.c: Likewise.
2790         * sched-deps.c: Likewise.
2791         * sched-ebb.c: Likewise.
2792         * sched-int.h: Likewise.
2793         * sched-rgn.c: Likewise.
2794         * sched-vis.c: Likewise.
2795         * sibcall.c: Likewise.
2796         * simplify-rtx.c: Likewise.
2797         * sreal.c: Likewise.
2798         * sreal.h: Likewise.
2799         * ssa-ccp.c: Likewise.
2800         * ssa-dce.c: Likewise.
2801         * ssa.c: Likewise.
2802         * ssa.h: Likewise.
2803         * stack.h: Likewise.
2804         * stmt.c: Likewise.
2805         * stor-layout.c: Likewise.
2806         * stringpool.c: Likewise.
2807         * target.h: Likewise.
2808         * timevar.c: Likewise.
2809         * timevar.h: Likewise.
2810         * tlink.c: Likewise.
2811         * tracer.c: Likewise.
2812         * tree-inline.c: Likewise.
2813         * tree-inline.h: Likewise.
2814         * tree.c: Likewise.
2815         * tree.h: Likewise.
2817 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
2819         * combine.c (nonzero_bits1): Fix a warning.
2821 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
2823         * config/h8300/h8300.c (compute_mov_length): Correct the
2824         length of loading CONST0_RTX (SFmode).
2826 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
2828         * toplev.c (output_clean_symbol_name): Remove.
2829         * toplev.h (output_clean_symbol_name): Remove.
2830         * config/alpha/alpha.c (unicosmk_output_module_name): Use
2831         lbasename & clean_symbol_name.
2833 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
2835         * ggc.h: Follow spelling conventions.
2836         * config/i386/i386.c: Likewise.
2837         * config/i386/winnt.c: Likewise.
2838         * config/rs6000/rs6000.c: Likewise.
2840 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
2842         * bt-load.c: Fix comment typos.
2843         * c-incpath.c: Likewise.
2844         * cfg.c: Likewise.
2845         * cfgcleanup.c: Likewise.
2846         * cfgloop.h: Likewise.
2847         * cfgloopmanip.c: Likewise.
2848         * cfgrtl.c: Likewise.
2849         * diagnostic.h: Likewise.
2850         * dwarfout.c: Likewise.
2851         * emit-rtl.c: Likewise.
2852         * et-forest.c: Likewise.
2853         * et-forest.h: Likewise.
2854         * expr.c: Likewise.
2855         * gcse.c: Likewise.
2856         * genattr.c: Likewise.
2857         * jump.c: Likewise.
2858         * langhooks.h: Likewise.
2859         * local-alloc.c: Likewise.
2860         * loop-unroll.c: Likewise.
2861         * loop-unswitch.c: Likewise.
2862         * ra-build.c: Likewise.
2863         * regclass.c: Likewise.
2864         * regmove.c: Likewise.
2865         * rtl.def: Likewise.
2866         * rtlanal.c: Likewise.
2867         * sched-ebb.c: Likewise.
2868         * sched-rgn.c: Likewise.
2869         * simplify-rtx.c: Likewise.
2870         * ssa.c: Likewise.
2871         * tracer.c: Likewise.
2872         * tree.c: Likewise.
2874 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
2876         * cppcharset.c: Use the correct return type for the fallback iconv
2877         macro.
2879 Sat Jul  5 16:18:53 CEST 2003  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2881         Blame to Jan Hubicka  <jh@suse.cz>
2882         * cfglayout.c (record_effective_endpoints): Split insns before
2883         first basic block correctly.
2885 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2887         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
2888         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
2889         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
2891 2003-07-05  Andreas Jaeger  <aj@suse.de>
2893         * genattrtab.c (write_attr_get): Revert part of last patch to
2894         always write out a prototype.
2896         * genemit.c (gen_split): Readd lost unused attributes in last
2897         patch.
2899 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2901         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
2902         different from header.
2904 2003-07-05  Andreas Schwab  <schwab@suse.de>
2906         * config/m68k/m68k.c: Remove code protected by CRDS.
2907         * config/m68k/m68k.md: Likewise.
2909 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
2911         PR driver/11417
2912         * c-opts.c (permit_fortran_options): New.
2913         (c_common_init_options): Accept fortran front end options if
2914         it looks like we might be preprocessing Fortran.
2915         (c_common_handle_option): Don't reject switch if permit_fotran_options.
2917 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2919         * genattr.c (internal_dfa_insn_code): Output prototype.
2920         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
2921         * genautomata.c: Likewise.
2922         * genconditions.c: Likewise.
2923         * genemit.c: Likewise.
2924         * genextract.c: Likewise.
2925         * gengenrtl.c: Likewise.
2926         * gengtype.c: Likewise.
2927         * genopinit.c: Likewise.
2928         * genoutput.c: Likewise.
2929         * genpeep.c: Likewise.
2930         * genrecog.c: Likewise.
2932 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
2934         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
2935         (struct cpp_options): Add narrow_charset, wide_charset,
2936         bytes_big_endian fields.  Remove EBCDIC field.
2937         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
2939         * cpphash.h: Include <iconv.h> if we have it, otherwise
2940         provide a dummy definition of iconv_t.
2941         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
2942         (_cpp_valid_ucn): Update prototype.
2943         (_cpp_destroy_iconv): New prototype.
2945         * doc/cpp.texi: Document character set handling.
2946         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
2947         * doc/extend.texi: Delete entire section on multiline strings.
2948         Rewrite section on __FUNCTION__ etc now that these are
2949         variables in C.
2951         * cppucnid.tab, cppucnid.pl: New files.
2952         * cppucnid.h: New generated file.
2953         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
2954         (iconv_open, iconv, iconv_close): Provide dummy definitions
2955         if !HAVE_ICONV.
2956         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
2957         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
2958         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
2959         cpp_interpret_string, narrow_str_to_charconst,
2960         wide_str_to_charconst): New.
2961         (ucn_valid_in_identifier): Use a binary search through the
2962         ucnranges table defined in cppucnid.h, not a long chain of if
2963         statements.
2964         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
2965         character names are only valid in C++ and C99" to a warning.
2966         Issue the "meaning of \[uU] is different in traditional C"
2967         warning here.  Take care not to let iconv see an invalid UCS
2968         value if we get a malformed UCN.  Issue an error if we don't
2969         have iconv.
2970         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
2971         cpp_interpret_string to do the heavy lifting.
2973         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
2974         narrow_charset, wide_charset fields of options structure.
2975         (cpp_destroy): Call _cpp_destroy_iconv.
2976         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
2977         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
2978         (cpp_interpret_charconst): Moved to cppcharset.c.
2979         * cpplib.c (dequote_string): Delete.
2980         (interpret_string_notranslate): New.
2981         (do_line, do_linemarker): Use interpret_string_notranslate.
2983         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
2985         * c-common.c (fname_string, combine_strings): Delete.
2986         * c-common.h (fname_string, combine_strings): Delete prototypes.
2987         * c-lex.c (ignore_escape_flag): Delete.
2988         (cb_ident): Use cpp_interpret_string, not lex_string.
2989         (get_nonpadding_token): New function.
2990         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
2991         Adjust calls to lex_string.  Don't write *value twice.
2992         (lex_string): Now handles string constant concatenation.
2993         Most of the work handed off to cpp_interpret_string.
2994         Call fix_string_type here.
2995         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
2996         FUNC_NAME, throughout.
2997         (OBJC_STRING): New token type.
2998         (primary:STRING): No need to call fix_string_type here.
2999         (primary:objc_string): Make that OBJC_STRING.
3000         (objc_string nonterminal): Delete.
3001         (yylexname): Delete code to handle fake string constants.
3002         (yylexstring): Delete entirely.
3003         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
3004         to handle CPP_ATSIGN.
3006         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
3007         * c-opts.c (missing_arg, c_common_handle_option): Handle
3008         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
3009         (c_common_init): Set cpp_opts->bytes_big_endian, not
3010         cpp_opts->EBCDIC.  Call cpp_init_iconv.
3011         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
3012         (TARGET_EBCDIC): Delete default definition.
3014         * objc/objc-act.c (build_objc_string_object): No need to
3015         handle string constant concatenation.
3017 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
3019         * doc/install.texi: Fix typos.
3020         * doc/invoke.texi: Likewise.
3021         * doc/tm.texi: Likewise.
3023 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
3025         * config/pa/fptr.c: Fix comment typos.
3026         * config/pa/pa-64.h: Likewise.
3027         * config/pa/pa.c: Likewise.
3028         * config/pa/pa.h: Likewise.
3029         * config/rs6000/603.md: Likewise.
3030         * config/rs6000/7xx.md: Likewise.
3031         * config/rs6000/darwin.h: Likewise.
3032         * config/rs6000/freebsd.h: Likewise.
3033         * config/rs6000/rs6000.c: Likewise.
3034         * config/rs6000/rs6000.md: Likewise.
3035         * config/rs6000/spe.h: Likewise.
3037 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
3039         * config/s390/2064.md: Change GNU CC to GCC.
3040         * config/s390/2084.md: Likewise.
3041         * config/s390/fixdfdi.h: Likewise.
3042         * config/s390/linux.h: Likewise.
3043         * config/s390/s390-modes.def: Likewise.
3044         * config/s390/s390-protos.h: Likewise.
3045         * config/s390/s390.c: Likewise.
3046         * config/s390/s390.h: Likewise.
3047         * config/s390/s390.md: Likewise.
3048         * config/s390/s390x.h: Likewise.
3050 2003-07-04  Jeff Law  <law@redhat.com>
3052         PR c/11428
3053         * expr.c (do_store_flag): Pass in the correct result type
3054         when calling fold_single_bit_test.
3055         * fold-const.c (fold_single_bit_test): Use result_type for the
3056         result when folding a sign bit test.
3058 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
3060         * opts.c (common_handle_options): Negate sense of -falign- switches.
3062 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
3064         * Makefile.in: Replace PWD with PWD_COMMAND.
3066 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3068         * cfgloopanal.c (count_strange_loop_iterations): New static function.
3069         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
3070         Handle strange loops.
3072 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
3074         * install.texi: Even the g77 manpage is derived from
3075         the full g77 manual.
3077 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
3079         * ABOUT-NLS: Delete.
3080         * intl: Delete entire directory.
3081         * aclocal.m4: Include ../config/gettext.m4.  Delete
3082         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
3083         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
3084         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
3085         Remove intl/Makefile from all_outputs.
3086         * configure, config.in: Regenerate.
3087         * Makefile.in: Expunge all references to intl subdirectory.
3088         Add -I../intl to INCLUDES.
3089         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
3091 2003-07-04  Roger Sayle  <roger@eyesopen.com>
3093         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
3094         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
3096 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
3098         PR c++/5287, PR c++/7910, PR c++/11021
3099         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
3100         dllimport attribute if function is defined at declaration, but
3101         report error instead. Likewise for dllimport'd variable
3102         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
3103         declared within functions, Report error if dllimport or dllexport
3104         symbol is not global.
3105         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
3106         if defined after declaration or if inlined. Don't allow definition
3107         of static data members of C++ classes. Don't dllimport virtual
3108         methods.
3109         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
3110         (i386_pe_mark_dllimport): Remove unnecessary checks.
3111         (i386_pe_encode_section_info): Warn if the dllimport attribute
3112         and symbol prefix have been instantiated and then overridden.
3114         * doc/extend.texi: Document dllimport and dllexport attributes.
3116         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
3118 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
3120         * config/kaos.h (CPP_PREDEFINES): Delete.
3121         (TARGET_OS_CPP_BUILTINS): New.
3123 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3125         * c-aux-info.c: Include toplev.h after c-tree.h.
3126         * c-common.c: Likewise.
3127         (GCC_DIAG_STYLE): Undef.
3128         * c-semantics.c (GCC_DIAG_STYLE): Define.
3129         * c-tree.h (GCC_DIAG_STYLE): Likewise.
3130         * diagnostic.h (inform): Move prototype to toplev.h.
3131         * jump.c: Include diagnostic.h before toplev.h.
3132         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
3133         (warning, error, fatal_error, pedwarn, sorry, inform,
3134         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
3136 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3138         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
3139         at all if edge is not specified.
3140         (can_copy_bbs_p, copy_bbs): New.
3141         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
3142         * cfgloop.c (get_loop_body): Comment more precisely.
3143         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
3144         (scale_bbs_frequencies): Fix comment typo.
3145         (can_duplicate_loop_p): Use can_copy_bbs_p.
3146         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
3148 2003-07-03  Devang Patel <dpatel@apple.com>
3150         * c-opts.c (c_common_parse_file): Remove extra
3151         debug_hooks->start_source_file call.
3153 2003-07-03  Roger Sayle  <roger@eyesopen.com>
3155         * real.c (real_trunc, real_floor, real_ceil): New functions
3156         to implement trunc, floor and ceil respectively.
3157         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
3158         * builtins.c (integer_valued_real_p): New function to test if
3159         a floating point expression has an integer valued result.
3160         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
3161         foo(x) where foo is an integer rounding function.  Similarly,
3162         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
3163         (double)(int)x when both foo and bar are integer rounding
3164         functions and we don't need to honor errno.
3165         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
3166         New functions to fold trunc, floor and ceil.
3167         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
3168         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
3169         to fold BUILT_IN_CEIL*.
3170         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
3171         the remaining integer rounding functions.
3173 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3175         * config/sparc/sparc.c (function_arg_partial_nregs): Use
3176         SPARC_INT_ARG_MAX to determine where to split unnamed
3177         complex FP arguments.
3179 Thu Jul  3 20:36:47 CEST 2003  Jan Hubicka  <jh@suse.cz>
3181         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
3182         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
3183         (merge_blocks_move_predecessor_nojumps,
3184          merge_blocks_move_successor_nojumps): Use merge_blocks.
3185         (try_optimize_cfg): Use merge_blocks_move.
3186         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
3187         (merge_blocks_nomove): Rename to rtl_merge_blocks.
3188         (cfg_layout_create_basic_block): New.
3189         (rtl_can_merge_blocks): New.
3190         (cfg_layout_split_block): Do not alloc aux by hand.
3191         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
3192         merge_blocks.
3193         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
3194         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
3195         * cfgloopmanip.c (loop_split_edge_with): Likewise.
3196         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
3198         * basic-block.h (basic_block_def): Add field 'rbi'.
3199         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
3200         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
3201         * cfg.c (entry_exit_blocks): Add new field.
3202         * cfglayout.c: Include alloc-pool.h;
3203         (cfg_layout_pool): New.
3204         (record_effective_endpoints, fixup_reorder_chain,
3205         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
3206         of rbi.
3207         (cfg_layout_initialize_rbi): New function.
3208         (cfg_layout_initialize): Use it.
3209         (cfg_layout_finalize): Clear rbi fields.
3210         * cfglayout.h (RBI): Kill.
3211         (cfg_layout_initialize_rbi): Declare.
3212         * cfgloopmanip.c (copy_bbs): Use rbi.
3213         (record_exit_edges): Likewise.
3214         (duplicate_loop_to_header_edge): Likewise.
3215         * cfgrtl.c (cfg_layout_create_basic_block): Use
3216         cfg_layout_initialize_rbi.
3217         (cfg_layout_split_block): Use rbi.
3218         (cfg_layout_delete_block): Likewise.
3219         * loop-init.c (loop_optimizer_finalize): Likewise.
3220         * loop-unswitch.c (unswitch_loop): Likewise.
3221         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
3223         * cfgrtl.c: Update comments.
3224         (try_redirect_by_replacing_jump): New argument.
3225         (redirect_branch_edge): Break out from ...
3226         (rtl_redirect_edge_and_branch): ... this one.
3227         (update_cfg_after_block_merging): Break out from ...
3228         (rtl_merge_blocks): ... this one.
3229         (cfg_layout_split_edge): New.
3230         (cfg_layout_merge_blocks): New.
3231         (cfg_layout_can_merge_blocks_p): New.
3232         (cfg_layout_redirect_edge_and_branch): Reorganize.
3233         (cfg_layout_rtl_cfg_hooks): Fill in.
3234         (cfg_layout_delete_block): Kill barriers.
3235         * cfganal.c (can_fallthru): Deal with exit blocks
3236         * cfglayout.c (cfg_layout_function_header): New function
3237         (record_effective_endpoints): Record function header.
3238         (fixup_reorder_chain): Fixup dead jumptables; place header
3240         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
3241         * bb-reorder.c (cfg_layout_initialize): Update call.
3242         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
3243         edges in cfglayout mode.
3244         * cfglayout.c (cleanup_unconditional_jumps): Kill.
3245         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
3246         * cfglayout.h (cfg_layout_initialize): Update prototype.
3247         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
3248         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
3249         * flow.c (propagate_block): Do not crash when basic block ends
3250         by first insn in the chain.
3251         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
3252         do loop discovery.
3253         * tracer.c (tracer): Update call of cfg_layout_initialize.
3255 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3257         * Makefile.in: Use dependency variables in lieu of explicit
3258         files throughout.
3260 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
3262         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
3263         * tree.h: ...to here.
3265 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
3267         * config/s390/2064.md: Fix comment typos.
3268         * config/s390/2084.md: Likewise.
3269         * config/s390/s390.c: Likewise.
3270         * config/s390/s390.md: Likewise.
3271         * config/sh/sh.c: Likewise.
3272         * config/sh/sh.h: Likewise.
3273         * config/sh/sh.md: Likewise.
3274         * config/sparc/sparc.c: Likewise.
3275         * config/sparc/sparc.h: Likewise.
3276         * config/sparc/sparc.md: Likewise.
3277         * config/stormy16/stormy16.c: Likewise.
3278         * config/stormy16/stormy16.h: Likewise.
3279         * config/stormy16/stormy-abi: Fix a typo.
3281 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
3283         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
3285 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3287         * config/mips/mips.h (save_argv): Delete.
3289 2003-07-03  Roger Sayle  <roger@eyesopen.com>
3291         PR target/10700
3292         * fold-const.c (extract_muldiv_1): There's nothing that can be done
3293         if the expression is a SAVE_EXPR.
3295 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
3297         * config/m32r/m32r.c: Fix comment typos.
3298         * config/m68hc11/m68hc11.c: Likewise.
3299         * config/m68hc11/m68hc11.h: Likewise.
3300         * config/m68k/m68k.c: Likewise.
3301         * config/mcore/mcore.c: Likewise.
3302         * config/mcore/mcore.h: Likewise.
3303         * config/mcore/mcore.md: Likewise.
3304         * config/mips/mips.c: Likewise.
3305         * config/mips/mips.h: Likewise.
3306         * config/mips/mips.md: Likewise.
3307         * config/mips/netbsd.h: Likewise.
3308         * config/mn10300/mn10300.c: Likewise.
3310 2003-07-03  Andreas Schwab  <schwab@suse.de>
3312         * dbxout.c (pending_bincls): Move decl down inside
3313         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
3315 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
3317         * rtl.h (NOTE_DATA): Refer to whole union.
3318         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
3320 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3322         PR optimization/11381
3323         * simplify-rtx.c (simplify_relational_operation): Check that
3324         two equal operands have no side-effects before simplifying
3325         the comparison.
3327 2003-07-02  Jeff Law  <law@redhat.com>
3329         * expr.c (do_store_flag): Remove special case folding for
3330         single bit tests.  Instead call back into the commonized folder
3331         routine.
3332         * fold-const.c (fold_single_bit_test): New function, mostly
3333         extracted from do_store_flag, with an additional case extracted
3334         from fold.
3335         (fold): Call fold_single_bit_test appropriately.
3336         * tree.h (fold_single_bit_test): Prototype.
3338 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
3340         * system.h: Include filenames.h.
3341         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
3342         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
3343         define based on HAVE_DOS_BASED_FILE_SYSTEM.
3344         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
3345         * config/i386/xm-mingw32.h: Don't define
3346         HAVE_DOS_BASED_FILE_SYSTEM,
3347         DIR_SEPARATOR, or DIR_SEPARATOR_2.
3348         * doc/hostconfig.texi: Update to match.
3350         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
3351         config/i386/cygwin.h:
3352         Use IS_ABSOLUTE_PATH throughout.
3353         * gcc.c (DIR_UP): Delete, unused.
3354         * protoize.c (IS_SAME_PATH): Define in terms of
3355         FILENAME_CMP.
3356         (is_abspath): Delete.
3358 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
3360         * config/i386/emmintrin.h: Fix comment typos.
3361         * config/i386/i386.c: Likewise.
3362         * config/i386/i386.h: Likewise.
3363         * config/i386/sco5.h: Likewise.
3364         * config/ia64/ia64.c: Likewise.
3365         * config/ia64/itanium2.md: Likewise.
3367 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
3369         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
3370         DBX_USE_BINCL.
3371         (emit_bincl_stab): Same.
3372         (emit_pending_bincls): Same.
3374 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
3376         * config/h8300/h8300.c (compute_mov_length): Fix the length of
3377         loading CONST0_RTX (SFmode).
3378         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
3379         'G' to CONST0_RTX (SFmode).
3380         * config/h8300/h8300.md (movsf_h8300): Change the first
3381         constraint to 'G'.
3382         (movsf_h8300h): Likewise.
3384 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
3386         * c-common.h (c_common_init_options): New prototype.
3387         * c-opts.c (deferred_size): Remove.
3388         (defer_opt): Array is now pre-allocated.
3389         (c_common_init_options): Pre-allocate deferred_opts.  Make
3390         lang_flags unsigned.
3391         (push_command_line_options): Free deferred_opts.
3392         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
3393         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
3394         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
3395         * langhooks.h (struct lang_hooks): New prototype for init_options.
3396         * main.c (main): Cast argv.
3397         * opts.c (handle_option, handle_options): Update prototypes.
3398         (decode_options): save_argc, save_argv are not global.  Constify.
3399         * opts.h (decode_options): New prototype.
3400         * toplev.c (general_init): New protoype.
3401         (save_argv): Make static.
3402         (save_argc): Remove.
3403         (print_switch_values, general_init): Constify.
3404         (toplev_main): Save argv.
3405         * toplev.h (toplev_main): Update prototype.
3406         (save_argc, save_argv): Remove.
3408 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
3410         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
3411         (emit_bincl_stab): Same.
3412         (emit_pending_bincls): Same.
3414 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
3416         PR c++/11072
3417         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
3419 2003-07-02  Andreas Schwab  <schwab@suse.de>
3421         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
3423 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
3425         PR optimization/11210
3426         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
3427         about the behaviour with regard to bitfields.
3428         * fold-const (decode_field_reference): Record outermost type in
3429         case the expression is a NOP. Strip all NOPs. Set the signedness
3430         to that of the outermost type (if any) when the bitsize is equal
3431         to the size of the type.
3433 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
3435         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
3436         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
3437         (adddi3_internal_3, addsi3_internal_2): Likewise.
3439 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
3441         * config/mips/mips.c (machine_function): Add new fields:
3442         ignore_hazard_length_p and all_noreorder_p.
3443         (mips_flag_delayed_branch): New variable.
3444         (override_options): Treat '/' as an operand punctuation character.
3445         Set up mips_flag_delayed_branch.
3446         (print_operand): Handle '/'.
3447         (mips_output_function_prologue): Put the whole function in
3448         .set noreorder and .set nomacro if all_noreorder_p is true.
3449         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
3450         (mips16_optimize_gp): Remove "first insn" parameter.
3451         (mips16_lay_out_constants): New function, split out from mips_reorg.
3452         (mips_avoid_hazard, mips_avoid_hazards): New functions.
3453         (mips_reorg): For mips16 code, call mips16_lay_out_constant
3454         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
3455         do delayed-branch scheduling followed by hazard detection.
3456         (mips_adjust_insn_length): Only account for hazards if
3457         !ignore_hazard_length_p.
3458         (mips_output_load_label): Add a nop to the o32 sequence if
3459         the target suffers from load delays.
3460         (mips_output_conditional_branch): Add %/ to the end of branches.
3461         (mips_output_division): Fill the branch delay slot with %#.
3462         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
3463         instructions.  End all other %* branches with %/.
3464         (ffssi2, ffsdi2): Fix lengths.
3465         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
3466         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
3467         (fix_truncsfsi2_macro): Likewise.
3468         (mov_lwl): Set hazard to "none".
3469         (ashldi3_internal): Fill the branch delay slot with %#.
3470         (ashrdi3_internal, lshrdi3_internal): Likewise.
3471         (exception_receiver): Explicitly set $28.
3472         (hazard_nop): New pattern.
3474 Wed Jul  2 08:12:36 CEST 2003  Jan Hubicka  <jh@suse.cz>
3476         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
3477         before calling tree_inlinable_function_p.
3479 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3481         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
3482         <internal/stdio_core.h> too.
3483         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
3484         <internal/wchar_core.h> too.
3485         Substitute va_list uses in inline definition.
3486         * fixinc/fixincl.x: Regenerate.
3488 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3490         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
3491         Undef before redefinition.
3492         (LABEL_AFTER_LOC): Likewise.
3493         (DEFAULT_SIGNED_CHAR): Likewise.
3494         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
3495         Fix IRIX spelling.
3497         * config/mips/iris3.h: Remove, unused.
3498         * config/mips/iris4.h: Likewise.
3500         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
3502         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
3503         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
3504         target_cpu_default.
3506         * config/mips/iris5.h: Move explicit includes ...
3507         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
3509         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
3510         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
3511         tm_defines.
3513         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
3514         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
3515         target_cpu_default.
3517         * config/mips/iris6.h: Fix IRIX spelling.
3518         (MULTILIB_DEFAULTS): Undef before redefinition.
3520         * config/mips/iris6.h: Move explicit includes ...
3521         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
3523 Wed Jul  2 02:16:48 CEST 2003  Jan Hubicka  <jh@suse.cz>
3525         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
3526         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
3527         Use next_needed field instead of aux to maintain the queue.
3528         * cgraph.h (cgraph_node): Add next_needed.
3529         (cgraph_varpool_node): Add next_needed; remove aux.
3530         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
3532 Wed Jul  2 02:12:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
3534         * cgraphunit.c (cgraph_finalize_function): Set finalized.
3535         (cgraph_finalize_function): Do not examine inlinablility.
3536         (cgraph_finalize_compilation_unit): Do it here.
3537         * cgraph.h (cgraph_local_info): Add finalized field.
3539 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3541         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
3542         (gt_pch_restore): Likewise.
3544 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
3546         * config/alpha/alpha.c: Fix comment typos.
3547         * config/alpha/elf.h: Likewise.
3548         * config/arm/arm.c: Likewise.
3549         * config/arm/arm.h: Likewise.
3550         * config/arm/arm.md: Likewise.
3551         * config/arm/t-arm-coff: Likewise.
3552         * config/arm/t-strongarm-pe: Likewise.
3553         * config/arm/xscale-elf.h: Likewise.
3554         * config/avr/avr.h: Likewise.
3556 2003-07-01  Jeff Law  <law@redhat.com>
3558         * stmt.c (any_pending_cleanups): Remove another redundant test.
3560 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
3561             J"orn Rennecke <joern.rennecke@superh.com>
3563         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
3564         for MEM case.
3566 2003-07-01  Devang Patel  <dpatel@apple.com>
3568         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
3569         (binclstatus): New.
3570         (struct dbx_file): New members - bincl_status, pending_bincl_name and
3571         prev.
3572         (pending_bincls): New.
3573         (dbxout_init): Initialize new dbx_file members.
3574         (dbxout_start_source_file): Same.
3575         (emit_bincl_stab): New function.
3576         (emit_pending_bincls): Same.
3577         (emit_pending_bincls_if_required): Same.
3578         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
3579         processed.
3580         (dbxout_begin_block): Emit pending BINCL stabs.
3581         (dbxout_end_block): Same.
3582         (dbxout_function_decl): Same.
3583         (dbxout_continue): Same.
3584         (dbxout_type): Same.
3585         (dbxout_class_name_qualifiers): Same.
3586         (dbxout_symbol): Same.
3587         (dbxout_symbol_location): Same.
3588         (dbxout_parms): Same.
3590 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3592         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
3593         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
3595 2003-07-01  Andreas Jaeger  <aj@suse.de>
3597         * fold-const.c: Convert prototypes to ISO C90.
3598         * function.c: Likewise.
3599         * function.h: Likewise.
3601 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
3603         * doc/contrib.texi: Fix typos.
3604         * doc/invoke.texi: Likewise.
3605         * doc/passes.texi: Likewise.
3606         * doc/sourcebuild.texi: Likewise.
3607         * doc/tm.texi: Likewise.
3609 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
3611         * basic-block.h: Fix comment typos.
3612         * bb-reorder.c: Likewise.
3613         * c-format.c: Likewise.
3614         * cfgcleanup.c: Likewise.
3615         * cfghooks.h: Likewise.
3616         * cfgloop.c: Likewise.
3617         * cfgloopmanip.c: Likewise.
3618         * cfgrtl.c: Likewise.
3619         * cgraph.h: Likewise.
3620         * cgraphunit.c: Likewise.
3621         * combine.c: Likewise.
3622         * convert.c: Likewise.
3623         * dbxout.c: Likewise.
3624         * df.c: Likewise.
3625         * df.h: Likewise.
3626         * diagnostic.c: Likewise.
3627         * dwarf2out.c: Likewise.
3628         * et-forest.h: Likewise.
3629         * flow.c: Likewise.
3630         * fold-const.c: Likewise.
3631         * function.h: Likewise.
3632         * gcov-io.h: Likewise.
3633         * gcov.c: Likewise.
3634         * gcse.c: Likewise.
3635         * genautomata.c: Likewise.
3636         * ggc-common.c: Likewise.
3637         * ggc-page.c: Likewise.
3638         * loop-unroll.c: Likewise.
3639         * loop-unswitch.c: Likewise.
3640         * loop.c: Likewise.
3641         * mips-tfile.c: Likewise.
3642         * optabs.c: Likewise.
3643         * ra-build.c: Likewise.
3644         * ra-colorize.c: Likewise.
3645         * ra-rewrite.c: Likewise.
3646         * ra.h: Likewise.
3647         * regmove.c: Likewise.
3648         * reload.c: Likewise.
3649         * rtlanal.c: Likewise.
3650         * sched-ebb.c: Likewise.
3651         * sched-int.h: Likewise.
3652         * sched-vis.c: Likewise.
3653         * sreal.c: Likewise.
3654         * ssa-ccp.c: Likewise.
3655         * ssa.c: Likewise.
3656         * toplev.c: Likewise.
3657         * tree-inline.c: Likewise.
3658         * value-prof.c: Likewise.
3659         * value-prof.h: Likewise.
3661 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
3663         * rtl.h (emit_line_note_after): Remove.
3664         (emit_note_copy_after, emit_note_copy): New.
3665         * emit-rtl.c (reorder_insns_with_line_notes): Replace
3666         emit_line_note_after with emit_note_copy_after.
3667         (emit_insn_after_with_line_notes): Likewise.
3668         (emit_line_note_after): Kill.
3669         (emit_note_copy_after): New.
3670         (emit_note_copy): New.
3671         * function.c (emit_return_into_block): Use emit_note_copy_after.
3672         (thread_prologue_and_epilogue_insns): Likewise.
3673         * integrate.c (expand_inline_function): Use emit_note_copy.
3674         (copy_insn_list): Likewise.
3675         * unroll.c (copy_loop_body): Likewise.
3676         * cfglayout.c (duplicate_insn_chain): Likewise.
3678 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
3680         * c-tree.h (define_label): Replace filename and lineno arguments
3681         with a location_t.
3682         * c-decl.c (poplevel): Adjust define_label call.
3683         (pop_label_level): Likewise.
3684         (define_label): Replace filename and lineno arguments with a
3685         location_t.
3686         (store_parm_decls): Use DECL_SOURCE_LOCATION.
3687         * c-parse.in (label): Adjust define_label call.
3689 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
3691         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
3692         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
3693         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
3694         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
3695         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
3697 2003-07-01  Andreas Jaeger  <aj@suse.de>
3699         * final.c: Convert prototypes to ISO C90.
3700         * flow.c: Likewise.
3701         * flags.h: Likewise.
3702         * gcov-io.c: Likewise.
3703         * gcov-io.h: Likewise.
3705 See ChangeLog.9 for earlier changes.