configure.ac: GCC_NO_EXECUTABLES was supposed to be commented in the patch from 3...
[official-gcc.git] / gcc / ChangeLog
bloba0055d88476418e71458f840b5817199f2ae7361
1 2003-08-17  Roger Sayle  <roger@eyesopen.com>
3         * simplify-rtx.c (associative_constant_p): New function to test
4         whether an RTX expression is an immediate constant.
5         (simplify_associative_operation): New function to perform some
6         reassociation optimizations of associative binary expressions.
7         (simplify_binary_operation): Use simplify_associative_operation
8         to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
9         Floating point expressions are only reassociated when unsafe
10         math optimizations are permitted.
12 2003-08-17  Andreas Jaeger  <aj@suse.de>
14         * config/alpha/alpha.md: Remove usage of PARAMS.
16         * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
17         * config/i386/i386-interix.h: Likewise.
18         * config/i386/winnt.c: Likewise.
19         * config/i386/cygming.h: Likewise.
20         * config/i386/cygwin2.c: Likewise.
21         * config/darwin.c: Likewise.
22         * config/darwin-c.c: Likewise.
23         * config/darwin-protos.h: Likewise.
24         * config/darwin.h: Likewise.
25         * config/s390/s390-protos.h: Likewise.
26         * config/s390/s390.c: Likewise.
27         * config/ia64/ia64.c: Likewse
28         * config/ia64/ia64-protos.h: Likewise.
29         * config/ia64/ia64-c.c: Likewise.
31 2003-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
33         * config/sparc/sparc.c: Convert to ISO C.
35         * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
36         * config/sparc/sparc.c: Likewise.
38 2003-08-16  Nathan Sidwell  <nathan@codesourcery.com>
40         PR c++/11512
41         * stmt.c (expand_expr_stmt_value): Don't warn about any void
42         typed expression.
44 2003-08-16  Jan Hubicka  <jh@suse.cz>
46         * i386.c (ix86_fntype_regparm): Rename from ...
47         (ix86_function_regparm): ... this one; add fastcall and local
48         functions.
49         (ix86_function_ok_for_sibcall): Update.
50         (ix86_return_pops_args): Likewise.
51         (init_cumulative_args): Likewise.
52         (x86_can_output_mi_thunk): Likewise.
53         (function_arg): Fix formating.
54         (x86_this_parameter): Fix fastcall.
55         (x86_output_mi_thunk): Likewise.
57         * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
58         body as reachable; mark nested functions as needed too.
59         (dump_cgraph): Do not output global.calls.
60         * cgraph.h (cgraph_global_info): Kill.
61         * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
62         (record_call_1): Speedup.
63         (cgraph_analyze_function): Break out from ...; compute inlining
64         parameters.
65         (cgraph_finalize_compilation_unit): ... here.
66         (cgraph_mark_inline): Kill computation of calls.
67         (cgraph_decide_inlining): Do not compute most of initial values.
69 2003-08-14  Roger Sayle  <roger@eyesopen.com>
71         * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
72         to negate if either operand is easy to negate, if we don't care
73         about sign-dependent rounding.
74         (negate_expr): Make the logic to negate a REAL_CST explicit.
75         Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
76         that's easy to negate, if we don't honor sign-dependent rounding.
77         (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
78         negate, and the symmetric A * -B as -A * B if A is easy to negate.
79         (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
80         -C/D if B and C are cheap to negate.  Add an explicit rule to
81         optimize X/-1.0 as -X when we don't care about signaling NaNs.
83 2003-08-14  Zack Weinberg  <zack@codesourcery.com>
85         * Makefile.in (tm_file): Rename tm_include_list.
86         (tm_p_file): Rename tm_p_include_list.
87         (build_xm_file): Rename build_xm_include_list.
88         (host_xm_file): Rename host_xm_include_list.
89         (xm_file): Rename xm_include_list.
90         (xm_file_list): Add to be substituted.
91         (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
92         Update to match.
93         (bt-load.o): Add missing dependency on $(TM_H).
94         * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
95         For each of tm_file, tm_p_file, xm_file, host_xm_file, and
96         build_xm_file, generate both *_file_list and *_include_list
97         values from it.  (xm_file_list was formerly not being generated.)
98         In *_include_list, prefix the names of all headers found in
99         $(srcdir)/config with config/.  In each loop, consider only
100         the special case files that can actually appear in that list.
101         AC_SUBST all *_file_list and all *_include_list variables; do
102         not AC_SUBST the plain *_file variables.
103         * configure: Regenerate.
105 2003-08-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
107         * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
109 2003-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
111         * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
112         direct calls.
113         (attr_length_call): Include it here.  Improve length estimate for
114         local calls.
115         (output_call): Use targetm.binds_local_p.
117 2003-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
119         * builtins.c (CASE_MATHFN): New helper macro.
120         (mathfn_built_in): Simplify and sort.
122         * protoize.c (substr): Delete, callers changed to `strstr'.
124 2003-08-13  Zack Weinberg  <zack@codesourcery.com>
126         * config.gcc (iq2000*-*-elf*): Don't set xm_file.
127         * config/iq2000/xm-iq2000.h: Delete file.
129 2003-08-13  Geoffrey Keating  <geoffk@apple.com>
131         * gengtype.c (walk_type): Process a subobject before processing
132         the pointer that points to the subobject.
134 2003-08-13  Per Bothner  <pbothner@apple.com>
136         * regclass.c (init_reg_modes):  Make non-static.
137         Rename to init_reg_modes_once per new naming convention.
138         (init_regs):  Don't call init_reg_modes here.
139         * emit-rtl.c (init_emit_once):  Call init_reg_modes_once here instead.
140         * rtl.h (init_reg_modes_once):  New declaration.
141         * toplev.c (backend_init):  Call init_regs after init_emit_once.
143 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
145         * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
146         special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
148 2003-08-13  J"orn Rennecke <joern.rennecke@superh.com>
150         * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
151         * sh.md (load_ra): Change insn predicate to TARGET_SH1.
153 2003-08-13  Dale Johannesen  <dalej@apple.com>
155         * config/rs6000/rs6000.md (ctrsi, ctrdi):  Reenable
156         handling of decrement-and-branch farther than 32 bits.
158 2003-08-12  Kelley Cook  <kelleycook@wideopenwest.com>
160         * configure.in (make_compare_target): Move test to ...
161         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
162         * configure: Regenerate.
164 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
166         * config/mips/iris6.h: Convert to C90 prototypes.
167         * config/mips/irix6-libc-compat.c: Likewise.
168         * config/mips/mips-protos.h: Likewise.
169         * config/mips/mips.c: Likewise.
171 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
173         fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.  Enable
174         for selected machines.  Comment heavily.
175         fixinc/fixincl.x: Rebuild.
176         fixinc/tests/base/fs/rfs/rf_cache.h: New file.
178 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
180         * config/mips/mips.h: Tweak various comments.
181         * config/mips/mips.c: Likewise.
183 2003-08-11  James E Wilson  <wilson@tuliptree.org>
185         PR optimization/11319
186         PR target/10021
187         * alias.c (find_base_value, case REG): Return 0 not src if no base
188         found.
190 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
192         * gcse.c (gmalloc): Fix last change.
194 2003-08-11  Roger Sayle  <roger@eyesopen.com>
196         * simplify-rtx.c (simplify_binary_operation): Replace calls to
197         gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
198         and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
199         gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
201 2003-08-11  Roger Sayle  <roger@eyesopen.com>
203         * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
204         * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
205         typecode for an ABS_EXPR.
207         * doc/c-tree.texi: Document ABS_EXPR.
209 2003-08-11  Roger Sayle  <roger@eyesopen.com>
211         * fold-const.c (fold): Optimize any associative floating point
212         operator with -funsafe-math-optimizations, not just MULT_EXPR.
214 2003-08-11  Kaz Kojima  <kkojima@gcc.gnu.org>
216         * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
217         information in SHmedia case too.
218         (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
219         Likewise.
220         (__set_fpscr): Use an access via GOT for PIC case.
222 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
224         * configure.in (intermodule): Make switch test more portable.
225         * configure: Regenerate.
227 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
229         * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
230         (restrap): Likewise.
232 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
234         * gcse.c (gmalloc): Argument is a size_t.  Add ATTRIBUTE_MALLOC.
235         (grealloc): Size argument is a size_t.
236         (gcalloc): New function.  Use throughout in lieu of
237         gmalloc/memset.
239         * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
240         xmalloc/memset.
241         * config/ia64/ia64.c (ia64_reorg): Likewise.
242         * conflict.c (conflict_graph_new): Likewise.
243         * fixinc/fixincl.c (run_compiles): Likewise.
244         * genattrtab.c (optimize_attrs): Likewise.
245         * genrecog.c (new_decision): Likewise.
246         * haifa-sched.c (schedule_block): Likewise.
247         * hashtable.c (ht_create): Likewise.
249 2003-08-11  Bob Wilson  <bob.wilson@acm.org>
251         * config/xtensa/lib2funcs.S: Fix whitespace.
252         * config/xtensa/xtensa.md (all insns and expanders): Use brace block
253         syntax where appropriate.  Remove unnecessary backslash escapes.
254         Reformat comments and fix some code formatting.
255         (extendqisi2): Rearrange conditional.
256         (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
257         *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
258         of fatal_insn.
260 2003-08-11  Richard Sandiford  <rsandifo@redhat.com>
262         * config/mips/mips.c: Various formatting fixes.
263         (override_options): Resync -mtune handling with gas.
264         (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
265         * config/mips/mips.h: More formatting fixes.
266         (mips_abi): Move declaration.
267         * config/mips/mips.md (exception_receiver): Add mode to
268         unspec_volatile.
270 2003-08-11  Aldy Hernandez  <aldyh@redhat.com>
272         * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
273         evsplatfi here.
274         (bdesc_1arg): Remove evsplati and evsplatfi.
276 2003-08-11  J"orn Rennecke <joern.rennecke@superh.com>
278         * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
279         into account.
281 2003-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
283         * builtins.c (expand_builtin_strcat): Optimize constant strings.
285 2003-08-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
287         * pretty-print.c (pp_base_indent): Rename from pp_indent.
288         * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
289         (struct c_pretty_print_info): Add more fields.
290         (pp_c_left_paren): Move to c-pretty-print.c.
291         (pp_c_right_paren): Likewise.
292         (pp_c_left_brace): Likewise.
293         (pp_c_right_brace): Likewise.
294         (pp_c_left_bracket): Likewise.
295         (pp_c_right_bracket): Likewise.
296         (pp_c_declarator): Declare.
297         (pp_c_direct_declarator): Likewise.
298         (pp_c_specifier_qualifier_list): Likewise.
299         (pp_c_type_id): Likewise.
300         * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
301         (pp_c_type_qualifier_list): New.
302         (pp_c_pointer): Likewise.
303         (pp_c_parameter_type_list): Likewise.
304         (pp_c_function_definition): Likewise.
305         (pp_c_id_expression): Likewise.
306         (pp_c_simple_type_specifier): Tidy.
307         (pp_c_unary_expression): Likewise.
308         (pp_c_expression): Likewise.
309         (pp_c_pretty_printer_init): Likewise.
310         (pp_c_specifier_qualifier_list): Rework..
311         (pp_c_abstract_declarator): Likewise.
312         (pp_c_postfix_expression): Likewise.
313         (pp_c_primary_expression): Likewise.
314         (pp_c_cast_expression): Likewise.
315         (pp_c_direct_abstract_declarator): Likewise.
316         (pp_c_storage_class_specifier): Likewise.
317         (pp_c_function_specifier): Likewise.
318         (pp_c_declaration_specifiers): Likewise.
319         (pp_c_direct_declarator): Likewise.
320         (pp_c_declarator): Likewise.
321         (pp_c_declaration): Likewise.
322         (pp_c_statement): Likewise.
323         (pp_c_integer_constant): Rename from pp_c_integer_literal.
324         (pp_c_character_constant): Rename from pp_c_character_literal.
325         (pp_c_bool_constant): Rename from pp_c_bool_literal.
326         (pp_c_enumeration_constant): Rename from pp_c_enumerator.
327         (pp_c_floating_constant): Rename from pp_c_real_literal.
328         (pp_c_constant): Rename from pp_c_literal.
329         * c-lang.c: Include diagnostic.h and c-pretty-print.h
330         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
331         (c_initialize_diagnostics): New.
332         * Makefile.in (c-lang.o): Update dependency.
334 2003-08-10  Nathan Sidwell  <nathan@codesourcery.com>
336         * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
338 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
340         * config/mips/mips.c (mips_no_mips16_string): Remove.
341         (override_options): Don't handle -mips16 as part of -mipsN.
342         * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
343         (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
344         (TARGET_OPTIONS): Remove -mno-mips16.
346 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
348         * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
349         (coprocessor2_operand): Likewise.
350         * config/mips/mips.c (STAB_CODE_TYPE): Remove.
351         (lookup_name): Remove declaration.
352         (abort_with_insn): Remove.  Replace all uses with fatal_insn.
353         (mips16, mips_abicalls): Remove.
354         (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
355         (arith32_operand, large_int, true_reg_or_0_operand): Remove.
356         (coprocessor_operand, coprocessor2_operand): Remove.
357         (override_options): Don't set mips16 or mips_abicalls.
358         (print_operand): Don't expect SIGN_EXTEND operands.
359         (mips_secondary_reload_class): Likewise.
360         (mips_output_conditional_branch): Remove disabled long-branch code.
361         * config/mips/mips.h (call_used_regs): Remove declaration.
362         (may_call_alloca): Likewise.
363         (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
364         (mips_abicalls, mips16): Remove declarations.
365         (ASM_FINAL_SPEC, LIB_SPEC): Remove.
366         (CC1_SPEC): Remove outdated comment.
367         (MIPS_VERSION, MACHINE_TYPE): Remove.
368         (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
369         (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
370         (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
371         (PUSH_ROUNDING): Likewise.
372         (ASSEMBLER_SCRATCH_REGNUM): Remove.
373         * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
374         and mips16 with TARGET_MIPS16.
376 2003-08-09  Per Bothner  <pbothner@apple.com>
378         * cppinit.c (cpp_read_main_file):  Split out source-independent
379         initialization to separate function ...
380         (cpp_post_options):  New function.
381         * cppfiles.c (cpp_stack_file):  Rename public name to ...
382         (_cpp_stack_file):  New internal function name.
383         * cpplib.h:  Update accordingly.
384         * cppinit.c:  (cpp_create_reader):  Initialize cpp_readers line here.
385         (cpp_read_main_file):  Don't initialize line here.
386         * c-opts.c (c_common_post_options):  Call cpp_post_options.
387         (c_common_parse_file):  Call cpp_read_main_file, not cpp_stack_file.
388         * fix-header.c (read_scan_file):  Call cpp_post_options.
390 2003-08-09  Per Bothner  <per@bothner.com>
392         * c-decl.c (SCOPE_LIST_APPEND):  Remove bogus line continuation.
394 2003-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
396         * pa.c (pa_asm_output_mi_thunk): Fix typo.
398 2003-08-09  Neil Booth  <neil@daikokuya.co.uk>
400         PR preprocessor/11839
401         * cppfiles.c (open_file): Handle ENOTDIR.
403 2003-08-09  Richard Sandiford  <rsandifo@redhat.com>
405         PR target/11699
406         * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
408 2003-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
410         * pa.md (extzv, extv, insv): Fix operand limit checks.  Fail if
411         source/destination is not a register operand.
413 2003-08-08  Richard Henderson  <rth@redhat.com>
415         PR target/11535
416         * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
417         RETURN_ADDRESS_POINTER_REGNUM.
418         (ia64_expand_prologue): Don't frob it.
419         (ia64_output_function_epilogue): Likewise.
420         (ia64_return_addr_rtx): New.
421         (ia64_split_return_addr_rtx): New.
422         * config/ia64/ia64-protos.h: Update.
423         * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
424         (RETURN_ADDRESS_POINTER_REGNUM): Remove.
425         (GENERAL_REGNO_P): Don't check it.
426         (AR_*_REGNUM): Renumber.
427         (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
428         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
429         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
430         (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
431         (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
432         * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
433         (movdi_ret_addr): New.
435 2003-08-08  Geoffrey Keating  <geoffk@apple.com>
437         * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
439 2003-08-08  Roger Sayle  <roger@eyesopen.com>
441         * tree.h (get_identifier) Define a macro form of get_identifier
442         that calls get_identifier_with_length when the string is constant.
443         (get_identifier_with_length): Change type of second argument to
444         size_t in prototype.
445         * stringpool.c (get_identifier): Undefine the macro before giving
446         the function definition.
447         (get_identifier_with_length): Change  type of second argument to
448         size_t in function definition.
449         * hashtable.c (calc_hash): Change type of second argument to size_t.
450         (ht_lookup): Change type of third argument to size_t.  Reorganize
451         to speed-up the cases where the hash table slot is empty, or the
452         first probe matches (i.e. there isn't a collision).
453         * hashtable.h (ht_lookup): Adjust function prototype.
455 2003-08-08  Bernardo Innocenti  <bernie@develer.com>
457         PR target/9697
458         PR target/11777
459         * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
461 2003-08-08  Neil Booth  <neil@daikokuya.co.uk>
463         * common.opt: Add debug switches.
464         * flags.h (use_gnu_debug_info_extensions): Boolify.
465         * opts.c (write_symbols, debug_info_level,
466         use_gnu_debug_info_extensions): Move from toplev.c.
467         (set_debug_level): New.
468         (common_handle_options): Handle debug switches.
469         (print_help): Display target options directly.
470         * toplev.c (debug_hooks): Don't initialize.
471         (write_symbols, debug_info_level,
472         use_gnu_debug_info_extensions): Move to opts.c.
473         (debug_args, display_help, decode_g_option): Remove.
474         (process_options): Set no debug if level zero here,
475         and no-debug-hooks.  Error here if impossible debug format selected.
476         * toplev.h (display_help, decode_g_option): Remove.
478 2003-08-08  Richard Sandiford  <rsandifo@redhat.com>
480         * tree.c (get_file_function_name_long): Fix size of alloca() area.
482 2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>
484         * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
485         and gcc_cv_prog_cmp_skip.
486         * configure: Regenerate.
488 2003-08-08  Stan Cox  <scox@redhat.com>
490         * config/iq2000: New port.
491         * config.gcc (iq2000-*-elf): Added.
492         * doc/install.texi (Specific):  Add iq2000 description.
494 2003-08-08  Andreas Schwab  <schwab@suse.de>
496         * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
497         and insert missing empty argument.
498         * configure: Regenerate.
500 2003-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
502         * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
503         (attr_length_millicode_call): Likewise.
504         (attr_length_call): Likewise.  Revise some maximum insn lengths.
505         (attr_length_indirect_call): Likewise.
506         (output_call): Fix thinko that added extra nop.
507         * pa.h (IN_NAMED_SECTION_P): Define.
509         PR c++/11712
510         * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
511         __STDC_EXT__ when using C++ dialect.
513 2003-08-07  J"orn Rennecke <joern.rennecke@superh.com>
515         * sh.c (calc_live_regs): If the return address pointer is live,
516         force pr live.
517         (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
518         for saves / restores.
519         (sh_expand_epilogue): If sh_media_register_for_return returns a
520         register number, flag the instructions that restores PR_MEDIA_REG
521         as possibly dead.
522         Remove dead update of offset.
523         (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
524         we can use the result of get_hard_reg_initial_val.
525         * sh.md (UNSPEC_RA): New constant.
526         (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
527         (load_ra).  Handle UNSPEC_RA.
528         (sibcall_media): Use PR_MEDIA_REG.
530         * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
531         * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
532         needs saving on SHmedia.
534 2003-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
536         * config/s390/s390.md: Replace all occurrences of \\t with \t.
538 2003-08-07  Richard Sandiford  <rsandifo@redhat.com>
540         * local-alloc.c (combine_regs): Fix comment typo.
542 2003-08-06  Zack Weinberg  <zack@codesourcery.com>
544         * c-decl.c (builtin_decls): Replace with first_builtin_decl
545         and last_builtin_decl.
546         (c_init_decl_processing): Initialize both.
547         (c_reset_state): Iterate from first_builtin_decl to
548         last_builtin_decl inclusive to reintroduce builtins.
550 2003-08-06  David Mosberger  <davidm@hpl.hp.com>
552         * doc/extend.texi (Function Attributes): Document the IA-64 version
553         of the "model" attribute.
555         * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
556         (SYMBOL_REF_SMALL_ADDR_P): Ditto.
557         (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
559         * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
560         (ia64_encode_section_info): Likewise.
561         (ia64_attribute_table): Add "model" attribute.
562         (TARGET_ENCODE_SECTION_INFO): Define.
563         (small_addr_symbolic_operand): New function.
564         (got_symbolic_operand): Return 0 for a symbolref to an object
565         in the small address area.
566         (enum ia64_addr_area): New type.
567         (small_ident1): New variable.
568         (small_ident2): Likewise.
569         (init_idents): New function.
570         (ia64_get_addr_area): Likewise.
571         (ia64_encode_addr_area): Likewise.
572         (ia64_encode_section_info): Likewise.
573         (ia64_expand_load_address): For symbolic references to objects in
574         the small-address-area, load the address via gen_rtx_SET() (which,
575         eventually, will expand into "addl").
577 2003-08-06  Per Bothner  <pbothner@apple.com>
579         * line-map.h (fileline):  New typedef.
580         (struct line_map, linemap_add, linemap_lookup):  Use it.
581         * input.h (struct location_s):  Comment notes that long-term we want
582         to replace it by fileline.
584 2003-08-06  J"orn Rennecke <joern.rennecke@superh.com>
586         Fix SHcompact exception handling:
587         * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
588         by the prologue, return a MEM with return_address_pointer_rtx
589         as address.
590         * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
591         (RETURN_ADDR_OFFSET): Don't define.
592         (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
593         registers that are visible in compact mode.  Show that SHmedia
594         registers still exist in compact mode, even if there are not
595         readily accessible.
596         (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
597         if GLOBAL.  Use DW_EH_PE_textrel (nominally) for CODE,
598         and DW_EH_PE_pcrel for pic data.
599         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
600         set SYMBOL_FLAG_FUNCTION in symbol, and actually use
601         DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
602         (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
603         * sh.md (movsi_media-1): New splitter.
605 2003-08-06  Graeme Peterson <gp@qnx.com>
607         * config/i386/nto.h: New.
608         * config/i386/t-nto: New.
609         * config.gcc (i[34567]86-*-nto-qnx*): New.
611 2003-08-06  Phil Edwards  <pme@gcc.gnu.org>
613         * doc/install.texi (*-*-solaris2*):  Refine configure instructions.
615 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
617         * calls.c (load_register_parameters): Arrange for call_fusage to
618         report the whole register as used when shifting to the msb.
620 2003-08-05  Roger Sayle  <roger@eyesopen.com>
622         * builtins.c (expand_builtin): When not optimizing, call the library
623         function for all builtins that have library functions (except alloca).
625 2003-08-05  Alexandre Oliva  <aoliva@redhat.com>
627         * c.opt: Introduce -fworking-directory.
628         * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
629         * c-common.h (flag_working_directory): Declare.
630         * c-common.c (flag_working_directory): Define.
631         * c-opts.c (c_common_handle_options): Set it.
632         (sanitize_cpp_opts): Set...
633         * cpplib.h (struct cpp_options): ... working_directory option.
634         (struct cpp_callbacks): Add dir_change.
635         * cppinit.c (read_original_filename): Call...
636         (read_original_directory): New.  Look for # 1 "directory//"
637         and process it.
638         (cpp_read_main_file): Call dir_change callback if working_directory
639         option is set.
640         * gcc.c (cpp_unique_options): Pass -g*.
641         * c-lex.c (cb_dir_change): New.
642         (init_c_lex): Set dir_change callback.
643         * toplev.c (src_pwd): New static variable.
644         (set_src_pwd, get_src_pwd): New functions.
645         * toplev.h (get_src_pwd, set_src_pwd): Declare.
646         * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
647         * dwarf2out.c (gen_compile_unit_die): Likewise.
648         * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
650 2003-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
652         * pretty-print.h (pp_set_line_maximum_length): Make macro.
653         (pp_set_prefix): Likewise.
654         (pp_destroy_prefix): Likewise.
655         (pp_remaining_character_count_for_line): Likewise.
656         (pp_clear_output_area): Likewise.
657         (pp_formatted_text): Likewise.
658         (pp_last_position_in_text): Likewise.
659         (pp_emit_prefix): Likewise.
660         (pp_append_text): Likewise.
661         (pp_flush): Likewise.
662         (pp_format_text): Likewise.
663         (pp_format_verbatim): Likewise.
664         (pp_tree_identifier): Tidy.
665         * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
666         (pp_base_format_verbatim): Rename from pp_format_verbatim.
667         (pp_base_flush): Rename from pp_flush.
668         (pp_base_set_line_maximum_length): Rename from
669         pp_set_line_maximum_length.
670         (pp_base_clear_output_area): Rename from pp_clear_output_area.
671         (pp_base_set_prefix): Rename from pp_set_prefix.
672         (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
673         (pp_base_emit_prefix): Rename from pp_emit_prefix.
674         (pp_base_append_text): Rename from pp_append_text.
675         (pp_base_formatted_text): Rename from pp_formatted_text.
676         (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
677         (pp_base_remaining_character_count_for_line): Rename from
678         pp_remaining_character_count_for_line.
679         * diagnostic.h (diagnostic_format_decoder): Tidy.
680         (diagnostic_flush_buffer): Likewise.
681         * c-pretty-print.h: (pp_c_string_literal): Declare.
682         (pp_c_real_literal): Likewise.
683         (pp_c_integer_literal): Likewise.
684         * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
685         pp_identifier.
686         (pp_c_character_literal): Tidy.
687         (pp_c_string_literal): Make public.
688         (pp_c_bool_literal): Likewise.
689         (pp_c_integer_literal): Likewise.
690         (pp_c_real_literal): Likewise.
692         * Makefile.in (C_PRETTY_PRINT_H): New variable.
693         (c-pretty-print.o): Update dependence.
695 2003-08-05  Chris Demetriou  <cgd@broadcom.com>
697         * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
698         ".set nomacro" state.
699         (fix_truncsfsi2_macro): Likewise.
701 2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
703         * tree.h (DID_INLINE_FUNC): Remove macro.
704         (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
705         add tree check for FUNCTION_DECL.
706         (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
707         (struct tree_decl): Rename inlined_function_flag to
708         declared_inline_flag.
709         * c-common.h (c_lang_decl): Remove.
710         (DECL_ESTIMATED_INSNS): Remove.
711         * c-tree.h (struct lang_decl): Don't include c_lang_decl.
712         (DECL_DECLARED_INLINE_P): Remove.
713         * c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
714         do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
715         (finish_function): Make uninlinable a bool.  Fixup call to
716         tree_inlinable_function_p() and fix some code style issues.
717         * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
718         * cgraph.c (dump_cgraph): Likewise.
719         * cgraphunit.c (cgraph_decide_inlining): Likewise
720         (cgraph_finalize_compilation_unit): Likewise.
721         Also update call to tree_inlinable_function_p().
722         (cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
723         look at DECL_DECLARED_INLINE and reverse logic.
724         * print-tree.c (print_node): Likewise.
725         * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
726         * tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
727         prototype.
728         * tree-inline.c (inlinable_function_p): Split up in this function to
729         check for basic inlining inhibiting conditions, and new
730         limits_allow_inlining() function.  Warn if inlining is impossible
731         because the inline candidate calls alloca or uses sjlj exceptions.
732         (limits_allow_inlining): this new function to check if the inlining
733         limits are satisfied.  Throttle from currfn_max_inline_insns, not from
734         MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
735         MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
736         Update prototypes.
737         (tree_inlinable_function_p): Make a bool.  Update call to
738         inlinable_function_p
739         (expand_call_inline): Use limits_allow_inlining() when not in
740         unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
741         instead see if the function was declared `inline'.
743 2003-08-05  Josef Zlomek  <zlomekj@suse.cz>
745         * gcse.c (try_replace_reg): Fix updating of note.
747 2003-08-04  Roger Sayle  <roger@eyesopen.com>
749         PR middle-end/11771
750         * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
751         logic in negate_expr, i.e. we don't invert (A-B) for floating
752         point types unless flag_unsafe_math_optimizations.
754 2003-08-04  Roger Sayle  <roger@eyesopen.com>
756         * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
757         Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
758         for floating point expressions with -ffast-math.
759         (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
760         * expmed.c (expand_mult): Wrap long line.  Expand x*2.0 as x+x.
762 2003-08-04  Roger Sayle  <roger@eyesopen.com>
764         * c-common.c (flag_noniso_default_format_attributes): Delete.
765         (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
766         (c_attrs_initialized): Delete.
767         (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
768         always call c_init_attributes.
769         (c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
770         set c_attrs_initialized when done.
771         (c_common_insert_default_attributes): Delete.
772         * c-common.h (flag_noniso_default_format_attributes): Delete.
773         (c_coomon_insert_default_attributes): Delete prototype.
774         * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
775         flag_noniso_default_format_attributes.
777         * c-decl.c (c_insert_default_attributes): Delete.
778         * c-tree.h (c_insert_default_attributes): Delete prototype.
780         * attribs.c (decl_attributes): Don't call insert_default_attributes
781         langhook.  Update function description comment.
782         * langhooks.h (lang_hooks): Remove insert_default_attributes field.
783         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
784         * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
785         * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
787         * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
788         define.
790 2003-08-04  Richard Sandiford  <rsandif@redhat.com>
792         * config/mips/mips.c (override_options): Disable -G on targets that
793         have no .section support.
794         (mips_select_section): Use default_select_section for such targets.
796 2003-08-04  Nathanael Nerode  <neroden@gcc.gnu.org>
798         * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
799         * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
800         * fixinc/fixincl.x: Rebuild.
801         * fixinc/tests/base/regexp.h: New test.
803 2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
805         * c-ppoutput.c (cb_line_change): Don't skip line changing while
806         parsing macro arguments in the top-level context.
808 2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
810         * config.in: Remove HAVE_LSTAT.
811         * configure, configure.in: Don't test for lstat.
813 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
815         * opts.c (decode_options): Do language-specific initialization for
816         the global diagnostic context.
817         * langhooks-def.h (lhd_initialize_diagnostics): Declare.
818         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
819         (LANG_HOOKS_INITIALIZER): Adjust.
820         * langhooks.h (struct lang_hooks): Add new field
821         initialize_diagnostics.
822         * langhooks.c (lhd_initialize_diagnostics): Define.
824 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
826         * pretty-print.h:   Adjust macro definitions.
827         * pretty-print.c (pp_newline): Rename to pp_base_newline.
828         (pp_character): Rename to pp_base_character.
829         (pp_string): Rename to pp_base_string.
830         * c-pretty-print.c (pp_buffer): Move to pretty-print.h
831         (pp_newline):  Likewise.  Adjust.
832         (pp_c_char): Adjust.
834 2003-08-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
836         * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
837         BUILT_IN_LLABS): Move to miscellaneous section.
839 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
841         PR preprocessor/11534
842         * cppexp.c (parse_defined): Warn only if -pedantic.
844 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
846         * cppfiles.c (stack_file): Use file path.
848 2003-08-02  Roger Sayle  <roger@eyesopen.com>
850         * builtin-types.def (BT_SSIZE): New primitive type.
851         (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
852         BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
853         BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
854         BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
855         * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
856         BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
857         BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
858         * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
859         few functions that define default attributes using it.
860         * c-common.c (c_common_insert_default_attributes): Do nothing.
862         * doc/extend.texi: Document these "new" builtins.
864 2003-08-02  Kaz Kojima  <kkojima@gcc.gnu.org>
866         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
867         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
868         when -mieee-fp set and -shared not set.
869         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
871 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
873         * cppfiles.c (struct _cpp_file): Rename once_only_next to
874         next_file.  Remove import and pragma_once, add once_only.
875         (find_file): Add new file structures to the all_files list.
876         (should_stack_file): Mark #import-ed files once-only, and
877         don't stack them if the file has already been stacked.
878         (_cp_mark_file_once_only): Simplify.
879         * cpphash.h (struct cpp_reader): Rename once_only_files
880         to all_files.  Rename saw_pragma_once to seen_once_only.
881         (_cpp_mark_file_once_only): Update prototype.
882         * cpplib.c (do_pragma_once): Update.
884 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
886         * cppfiles.c (ENOTDIR): Remove.
887         (open_file_in_dir): Rename find_file_in_dir.  Handle errors
888         other than ENOENT here.
889         (once_only_file_p): Rename should_stack_file.
890         (find_file, open_file_failed, read_file_guts): Report errors
891         with full path name.
892         (read_file): Move pch handling to should_stack_file.
893         (should_stack_file): Handle PCH and once-only issues, and
894         reading the file.
895         (stack_file): Don't do file reads.
897 2003-08-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
899         * libgcov.c (gcov_exit): Cleanup and fix.
900         * profile.c (compute_value_histograms): Don't try to read profiles
901         that are not present.
903 2003-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
905         * builtins.def: Categorize.
907         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
908         Mind fp rounding.
909         (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
911 2003-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
913         * config.gcc: Enable posix threads by default on darwin.
915 2003-08-01  Jakub Jelinek  <jakub@redhat.com>
917         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
918         even if nehedges1 is 0.
920 2003-08-01  Nathanael Nerode  <neroden@gcc.gnu.org>
922         * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
923         fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
924         fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
925         and defintions.
927         * fixinc/inclhack.def (broken_cabs): Make matching more generous.
928         * fixinc/fixincl.x: Regenerate.
929         * fixinc/tests/base/math.h: Regenerate to match test_text change.
931 2003-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
933         * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
935 2003-08-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
937         * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
938         for accesses to exc_ptr.
940 2003-08-01  Geoffrey Keating  <geoffk@apple.com>
942         * doc/sourcebuild.texi (Front End Directory): Don't make references
943         to libsubdir, it's not part of the interface to frontends.
944         * doc/install.texi (Configuration): Help users read faster by saying
945         that GCC's configure options are the standard autoconf ones.
946         Mention --libdir.  Update the default rules for finding the
947         assembler.  Don't use libsubdir since we haven't said what it means.
948         (Specific): In the Solaris 7 notes, update the place to put the
949         assembler.
950         * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
951         * doc/cpp.texi (Search Path): Actually, the search path
952         depends on libdir, which can relocate with cpp.
953         * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
954         now a private interface between the Makefile and the driver.
956 2003-08-01  Richard Henderson  <rth@redhat.com>
958         * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
960         * varasm.c (lookup_constant_def): New function.
961         * rtl.h (lookup_constant_def): Declare it.
962         * dwarf2out.c (loc_descriptor_from_tree): Use it.
963         Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
965 2003-08-01  Zack Weinberg  <zack@codesourcery.com>
967         * c-decl.c (gettags, pushdecl_function_level): Delete.
968         (last_function_parm_vars): Rename last_function_parm_others.
969         (current_function_parm_vars): Rename current_function_parm_others.
970         (struct c_scope): Rewrite comment explaining this data structure.
971         Add names_last, blocks_last, parms_last fields.  Rename
972         incomplete_list to incomplete.
973         (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
974         (poplevel): Ignore second argument.  No need to nreverse
975         anything.  Restructure such that each list is processed
976         exactly once.  Use 'const location_t *locus' syntactic sugar
977         variable where useful.  Issue unused variable warnings
978         ourselves, do not rely on function.c.
979         (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
980         (pushdecl_top_level): Likewise.  Don't call duplicate_decls.
981         (implicitly_declare): decl cannot be error_mark_node.
982         (undeclared_variable): Manipulate scope structure directly.
983         (c_make_fname_decl): Likewise.
984         (getdecls, c_init_decl_processing): Fix comment.
985         (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT.  No need
986         for 'last' variable.
987         (grokparms): No need to nreverse parms list.
988         (store_parm_decls_newstyle): Set up the parms_last and
989         names_last fields of the new scope too.
990         (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
991         on parms to begin with; check this under ENABLE_CHECKING.  Set
992         up parms_last.
993         (check_for_loop_decls): Refer directly to current_scope->tags.
994         Use consistent quote style in diagnostics.
995         (c_write_global_declarations): The names list is not backward.
997         * c-common.h: Don't prototype gettags.
998         * c-parse.in: Call poplevel with second argument 0 always.
1000 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1002         * builtins.def: Resort builtins.
1004 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1006         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
1007         DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
1008         Prepend "__builtin_" onto NAME with string concatenation.  Remove
1009         explicit "__builtin_" from each macro call.
1011         Reformat entire file.
1013 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1015         * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1016         ATTR_MATHFN_FPROUNDING_ERRNO): New macros.  Use throughout.
1018 2003-08-01  Andreas Krebbel  <krebbel1@de.ibm.com>
1020         * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
1021         CCL1, or CCL2 modes with floating point operations.
1023         * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
1024         "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
1025         "*subdf3_cconly"): New insns.
1026         ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
1028 2003-08-01  Neil Booth  <neil@daikokuya.co.uk>
1030         * Makefile.in: Refine dependencies.
1031         * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
1032         * c.opt: Update help for -Wimport.
1033         * cppfiles.c: Include hashtab.h.  Update comments.
1034         (stack_file): Read the file before updating dependencies.
1035         (once_only_file_p): Be smarter about marking once-only files.
1036         (_cpp_mark_file_once_only): Correct the check for existence on
1037         the list.
1038         (open_file_failed): Use name not path, which is NULL.
1039         * cpphash.h: Don't include hashtab.h.
1040         (struct _cpp_file): Remove.
1041         (struct cpp_reader): Update.
1042         * cppinit.c (cpp_create_reader): Don't initialize warn_import.
1043         * cpplib.h (struct cpp_options): Remove warn_import.
1044         (cpp_simplify_path): Remove.
1046 2003-08-01  Nathan Sidwell  <nathan@codesourcery.com>
1048         PR c++/11295
1049         * doc/extend.texi (Statement Expressions): Document C++ semantics.
1051 2003-07-31  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1053         * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
1055 2003-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1057         * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
1058         throughout.
1059         * builtins.def: Likewise.
1061 2003-07-31  Jason Merrill  <jason@redhat.com>
1063         * Makefile.in (bubblestrap): Don't require a previous full
1064         bootstrap.
1066         * expr.c (mostly_zeros_p): No longer static.
1067         * tree.h: Declare it.
1068         * stmt.c (resolve_asm_operand_names): Don't copy the pattern
1069         unless we need to do substitutions.
1071 2003-07-31  Roger Sayle  <roger@eyesopen.com>
1073         * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
1074         pow(x,c)*x as pow(x,c+1) for constant values c.  Optimize x*x
1075         as pow(x,2.0) when the latter will be expanded back into x*x.
1076         (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
1077         * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
1078         pow can never set errno when used with an integer exponent.
1079         Always use expand_powi when exponent is -1, 0, 1 or 2.
1080         (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
1081         as 1.0/(x*x).  This avoids unbounded recursion as we now prefer
1082         the pow forms of these expressions.
1084 2003-07-31  Geoffrey Keating  <geoffk@apple.com>
1086         * Makefile.in (libexecdir): New.
1087         (libsubdir): Use gcc instead of gcc-lib.
1088         (libexecsubdir): New.
1089         (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
1090         (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
1091         gcc-lib.
1092         (installdirs): Make libexecsubdir.
1093         (install-common): Put executables in libexecsubdir.
1094         (itoolsdir): Use libexecsubdir.
1095         (itoolsdatadir): New.
1096         (install-mkheaders): Separate data files and executables.
1097         (install-collect2): Put executables in libexecsubdir.
1098         (uninstall): Remove libexecsubdir.
1099         * mkheaders.in: Update for new arrangement of files.
1100         (libexecdir): New.
1101         (libexecsubdir): New.
1102         (itoolsdir): Use libexecsubdir.
1103         (itoolsdatadir): New.
1104         * gcc.c (gcc_libexec_prefix): New.
1105         (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
1106         (standard_exec_prefix_1): Use libexec.
1107         (standard_exec_prefix_2): New.
1108         (standard_libexec_prefix): New.
1109         (process_command): Update for new arrangement of files.  Compute
1110         gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
1112 2003-07-31  Nathanael Nerode  <neroden@gcc.gnu.org>
1114         * inclhack.def (stdio_va_list): Avoid bogus replacement which
1115         triggers on Interix.
1116         * fixincl.x: Regenerate.
1118 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
1120         * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
1121         SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
1123 2003-07-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1125         * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
1127 2003-07-31  Per Bothner  <pbothner@apple.com>
1129         * opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
1130         (add_input_filename):  New function.
1131         (handle_options):  Call add_input_filename directly instead of
1132         with a lang hook.
1133         * opts.h (in_fnames, num_in_fnames):  Moved here.
1134         (add_input_filename):  Declare.
1135         * c-decl.c:  Need to #include opts.h.
1136         * Makefile.in (c-decl.o):  Also depends on opts.h.
1137         * c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
1138         (c_common_handle_filename):  Replaced by add_input_filename.
1139         * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
1140         Remove.
1141         * langhooks.h (struct lang_hooks):  Remove handle_filename hook.
1142         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
1143         (LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
1144         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
1146 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1148         * combine.c (try_combine): Set JUMP_LABEL for newly created
1149         unconditional jump.
1151 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1153         * fold-const.c (fold): Fold some comparisons of bit operations.
1155 Thu Jul 31 19:49:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
1157         * cgraph.c (create_edge): Fix typo.
1158         * i386.c (pic_symbolic_operand): Reorder tests.
1160 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
1162         * doc/gcov.texi (Invoking Gcov): Describe output name mangling
1163         more fully.
1164         (Gcov Data Files): Update.
1166 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1168         * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
1169         default.
1171         * gthr-posix.c: New file.
1172         * gthr-posix.h: Define _REENTRANT if missing.
1173         Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
1175         * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
1176         by gthr-posix.o.
1177         * config/alpha/t-osf-pthread: New file.
1179         * fixinc/inclhack.def (alpha_pthread): New fix.
1180         * fixinc/fixincl.x: Regenerate.
1181         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
1183         * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
1184         warning.
1185         Fixes PR bootstrap/9330.
1187 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1189         * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
1190         without GNU ld.
1191         Update comment.
1192         * configure: Regenerate.
1194 2003-07-31  Vladimir Makarov  <vmakarov@redhat.com>
1196         * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
1197         setter.
1199 2003-07-30  Roger Sayle  <roger@eyesopen.com>
1201         * builtins.def: Alphabetize.
1203 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
1205         * doc/c-tree.texi: Normalize spellings of "lowercase" and
1206         "uppercase".
1207         * doc/cpp.texi: Likewise.
1208         * doc/md.texi: Likewise.
1209         * doc/rtl.texi: Likewise.
1210         * doc/tm.texi: Likewise.
1212 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
1214         * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
1215         (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
1216         of cc1obj.
1218 2003-07-30  Chris Demetriou  <cgd@broadcom.com>
1220         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
1221         macros before defining them.
1223 2003-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
1225         * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
1226         UNSPECV_BLOCKAGE): New constants.
1227         ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
1228         "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
1229         splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
1230         "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
1232         (all insns and expanders): Write output control string as brace block
1233         where appropriate.  Remove \-escapes for doublequote characters.
1235 Thu Jul 31 01:04:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
1237         * gcse.c (insert_store): Fix typo in previous patch.
1239 2003-07-30  Neil Booth  <neil@daikokuya.co.uk>
1241         * cppfiles.c (stack_file, open_file_failed): Use path for deps.
1243 2003-07-30  Andi Kleen  <ak@muc.de>
1245         * loop.c (check_dbra_loop): Allow LTU in the loop condition.
1247 2003-07-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1249         * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
1250         * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
1251         GCOV_N_VALUE_COUNTERS): New.
1252         * profile.c (compute_value_histograms): New static function.
1253         (branch_prob): Read back the value histograms.
1254         * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
1255         * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
1256         * value-prof.c: Add comment on reading the profile.
1257         * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
1258         * doc/invoke.texi (-fprofile-values): Document behavior with
1259         -fbranch-probabilities.
1261 2003-07-30  David Edelsohn  <edelsohn@gnu.org>
1263         * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
1265 2003-07-30  Ulrich Weigand  <uweigand@de.ibm.com>
1267         * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
1268         symbolically.
1270 Wed Jul 30 19:12:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
1272         * gcse.c (insert_store): Ignore fake edges.
1274         * c-common.c (flag_vtable_gc): Kill.
1275         * c-common.g (flag_vtable_gc): Kill.
1276         * c-opts (c_common_handle_option): Kill.
1277         * c.opt (fvtable-gc): Kill.
1278         * final.c (final_scan_insn): Do not call assemble_vtable_entry.
1279         * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1280         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1282         * invoke.texi (-ftable-gc): Kill documentation.
1284         * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
1285         just because function body is missing.
1287         * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
1289 2003-07-30  Ranjit Mathew  <rmathew@hotmail.com>
1291         * unwind-sjlj.c: Fix typo in file description.
1293 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
1295         * calls.c (load_register_parameters): When shifting reg sized values
1296         to the msb, move the value to a reg first.
1298 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
1300         * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
1301         * line-map.h (linemap_add): Update comments.
1302         * line-map.c (linemap_add): Update comments, interpret zero-length
1303         filename as "<stdin>".
1305 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
1307         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
1309 2003-07-29  Zack Weinberg  <zack@codesourcery.com>
1311         * c-decl.c (last_function_parm_vars, current_function_parm_vars):
1312         New static variables.
1313         (struct c_scope): Add parms and warned_forward_parm_decls
1314         fields; remove parm_order.
1315         (storedecls, storetags): Delete.
1316         (poplevel): Also clear bindings on the parms chain.
1317         (pushdecl): Handle forward declarations of parameters, and
1318         chain PARM_DECLs on the parms list, not the names list.
1319         (lookup_name_current_level): Check for PARM_DECLs on the parms
1320         list too.
1321         (push_parm_decl): Don't update parm_order.
1322         (clear_parm_order): Rename mark_forward_parm_decls.  Issue the
1323         warning, only once per parameter list, and set TREE_ASM_WRITTEN
1324         on the decls here.  Then move the forward decls to the names list.
1325         (grokparms): Set last_function_parm_vars.
1326         (get_parm_info): Don't use gettags or getdecls.  No need to
1327         extract non-parms from the parms list, or reorganize the parms
1328         list.  Feed nonparms back in the TREE_TYPE of the list node
1329         returned.  Issue only one error per parameter list for "void"
1330         appearing more than once in said parameter list.  Collapse
1331         parmlist_tags_warning into this function to avoid double scan
1332         of tags list.
1333         (start_function): Set current_function_parm_vars.
1334         (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
1335         directly.  Get non-parms from current_function_parm_vars; no
1336         need to extract them from the parms chain.  Properly bind tags
1337         in the new scope.
1338         (store_parm_decls_oldstyle): No need to extract non-parameters
1339         from the parms chain, nor to store them back afterward.  Move
1340         declaration to top of function, restructure code reordering
1341         DECL_ARGUMENTS.
1342         (store_parm_decls): No need to save and restore warn_shadow.
1343         * c-parse.in: Don't call parmlist_tags_warning nor
1344         clear_parm_order.  Call mark_forward_parm_decls when forward
1345         parm decls are encountered.
1346         * c-tree.h: Prototype mark_forward_parm_decls; not
1347         clear_parm_order or parmlist_tags_warning.
1349 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
1351         * c-common.c (allow_pch): Remove.
1352         * c-common.h (allow_pch): Remove.
1353         (c_common_no_more_pch): Declare.
1354         * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
1355         * c-pch.c: Include hosthooks.h.
1356         (c_common_valid_pch): Don't check allow_pch.
1357         (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
1358         (c_common_no_more_pch): New.
1359         * ggc-common.c: Include hosthooks.h.
1360         (gt_pch_save): Call gt_pch_get_address.
1361         (gt_pch_restore): Call gt_pch_use_address.
1362         * hooks.c (hook_voidp_size_t_null): New.
1363         (hook_bool_voidp_size_t_false): New.
1364         * hooks.h (hook_voidp_size_t_null): New.
1365         (hook_bool_voidp_size_t_false): New.
1366         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
1367         (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
1368         (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
1369         HOST_HOOKS_GT_PCH_USE_ADDRESS.
1370         * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
1371         gt_pch_use_address.
1372         * doc/hostconfig.texi (Host Common): Document
1373         HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
1374         * Makefile.in (c-pch.o): Depend on hosthooks.h.
1375         (ggc-common.o): Likewise.
1377         * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
1378         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
1379         (pch_address_space): New.
1380         (darwin_rs6000_gt_pch_get_address): New.
1381         (darwin_rs6000_gt_pch_use_address): New.
1383 2003-07-29  Neil Booth  <neil@daikokuya.co.uk>
1385         PR preprocessor/11569
1386         PR preprocessor/11649
1387         * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
1388         * cppfiles.c: Completely rewritten.
1389         * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
1390         struct cpp_path is now struct cpp_dir.
1391         (remove_duplicates): Don't simplify path names.
1392         * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
1393         cpp_stack_file.
1394         * cpphash.h: Include hashtab.h.
1395         (_cpp_file): Declare.
1396         (struct cpp_buffer): struct include_file is now struct _cpp_file,
1397         and struct cpp_path is now struct cpp_dir.  Rename members.
1398         (struct cpp_reader): Similarly.  New members once_only_files,
1399         file_hash, file_hash_entries, quote_ignores_source_dir,
1400         no_search_path, saw_pragma_once.  Remove all_include_files and
1401         max_include_len.  Make some members bool.
1402         (_cpp_mark_only_only): Renamed from _cpp_never_reread.
1403         (_cpp_stack_file): Renamed from _cpp_read_file.
1404         (_cpp_stack_include): Renamed from _cpp_execute_include.
1405         (_cpp_init_files): Renamed from _cpp_init_includes.
1406         (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
1407         * cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
1408         (cpp_read_next_file): Rename and move to cppfiles.c.
1409         (cpp_read_main_file): Update.
1410         * cpplib.c (run_directive): Update for renamed members.
1411         (do_include_common, _cpp_pop_buffer): Update.
1412         (do_import): Undeprecate #import.
1413         (do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
1414         * cpplib.h: Remove file_name_map_list.
1415         (cpp_options): Remove map_list.
1416         (cpp_dir): Rename from cpp_path.  New datatype for name_map.
1417         (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
1419 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
1421         * Makefile.in:  Make stamp-objdir safe for parallel builds.
1423 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
1425         * Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
1426         (info):  Depend on stmp-docobjdir.
1428 2003-07-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1430         * configure: Regenerate.
1432 Tue Jul 29 19:24:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
1434         PR C++/11131
1435         * tree-inline.c (expand_call_inline): Always call inlinable_function_p
1436         in !unit-at-a-time mode.
1438 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
1440         * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
1441         main function.
1443 2003-07-28  Mark Mitchell  <mark@codesourcery.com>
1445         PR c++/11667
1446         * c-common.c (shorten_compare): Take into account differences
1447         between C and C++ representation for enumeration types.
1448         * tree.h (set_min_and_max_values_for_integral_type): Declare.
1449         * stor-layout.c (set_min_and_max_values_for_integral_type): New
1450         function, broken out from ...
1451         (fixup_signed_type): ... here and ...
1452         (fixup_unsigned_type): ... here.
1454 2003-07-28  Zack Weinberg  <zack@codesourcery.com>
1456         * c-decl.c: Update commentary, adjust blank lines throughout.
1457         (struct c_scope): Fix indentation.  Reorder members so
1458         outer-context pointers come first, booleans last.
1459         (duplicate_decls, define_label): Use a 'locus' variable for
1460         diagnostic locations in a few more places.
1461         (warn_if_shadowing): Un-split a conditional that fits on one line.
1462         (c_init_decl_processing): No need to clear current_scope and
1463         current_function_scope.
1464         (start_decl): Merge if/else if statements with same action.
1465         (push_parm_decl): Rename old_immediate_size_expand to use
1466         save_foo convention; save/restore around entire function.
1467         (grokdeclarator): Remove unnecessary braces.
1469 2003-07-28  Hans-Peter Nilsson  <hp@bitrange.com>
1470             Michael Culbertson  <Michael.J.Culbertson@wheaton.edu>
1472         * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
1473         when warn_declaration_after_statement.  Call pedwarn_c90, not
1474         pedwarn.  Correct message: it's "ISO C90", not "ISO C89".
1475         * c-common.c (warn_declaration_after_statement): Define.
1476         * c-common.h (warn_declaration_after_statement): Declare.
1477         * c.opt (Wdeclaration-after-statement): New.
1478         * c-errors.c (pedwarn_c90): New function.
1479         * c-opts.c (c_common_handle_option) <case
1480         OPT_Wdeclaration_after_statement>: New.
1481         * c-tree.h (pedwarn_c90): Declare.
1482         * doc/invoke.texi (Option Summary): Document
1483         -Wdeclaration-after-statement.
1484         (Warning Options): Ditto.
1486 Mon Jul 28 20:13:06 CEST 2003  Jan Hubicka  <jh@suse.cz>
1488         * i386.md (memory attribute) Avoid accessing uninitialized memory
1489         for ishift1 type instructions.
1491 2003-07-28  Jakub Jelinek  <jakub@redhat.com>
1493         * configure.in (--enable-checking): Add fold category.
1494         (ENABLE_FOLD_CHECKING): Define if requested.
1495         * configure: Rebuilt.
1496         * config.in: Rebuilt.
1497         * doc/install.texi: Document it.
1498         * fold-const.c: Include md5.h.
1499         [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
1500         [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
1501         print_fold_checksum): New functions.
1503         * fold-const.c (fold): Never modify argument passed to fold, instead
1504         change a copy and return it.
1505         * convert.c (convert_to_integer): Likewise.
1507 2003-07-27  Nathanael Nerode  <neroden@gcc.gnu.org>
1509         * fixinc/fixinc.svr4: Remove dead code.  Remove now-unnecessary
1510         cleanup of junk after #else and #endif directives.  Collapse repeated
1511         clauses into for statment.
1513         * fixinc/fixincl.sh: GNU C -> GCC.  Add usage comment.
1515 2003-07-27  Zack Weinberg  <zack@codesourcery.com>
1517         * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
1518         (keep_next_if_subblocks): Rename next_is_function_body.
1519         (pushlevel): Adjust commentary.  Always set ->keep on the
1520         outermost level of a function.  Don't set ->keep_if_subblocks.
1521         (poplevel): Adjust commentary.  Don't look at ->keep_if_subblocks.
1522         (store_parm_decls): Adjust to match.
1523         (finish_function): Adjust to match.
1524         Call poplevel with all three arguments zero.
1526         * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
1527         New functions split out of store_parm_decls.
1528         Avoid unnecessary work. Use local variables consistently.
1529         (store_parm_decls): Likewise.
1531         (finish_function): No need to set functionbody flag on call to
1532         poplevel.
1533         (struct language_function): Remove scope field.
1534         (c_push_function_context, c_pop_function_context): No need to
1535         save and restore current_scope.
1537 2003-07-27  Nathan Sidwell  <nathan@codesourcery.com>
1539         * doc/extend.texi (Deprecated Features): Implicit typename is
1540         gone. Default args on types is going.
1542 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
1544         * Makefile.in (ifcvt.o): Depend on target.h
1545         * ifcvt.c (target.h): Include.
1546         (if_convert): Don't call mark_loop_exit_edges if we can't
1547         modify jumps.
1549 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1551         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
1553 2003-07-26  Richard Henderson  <rth@redhat.com>
1555         PR inline-asm/11676
1556         * cse.c (count_reg_usage): Handle asm_operands properly.
1558 2003-07-26  Roger Sayle  <roger@eyesopen.com>
1560         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
1561         (DEF_EXT_FALLBACK_BUILTIN): Delete.
1562         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
1563         the regular DEF_EXT_LIB_BUILTIN macro.
1564         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
1565         the regular DEF_LIB_BUILTIN macro.
1566         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
1567         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
1568         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
1569         DEF_EXT_LIB_BUILTIN macro.
1571         * c-decl.c (duplicate_decls): Remove code to handle builtin
1572         functions prototyped without an argument list.
1574 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
1576         * config/i386/winnt.c: Revert 2003-07-08 change.
1577         (i386_pe_section_type_flags): Remove error_with_decl here too.
1579 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1581         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
1582         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
1583         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
1584         (v850_handle_data_area_attribute): Likewise.
1586 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
1588         * varasm.c (output_constant_def_contents): Use
1589         ASM_DECLARE_CONSTANT_NAME if defined.
1590         * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
1591         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
1592         objects get at least one byte to prevent assembler problems.
1593         (ASM_DECLARE_CONSTANT_NAME): New.
1595         * Makefile.in (libbackend.o): Remove options_.h.
1596         (mostlyclean): Likewise.
1598         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
1599         insert a label at the end of an function under Mach-O.
1601         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
1603 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
1605         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
1606         equality.
1607         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
1609         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
1611 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1613         * doc/passes.texi (Passes): Mention pretty-printing and
1614         diagnostic files.
1616 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
1618         * doc/extend.texi (Function Attributes): GNU C++ does now allow
1619         unused parameter decls.
1620         (Attribute Syntax): GNU C++ does not allow label attributes to be
1621         after the ':'.
1623 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1625         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
1626         (objc_declare_class): Likewise.
1627         (error_with_ivar): Likewise.
1628         (start_class): Likewise.
1629         (warn_with_method): Likewise.
1631 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1633         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
1634         from GCC.
1635         * calls.c (try_to_integrate): Don't use xxx_with_decl.
1636         (expand_call): Likewise.
1637         * dwarfout.c (output_reg_number): Likewise.
1638         * expr.c (expand_expr): Likewise.
1639         * function.c (assign_temp): Likewise.
1640         (uninitialized_vars_warning): Likewise.
1641         (setjmp_args_warning): Likewise.
1642         (expand_function_end): Likewise.
1643         * stmt.c (fixup_gotos): Likewise.
1644         (warn_about_unused_variables): Likewise.
1645         (expand_end_bindings): Likewise.
1646         * stor-layout.c (layout_decl): Likewise.
1647         (place_field): Likewise.
1648         * toplev.c (check_global_declarations): Likewise.
1649         (rest_of_handle_inlining): Likewise.
1650         (default_tree_printer): New function.
1651         (general_init): Initialize diagnostic machinery before routing
1652         signals to the ICE machinery.  Set default tree printer.
1653         * toplev.h (pedwarn_with_decl): Remove declaration.
1654         (warning_with_decl): Likewise.
1655         (error_with_decl): Likewise.
1656         (pedwarn): Remove attribute for the time being.
1657         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
1658         * varasm.c (named_section): Likewise.
1659         (make_decl_rtl): Likewise.
1660         (assemble_variable): Likewise.
1661         (merge_weak): Likewise.
1662         (declare_weak): Likewise.
1664         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
1665         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
1666         (format_with_decl): Remove.
1667         (diagnostic_for_decl): Likewise.
1668         (pedwarn_with_decl): Likewise.
1669         (warning_with_decl): Likewise.
1670         (error_with_decl): Likewise.
1671         (diagnostic_initialize): Adjust.
1672         (diagnostic_count_diagnostic): Likewise.
1673         (announce_function): Likewise.
1674         (lhd_print_error_function): Likewise.
1675         (diagnostic_report_current_module): Likewise.
1676         (default_diagnostic_starter): Likewise.
1677         (diagnostic_report_diagnostic): Likewise.
1678         (default_diagnostic_finalizer): Likewise.
1679         (verbatim): Likewise.
1680         (error): Likewise.
1681         (warning): Likewise.
1682         * opts.c (common_handle_option): Likewise.
1683         * pretty-print.c: New file.
1684         * c-pretty-print.h (pp_base): Override.
1685         * c-pretty-print.c: Adjust use of macros throughout.
1686         (pp_buffer): New macro.
1687         (pp_newline): Likewise.
1688         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
1689         * Makefile.in (DIAGNOSTIC_H): New variable.
1690         (c-errors.o): Use it.
1691         (c-objc-common.o): Likewise.
1692         (c-common.o): Likewise.
1693         (c-opts.o): Likewise.
1694         (c-format.o): Likewise.
1695         (diagnostic.o): Likewise.
1696         (opts.o): Likewise.
1697         (toplev.o): Likewise.
1698         (rtl-error.o): Likewise.
1699         (dwarf2out.o): Likewise.
1700         (jump.o): Likewise.
1701         (pretty-print.o): New rule.
1703 2003-07-24  Roger Sayle  <roger@eyesopen.com>
1705         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
1706         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
1707         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
1708         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
1709         (DEF_FRONT_END_LIB_BUILTIN): Delete.
1710         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
1711         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
1713         * builtins.c (build_string_literal): New function to construct
1714         a char* pointer to a string literal.
1715         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
1716         "rtx target" to be consistent with other expand_builtin_* functions.
1717         Change 3rd argument from "int unlocked" to "bool unlocked".
1718         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
1719         c-common.c to avoid front-end dependencies.  Optimize printf("")
1720         as a no-op when the result isn't required.  Handle embedded NULs
1721         in format string.
1722         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
1723         from c-common.c to avoid front-end dependencies.  Likewise, optimize
1724         fprintf(fp,"") as a no-op when the result isn't required, evaluating
1725         fp for side-effects.  Handle embedded NULs in format string.
1726         (expand_builtin_sprintf): Fix typo.
1727         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
1728         optimizing.  Adjust calls of expand_builtin_fputs to match the API
1729         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
1730         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
1731         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
1733         * c-common.c (is_valid_printf_arglist): Delete.
1734         (c_expand_builtin): Delete.
1735         (c_expand_builtin_printf): Moved to builtins.c. Delete.
1736         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
1737         (c_expand_expr): No longer treat CALL_EXPRs specially.
1738         (CALLED_AS_BUILT_IN): Delete.
1740 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1742         PR optimization/11631
1743         * gcse.c (store_motion): Connect infinite loops to exit.
1745 2003-07-24  Jason Merrill  <jason@redhat.com>
1747         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
1748         (boolean_true_node, boolean_false_node): Likewise.
1749         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
1750         * tree.c (build_common_tree_nodes): Init boolean_type_node.
1751         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
1752         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
1753         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
1754         (truthvalue_true_node): Renamed from boolean_true_node.
1755         (truthvalue_false_node): Renamed from boolean_false_node.
1756         * c-decl.c: Just set truthvalue_* to integer_*.
1757         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
1759 2003-07-24  Roger Sayle  <roger@eyesopen.com>
1761         * c-decl.c (match_builtin_function_types): New subroutine of
1762         duplicate_decls to test whether a redeclaration of a builtin
1763         function is suitably close, i.e. the return type and all of
1764         the argument types have the same modes as the builtin expects.
1765         (duplicate_decls): Fuzzy type matching for builtin functions
1766         moved to match_builtin_function_types.
1768 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1770         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
1771         flag correctly.
1773 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
1775         * c-decl.c: Search-and-replace change 'binding level' to
1776         'scope' in commentary.
1777         (struct binding_level): Now struct c_scope.
1778         (current_binding_level): Now current_scope.
1779         (free_binding_level): Now scope_freelist.
1780         (current_function_level): Now current_function_scope.
1781         (global_binding_level): Now global_scope.
1782         (make_binding_level): Now make_scope.
1783         (pop_binding_level): Now pop_scope.
1785 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1787         * configure.in (libgcc_visibility): Add missing whitespace.
1789 2003-07-24  Richard Henderson  <rth@redhat.com>
1791         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
1792         __gcc_personality_v0.
1794 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1796         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
1798 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
1800         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
1801         documentation missed from my 2003-07-09 patch.
1803 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
1805         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
1806         it's not provided.
1807         * configure: Rebuild.
1809 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
1811         PR c/10602
1812         * c-typeck.c (type_lists_compatible_p): Do not compare
1813         arguments if one of them is an error_mark_node
1815 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
1817         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
1818         if current_function_calls_eh_return.
1820 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
1822         * doc/c-tree.texi (OFFSET_TYPE): Update description.
1824 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
1826         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
1827         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
1828         __umodsi3, __modsi3): Increase frame size to 32.
1830 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
1832         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
1833         prototype.
1835 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
1837         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
1839         PR optimization/10679
1840         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
1842 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1844         PR target/11607 and PR target/11516
1845         * pa.md (extzv, extv, insv): Revert latter half of last patch.
1847 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
1849         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
1850         * varasam.c (output_constant): Likewise.
1852 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
1854         * alias.c: Fix comment formatting.
1855         * c-common.c: Likewise.
1856         * c-decl.c: Likewise.
1857         * c-opts.c: Likewise.
1858         * combine.c: Likewise.
1859         * cpplib.c: Likewise.
1860         * diagnostic.c: Likewise.
1861         * dojump.c: Likewise.
1862         * final.c: Likewise.
1863         * fold-const.c: Likewise.
1864         * gcc.c: Likewise.
1865         * gcse.c: Likewise.
1866         * ggc-page.c: Likewise.
1867         * jump.c: Likewise.
1868         * loop.c: Likewise.
1869         * mips-tfile.c: Likewise.
1870         * recog.c: Likewise.
1871         * regclass.c: Likewise.
1872         * regmove.c: Likewise.
1873         * tree.c: Likewise.
1874         * tree.h: Likewise.
1876 2003-07-22  Per Bothner  <pbothner@apple.com>
1878         * line-map.c (add_line_map):  Handle invalid LEAVE request.
1879         Fixes PR preprocessor/11361.
1881 2003-07-22  Per Bothner  <pbothner@apple.com>
1883         * diagnostic.c.(diagnostic_report_current_module):  Update to match
1884         2003-06-05 changes to push_srcloc and pop_srcloc.
1886 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
1888         * doc/trouble.texi: Better document two-stage name lookup.
1890 2003-07-22  Eric Christopher <echristo@redhat.com>
1892         * config/s390.c (s390_valid_pointer_mode): New.
1893         (TARGET_VALID_POINTER_MODE): Use.
1894         (s390_emit_prologue): Add tpf profiling hooks.
1895         (s390_emit_epilogue): Ditto.
1896         * config/s390.h (MASK_TPF): New.
1897         (TARGET_TPF): Use.
1898         (POINTERS_EXTEND_UNSIGNED): Define.
1899         * config/s390.md (ptr_extend): New pattern.
1901 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
1903         * hashtable.c (approx_sqrt): Make static.
1904         * hashtable.h: Don't prototype approx_sqrt.
1905         * line-map.c (init_line_maps): Rename linemap_init.
1906         (free_line_maps): Rename linemap_free.
1907         (add_line_map): Rename linemap_add.
1908         (lookup_line): Rename linemap_lookup.
1909         (print_containing_files): Rename linemap_print_containing_files.
1910         * linemap.h: Update to match.
1912         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
1913         linemap routines to use new names.
1915 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
1917         * c-common.c (handle_packed_attribute): Don't pack a struct via a
1918         typedef. Propagate packedness from a main variant.
1920 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
1922         * Makefile.in (install-common): Add dependency on installdirs.
1924 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
1926         * c-common.c (c_common_type_for_mode): Return integer types for
1927         pointer modes.
1929 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
1931         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
1932         (finish_decl): Call maybe_apply_pragma_weak here.
1933         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
1934         TREE_PUBLIC and TREE_STATIC are decided.
1935         (start_function): Move call to maybe_apply_pragma_weak.  Check that
1936         DECL_ASSEMBLER_NAME isn't set too early.
1938         * cpplex.c (_cpp_process_line_notes): Mention option name in
1939         trigraphs warning.
1941 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
1943         * combine.c (if_then_else_cond): Simplify the comparison of
1944         rtx against -1, 0, and 1.
1945         * loop.c (check_dbra_loop): Likewise.
1946         * optabs.c (emit_conditional_move): Likewise.
1947         (emit_conditional_add): Likewise.
1948         * config/i386/i386.md (*movsi_or): Likewise.
1949         (*movdi_or_rex6): Likewise.
1951 Tue Jul 22 00:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
1953         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
1955 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
1957         * cppfiles.c (open_file_pch): Don't put unused entries in the
1958         splay tree.  Remove dead code.
1960 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
1962         * c-common.h (num_in_fnames): Declare.
1963         (c_static_assembler_name): Move from here...
1964         * c-tree.h (c_static_assembler_name): ... to here.
1965         * c-opts.c: Don't include langhooks-def.h.
1966         (c_static_assembler_name): Move to c-decl.c.
1967         (num_in_fnames): Make externally visible.
1968         * c-decl.c: Include langhooks-def.h.
1969         (c_static_assembler_name): Move from c-opts.c.
1970         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
1971         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
1973         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
1974         when it's not needed.
1976 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
1978         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
1979         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
1980         (rs6000_emit_prologue): Save FPRs inline if set.
1982 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
1984         * config/ia64/ia64.md (prefetch): Support predicate.
1986 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
1988         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
1989         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
1990         table.
1992 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
1994         PR optimization/11536
1995         * unroll.c (loop_iterations): Do not replace a register holding
1996         the final value by its equivalent before the loop if it is not
1997         invariant.
1999 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
2001         * doc/extend.texi: Fixes to spelling, grammar, and diction.
2003 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
2005         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
2006         (V850 Options): Spelling fixes.
2008 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
2010         * doc/invoke.texi: Fixes to style, grammar and diction.
2012 2003-07-20  Roger Sayle  <roger@eyesopen.com>
2014         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
2015         * system.h (SMALL_STACK): Poison obsolete target macro.
2016         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
2018 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
2020         * configure.in:  Cache the results of testing for cmp's capabilities.
2021         * configure:  Regenerate.
2023 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
2025         PR debug/11279
2026         * dwarf2out.c (gen_enumeration_type_die): Remember that
2027         enumerators can be unsigned.
2029 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
2031         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
2032         (push_label_level, pop_label_level): Kill.
2033         (struct binding_level): Rename level_chain to outer.
2034         Add outer_function field.  Change parm_flag, function_body,
2035         keep, keep_if_subblocks to 1-bit bitfields of type bool.
2036         (current_function_level): New variable.
2037         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
2038         (keep_next_level, declare_parm_level, warn_if_shadowing):
2039         Update to match.
2040         (struct language_function): Kill named_labels, shadowed_labels fields.
2041         (c_init_decl_processing, start_function, c_push__function_context)
2042         (c_pop_function_context): No need to muck with named_labels nor
2043         shadowed_labels.
2045         (make_binding_level): No need to clear the structure here.
2046         (pop_binding_level): Always operate on current_binding_level.
2047         Update current_function_level if necessary.
2048         (pushlevel): Don't clear named_labels.  Update current_function_level
2049         if necessary.  Use "true" and "false" where appropriate.
2050         (poplevel): Diagnose labels defined but not used, or vice
2051         versa, and clear out label-meanings leaving scope, while
2052         walking down the decls list, for all binding levels.
2053         Handle LABEL_DECLs appearing in the shadowed list.
2054         pop_binding_level takes no arguments.
2055         (pushdecl_function_level): Use current_function_level.
2057         (make_label, bind_label): New static functions.
2058         (declare_label): New exported function.
2059         (lookup_label, define_label): Rewritten for new data structure.
2060         (shadow_label): Kill.
2062         * c-tree.h: Prototype declare_label; don't prototype
2063         push_label_level, pop_label_level, nor shadow_label.
2064         * c-parse.in: Remove all calls to push_label_level and
2065         pop_label_level.  Use declare_label for __label__ decls.
2067         * doc/extend.texi: Clarify that __label__ can be used to
2068         declare labels with local scope in any nested block, not
2069         just statement expressions.  Cross-reference nested functions
2070         section from local labels section.
2072 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2074         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
2076 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
2078         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
2080 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2082         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
2083         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
2085 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
2087         * config/s390/s390.c (legitimize_pic_address): Access local symbols
2088         relative to the GOT instead of relative to the literal pool base.
2089         (s390_output_symbolic_const): Handle new GOT-relative accesses.
2090         * config/s390/s390.md ("call"): Access local functions and PLT stubs
2091         relative to the GOT instead of relative to the literal pool base.
2092         ("call_value"): Likewise.
2093         ("call_value_tls"): Likewise.
2095         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
2096         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
2097         (s390_chunkify_finish): Likewise.
2098         (s390_chunkify_cancel): Likewise.
2099         (s390_reorg): Adapt caller.
2100         (find_base_register_in_addr,
2101         find_base_register_ref, replace_base_register_ref): Delete.
2102         (find_ltrel_base, replace_ltrel_base): New functions.
2103         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
2104         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
2105         base vs. index register usage.
2106         (struct constant_pool): Remove 'anchor'.
2107         (s390_add_anchor): Delete.
2108         (s390_dump_pool): Remove anchor handling.
2109         * config/s390/s390.md ("reload_anchor"): Remove.
2111         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
2112         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
2113         (s390_emit_prologue): Use it.
2114         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
2115         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
2116         hard-code register 14.
2117         * config/s390/s390-protos.h (s390_load_got): Declare.
2119         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
2120         Support TImode constants.
2121         * config/s390/s390.md ("consttable_ti"): New.
2122         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
2124         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
2125         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
2126         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
2127         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
2128         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
2129         New symbolic constants.
2130         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
2131         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
2132         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
2133         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
2134         symbolic UNSPEC values.
2135         * config/s390/s390.c (larl_operand, s390_short_displacement,
2136         bras_sym_operand, s390_cannot_force_const_mem,
2137         s390_delegitimize_address, s390_decompose_address,
2138         legitimize_pic_address, s390_output_symbolic_const,
2139         s390_function_profiler): Use symbolic UNSPEC values.
2141 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2143         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
2144         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
2145         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
2146         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
2147         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
2148         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
2149         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
2150         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
2151         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
2152         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
2153         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
2154         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
2155         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
2156         postreload.c prefix.c print-tree.c protoize.c ra-build.c
2157         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
2158         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
2159         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
2160         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
2161         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
2162         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
2163         casts.
2165 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2167         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
2168         * toplev.h (warning): Remove attribute.
2170 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2172         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
2173         (pop_label_level): Likewise.
2174         (duplicate_decls): Likewise.
2175         (implicitly_declare): Likewise.
2176         (shadow_label): Likewise.
2177         (start_decl): Likewise.
2178         (finish_decl): Likewise.
2179         (grokdeclarator): Likewise.
2180         (get_parm_info): Likewise.
2181         (detect_field_duplicates): Likewise.
2182         (finish_struct): Likewise.
2183         (start_function): Likewise.
2184         (store_parm_decls): Likewise.
2185         (finish_function): Likewise.
2186         (c_expand_body_1): Likewise.
2187         (check_for_loop_decls): Likewise.
2188         (merge_translation_unit_decls): Likewise.
2190 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
2192         * common.opt:  Document --param.
2193         * opts.c (columns, undocumented_msg): New.
2194         (print_help): Get number of columns from environment.  Print
2195         --param help.  Tweak newline handling.
2196         (print_param_help): New.
2197         (print_filtered_help): Better handling of duplicates.  Complain
2198         about undocumented switches.
2199         (print_switch): New.
2200         (wrap_help): Improve wrapping, use COLUMNS.
2201         * opts.sh: Ignore comments in records.
2202         * params.def: Fix typos and remove trailing periods.
2203         * toplev.c (display_help): Don't dump --param help.
2204         * doc/sourcebuild.texi: Update.
2206 2003-07-18  Richard Henderson  <rth@redhat.com>
2208         PR target/11556
2209         * optabs.c (prepare_operand): Fail gracefully instead of abort
2210         if the predicate doesn't satisfy.
2211         (gen_cond_trap): Allow prepare_operand to fail.
2213 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2215         * c-common.c: Don't undefine GCC_DIAG_STYLE.
2216         (fname_decl): Don't use xxx_with_decl.
2217         (c_add_case_label): Likewise.
2218         (handle_section_attribute): Likewise.
2219         (handle_alias_attribute): Likewise.
2220         (handle_no_instrument_function_attribute): Likewise.
2221         (handle_no_limit_stack_attribute): Likewise.
2222         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
2223         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
2225 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2227         * Makefile.in (ifcvt.o): Add cfgloop.h.
2228         * basic-block.h (EDGE_LOOP_EXIT): New flag.
2229         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
2230         * ifcvt.c: Include cfgloop.h.
2231         (mark_loop_exit_edges): New static function.
2232         (if_convert): Call it.
2233         (find_if_header): Ignore branches out of loops.
2235 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
2237         * combine.c (simplify_comparison): Don't share rtx when converting
2238         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
2240 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
2242         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
2243         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2244         (MUST_PASS_IN_STACK): Define.
2245         (BLOCK_REG_PADDING): Define.
2247 2003-07-18  Richard Henderson  <rth@redhat.com>
2249         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
2250         to skip the addr_vec.
2252 Fri Jul 18 15:22:28 2003  Alexandre Oliva  <aoliva@redhat.com>
2254         * combine.c (combinable_i3pat): Don't forbid occurrences of
2255         i2dest or i1dest in inner_dest if inner_dest is a mem.
2257 Fri Jul 18 17:05:57 CEST 2003  Jan Hubicka  <jh@suse.cz>
2259         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
2261 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
2263         PR target/11087
2264         * loop.c (basic_induction_var): Check if convert_modes emitted any
2265         instructions. Remove them and return 0 if so.
2267 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
2269         PR optimization/11083
2270         * toplev.c (rest_of_handle_addresof): Rename into
2271         rest_of_handle_addressof.  Delete unreachable blocks
2272         if dead edges were purged after the addressof pass.
2274 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
2276         * Makefile.in, configure, configure.in: Remove handling of
2277         lang-options.h and options_.h.
2278         * toplev.c (struct lang_opt, documented_lang_options): Remove.
2279         (display_help): Don't use documented_lang_options.
2281 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
2283         * c-decl.c (pushdecl_function_level): Make static, return nothing.
2284         (kept_level_p): Fold into poplevel.
2285         (undeclared_variable): Moved here from c-typeck.c.  Export.
2286         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
2287         (undeclared_variable): Prototype here.  Don't prototype
2288         kept_level_p nor pushdecl_function_level.
2289         * c-parse.in: Change first argument to poplevel from
2290         "kept_level_p()" to "KEEP_MAYBE".
2291         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
2293 2003-07-17  Roger Sayle  <roger@eyesopen.com>
2295         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
2296         commutative operands instead of modifying the RTL in-place.
2298 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
2300         PR optimization/11557
2301         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
2302         unless we know which function is being called.
2304 2003-07-17  Roger Sayle  <roger@eyesopen.com>
2306         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
2307         whether to reorder the operands of a commutative binary operator.
2309 2003-07-17  Roger Sayle  <roger@eyesopen.com>
2311         * fold-const.c (const_binop): Avoid performing the FP operation at
2312         compile-time, if either operand is NaN and we honor signaling NaNs,
2313         or if we're dividing by zero and either flag_trapping_math is set
2314         or the desired mode doesn't support infinities.
2315         (fold_initializer): New function to fold an expression ignoring any
2316         potential run-time exceptions or traps.
2317         * tree.h (fold_initializer): Prototype here.
2318         * c-typeck.c (build_binary_op): Move to the end of the file so
2319         that intializer_stack is in scope.  If constructing an initializer,
2320         i.e. when initializer_stack is not NULL, use fold_initializer to
2321         fold expressions.
2322         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
2323         performing FP operations at compile-time, if they would raise an
2324         exception at run-time.
2326 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
2328         PR 11498
2329         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
2330         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
2331         (GTFILES): Add langhooks.c.
2332         (gt-langhooks.h): New.
2333         * c-common.h (c_static_assembler_name): Prototype.
2334         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2335         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2336         * c-opts.c: Include langhooks-def.h.
2337         (c_static_assembler_name): New.
2338         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
2339         (var_labelno): New.
2340         (lhd_set_decl_assembler_name): Give static objects with context
2341         unique names.
2342         * varasm.c (var_labelno): Delete.
2343         (make_decl_rtl): Don't change the assembler name once it's set.
2345         * c-opts.c (this_input_filename): New.
2346         (finish_options): Take new parameter, name of file being compiled.
2347         Update callers.  Set this_input_filename.
2348         (push_command_line_include): Use this_input_filename not
2349         main_input_filename.
2351 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
2353         * Makefile.in: Depend .pot generation on options.c.
2354         * po/exgettext: Add an extra_files variable containing additional
2355         files to scan.
2357 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
2359         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
2360         c_write_global_declarations.
2362         * c-decl.c: Fix typos in several comments.  Remove all
2363         #if 0 blocks; reindent as needed.  Remove unused argument
2364         to declare_parm_level; all callers changed.
2365         * c-parse.in: Update calls to declare_parm_level.  Avoid
2366         issuing a double warning in some circumstances.
2367         * c-typeck.c: Update calls to declare_parm_level.
2368         * c-tree.h: Update prototype of declare_parm_level.
2370         * c-pragma.c (apply_pragma_weak): Don't complain about a
2371         redundant #pragma weak.
2373         * objc/objc-act.c (forward_declare_categories,
2374         build_selector_reference_decl, build_class_reference_decl,
2375         build_objc_string_decl, synth_forward_declarations,
2376         build_protocol_reference): Set TREE_PUBLIC on synthetic
2377         forward decl to 0, consistent with eventual definition.
2378         Correct comments to match.
2380         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
2381         in regexp that don't form a range expression.
2382         * fixinc/fixincl.def: Regenerate.
2384 2003-07-17  Richard Henderson  <rth@redhat.com>
2386         PR target/10907
2387         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
2388         even with !TARGET_CONST_GP.
2389         (ia64_function_ok_for_sibcall): Reject non-local functions.
2391 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
2393         * c-common.c (c_estimate_num_insns_1): Don't handle
2394         METHOD_CALL_EXPR.
2395         * expr.c (safe_from_p): Likewise.
2396         * gengtype.c (adjust_field_tree_exp): Likewise.
2397         * stmt.c (warn_if_unused_value): Likewise
2398         * tree.c (first_rtl_op): Likewise.
2399         * tree.def: Don't define METHOD_CALL_EXPR.
2400         * java/lang.c (java_estimate_num_insns_1): Don't handle
2401         METHOD_CALL_EXPR.
2403 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
2405         PR other/11466
2406         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
2407         and its restrictions for the SPARC64 port.
2408         Move the entry of "-mimpure-text" before that of "-mv8".
2410 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
2411             Phil Edwards <phil@jaj.com>
2413         * doc/install.texi (*-*-solaris2*): Document the step-by-step
2414         procedure to bootstrap and install.
2415         Document the preference for the legacy Sun tools in /usr/bin
2416         over the POSIX tools in /usr/xpg4/bin for the build process.
2418 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
2420         * c.opt: Document Uncodumented; use it.  Document ObjC options.
2421         * opts.c (print_filtered_help): Skip undocumented switches.
2422         * opts.h (CL_UNDOCUMENTED): New.
2423         * opts.sh: Handle Undocumented.
2424         * toplev.c (documented_lang_options): Prevent its becoming empty.
2425 objc:
2426         * lang-options.h: Remove.
2428 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
2430         * loop.c (check_ext_dependent_givs): Pass const struct loop *
2431         instead of struct loop_info * as argument.  Accept BIVs with
2432         increment +/- 1 provided there is a friendly exit test against
2433         a loop-invariant value.
2434         (strength_reduce): Adapt call to check_ext_dependent_givs.
2436 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
2437             Con Bradley <con.bradley@superh.com>
2439         * sh-protos.h (sh_get_pr_initial_val): Declare.
2440         * sh.c (regno_reg_class): Make its elements type enum reg_class.
2441         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
2442         and live_regs_mask arguments.  Changed all callers.
2443         (save_schedule_s): New structure.
2444         (save_schedule): New typedef.
2445         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
2446         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
2447         In interrupts handlers, also save registers that are usually
2448         partially saved, and make sure there is at least one general purpose
2449         register saved if a target register needs saving.
2450         Add casts in comparisons to avoid warnings.
2451         (sh_media_register_for_return): return -1 for interrupt handlers.
2452         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
2453         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
2454         registers used are available.
2455         Set RTX_FRAME_RELATED_P where appropriate.
2456         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
2457         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
2458         (initial_elimination_offset): Likewise.
2459         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
2460         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
2461         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
2462         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
2463         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
2464         and for target registers.
2465         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
2466         (regno_reg_class): Make its elements type enum reg_class.
2467         (CONSTRAINT_LEN): Don't use isdigit.
2468         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
2469         (FUNCTION_ARG): Add parentheses to avoid warnings.
2470         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
2471         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
2472         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
2473         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
2474         * sh.md (xordi3+1): Remove unused variable regno.
2475         (return_media): Check that tr0 is available before using it.
2477 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
2479         * c.opt: Document more options.
2481 2003-07-16  Roger Sayle  <roger@eyesopen.com>
2483         * combine.c (subst): Also handle (subreg (const_double ...)) case
2484         if created by a substitution, by using the original inner mode.
2486 2003-07-16  Roger Sayle  <roger@eyesopen.com>
2488         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
2489         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
2490         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
2492 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
2494         * doc/install.texi (--without-headers): New.
2496         Partial Fix PR/10129
2497         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
2498         (machopic_output_function_base_name): New; print the true pic label.
2499         (machopic_classify_ident): Pic Base is always a defined data.
2500         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
2501         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
2503         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
2504         if they are not floating point registers.
2506         PR c/10962
2507         * ggc.h: Add header guards.
2508         * c-decl.c (finish_struct): Sort fields if
2509         number greater than 15 and there are no
2510         anonymous structs/unions.
2511         * c-common.h: Include ggc.h.
2512         (sorted_fields_type): New struct.
2513         (field_decl_cmp): New prototype.
2514         (resort_sorted_fields): New prototype.
2515         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
2516         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
2517         as s, removing other fields.
2518         * c-typeck.c (lookup_field): Use s in lang_type.
2519         These were mostly moved from cp/class.c:
2520         * c-common.c (field_decl_cmp): New static function.
2521         (field_decl_cmp): New function.
2522         (resort_sorted_fields): New function.
2524 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
2526         * config/darwin.c (machopic_select_section): Use decl_readonly_section
2527         to do most of the work.
2529 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
2531         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
2532         * config/mmix/mmix.c: Convert functions to ISO C90.
2533         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
2534         formatting.
2535         (mmix_get_hard_reg_initial_val): Tweak section head comment.
2537 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
2539         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
2541 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
2543         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
2544         (uw_update_context_1): Use it.
2545         * config/rs6000/rs6000.c (insn_after_throw): Remove.
2546         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
2547         in parent frame if _Unwind_* called directly instead of through
2548         .plt.
2549         (rs6000_emit_eh_toc_restore): Remove.
2550         (rs6000_emit_prologue): Update stack pointer before doing any saving
2551         if current_function_calls_eh_return.  Generate unwind info for $r2.
2552         (rs6000_emit_epilogue): Restore stack pointer after doing all
2553         restoring if current_function_calls_eh_return.  Restore $r2.
2554         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
2555         * config/rs6000/rs6000.md (eh_return): Remove call to
2556         rs6000_emit_eh_toc_restore.
2557         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
2558         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
2560 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
2562         * expr.c (emit_block_move): Don't move anything if size is const 0.
2563         (clear_storage): Test against const0_rtx instead of comparing INTVAL
2564         against 0.
2566 2003-07-15  David S. Miller  <davem@redhat.com>
2568         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
2569         emit nop if the last real insn is CALL_INSN.
2571 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
2573         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
2574         as "nul".
2575         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
2577 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
2579         * config/i386/winnt.c (associated_type): Artificial methods are not
2580         affected by the import/export status of their class unless they are
2581         COMDAT.
2582         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
2584         * config/i386/winnt.c: Fix GCC copyright comment.
2586 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
2588         PR c++/11531
2589         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
2590         not recursing on hard error.
2591         (diagnostic_for_decl): Likewise.
2592         * diagnostic.def: Rearrange.
2594 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
2596         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2597         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
2599 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
2600             Richard Henderson  <rth@redhat.com>
2602         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
2603         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
2604         (_Unwind_SetGR): Likewise.
2605         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
2606         (Unwind_SpTmp): New typedef.
2607         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
2608         (uw_update_context): Use _Unwind_GetPtr.
2609         (init_dwarf_reg_size_table): Move above uw_init_context_1.
2610         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
2611         Use _Unwind_SetSpColumn.
2612         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
2613         Use _Unwind_GetPtr.
2615 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
2617         * c.opt: Document more options.
2618         * toplev.c (documented_lang_options): Remove all local help strings.
2620 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
2622         PR debug/11473
2623         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
2624         base classes.
2626 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
2628         PR target/10795
2629         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
2630         swap comparison operands if doing so would generate an
2631         unrecognizable insn.
2633 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
2635         PR optimization/11320
2636         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
2637         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
2638         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
2639         current_sched_info->compute_jump_reg_dependencies. Record which
2640         registers are used and which registers are set by the jump.
2641         Clear deps->reg_conditional_sets after a barrier.
2642         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
2643         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
2644         (init_deps): Initialize reg_conditional_sets.
2645         (free_deps): Clear reg_conditional_sets.
2646         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
2647         Mark registers live on entry of the fallthrough block and conditionally
2648         set as set by the jump. Mark registers live on entry of non-fallthrough
2649         blocks as used by the jump.
2650         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
2651         Mark new parameters as unused.
2653 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
2655         * doc/invoke.texi: Resync MIPS -march documentation.
2657 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
2659         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
2660         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
2661         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
2662         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
2663         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
2664         (mips_issue_rate): Handle PROCESSOR_R9000.
2665         (mips_use_dfa_pipeline_interface): Likewise.
2666         * config/mips/9000.md: New file.
2667         * config/mips/mips.md: Include it.
2668         (define_attr cpu): Add r9000.
2669         (mulsi3_mult3): Use "mul" for rm9000 code.
2671 2003-07-15  Stan Cox  <scox@redhat.com>
2673         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
2674         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
2675         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
2676         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
2677         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
2678         (mips_issue_rate): Handle PROCESSOR_R7000.
2679         (mips_use_dfa_pipeline_interface): Likewise.
2680         * config/mips/7000.md: New file.
2681         * config/mips/mips.md: Include it.
2682         (define_attr cpu): Add r7000.
2683         (mulsi3_mult3): Use "mul" for rm7000 code.
2685 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
2687         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
2688         the conditional move patterns.
2689         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
2690         Check for condmove type.
2691         (ir_vr54_arith): Add move type.
2692         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
2693         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
2695 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
2697         * c-opts.c (print_help): Remove.
2698         (c_common_handle_option): Don't handle --help.
2699         * c.opt: Document some options.
2700         (--help): Remove.
2701         * opts.c (print_filtered_help): New.
2702         (print_help): Use it.
2704 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
2706         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
2707         * tree.c: (build_common_tree_nodes_2): Likewise.
2708         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
2709         (V4DF_type_node): New.
2711         * c-opts.c (push_command_line_include): Don't free deferred_opts,
2712         we'll need it.
2713         (finish_options): Reset init_cursor.
2715 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
2717         * expr.c (expand_assignment): Remove an unused argument
2718         SUGGEST_REG.
2719         * expr.h: Update the prototype.
2720         * function.c: Update the callers.
2721         * stmt.c: Likewise.
2723 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
2725         PR debug/11098
2726         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
2727         as DECL_ABSTRACT.
2729 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
2731         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
2732         with __cplusplus, not "we must use the C++ compiler's type"
2733         * fixinc/inclhack.def (void_null): Note that Interix needs this.
2734         * fixinc/fixincl.x: Regenerate.
2736 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
2738         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
2739         and unseen_objects from the global data before calling
2740         __deregister_frame_info_bases.
2741         (examine_objects): Insert objects into the seen_objects list,
2742         not unseen_objects.
2743         (_Unwind_Find_FDE): Always unlock the global object lists, even if
2744         we couldn't allocate a data structure to put in it.
2746         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
2747         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
2748         (SET_TYPE_PROTOCOL_LIST): New.
2749         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
2750         (get_object_reference): Likewise.
2752 Mon Jul 14 23:14:28 CEST 2003  Jan Hubicka  <jh@suse.cz>
2754         * cfglayout.c (locator_file): Break out from ....
2755         (insn_file): ... here.
2756         (locator_line): Break out from ....
2757         (insn_line): ... here.
2758         * rtl.h (locator_file, locator_line): Declare.
2759         (final_start_function): Set proper line/file info.
2761 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2763         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
2764         handled by pp_c_cast_expression.
2766 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
2768         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
2769         allocate 32768 bytes of stack.  Use addition rather than subtraction
2770         when a single insn is enough.
2771         * config/mips/mips.md: Remove insns and splitters for subtracting
2772         constants.
2773         (subsi3): Only accept register operands.
2774         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
2775         (subdi3_internal_3, subsi3_internal_2): Likewise.
2776         (casesi): Use expand_binop to subtract the lower bound.
2778 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
2780         * config/mips/mips.c (mips_in_small_data_p): Don't handle
2781         TARGET_MIPS16 specially.
2783 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
2785         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
2786         mips_output_aligned_bss.
2787         * config/mips/linux.h: Likewise.
2788         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
2789         * config/mips/mips.c (mips_output_aligned_bss): New function.
2791         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
2792         * config/mips/elf64.h: Likewise.
2794         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
2795         mips_declare_object_name.
2796         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
2797         * config/mips/elf64.h: As for elf.h.
2798         * config/mips/iris6.h: Likewise.
2799         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
2800         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
2801         do...while (0) block.
2802         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
2803         (mips_finish_declare_object): Declare.
2804         * config/mips/mips.c (mips_declare_object_name): New function.
2805         (mips_finish_declare_object): New function.
2807         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
2808         * config/mips/linux.h: Likewise.
2810         * config/mips/mips.c (inside_function): Delete.
2811         (file_in_function_warning, ignore_line_number): Delete.
2812         (mips_output_filename): Don't warn about changing filenames within
2813         a function.
2814         (mips_output_lineno): Update accordingly.
2815         (mips_output_function_prologue): Don't reset the deleted variables.
2816         * config/mips/mips.h (inside_function): Delete.
2817         (file_in_function_warning, ignore_line_number): Delete.
2819         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
2820         * config/mips/elf64.h: Likewise.
2821         * config/mips/openbsd.h: Likewise.
2822         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
2823         * config/mips/linux.h: Likewise.
2824         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
2825         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
2827         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
2828         to the list of include files when using gas.
2829         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
2830         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
2831         * config/mips/elf64.h: Likewise.
2832         * config/mips/iris5.h: Likewise.
2833         * config/mips/linux.h: Likewise.
2834         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
2835         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
2836         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
2837         * config/mips/sdb.h: ...this new file.
2839 2003-07-14  Douglas Rupp  <rupp@gnat.com>
2841         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
2842         argument to getcwd; use fixed buffer instead.
2844 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
2846         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
2847         * fixinc/fixinc.wrap: Delete.
2849 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
2851         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
2852         don't have 2.
2854 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
2856         * ggc-page.c (struct globals): Add new fields to keep track of the
2857         total allocated memory and overhead.
2858         (ggc_print_statistics): Print them.
2859         (ggc_alloc): Keep track of the total allocated memory and the
2860         overhead.
2862         * tree.c (dump_tree_statistics): Increase spacing.
2863         (enum tree_node_kind): Move to ...
2864         * tree.h (enum tree_node_kind): ... here.
2865         (tree_node_counts, tree_node_sizes): Declare.
2867 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
2869         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
2871 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2873         PR optimization/11440
2874         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
2875         SIGN_EXTRACT SETs.
2877 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
2879         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
2880         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
2881         (emit_group_load, emit_group_store): Adjust declarations.
2882         Remove most occurrences of #ifdef TREE_CODE.
2883         * expr.c (emit_group_load): Add "type" param, and use
2884         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
2885         aligned accesses if !SLOW_UNALIGNED_ACCESS.
2886         (emit_group_store): Likewise.
2887         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
2888         emit_group_load and emit_group_store calls.
2889         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
2890         BLOCK_REG_PADDING to determine whether we need endian_correction.
2891         (load_register_parameters): Localize vars.  Handle shifting of
2892         small values to the correct end of regs.  Adjust emit_group_load
2893         call.
2894         (expand_call, emit_library_call_value_1): Adjust emit_group_load
2895         and emit_group_store calls.
2896         * function.c (assign_parms): Set mem alignment for stack slots.
2897         Adjust emit_group_store call.  Store values at the "wrong" end
2898         of regs to the stack.  Use BLOCK_REG_PADDING.
2899         (locate_and_pad_parm): Save where_pad.
2900         (expand_function_end): Adjust emit_group_load call.
2901         * stmt.c (expand_value_return): Adjust emit_group_load call.
2902         * Makefile.in (calls.o): Depend on $(OPTABS_H).
2903         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
2904         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2905         (MUST_PASS_IN_STACK): Define.
2906         (BLOCK_REG_PADDING): Define.
2907         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
2908         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
2909         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
2910         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
2911         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
2913 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
2915         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
2917 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2919         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
2920         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
2922 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
2924         PR other/11123
2925         * toplev.c: Don't cut off option names.
2927 2003-07-13  Andreas Jaeger  <aj@suse.de>
2929         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
2930         to integer of different size.
2932 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
2934         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
2935         to (eq (and X 1) 0).
2937 2003-07-13  Andreas Jaeger  <aj@suse.de>
2939         * config.gcc: Add pmmintrin.h for x86_64-*-*.
2941 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
2943         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
2944         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
2945         list.  Move these all together down by cpplib.
2947         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
2948         definition of CPPCHAR_SIGNED_T.
2950         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
2951         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
2952         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
2954         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
2955         * cppinit.c (cpp_create_reader): Likewise.
2957         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
2958         * cpptrad.c: Likewise.  All callers changed.
2959         * cpplib.c: All callers changed.
2960         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
2961         * hashtable.h: Define GTY(x) to nothing here too.
2963 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2965         * stor-layout.c (compute_record_mode): Remove very obsolete test
2966         that forces BLKmode for records with fields crossing word boundary.
2968 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
2970         * Makefile.in: Remove orphan reference to acconfig.h.
2972 2003-07-13  Andreas Jaeger  <aj@suse.de>
2974         * cgraphunit.c: Convert prototypes to ISO C90.
2976 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
2978         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
2979         (for OpenBSD).
2980         * fixinc/fixincl.x: Rebuild.
2982 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
2984         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
2985         i?86-*-*.  Use correct name of cache variable.
2986         * configure: Regenerate.
2988 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
2990         * config/alpha/alpha.c: Fix comment typos.
2991         * config/alpha/alpha.md: Likewise.
2992         * config/arm/arm.c: Likewise.
2993         * config/arm/arm.md: Likewise.
2994         * config/arm/lib1funcs.asm: Likewise.
2995         * config/avr/avr.md: Likewise.
2996         * config/arm/README-interworking: Fix typos.
2998 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
3000         * c-format.c: Fix comment formatting.
3001         * c-typeck.c: Likewise.
3002         * coverage.c: Likewise.
3003         * cppcharset.c: Likewise.
3004         * cpplib.c: Likewise.
3005         * dbxout.c: Likewise.
3006         * gcov-io.h: Likewise.
3007         * toplev.c: Likewise.
3009 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
3011         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
3012         fix.
3014 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
3016         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
3017         uses three-argument AC_DEFINE so no acconfig.h entries are
3018         needed.
3019         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
3020         which contains the GAS version number as a scaled integer.
3021         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
3022         ability to check for ELF assembler.
3023         (gcc_GAS_CHECK_FEATURE): New macro.
3024         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
3025         assembler feature checks using gcc_GAS_CHECK_FEATURE.
3026         Use three-argument AC_DEFINE everywhere.
3027         * acconfig.h: Deleted.
3028         * config.in, configure: Regenerate.
3030 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
3032         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
3033         (on OpenBSD).
3034         * fixinc/fixincl.x: Regenerate.
3036         * fixinc/inclhack.def (gnu_types): Improve comment.
3038 2003-07-12  Andreas Jaeger  <aj@suse.de>
3040         * fp-test.c (main): Use ISO C90 prototype.
3042         * version.c: Remove unneded include of ansidecl.h.
3044         * cgraph.h: Convert prototypes to ISO C90.
3045         * cgraph.c: Likewise.
3046         * fix-header.c: Likewise.
3047         * ra.h: Likewise.
3048         * protoize.c: Likewise.
3050 Sat Jul 12 06:09:38 CEST 2003  Jan Hubicka  <jh@suse.cz>
3052         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
3053         warning.
3055 Sat Jul 12 03:06:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
3056                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3058         * cgraph.c (cgraph_max_uid): New global variable.
3059         (cgraph_node): Set uid field.
3060         (create_edge): Keep inline flags consistent.
3061         (dump_cgraph): Dump more info.
3062         * cgraph.h (struct cgraph_local_info): Remove inline_many and
3063         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
3064         (struct cgraph_global_info): Add insns, calls, cloned_times,
3065         will_be_output.
3066         (struct cgraph_node): Add uid.
3067         (struct cgraph_edge): Add inline_call.
3068         (cgraph_max_uid, cgraph_inline_p): Declare.
3069         * cgraph.c: Include params.h and fibheap.h
3070         (cgraph_mark_functions_to_inline_once): Kill.
3071         (INSNS_PER_CALL): New constant.
3072         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
3073         static variables.
3074         (cgraph_finalize_function): Do not analyze inlining.
3075         (cgraph_finalize_compilation_unit): Set inlining attributes.
3076         (cgraph_mark_functions_to_output): More consistency checks.
3077         (cgraph_optimize_function): Set current_function_decl to NULL.
3078         (cgraph_expand_function): Use new inline flags.
3079         (cgraph_postorder): Expand from cgraph_expand_functions.
3080         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
3081         (cgraph_inlined_into, cgraph_inlined_callees,
3082         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
3083         cgraph_mark_inline, cgraph_check_inline_limits,
3084         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
3085         cgraph_decide_inlining, cgraph_inline_p): New functions.
3086         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
3087         PARAM_INLINE_UNIT_GROWTH): New parameters.
3088         * tree-inline.c (struct inline_data): New field current_decl.
3089         (expand_call_inline): Avoid forward declarations; use
3090         inlinable_function_p.
3091         (optimize_inline_calls): Set id.current_decl.
3093 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
3095         * configure.in: Remove wrongly added definition of
3096         local_prefix.
3097         * configure: Regenerate.
3099 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
3101         * rtl.def (NOTE): Do not use padding.
3103 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
3105         * doc/install.tex: Update required binutils for i?86-*-linux*
3107 2003-07-11  Richard Henderson  <rth@redhat.com>
3109         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
3111 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
3113         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
3114         TRANSLATION_UNIT_DECL as top_level.
3116 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
3118         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
3119         then fall back to cmpstrM.
3120         * builtins.c (expand_builtin_memcmp): Likewise.
3121         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
3122         (s390_expand_cmpmem): ... this.
3123         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
3124         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
3125         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
3126         to s390_expand_cmpmem.
3127         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
3128         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
3129         to cmpmem*.
3130         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
3131         cmpstr* patterns.
3132         * doc/md.texi (cmpstrM): Describe as String compare insn, not
3133         Block compare insn.
3134         (cmpmemM): Add.
3136 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
3138         * config/i386/freebsd.h (SET_ASM_OP): Remove.
3139         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
3140         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
3141          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
3143 2003-07-11  Richard Henderson  <rth@redhat.com>
3145         * function.c (assign_parms): Don't recombine complex args if
3146         fnargs is unchanged from orig_fnargs.
3147         (split_complex_args): Return args without complex before copying.
3148         Re-layout the modified parameters.
3150 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
3152         * regclass.c (choose_hard_reg_mode): Add third argument.
3153         Changed all callers.
3154         * rtl.h (choose_hard_reg_mode): Update declaration.
3155         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3156         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
3158 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
3160         * c-decl.c (finish_decl): Handle 'used' here...
3161         * cgraphunit.c (cgraph_finalize_function): ... and here ...
3162         * c-common.c: (handle_used_attribute): ... not here.
3164         * configure.in (onstep): Support --enable-intermodule.
3165         * Makefile.in (OBJS-common): New.
3166         (OBJS-md): New.
3167         (OBJS-archive): New.
3168         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
3169         (OBJS-onestep): New.
3170         (libbackend.a): Support @onestep@.
3171         (libbackend.o): New.
3172         * configure: Regenerate.
3174         * c-common.h (c_reset_state): New prototype.
3175         (c_parse_file): New prototype.
3176         (finish_file): Move prototype from c-tree.h.
3177         * c-decl.c: Include <hashtab.h>.
3178         (builtin_decls): New.
3179         (current_file_decl): New.
3180         (duplicate_decls): Add extra parameter. Change all callers.  Don't
3181         output duplicate common symbols.
3182         (link_hash_hash): New.
3183         (link_hash_eq): New.
3184         (poplevel): Handle popping of the top level.
3185         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
3186         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
3187         (pushdecl_top_level): Likewise.
3188         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
3189         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
3190         (finish_decl): Handle TRANSLATION_UNIT_DECL.
3191         (merge_translation_unit_decls): New.
3192         (c_write_global_declarations): New.
3193         (c_reset_state): New.
3194         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
3195         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
3196         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
3197         TRANSLATION_UNIT_DECL.
3198         (c_objc_common_finish_file): Call merge_translation_unit_decls.
3199         * c-opts.c (in_fnames): Rename from in_fname.
3200         (c_common_decode_option): Handle multiple input filenames.
3201         (c_common_post_options): Likewise.
3202         (c_common_parse_file): Likewise; also, call c_parse_file rather than
3203         yyparse.
3204         * c-parse.in: Move cleanup code to c_parse_file.
3205         (free_parser_stacks): Move contents to c_parse_file.
3206         (c_parse_file): New.
3207         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
3208         for integer types.
3209         (C_DECL_FILE_SCOPE): New.
3210         (finish_file): Move prototype to c-common.h.
3211         (merge_translation_unit_decls): New prototype.
3212         (comptypes): Add extra parameter to prototype.
3213         (c_write_global_declarations): New prototype.
3214         * c-typeck.c (tagged_types_tu_compatible_p): New.
3215         (function_types_compatible_p): Add extra parameter, change all callers.
3216         (type_lists_compatible_p): Likewise.
3217         (comptypes): Likewise.
3218         (struct tagged_tu_seen): New.
3219         (tagged_tu_seen_base): New.
3220         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
3221         (c_mark_addressable): Remove #if 0 code.
3222         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
3223         comment explaining why it shouldn't have to.
3224         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
3225         options.
3226         * cppinit.c (cpp_read_next_file): New.
3227         (cpp_read_main_file): Use it.
3228         * cpplib.c (undefine_macros): New.
3229         (cpp_undef_all): New.
3230         * cpplib.h (cpp_read_next_file): Prototype.
3231         (cpp_undef_all): Prototype.
3232         * langhooks-def.h (write_global_declarations): Remove prototype.
3233         * toplev.h (write_global_declarations): Add prototype.
3234         * tree.c (decl_type_context): Use switch statement, handle
3235         TRANSLATION_UNIT_DECL.
3236         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
3237         (TRANSLATION_UNIT_DECL): New kind of tree.
3238         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
3239         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
3240         * doc/invoke.texi: Make attempt to document new functionality.
3242         2003-05-19  Per Bothner <bothner@apple.com>
3244         * gcc.c (combine_inputs): New.
3245         (process_command): Set combine_inputs.
3246         (do_spec_1): Handle combine_inputs.
3247         (main): Likewise.
3249 2003-07-10  James E Wilson  <wilson@tuliptree.org>
3251         PR optimization/9745
3252         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
3253         loop_insn_emit_before.
3254         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
3256 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
3258         * cppcharset.c: Fix comment.
3259         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
3260         (EILSEQ): #define to EINVAL if not already defined.
3261         (convert_using_iconv): #if out when !HAVE_ICONV.
3262         (init_iconv_desc): Handle !HAVE_ICONV here...
3263         (cpp_init_iconv): ...not here.
3265 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
3267         * common.opt: More --help messages.
3268         * opts.c (print_help): Use puts().
3269         * toplev.c (f_options): Remove help text.
3270         (display_help): Don't dump f_options.
3272 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
3274         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
3275         Move i?86-*-interix* to the don't-fix list.
3276         * fixinc/fixinc.interix: Delete with extreme prejudice.
3278 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
3280         PR bootstrap/10758
3281         * doc/install.texi: Document requirements for ia64-*-hpux* target.
3283 2003-07-10  Roger Sayle  <roger@eyesopen.com>
3285         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
3287 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
3289         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
3290         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
3291         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
3292         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
3293         convert_no_conversion, convert_using_iconv): New functions.
3294         (APPLY_CONVERSION): New macro.
3295         (struct conversion, conversion_tab): New data structure.
3296         (init_iconv_desc): Check conversion_tab for a custom conversion
3297         primitive before trying to use iconv.
3298         (convert_cset): Deleted.
3299         (cpp_init_iconv): Use UTF- terminology, not UCS-.
3300         (_cpp_destroy_iconv): Update to match.
3301         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
3302         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
3303         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
3304         (_cpp_interpret_string_notranslate): New function, moved here
3305         from cpplib.c.
3307         * cpphash.h (convert_f, struct cset_converter): New types.
3308         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
3309         are now struct cset_converter, not bare iconv_t.
3310         Update prototypes.
3311         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
3312         all callers changed.
3314 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
3316         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
3317         to opts.sh command line.
3318         * opts.sh: Write to temporary files with a move-if-change at the end.
3320 2003-07-10  Denis Chertykov  <denisc@overta.ru>
3321             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3323         * combine.c (gen_binary): Handle the CLOBBER rtx and
3324         don't build a binary operation with it.
3326 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3328         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
3329         store_killed_after, store_killed_before): Keep track of the correct
3330         dependency function to use.
3332 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
3333         * toplev.c (do_compile): Don't try to open dump files before
3334         lang_dependent_init initializes dump_base_name.
3336 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3338         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
3339         Use ARRAY_SIZE.
3340         * config/frv/frv.c (frv_expand_builtin): Likewise.
3341         * config/sh/sh.c (sh_media_init_builtins): Likewise.
3343 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
3345         PR c++/10032
3346         * doc/invoke.texi (C++ Dialect Options): Change documentation of
3347         -fpermissive.
3349 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
3351         * tm.texi (RETURN_ADDR_OFFSET): Document.
3353 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
3355         * gcov-io.h: Update documentation.
3356         (GCOV_UNSIGNED2STRING): New.
3357         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
3358         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
3359         GCOV_TAG_SUMMARY_LENGTH): Adjust.
3360         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
3361         GCOV_TAG_COUNTER_NUM): New.
3362         (GCOV_BLOCK_SIZE): Number of words.
3363         (gcov_var): Adjust buffer type.
3364         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
3365         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
3366         count, not byte count.
3367         (gcov_open): Adjust overread init.
3368         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
3369         gcov_write_string, gcov_write_tag, gcov_write_length,
3370         gcov_write_tag_length): Adjust.
3371         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
3372         (gcov_sync, gcov_seek): Adjust.
3373         * gcov-dump.c (print_usage): Show gcc version only.
3374         (dump_file): Use GCOV_UNSIGNED2STRING.
3375         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
3376         * gcov.c (print_version): Show gcc version only.
3377         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
3378         GCOV_TAG_*_NUM macros.
3379         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
3380         GCOV_TAG_COUNTER_LENGTH.
3381         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
3382         Use GCOV_TAG_COUNTER_NUM.
3383         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
3384         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
3386 2003-07-10  Andreas Schwab  <schwab@suse.de>
3388         * gcov-dump.c (dump_file): Fix missing address operator.
3390 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
3392         PR c/11449
3393         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
3394         of HOST_WIDE_INT.
3395         (fold_single_bit_test): If sign_bit_p() fails, assume that the
3396         bit being tested is not a sign bit.
3398 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
3400         * config/h8300/h8300.md (a peephole2): New.
3402 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
3404         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
3405         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
3406         from ld-linux.so.2 to ld.so.1.
3407         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
3408         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
3409         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
3410         nor -Wl,-rpath-link.
3411         (LIB_SPEC): Add -rpath-link if !static.
3412         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
3413         * config/mn10300/mn10300.c (mn10300_protect_label): New
3414         variable.
3415         * config/mn10300/linux.h (PRINT_OPERAND,
3416         PRINT_OPERAND_ADDRESS): Set it during their execution.
3417         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
3418         mn10300_protect_label is set.
3419         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
3420         -Wl,-rpath-link.
3421         (LIB_SPEC, STARTFILE_SPEC): Define.
3422         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
3423         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
3424         FLOAT_BIT_ORDER_MISMATCH.
3425         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
3426         * config.gcc (am33_2.0-*-linux*): Added.
3427         * config/mn10300/linux.h: New.
3428         * config/mn10300/t-linux: New.
3430 2003-07-10  Andreas Jaeger  <aj@suse.de>
3432         * fold-const.c: Properly wrap prototypes.
3434 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
3436         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
3437         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
3438         Moved from...
3439         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
3440         * config/mn10300/mn10300.h: GTY-declare it.
3441         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
3442         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
3443         prototype.  Use incoming RTL argument.
3444         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
3445         * config/mn10300/mn10300.md (int_label): Move C statements...
3446         (GOTaddr2picreg): ... here.
3447         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
3448         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
3449         * config/mn10300/mn10300.c (mn10300_encode_section_info):
3450         ... here.  New function.
3451         (TARGET_ENCODE_SECTION_INFO): Define to it.
3452         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
3453         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
3454         pattern name.
3455         (mn10300_loadPC): Define as insn splittable after reload.
3456         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
3457         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
3458         be defined in .rodata even in PIC, now that the assembler
3459         supports that.
3460         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
3461         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
3462         symbol take an underscore prefix.
3463         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
3464         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
3465         legitimize_pic_address): Declare.
3466         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
3467         the PIC register as fixed.
3468         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
3469         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
3470         PIC.
3471         (LEGITIMATE_PIC_OPERAND_P): Define.
3472         (PIC_OFFSET_TABLE_REGNUM): Define.
3473         (GOT_SYMBOL_NAME): Define.
3474         (SYMBOLIC_CONST_P): Define.
3475         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
3476         symbols.
3477         (MN10300_GLOBAL_P): Test it.
3478         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
3479         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
3480         * config/mn10300/mn10300.c (print_operand): Handle unspec.
3481         (expand_prologue): Set PIC register.
3482         (call_address_operand): Don't match SYMBOL_REFs in PIC.
3483         (legitimize_address): Call legitimize_pic_address.
3484         (legitimize_pic_address): New fn.
3485         (legitimate_pic_operand_p): New fn.
3486         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
3487         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
3488         UNSPEC_PLT): New constants.
3489         (pop_pic_reg): New insn.
3490         (movsi): Adjust non-PIC addresses.
3491         (builtin_setjmp_receiver): Restore the PIC register.
3492         (casesi): New insn.
3493         (call): Adjust non-PIC addresses.
3494         (int_label, GOTaddr2picreg): New expands.
3495         (am33_loadPC): New insn.
3496         (mn10300_loadPC): New expand.
3497         (call_next_insn): New insn.
3498         (add_GOT_to_pic_reg): New expand.
3499         (symGOT2reg, symGOT2reg_i): New expands.
3500         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
3501         (sym2PIC, sym2PLT): New expands.
3503 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
3505         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
3506         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
3507         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
3508         to flag_unsafe_math_optimizations.
3509         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
3510         * config/mn10300/mn10300.c (expand_prologue): Mark
3511         FP-register-saving insns as frame-related.
3512         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
3513         * config/mn10300/mn10300.c
3514         (mn10300_get_live_callee_saved_regs): Don't search past
3515         LAST_EXTENDED_REGNUM.
3516         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
3517         * config/mn10300/mn10300.md: Remove excessive line breaks from
3518         `@' output patterns that were accounted as additional
3519         alternatives.
3520         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
3521         Re-introduce changes accidentally removed in Richard Sandiford's
3522         2000-12-05's patch.
3523         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
3524         Re-instate am33-2 lost in merge from net GCC.
3525         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
3526         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
3527         floating-point registers.
3528         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
3529         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
3530         pessimizations that had gone in on 2000-05-08.
3531         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
3532         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
3533         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
3534         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
3535         operand 0.
3536         * (movhi): Likewise.
3537         * (movsi): Likewise.
3538         * (movsf): Likewise.
3539         * (movdi): Likewise.
3540         * (movdf): Likewise.
3541         Wed May 24 13:16:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
3542         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
3543         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
3544         (expand_prologue, expand_epilogue): Save and restore FP regs.
3545         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
3546         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
3547         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
3548         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
3549         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
3550         Do not clobber cc0.
3551         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
3552         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
3553         Discourage the two-argument, longer opcodes.
3554         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
3555         ones.
3556         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
3557         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
3558         * config/mn10300/mn10300.md (cmpsf): New pattern.
3559         (branch): Test mdep.fpCC and output fbCC.
3560         * config/mn10300/mn10300.c (print_operand): Output conditions.
3561         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
3562         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
3563         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
3564         mulsf3, divsf3): Use the `F' constraint for FP values.
3565         * config/mn10300/mn10300.c (const_1f_operand): New function.
3566         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
3567         * config/mn10300/mn10300.md (sqrtsf2): New expand.
3568         (rsqrtsf2): New insn.
3569         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
3570         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
3571         previous check-in.
3572         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
3573         * config/mn10300/mn10300.md (abssf2, negdf2): On
3574         TARGET_AM33_2, expand to...
3575         (abssf2_am33_2, negdf2_am33_2): New insns.
3576         (addsf3, subsf3, mulsf3, divsf3): Likewise.
3577         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
3578         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
3579         movdi, movdf): Added FP regs.
3580         * invoke.texi (-mam33-2, -mno-am33-2): Document.
3581         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
3582         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
3583         New macros.
3584         (REGNO_AM33_2_FP_P): Renamed to...
3585         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
3586         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
3587         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
3588         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
3589         regs from GENERAL_REGS.
3590         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
3591         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
3592         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
3593         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
3594         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
3595         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
3596         as FP_REGS.
3597         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
3598         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
3599         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
3600         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
3601         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
3602         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
3603         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
3604         AM33/2.0 floating-point registers.
3605         (CONDITIONAL_REGISTER_USAGE): Adjust.
3606         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
3607         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
3608         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
3609         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
3610         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
3611         (MULTILIB_DIRNAMES): Likewise.
3612         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
3613         `__AM33_2__' when `-mam33-2' is given.
3614         (TARGET_AM33_2): Define.
3615         (TARGET_SWITCHES): Adjust.
3616         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
3617         when appropriate.
3619 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
3621         * doc/install.texi: Add missing @.
3623 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
3625         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
3627 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
3629         PR/11144
3630         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
3632 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
3634         PR bootstrap/11043
3635         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
3636         "x-crtfini.o" with "crtinit.o", "crtfini.o".
3638         * fixinc/inclhack.def (limits_ifndefs): Add select test.
3639         * fixinc/fixincl.x: Rebuild.
3641         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
3642         * fixinc/fixincl.x: Rebuild.
3644 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
3646         * doc/install.texi (Configuration): Document the valgrind option
3647         to --enable-checking.
3649 Wed Jul  9 16:16:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
3651         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3653 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3655         * c-lex.c (cb_ident): Cast cstr.text to const char *.
3657 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
3659         * gcov-io.h: Update documentation.
3660         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
3661         GCOV_NOTE_MAGIC.
3662         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
3663         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
3664         (struct gcov_var): Change buffer's type. Add endian flag.
3665         (gcov_open): Remove mode in libgcov.
3666         (gcov_magic): Prototype.
3667         * gcov-io.c (from_file): New.
3668         (gcov_open): Clear endian flag.
3669         (gcov_magic): New.
3670         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
3671         pointers.
3672         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
3673         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
3674         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
3675         * gcov-iov.c (main): Correct cast.
3676         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
3677         conversion.
3678         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
3679         (coverage_init): Use GCOV_NOTE_SUFFIX.
3680         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
3681         Rename to gcov_version, and return flag.
3682         (gcov_exit): Use gcov_version.
3683         (__gcov_init): Use gcov_version.
3684         * Makefile.in (coverageexts): Update.
3685         * gcov.c (print_version): Remove endianness conversion.
3686         (create_file_names): Use GCOV_NOTE_SUFFIX.
3687         (read_graph_file): Use gcov_magic.
3688         (read_count_file): Likewise.
3689         * gcov-dump.c (dump_file): Remove endianness conversion, use
3690         gcov_magic.
3692 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
3694         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
3695         coverage is on.
3696         * configure: Regenerated.
3697         * Makefile.in (ALL_CFLAGS): Correct its comment.
3699 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
3701         * fold-const.c (make_range): Do not access operand 1 for a
3702         zero-operand operator.
3704 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
3706         * toplev.c (warn_dummy, W_options): Die.
3707         (display_help): Don't print W_options.
3708         * common.opt: Add W_options help from toplev.c.
3710 2003-07-09  Andreas Jaeger  <aj@suse.de>
3712         * opts.c (wrap_help): Only pass int arguments as arguments to
3713         printf's '*' modifier.  Change argument of function.
3715 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
3717         * doc/invoke.texi: Fix misspelling of "@item".
3719 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
3721         * config/i386/i386.md: Remove an old comment about
3722         NOTICE_UPDATE_CC.
3724 Wed Jul  9 03:00:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
3726         * cgraph.c (cgraph_node_name): New function.
3727         (dump_cgraph): Use it.
3728         * cgraph.h (cgraph_dump_file): Declare.
3729         (cgraph_node_name): Declare.
3730         * cgraphunit.c: Include timevar.h
3731         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
3732         (cgraph_optimize_function): Use TV_INTEGRATION.
3733         (cgraph_mark_local_functions): reorganize dumps.
3734         (cgraph_mark_functions_to_inline_once): Likewise.
3735         (cgraph_optimize): Likewise; use timevar.
3736         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
3737         * toplev.c (dump_file_index): Add DFI_cgraph.
3738         (dump_file_info): Likewise.
3739         (cgraph_dump_file): New global variable.
3740         (do_compile): Open and close cgraph dump.
3741         * invoke.texi (-d): Document new flag; renumber.
3743 2003-07-08  Roger Sayle  <roger@eyesopen.com>
3745         PR c/11370
3746         * calls.c (emit_call_1): Don't bother popping the arguments off of
3747         the stack after a noreturn function call;  The adjustment is dead.
3748         (expand_call): Likewise.
3750 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
3752         * expr.c (MOVE_MAX_PIECES): Move from here...
3753         * defaults.h (MOVE_MAX_PIECES): ... to here.
3755 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
3757         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
3759 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3761         * genattr.c (internal_dfa_insn_code): Don't prototype.
3762         * genattrtab.c (attr_desc): Add `static_p' field.
3763         (expand_units): Make blockage range and ready cost functions
3764         static.
3765         (write_attr_get): Don't add extern prototypes in C file.  Mark
3766         static functions as appropriate.
3767         (find_attr, make_internal_attr): Initialize static_p.
3768         * genattrtab.h (ATTR_STATIC): New macro.
3769         * genautomata.c (output_internal_reset_func): Mark output function
3770         as inline.
3771         (make_internal_dfa_insn_code_attr): Mark output function as static.
3773 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3775         * genattrtab.h: Add new macros for attr `special' flags.
3776         * genattrtab.c (attr_desc): Reorder/resize fields better.
3777         Use attr `special' macros in all calls to make_internal_attr.
3778         * genautomata.c: Likewise.
3780 Wed Jul  9 02:25:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
3782         * c-common.c (c_estimate_num_insns_1): New static function.
3783         (c_estimate_num_insns): New global function.
3784         * c-common.h (DECL_NUM_STMTS): Rename to...
3785         (DECL_ESTIMATED_INSNS): ... this.
3786         (c_estimate_num_insns): Declare.
3787         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
3788         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3789         * c-semantics.c (add_stmt): Do not account statements.
3790         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
3791         New.
3792         * langhooks.h (lang_hooks_for_tree_inlining): Add
3793         estimate_num_insns
3794         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
3795         to 100.
3796         (max-inline-insns): set to 300.
3797         (min-inline-insns): set to 10.
3798         * tree-inline.c (struct inline_data): Rename inlined_stmts to
3799         inlined-insns.
3800         (INSNS_PER_STMT): Kill.
3801         (inlinable_function_p): Compute and store body size.
3802         (expand_call_inline): Likewise.
3803         (optimize_inline_calls): Likewise.
3805 2003-07-08  James E Wilson  <wilson@tuliptree.org>
3807         PR target/10021
3808         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
3809         loop over new variable t2 instead of t.
3811 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
3813         PR bootstrap/11455
3814         * config/i386/winnt.c: Replace use of error(), warning() with
3815         error_with_decl(), warning_with_decl(),  throughout.
3817 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
3819         * opts.c (wrap_help): Use unsigned int, not size_t.
3821 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
3823         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
3824         as .file/.loc directives are incompatible with linker relaxation.
3826 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
3828         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
3829         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
3830         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
3831         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
3832         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
3833         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
3834         Escape { and } characters which are not part of range expressions.
3835         * fixinc/fixincl.x: Regenerate.
3836         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
3838 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
3840         PR c/1687
3841         * tree-inline.c (find_alloca_call): Use
3842         walk_tree_without_duplicates, instead of walk_tree.
3843         (find_builtin_longjmp_call): Likewise.
3844         * c-objc-common.c (c_cannot_inline_fn): Likewise.
3845         * c-semantics.c (find_reachable_label): Likewise.
3847 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
3849         PR c/11420
3850         * config/i386/i386.c (ix86_check_movabs): New function.
3851         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
3852         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
3853         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
3855 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
3857         * Makefile.in (install-po): Cope with empty CATALOGS.
3859 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
3861         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3862         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
3863         (SECTION_FUNCTION_TEMPLATE): Delete.
3864         * config/mips/elf.h: As for elf64.h.
3865         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
3866         * config/mips/linux.h: As for elf.h
3867         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3868         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
3869         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
3870         of in_sdata from current_section_name and current_section_flags.
3871         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3872         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
3873         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
3874         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
3875         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
3876         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
3877         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
3878         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
3879         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
3880         (override_options): Remove setting of MASK_GPOPT.
3881         (mips_output_external): Use mips_in_small_data_p to check whether a
3882         symbol needs an .extern directive.  Don't emit such directives for
3883         TARGET_EXPLICIT_RELOCS.
3884         (mips_declare_object): Update accordingly.
3885         (mips_select_rtx_section): Call named_section rather than
3886         SMALL_DATA_SECTION.
3887         (mips_select_section): Use default_elf_section_section for everything
3888         except .text string constants.
3889         (mips_in_small_data_p): New function.
3890         (mips_encode_section_info): Remove small data handling.
3891         (mips_unique_section): Delete.
3892         (iris6_section_type_flags): New function.
3893         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
3895 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3897         PR Target/11453
3898         * pa.md: Disparage all mtsar constraints.
3899         (extzv, extv, insv): Don't fail on length of {32|64}.
3901 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
3903         * system.h: Poison MAP_CHARACTER.
3904         * config/i370/i370-protos.h (mvs_map_char): Delete.
3905         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
3906         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
3907         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
3909 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
3911         * toplev.c (randomize): Correct call to time().
3913 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
3915         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
3916         REG_EQUIV notes as well.
3918 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
3920         * doc/md.texi: Fix the description of addmodecc.
3922 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
3924         * Makefile.in (top_builddir): Set to "..", not ".".
3925         (INTLLIBS, INTLDEPS): Delete.
3926         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
3927         (LIBDEPS): Add $(LIBICONV_DEP).
3928         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
3929         (INCLUDES): Replace -I../intl with @INCINTL@.
3930         ($(top_builddir)/intl/libintl.a): Delete rule.
3931         (stage2-start, stage3-start, stage4-start, stageprofile-start,
3932         stagefeedback-start): Use $$ for variable to be evaluated by
3933         shell, not make.
3934         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
3935         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
3936         * aclocal.m4: sinclude ../config/progtest.m4.  Add
3937         contents of lcmessage.m4 from gettext distro.
3938         * configure.in: Check for wchar.h and setlocale.  Set
3939         LIBICONV_DEP to the empty string and substitute it.
3940         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
3941         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
3942         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
3943         in $LIBINTL, to avoid linking it twice.
3944         * configure, config.in: Regenerate.
3946 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
3948         * fixinc/mkfixinc.sh: Remove winnt support.
3949         * fixinc/fixinc.winnt: Delete with extreme prejudice.
3951 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
3953         * Makefile.in: Update.
3954         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
3955         * c.opt: Update documentation.
3956         * common.opt: Add some help text.
3957         * opts.c: Include intl.h.
3958         (wrap_help, print_help): New.
3959         (find_opt, handle_option, common_handle_option): opt_text now
3960         contains the '-'.  Use print_help to output help.
3961         * opts.h (struct cl_option): New member "help".
3962         * opts.sh: Update to handle help text output and to prepend
3963         options with '-'.
3964         * toplev.c (display_help): Remove some help text.
3966 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
3967             Fariborz Jahanian  <fjahanian@apple.com>
3969         * configure.in: Test for PowerPC mfcr field support in assembler.
3970         * config.in, configure: Regenderated.
3972         * config/rs6000/power4.md: Add mfcrf reservation.
3973         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
3974         * config/rs6000/rs6000.c (mfcr_operation): Define.
3975         (print_operand): Add 'Q' case for mfcrf.
3976         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
3977         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
3978         (movcc_internal1): Emit optional field operand for mfcr and set
3979         "type" attribute appropriately.
3980         (mfcr SCC): Likewise.
3981         (movesi_from_cr_one): New.
3983 2003-07-07  Roger Sayle  <roger@eyesopen.com>
3985         * config/i386/i386.md: Correct check-in of incorrect version.
3987 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3989         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
3990         adjacent stdio calls.
3991         * c-decl.c (c_print_identifier): Likewise.
3992         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
3993         * print-rtl.c (print_rtx): Likewise.
3994         * print-tree.c (print_node_brief, print_node): Likewise.
3995         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
3997         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
3998         * config.in, configure: Regenerated.
4000 2003-07-07  Roger Sayle  <roger@eyesopen.com>
4002         PR target/10979
4003         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
4004         Changed to define_expand patterns that copy operand[1] to prevent
4005         it from being clobbered before emitting an atan2?f3_1 insn.
4006         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
4007         patterns that actually specify the behaviour of x87's FPATAN.
4009 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
4011         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
4012         clearing of SYMBOL_FLAG_LOCAL bit.
4013         If vcall_offset fits into signed 16-bit immediate, use
4014         one instruction for both addition and load.
4016 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
4018         * opts.c (common_handle_option): Correct handling of the
4019         -falign- switches that do and don't take an argument.
4021 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
4023         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
4024         today.
4025         (pushhi1_h8300hs): Likewise.
4027 2003-07-07  Andreas Jaeger  <aj@suse.de>
4029         * genextract.c: Convert remaining prototypes to ISO C90.
4031         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
4032         * fold-const.c (fold_single_bit_test): Likewise.
4033         * diagnostic.c (default_diagnostic_finalizer): Likewise.
4034         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
4036         * gengtype.c (write_array): Generate ISO C90 prototypes.
4038         * genflags.c (gen_proto): Generate ISO C90 prototypes.
4040 2003-07-07  Roger Sayle  <roger@eyesopen.com>
4042         PR optimization/11059
4043         * expr.c (can_store_by_pieces): Return true if length is zero.
4044         (store_by_pieces): If length is zero and endp is two, abort,
4045         othwerise, if length is zero and endp is not two, return "to".
4046         (clear_by_pieces): Do nothing if length is zero.
4047         (clear_storage): Do nothing if length is zero.
4048         (store_constructor): Simplify code when size is zero, or the
4049         target has already been cleared.  This avoids emitting a
4050         blockage instruction when initializing empty structures.
4052 2003-07-07  Andreas Jaeger  <aj@suse.de>
4054         * mips-tfile.c: Convert prototypes to ISO C90.
4055         * mips-tdump.c: Convert prototypes to ISO C90.
4057 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
4059         * rtl.h (emit_line_note): Take a location_t.
4060         (emit_line_note_force): Remove.
4061         (set_file_and_line_for_statement): Take a location_t.
4062         * tree.g (emit_line_note): Take a location_t.
4063         * emit-rtl.c (emit_line_note): Take a location_t.
4064         (emit_line_note_force): Remove.
4065         * function.c (init_function_start): Adjust emit_line_note call.
4066         (expand_function_end): Use force_next_line_note, not
4067         emit_line_note_force.
4068         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
4069         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
4070         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
4071         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
4072         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
4073         genrtl_continue_stmt, genrtl_switch_stmt,
4074         genrtl_asm_stmt): Likewise.
4075         * expr.c (expand_expr): Likewise.
4076         * integrate.c (expand_inline_function): Likewise.
4077         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
4078         (expand_decl_init): Adjust emit_line_note call.
4080 2003-07-07  Dale Johannesen  <dalej@apple.com>
4082         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
4084 2003-07-07  Andreas Jaeger  <aj@suse.de>
4086         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
4087         * config/i386/i386.c: Likewise.
4089 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
4091         * config/h8300/h8300.md: Use gen_int_mode instead of
4092         GEN_INT (trunc_int_for_mode (...)).
4094 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
4096         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
4097         2 bytes and then subtract 2 from the stack pointer.
4098         (pushhi1_h8300hs): Likewise.
4100 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
4102         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
4103         -frandom-seed.
4104         * configure: Regenerated.
4105         * Makefile.in: Remove extraneous comment.
4106         * toplev.c (randomize): Protect against potential multiple calls.
4107         * doc/invoke.texi (-frandom-seed): Document use for in coverage
4108         files.
4110 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4111             Eric Botcazou  <ebotcazou@libertysurf.fr>
4113         PR optimization/11198
4114         * alias.c (objects_must_conflict_p): Return 1 if the types have
4115         the same alias set, not if the alias sets only conflict.
4117 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
4119         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
4120         (convert_cset): Change inbuf to type ICONV_CONST char.
4121         * Makefile.in (LIBS): Add LIBICONV.
4123         * doc/invoke.texi (-falign-functions): Document that
4124         when n is zero then a machine-dependent default is used.
4125         (-falign-labels): Document that when n is zero then a
4126         machine-dependent default is used and that -falign-labels =1
4127         is equivalent to -fno-align-labels.
4128         (-falign-loops): Likewise.
4129         (-falign-jumps): Likewise.
4131 2003-07-06  Art Haas  <ahaas@airmail.net>
4133         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
4134         initializer syntax.
4136 2003-07-06  James E Wilson  <wilson@tuliptree.org>
4138         PR optimization/9812
4139         * rtl.h (mem_for_const_double): Delete prototype.
4140         * varasm.c (mem_for_const_double): Delete function.
4141         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
4142         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
4143         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
4144         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
4145         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
4146         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
4147         comment about confused support for XFmode constants.
4149 Mon Jul  7 02:03:56 CEST 2003  Jan Hubicka  <jh@suse.cz>
4151         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
4153 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
4155         * config/h8300/h8300.c: Fix comment typos.
4156         * config/h8300/h8300.md: Likewise.
4157         * config/i386/athlon.md: Likewise.
4158         * config/i386/i386.c: Likewise.
4159         * config/i386/pentium.md: Likewise.
4160         * config/ia64/ia64.c: Likewise.
4161         * config/ia64/itanium1.md: Likewise.
4162         * config/ia64/itanium2.md: Likewise.
4163         * config/m32r/m32r.md: Likewise.
4164         * config/m68hc11/m68hc11.c: Likewise.
4165         * config/mcore/mcore.c: Likewise.
4166         * config/mips/sr71k.md: Likewise.
4167         * config/mips/t-iris5-as: Likewise.
4168         * config/mmix/mmix.h: Likewise.
4169         * config/ns32k/ns32k.h: Likewise.
4170         * config/ns32k/NOTES: Fix a typo.
4172 2003-07-06  Andreas Jaeger  <aj@suse.de>
4174         * stmt.c: Convert remaining prototypes to ISO C90.
4175         * cfglayout.c: Likewise.
4176         * dbxout.c: Likewise.
4177         * gcc.c: Likewise.
4178         * genemit.c: Likewise.
4180         * basic-block.h: Convert prototypes to ISO C90.
4181         * c-parse.in: Likewise.
4182         * c-pragma.h: Likewise.
4183         * c-typeck.c: Likewise.
4184         * cfghooks.h: Likewise.
4185         * cfgloopanal.c: Likewise.
4186         * dbxout.h: Likewise.
4187         * debug.h: Likewise.
4188         * dwarf2asm.h: Likewise.
4189         * gcov.c: Likewise.
4190         * gengtype-lex.l: Likewise.
4191         * sched-int.h: Likewise.
4192         * timevar.c: Likewise.
4194 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
4196         * c-common.h (c_comon_handle_filename,
4197         c_common_missing_arguement): New.
4198         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4199         LANG_HOOKS_MISSING_ARGUMENT): New.
4200         * c-opts.c (missing_arg): Rename c_common_missing_argument,
4201         update to be an appropriate langhook.
4202         (c_common_handle_option): Don't handle filenames.
4203         (c_common_handle_filename): New.
4204         * hooks.c (hook_void_constcharptr,
4205         hook_bool_constcharptr_size_t_false): New.
4206         * hooks.h (hook_void_constcharptr,
4207         hook_bool_constcharptr_size_t_false): New.
4208         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
4209         LANG_HOOKS_MISSING_ARGUMENT): New.
4210         (LANG_HOOKS_INITIALIZER): Update.
4211         * langhooks.h (struct lang_hooks): Add handle_filename and
4212         missing_argument.
4213         * opts.c (handle_option): Don't handle filenames here, but ...
4214         (handle_options): ... here.
4215         (common_handle_option): Don't handle missing arguments here.
4216         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4217         LANG_HOOKS_MISSING_ARGUMENT): New.
4219 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
4221         * Makfile.in: Remove traces of mbchar.
4222         * c-parse.in (MULTIBYTE_CHARS): Remove.
4223         * config.in (MULTIBYTE_CHARS): Remove.
4224         * configure: Remove --enable-mbchar.
4225         * configure.in: Remove --enable-mbchar.
4226         * mbchar.c, mbchar.h: Remove.
4227         * system.h: Poison MULTIBYTE_CHARS.
4228         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
4229         * config/linux.h (MULTIBYTE_CHARS): Remove.
4230         * config/svr4.h (MULTIBYTE_CHARS): Remove.
4231         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
4233 2003-07-06  Andreas Jaeger  <aj@suse.de>
4235         * varray.c (varray_check_failed): Fix typo.
4237         * unroll.c: Convert prototypes to ISO C90.
4238         * varasm.c: Likewise.
4239         * varray.c: Likewise.
4240         * varray.h: Likewise.
4241         * vmsdbgout.c: Likewise.
4242         * xcoffout.c: Likewise.
4243         * xcoffout.h: Likewise.
4245 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
4247         * gcov-io.h: Add a local time stamp.
4248         (struct gcov_info): Add stamp field.
4249         (gcov_truncate): New.
4250         * coverage.c (read_counts_file): Skip the stamp.
4251         (coverage_begin_output): Write the stamp.
4252         (build_gcov_info): Declare and init the stamp.
4253         (coverage_finish): Only unlink data file, if stamp is zero.
4254         * gcov-dump.c (dump_file): Dump the stamp.
4255         * gcov.c (bbg_stamp): New.
4256         (release_structures): Clear bbg_stamp.
4257         (read_graph_file): Read stamp.
4258         (read_count_file): Check stamp.
4259         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
4261 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
4263         * tree.h (default_flag_random_seed): Remove.
4264         * toplev.h (local_tick): Declare.
4265         * tree.c (flag_random_seed, default_flag_random_seed): Move to
4266         toplev.c.
4267         (append_random_chars): Don't call default_flag_random_seed.
4268         * toplev.c (flag_random_seed): Define here. Set local_tick.
4269         (local_tick): Define.
4270         (randomize): New, moved from tree.c.
4271         (print_switch_values): Adjust.
4272         (toplev_main): Call randomize.
4274 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
4276         * tree.h (crc32_string): Declare.
4277         * tree.c (append_random_chars): Remove.
4278         (crc32_string): New.
4279         (get_file_function_name_long): Use crc32_string here.
4281 2003-07-06  Andreas Jaeger  <aj@suse.de>
4283         * gcc.c: Convert prototypes to ISO C90.
4284         * gcc.h: Likewise.
4285         * gcov-dump.c: Likewise.
4286         * gcov-iov.c: Likewise.
4287         * gcse.c: Likewise.
4288         * genattrtab.h: Likewise.
4289         * ggc.h: Likewise.
4290         * global.c: Likewise.
4291         * graph.c: Likewise.
4292         * graph.h: Likewise.
4293         * hosthooks.h: Likewise.
4294         * hooks.h: Likewise.
4295         * hooks.c: Likewise.
4296         * hashtable.h: Likewise.
4297         * hashtable.c: Likewise.
4298         * haifa-sched.c: Likewise.
4299         * integrate.h: Likewise.
4300         * integrate.c: Likewise.
4301         * input.h: Likewise.
4302         * ifcvt.c: Likewise.
4303         * jump.c: Likewise.
4304         * langhooks-def.h: Likewise.  Add extern to prototypes.
4305         * langhooks.c: Likewise.
4306         * langhooks.h: Likewise.
4307         * lcm.c: Likewise.
4308         * local-alloc.c: Likewise.
4309         * loop-init.c: Likewise.
4310         * loop-unroll.c: Likewise.
4311         * loop-unswitch.c: Likewise.
4312         * loop.c: Likewise.
4313         * loop.h: Likewise. Add extern to prototypes.
4314         * machmode.h: Likewise.
4315         * main.c: Likewise.
4316         * mbchar.c: Likewise.
4317         * mbchar.h: Likewise.
4318         * mkdeps.c: Likewise.
4319         * mkdeps.h: Likewise.
4320         * optabs.c: Likewise.
4321         * optabs.h: Likewise.
4322         * output.h: Likewise.
4323         * gccspec.c: Likwise.
4324         * postreload.c: Likewise.
4325         * prefix.c: Likewise.
4326         * prefix.h: Likewise.
4327         * print-rtl.c: Likewise.
4328         * print-tree.c: Likewise.
4329         * profile.c: Likewise.
4330         * read-rtl.c: Likewise.
4331         * real.c: Likewise.
4332         * real.h: Likewise.
4333         * recog.c: Likewise.
4334         * recog.h: Likewise.
4335         * reg-stack.c: Likewise.
4336         * regclass.c: Likewise.
4337         * regmove.c: Likewise.
4338         * regrename.c: Likewise.
4339         * regs.h: Likewise.
4340         * reload.c: Likewise.
4341         * reload.h: Likewise.
4342         * reload1.c: Likewise.
4343         * reorg.c: Likewise.
4344         * resource.c: Likewise.
4345         * resource.h: Likewise.
4346         * rtl-error.c: Likewise.
4347         * rtl.c: Likewise.
4348         * rtl.h: Likewise.
4349         * rtlanal.c: Likewise.
4350         * sbitmap.c: Likewise.
4351         * sbitmap.h: Likewise.
4352         * scan-decls.c: Likewise.
4353         * scan.c: Likewise.
4354         * sched-deps.c: Likewise.
4355         * sched-ebb.c: Likewise.
4356         * sched-int.h: Likewise.
4357         * sched-rgn.c: Likewise.
4358         * sched-vis.c: Likewise.
4359         * sibcall.c: Likewise.
4360         * simplify-rtx.c: Likewise.
4361         * sreal.c: Likewise.
4362         * sreal.h: Likewise.
4363         * ssa-ccp.c: Likewise.
4364         * ssa-dce.c: Likewise.
4365         * ssa.c: Likewise.
4366         * ssa.h: Likewise.
4367         * stack.h: Likewise.
4368         * stmt.c: Likewise.
4369         * stor-layout.c: Likewise.
4370         * stringpool.c: Likewise.
4371         * target.h: Likewise.
4372         * timevar.c: Likewise.
4373         * timevar.h: Likewise.
4374         * tlink.c: Likewise.
4375         * tracer.c: Likewise.
4376         * tree-inline.c: Likewise.
4377         * tree-inline.h: Likewise.
4378         * tree.c: Likewise.
4379         * tree.h: Likewise.
4381 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
4383         * combine.c (nonzero_bits1): Fix a warning.
4385 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
4387         * config/h8300/h8300.c (compute_mov_length): Correct the
4388         length of loading CONST0_RTX (SFmode).
4390 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
4392         * toplev.c (output_clean_symbol_name): Remove.
4393         * toplev.h (output_clean_symbol_name): Remove.
4394         * config/alpha/alpha.c (unicosmk_output_module_name): Use
4395         lbasename & clean_symbol_name.
4397 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
4399         * ggc.h: Follow spelling conventions.
4400         * config/i386/i386.c: Likewise.
4401         * config/i386/winnt.c: Likewise.
4402         * config/rs6000/rs6000.c: Likewise.
4404 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
4406         * bt-load.c: Fix comment typos.
4407         * c-incpath.c: Likewise.
4408         * cfg.c: Likewise.
4409         * cfgcleanup.c: Likewise.
4410         * cfgloop.h: Likewise.
4411         * cfgloopmanip.c: Likewise.
4412         * cfgrtl.c: Likewise.
4413         * diagnostic.h: Likewise.
4414         * dwarfout.c: Likewise.
4415         * emit-rtl.c: Likewise.
4416         * et-forest.c: Likewise.
4417         * et-forest.h: Likewise.
4418         * expr.c: Likewise.
4419         * gcse.c: Likewise.
4420         * genattr.c: Likewise.
4421         * jump.c: Likewise.
4422         * langhooks.h: Likewise.
4423         * local-alloc.c: Likewise.
4424         * loop-unroll.c: Likewise.
4425         * loop-unswitch.c: Likewise.
4426         * ra-build.c: Likewise.
4427         * regclass.c: Likewise.
4428         * regmove.c: Likewise.
4429         * rtl.def: Likewise.
4430         * rtlanal.c: Likewise.
4431         * sched-ebb.c: Likewise.
4432         * sched-rgn.c: Likewise.
4433         * simplify-rtx.c: Likewise.
4434         * ssa.c: Likewise.
4435         * tracer.c: Likewise.
4436         * tree.c: Likewise.
4438 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
4440         * cppcharset.c: Use the correct return type for the fallback iconv
4441         macro.
4443 Sat Jul  5 16:18:53 CEST 2003  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4445         Blame to Jan Hubicka  <jh@suse.cz>
4446         * cfglayout.c (record_effective_endpoints): Split insns before
4447         first basic block correctly.
4449 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4451         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
4452         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
4453         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
4455 2003-07-05  Andreas Jaeger  <aj@suse.de>
4457         * genattrtab.c (write_attr_get): Revert part of last patch to
4458         always write out a prototype.
4460         * genemit.c (gen_split): Readd lost unused attributes in last
4461         patch.
4463 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4465         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
4466         different from header.
4468 2003-07-05  Andreas Schwab  <schwab@suse.de>
4470         * config/m68k/m68k.c: Remove code protected by CRDS.
4471         * config/m68k/m68k.md: Likewise.
4473 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
4475         PR driver/11417
4476         * c-opts.c (permit_fortran_options): New.
4477         (c_common_init_options): Accept fortran front end options if
4478         it looks like we might be preprocessing Fortran.
4479         (c_common_handle_option): Don't reject switch if permit_fotran_options.
4481 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4483         * genattr.c (internal_dfa_insn_code): Output prototype.
4484         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
4485         * genautomata.c: Likewise.
4486         * genconditions.c: Likewise.
4487         * genemit.c: Likewise.
4488         * genextract.c: Likewise.
4489         * gengenrtl.c: Likewise.
4490         * gengtype.c: Likewise.
4491         * genopinit.c: Likewise.
4492         * genoutput.c: Likewise.
4493         * genpeep.c: Likewise.
4494         * genrecog.c: Likewise.
4496 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
4498         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
4499         (struct cpp_options): Add narrow_charset, wide_charset,
4500         bytes_big_endian fields.  Remove EBCDIC field.
4501         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
4503         * cpphash.h: Include <iconv.h> if we have it, otherwise
4504         provide a dummy definition of iconv_t.
4505         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
4506         (_cpp_valid_ucn): Update prototype.
4507         (_cpp_destroy_iconv): New prototype.
4509         * doc/cpp.texi: Document character set handling.
4510         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
4511         * doc/extend.texi: Delete entire section on multiline strings.
4512         Rewrite section on __FUNCTION__ etc now that these are
4513         variables in C.
4515         * cppucnid.tab, cppucnid.pl: New files.
4516         * cppucnid.h: New generated file.
4517         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
4518         (iconv_open, iconv, iconv_close): Provide dummy definitions
4519         if !HAVE_ICONV.
4520         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
4521         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
4522         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
4523         cpp_interpret_string, narrow_str_to_charconst,
4524         wide_str_to_charconst): New.
4525         (ucn_valid_in_identifier): Use a binary search through the
4526         ucnranges table defined in cppucnid.h, not a long chain of if
4527         statements.
4528         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
4529         character names are only valid in C++ and C99" to a warning.
4530         Issue the "meaning of \[uU] is different in traditional C"
4531         warning here.  Take care not to let iconv see an invalid UCS
4532         value if we get a malformed UCN.  Issue an error if we don't
4533         have iconv.
4534         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
4535         cpp_interpret_string to do the heavy lifting.
4537         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
4538         narrow_charset, wide_charset fields of options structure.
4539         (cpp_destroy): Call _cpp_destroy_iconv.
4540         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
4541         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
4542         (cpp_interpret_charconst): Moved to cppcharset.c.
4543         * cpplib.c (dequote_string): Delete.
4544         (interpret_string_notranslate): New.
4545         (do_line, do_linemarker): Use interpret_string_notranslate.
4547         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
4549         * c-common.c (fname_string, combine_strings): Delete.
4550         * c-common.h (fname_string, combine_strings): Delete prototypes.
4551         * c-lex.c (ignore_escape_flag): Delete.
4552         (cb_ident): Use cpp_interpret_string, not lex_string.
4553         (get_nonpadding_token): New function.
4554         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
4555         Adjust calls to lex_string.  Don't write *value twice.
4556         (lex_string): Now handles string constant concatenation.
4557         Most of the work handed off to cpp_interpret_string.
4558         Call fix_string_type here.
4559         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
4560         FUNC_NAME, throughout.
4561         (OBJC_STRING): New token type.
4562         (primary:STRING): No need to call fix_string_type here.
4563         (primary:objc_string): Make that OBJC_STRING.
4564         (objc_string nonterminal): Delete.
4565         (yylexname): Delete code to handle fake string constants.
4566         (yylexstring): Delete entirely.
4567         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
4568         to handle CPP_ATSIGN.
4570         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
4571         * c-opts.c (missing_arg, c_common_handle_option): Handle
4572         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
4573         (c_common_init): Set cpp_opts->bytes_big_endian, not
4574         cpp_opts->EBCDIC.  Call cpp_init_iconv.
4575         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
4576         (TARGET_EBCDIC): Delete default definition.
4578         * objc/objc-act.c (build_objc_string_object): No need to
4579         handle string constant concatenation.
4581 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
4583         * doc/install.texi: Fix typos.
4584         * doc/invoke.texi: Likewise.
4585         * doc/tm.texi: Likewise.
4587 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
4589         * config/pa/fptr.c: Fix comment typos.
4590         * config/pa/pa-64.h: Likewise.
4591         * config/pa/pa.c: Likewise.
4592         * config/pa/pa.h: Likewise.
4593         * config/rs6000/603.md: Likewise.
4594         * config/rs6000/7xx.md: Likewise.
4595         * config/rs6000/darwin.h: Likewise.
4596         * config/rs6000/freebsd.h: Likewise.
4597         * config/rs6000/rs6000.c: Likewise.
4598         * config/rs6000/rs6000.md: Likewise.
4599         * config/rs6000/spe.h: Likewise.
4601 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
4603         * config/s390/2064.md: Change GNU CC to GCC.
4604         * config/s390/2084.md: Likewise.
4605         * config/s390/fixdfdi.h: Likewise.
4606         * config/s390/linux.h: Likewise.
4607         * config/s390/s390-modes.def: Likewise.
4608         * config/s390/s390-protos.h: Likewise.
4609         * config/s390/s390.c: Likewise.
4610         * config/s390/s390.h: Likewise.
4611         * config/s390/s390.md: Likewise.
4612         * config/s390/s390x.h: Likewise.
4614 2003-07-04  Jeff Law  <law@redhat.com>
4616         PR c/11428
4617         * expr.c (do_store_flag): Pass in the correct result type
4618         when calling fold_single_bit_test.
4619         * fold-const.c (fold_single_bit_test): Use result_type for the
4620         result when folding a sign bit test.
4622 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
4624         * opts.c (common_handle_options): Negate sense of -falign- switches.
4626 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
4628         * Makefile.in: Replace PWD with PWD_COMMAND.
4630 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4632         * cfgloopanal.c (count_strange_loop_iterations): New static function.
4633         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
4634         Handle strange loops.
4636 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
4638         * install.texi: Even the g77 manpage is derived from
4639         the full g77 manual.
4641 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
4643         * ABOUT-NLS: Delete.
4644         * intl: Delete entire directory.
4645         * aclocal.m4: Include ../config/gettext.m4.  Delete
4646         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
4647         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
4648         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
4649         Remove intl/Makefile from all_outputs.
4650         * configure, config.in: Regenerate.
4651         * Makefile.in: Expunge all references to intl subdirectory.
4652         Add -I../intl to INCLUDES.
4653         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
4655 2003-07-04  Roger Sayle  <roger@eyesopen.com>
4657         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
4658         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
4660 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
4662         PR c++/5287, PR c++/7910, PR c++/11021
4663         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
4664         dllimport attribute if function is defined at declaration, but
4665         report error instead. Likewise for dllimport'd variable
4666         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
4667         declared within functions, Report error if dllimport or dllexport
4668         symbol is not global.
4669         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
4670         if defined after declaration or if inlined. Don't allow definition
4671         of static data members of C++ classes. Don't dllimport virtual
4672         methods.
4673         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
4674         (i386_pe_mark_dllimport): Remove unnecessary checks.
4675         (i386_pe_encode_section_info): Warn if the dllimport attribute
4676         and symbol prefix have been instantiated and then overridden.
4678         * doc/extend.texi: Document dllimport and dllexport attributes.
4680         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
4682 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
4684         * config/kaos.h (CPP_PREDEFINES): Delete.
4685         (TARGET_OS_CPP_BUILTINS): New.
4687 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4689         * c-aux-info.c: Include toplev.h after c-tree.h.
4690         * c-common.c: Likewise.
4691         (GCC_DIAG_STYLE): Undef.
4692         * c-semantics.c (GCC_DIAG_STYLE): Define.
4693         * c-tree.h (GCC_DIAG_STYLE): Likewise.
4694         * diagnostic.h (inform): Move prototype to toplev.h.
4695         * jump.c: Include diagnostic.h before toplev.h.
4696         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
4697         (warning, error, fatal_error, pedwarn, sorry, inform,
4698         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
4700 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4702         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
4703         at all if edge is not specified.
4704         (can_copy_bbs_p, copy_bbs): New.
4705         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
4706         * cfgloop.c (get_loop_body): Comment more precisely.
4707         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
4708         (scale_bbs_frequencies): Fix comment typo.
4709         (can_duplicate_loop_p): Use can_copy_bbs_p.
4710         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
4712 2003-07-03  Devang Patel <dpatel@apple.com>
4714         * c-opts.c (c_common_parse_file): Remove extra
4715         debug_hooks->start_source_file call.
4717 2003-07-03  Roger Sayle  <roger@eyesopen.com>
4719         * real.c (real_trunc, real_floor, real_ceil): New functions
4720         to implement trunc, floor and ceil respectively.
4721         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
4722         * builtins.c (integer_valued_real_p): New function to test if
4723         a floating point expression has an integer valued result.
4724         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
4725         foo(x) where foo is an integer rounding function.  Similarly,
4726         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
4727         (double)(int)x when both foo and bar are integer rounding
4728         functions and we don't need to honor errno.
4729         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
4730         New functions to fold trunc, floor and ceil.
4731         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
4732         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
4733         to fold BUILT_IN_CEIL*.
4734         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
4735         the remaining integer rounding functions.
4737 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
4739         * config/sparc/sparc.c (function_arg_partial_nregs): Use
4740         SPARC_INT_ARG_MAX to determine where to split unnamed
4741         complex FP arguments.
4743 Thu Jul  3 20:36:47 CEST 2003  Jan Hubicka  <jh@suse.cz>
4745         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
4746         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
4747         (merge_blocks_move_predecessor_nojumps,
4748          merge_blocks_move_successor_nojumps): Use merge_blocks.
4749         (try_optimize_cfg): Use merge_blocks_move.
4750         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
4751         (merge_blocks_nomove): Rename to rtl_merge_blocks.
4752         (cfg_layout_create_basic_block): New.
4753         (rtl_can_merge_blocks): New.
4754         (cfg_layout_split_block): Do not alloc aux by hand.
4755         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
4756         merge_blocks.
4757         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
4758         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
4759         * cfgloopmanip.c (loop_split_edge_with): Likewise.
4760         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
4762         * basic-block.h (basic_block_def): Add field 'rbi'.
4763         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
4764         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
4765         * cfg.c (entry_exit_blocks): Add new field.
4766         * cfglayout.c: Include alloc-pool.h;
4767         (cfg_layout_pool): New.
4768         (record_effective_endpoints, fixup_reorder_chain,
4769         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
4770         of rbi.
4771         (cfg_layout_initialize_rbi): New function.
4772         (cfg_layout_initialize): Use it.
4773         (cfg_layout_finalize): Clear rbi fields.
4774         * cfglayout.h (RBI): Kill.
4775         (cfg_layout_initialize_rbi): Declare.
4776         * cfgloopmanip.c (copy_bbs): Use rbi.
4777         (record_exit_edges): Likewise.
4778         (duplicate_loop_to_header_edge): Likewise.
4779         * cfgrtl.c (cfg_layout_create_basic_block): Use
4780         cfg_layout_initialize_rbi.
4781         (cfg_layout_split_block): Use rbi.
4782         (cfg_layout_delete_block): Likewise.
4783         * loop-init.c (loop_optimizer_finalize): Likewise.
4784         * loop-unswitch.c (unswitch_loop): Likewise.
4785         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
4787         * cfgrtl.c: Update comments.
4788         (try_redirect_by_replacing_jump): New argument.
4789         (redirect_branch_edge): Break out from ...
4790         (rtl_redirect_edge_and_branch): ... this one.
4791         (update_cfg_after_block_merging): Break out from ...
4792         (rtl_merge_blocks): ... this one.
4793         (cfg_layout_split_edge): New.
4794         (cfg_layout_merge_blocks): New.
4795         (cfg_layout_can_merge_blocks_p): New.
4796         (cfg_layout_redirect_edge_and_branch): Reorganize.
4797         (cfg_layout_rtl_cfg_hooks): Fill in.
4798         (cfg_layout_delete_block): Kill barriers.
4799         * cfganal.c (can_fallthru): Deal with exit blocks
4800         * cfglayout.c (cfg_layout_function_header): New function
4801         (record_effective_endpoints): Record function header.
4802         (fixup_reorder_chain): Fixup dead jumptables; place header
4804         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
4805         * bb-reorder.c (cfg_layout_initialize): Update call.
4806         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
4807         edges in cfglayout mode.
4808         * cfglayout.c (cleanup_unconditional_jumps): Kill.
4809         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
4810         * cfglayout.h (cfg_layout_initialize): Update prototype.
4811         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
4812         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
4813         * flow.c (propagate_block): Do not crash when basic block ends
4814         by first insn in the chain.
4815         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
4816         do loop discovery.
4817         * tracer.c (tracer): Update call of cfg_layout_initialize.
4819 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4821         * Makefile.in: Use dependency variables in lieu of explicit
4822         files throughout.
4824 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
4826         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
4827         * tree.h: ...to here.
4829 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
4831         * config/s390/2064.md: Fix comment typos.
4832         * config/s390/2084.md: Likewise.
4833         * config/s390/s390.c: Likewise.
4834         * config/s390/s390.md: Likewise.
4835         * config/sh/sh.c: Likewise.
4836         * config/sh/sh.h: Likewise.
4837         * config/sh/sh.md: Likewise.
4838         * config/sparc/sparc.c: Likewise.
4839         * config/sparc/sparc.h: Likewise.
4840         * config/sparc/sparc.md: Likewise.
4841         * config/stormy16/stormy16.c: Likewise.
4842         * config/stormy16/stormy16.h: Likewise.
4843         * config/stormy16/stormy-abi: Fix a typo.
4845 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
4847         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
4849 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4851         * config/mips/mips.h (save_argv): Delete.
4853 2003-07-03  Roger Sayle  <roger@eyesopen.com>
4855         PR target/10700
4856         * fold-const.c (extract_muldiv_1): There's nothing that can be done
4857         if the expression is a SAVE_EXPR.
4859 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
4861         * config/m32r/m32r.c: Fix comment typos.
4862         * config/m68hc11/m68hc11.c: Likewise.
4863         * config/m68hc11/m68hc11.h: Likewise.
4864         * config/m68k/m68k.c: Likewise.
4865         * config/mcore/mcore.c: Likewise.
4866         * config/mcore/mcore.h: Likewise.
4867         * config/mcore/mcore.md: Likewise.
4868         * config/mips/mips.c: Likewise.
4869         * config/mips/mips.h: Likewise.
4870         * config/mips/mips.md: Likewise.
4871         * config/mips/netbsd.h: Likewise.
4872         * config/mn10300/mn10300.c: Likewise.
4874 2003-07-03  Andreas Schwab  <schwab@suse.de>
4876         * dbxout.c (pending_bincls): Move decl down inside
4877         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
4879 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
4881         * rtl.h (NOTE_DATA): Refer to whole union.
4882         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
4884 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
4886         PR optimization/11381
4887         * simplify-rtx.c (simplify_relational_operation): Check that
4888         two equal operands have no side-effects before simplifying
4889         the comparison.
4891 2003-07-02  Jeff Law  <law@redhat.com>
4893         * expr.c (do_store_flag): Remove special case folding for
4894         single bit tests.  Instead call back into the commonized folder
4895         routine.
4896         * fold-const.c (fold_single_bit_test): New function, mostly
4897         extracted from do_store_flag, with an additional case extracted
4898         from fold.
4899         (fold): Call fold_single_bit_test appropriately.
4900         * tree.h (fold_single_bit_test): Prototype.
4902 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
4904         * system.h: Include filenames.h.
4905         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
4906         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
4907         define based on HAVE_DOS_BASED_FILE_SYSTEM.
4908         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
4909         * config/i386/xm-mingw32.h: Don't define
4910         HAVE_DOS_BASED_FILE_SYSTEM,
4911         DIR_SEPARATOR, or DIR_SEPARATOR_2.
4912         * doc/hostconfig.texi: Update to match.
4914         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
4915         config/i386/cygwin.h:
4916         Use IS_ABSOLUTE_PATH throughout.
4917         * gcc.c (DIR_UP): Delete, unused.
4918         * protoize.c (IS_SAME_PATH): Define in terms of
4919         FILENAME_CMP.
4920         (is_abspath): Delete.
4922 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
4924         * config/i386/emmintrin.h: Fix comment typos.
4925         * config/i386/i386.c: Likewise.
4926         * config/i386/i386.h: Likewise.
4927         * config/i386/sco5.h: Likewise.
4928         * config/ia64/ia64.c: Likewise.
4929         * config/ia64/itanium2.md: Likewise.
4931 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
4933         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
4934         DBX_USE_BINCL.
4935         (emit_bincl_stab): Same.
4936         (emit_pending_bincls): Same.
4938 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
4940         * config/h8300/h8300.c (compute_mov_length): Fix the length of
4941         loading CONST0_RTX (SFmode).
4942         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
4943         'G' to CONST0_RTX (SFmode).
4944         * config/h8300/h8300.md (movsf_h8300): Change the first
4945         constraint to 'G'.
4946         (movsf_h8300h): Likewise.
4948 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
4950         * c-common.h (c_common_init_options): New prototype.
4951         * c-opts.c (deferred_size): Remove.
4952         (defer_opt): Array is now pre-allocated.
4953         (c_common_init_options): Pre-allocate deferred_opts.  Make
4954         lang_flags unsigned.
4955         (push_command_line_options): Free deferred_opts.
4956         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
4957         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
4958         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
4959         * langhooks.h (struct lang_hooks): New prototype for init_options.
4960         * main.c (main): Cast argv.
4961         * opts.c (handle_option, handle_options): Update prototypes.
4962         (decode_options): save_argc, save_argv are not global.  Constify.
4963         * opts.h (decode_options): New prototype.
4964         * toplev.c (general_init): New protoype.
4965         (save_argv): Make static.
4966         (save_argc): Remove.
4967         (print_switch_values, general_init): Constify.
4968         (toplev_main): Save argv.
4969         * toplev.h (toplev_main): Update prototype.
4970         (save_argc, save_argv): Remove.
4972 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
4974         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
4975         (emit_bincl_stab): Same.
4976         (emit_pending_bincls): Same.
4978 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
4980         PR c++/11072
4981         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
4983 2003-07-02  Andreas Schwab  <schwab@suse.de>
4985         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
4987 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
4989         PR optimization/11210
4990         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
4991         about the behaviour with regard to bitfields.
4992         * fold-const (decode_field_reference): Record outermost type in
4993         case the expression is a NOP. Strip all NOPs. Set the signedness
4994         to that of the outermost type (if any) when the bitsize is equal
4995         to the size of the type.
4997 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
4999         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
5000         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
5001         (adddi3_internal_3, addsi3_internal_2): Likewise.
5003 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
5005         * config/mips/mips.c (machine_function): Add new fields:
5006         ignore_hazard_length_p and all_noreorder_p.
5007         (mips_flag_delayed_branch): New variable.
5008         (override_options): Treat '/' as an operand punctuation character.
5009         Set up mips_flag_delayed_branch.
5010         (print_operand): Handle '/'.
5011         (mips_output_function_prologue): Put the whole function in
5012         .set noreorder and .set nomacro if all_noreorder_p is true.
5013         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
5014         (mips16_optimize_gp): Remove "first insn" parameter.
5015         (mips16_lay_out_constants): New function, split out from mips_reorg.
5016         (mips_avoid_hazard, mips_avoid_hazards): New functions.
5017         (mips_reorg): For mips16 code, call mips16_lay_out_constant
5018         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
5019         do delayed-branch scheduling followed by hazard detection.
5020         (mips_adjust_insn_length): Only account for hazards if
5021         !ignore_hazard_length_p.
5022         (mips_output_load_label): Add a nop to the o32 sequence if
5023         the target suffers from load delays.
5024         (mips_output_conditional_branch): Add %/ to the end of branches.
5025         (mips_output_division): Fill the branch delay slot with %#.
5026         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
5027         instructions.  End all other %* branches with %/.
5028         (ffssi2, ffsdi2): Fix lengths.
5029         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
5030         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
5031         (fix_truncsfsi2_macro): Likewise.
5032         (mov_lwl): Set hazard to "none".
5033         (ashldi3_internal): Fill the branch delay slot with %#.
5034         (ashrdi3_internal, lshrdi3_internal): Likewise.
5035         (exception_receiver): Explicitly set $28.
5036         (hazard_nop): New pattern.
5038 Wed Jul  2 08:12:36 CEST 2003  Jan Hubicka  <jh@suse.cz>
5040         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
5041         before calling tree_inlinable_function_p.
5043 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5045         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
5046         <internal/stdio_core.h> too.
5047         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
5048         <internal/wchar_core.h> too.
5049         Substitute va_list uses in inline definition.
5050         * fixinc/fixincl.x: Regenerate.
5052 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5054         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
5055         Undef before redefinition.
5056         (LABEL_AFTER_LOC): Likewise.
5057         (DEFAULT_SIGNED_CHAR): Likewise.
5058         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
5059         Fix IRIX spelling.
5061         * config/mips/iris3.h: Remove, unused.
5062         * config/mips/iris4.h: Likewise.
5064         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
5066         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
5067         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
5068         target_cpu_default.
5070         * config/mips/iris5.h: Move explicit includes ...
5071         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
5073         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
5074         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5075         tm_defines.
5077         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
5078         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5079         target_cpu_default.
5081         * config/mips/iris6.h: Fix IRIX spelling.
5082         (MULTILIB_DEFAULTS): Undef before redefinition.
5084         * config/mips/iris6.h: Move explicit includes ...
5085         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
5087 Wed Jul  2 02:16:48 CEST 2003  Jan Hubicka  <jh@suse.cz>
5089         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
5090         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
5091         Use next_needed field instead of aux to maintain the queue.
5092         * cgraph.h (cgraph_node): Add next_needed.
5093         (cgraph_varpool_node): Add next_needed; remove aux.
5094         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
5096 Wed Jul  2 02:12:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
5098         * cgraphunit.c (cgraph_finalize_function): Set finalized.
5099         (cgraph_finalize_function): Do not examine inlinablility.
5100         (cgraph_finalize_compilation_unit): Do it here.
5101         * cgraph.h (cgraph_local_info): Add finalized field.
5103 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5105         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
5106         (gt_pch_restore): Likewise.
5108 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
5110         * config/alpha/alpha.c: Fix comment typos.
5111         * config/alpha/elf.h: Likewise.
5112         * config/arm/arm.c: Likewise.
5113         * config/arm/arm.h: Likewise.
5114         * config/arm/arm.md: Likewise.
5115         * config/arm/t-arm-coff: Likewise.
5116         * config/arm/t-strongarm-pe: Likewise.
5117         * config/arm/xscale-elf.h: Likewise.
5118         * config/avr/avr.h: Likewise.
5120 2003-07-01  Jeff Law  <law@redhat.com>
5122         * stmt.c (any_pending_cleanups): Remove another redundant test.
5124 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
5125             J"orn Rennecke <joern.rennecke@superh.com>
5127         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
5128         for MEM case.
5130 2003-07-01  Devang Patel  <dpatel@apple.com>
5132         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
5133         (binclstatus): New.
5134         (struct dbx_file): New members - bincl_status, pending_bincl_name and
5135         prev.
5136         (pending_bincls): New.
5137         (dbxout_init): Initialize new dbx_file members.
5138         (dbxout_start_source_file): Same.
5139         (emit_bincl_stab): New function.
5140         (emit_pending_bincls): Same.
5141         (emit_pending_bincls_if_required): Same.
5142         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
5143         processed.
5144         (dbxout_begin_block): Emit pending BINCL stabs.
5145         (dbxout_end_block): Same.
5146         (dbxout_function_decl): Same.
5147         (dbxout_continue): Same.
5148         (dbxout_type): Same.
5149         (dbxout_class_name_qualifiers): Same.
5150         (dbxout_symbol): Same.
5151         (dbxout_symbol_location): Same.
5152         (dbxout_parms): Same.
5154 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5156         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
5157         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
5159 2003-07-01  Andreas Jaeger  <aj@suse.de>
5161         * fold-const.c: Convert prototypes to ISO C90.
5162         * function.c: Likewise.
5163         * function.h: Likewise.
5165 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
5167         * doc/contrib.texi: Fix typos.
5168         * doc/invoke.texi: Likewise.
5169         * doc/passes.texi: Likewise.
5170         * doc/sourcebuild.texi: Likewise.
5171         * doc/tm.texi: Likewise.
5173 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
5175         * basic-block.h: Fix comment typos.
5176         * bb-reorder.c: Likewise.
5177         * c-format.c: Likewise.
5178         * cfgcleanup.c: Likewise.
5179         * cfghooks.h: Likewise.
5180         * cfgloop.c: Likewise.
5181         * cfgloopmanip.c: Likewise.
5182         * cfgrtl.c: Likewise.
5183         * cgraph.h: Likewise.
5184         * cgraphunit.c: Likewise.
5185         * combine.c: Likewise.
5186         * convert.c: Likewise.
5187         * dbxout.c: Likewise.
5188         * df.c: Likewise.
5189         * df.h: Likewise.
5190         * diagnostic.c: Likewise.
5191         * dwarf2out.c: Likewise.
5192         * et-forest.h: Likewise.
5193         * flow.c: Likewise.
5194         * fold-const.c: Likewise.
5195         * function.h: Likewise.
5196         * gcov-io.h: Likewise.
5197         * gcov.c: Likewise.
5198         * gcse.c: Likewise.
5199         * genautomata.c: Likewise.
5200         * ggc-common.c: Likewise.
5201         * ggc-page.c: Likewise.
5202         * loop-unroll.c: Likewise.
5203         * loop-unswitch.c: Likewise.
5204         * loop.c: Likewise.
5205         * mips-tfile.c: Likewise.
5206         * optabs.c: Likewise.
5207         * ra-build.c: Likewise.
5208         * ra-colorize.c: Likewise.
5209         * ra-rewrite.c: Likewise.
5210         * ra.h: Likewise.
5211         * regmove.c: Likewise.
5212         * reload.c: Likewise.
5213         * rtlanal.c: Likewise.
5214         * sched-ebb.c: Likewise.
5215         * sched-int.h: Likewise.
5216         * sched-vis.c: Likewise.
5217         * sreal.c: Likewise.
5218         * ssa-ccp.c: Likewise.
5219         * ssa.c: Likewise.
5220         * toplev.c: Likewise.
5221         * tree-inline.c: Likewise.
5222         * value-prof.c: Likewise.
5223         * value-prof.h: Likewise.
5225 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
5227         * rtl.h (emit_line_note_after): Remove.
5228         (emit_note_copy_after, emit_note_copy): New.
5229         * emit-rtl.c (reorder_insns_with_line_notes): Replace
5230         emit_line_note_after with emit_note_copy_after.
5231         (emit_insn_after_with_line_notes): Likewise.
5232         (emit_line_note_after): Kill.
5233         (emit_note_copy_after): New.
5234         (emit_note_copy): New.
5235         * function.c (emit_return_into_block): Use emit_note_copy_after.
5236         (thread_prologue_and_epilogue_insns): Likewise.
5237         * integrate.c (expand_inline_function): Use emit_note_copy.
5238         (copy_insn_list): Likewise.
5239         * unroll.c (copy_loop_body): Likewise.
5240         * cfglayout.c (duplicate_insn_chain): Likewise.
5242 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
5244         * c-tree.h (define_label): Replace filename and lineno arguments
5245         with a location_t.
5246         * c-decl.c (poplevel): Adjust define_label call.
5247         (pop_label_level): Likewise.
5248         (define_label): Replace filename and lineno arguments with a
5249         location_t.
5250         (store_parm_decls): Use DECL_SOURCE_LOCATION.
5251         * c-parse.in (label): Adjust define_label call.
5253 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
5255         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
5256         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
5257         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
5258         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
5259         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
5261 2003-07-01  Andreas Jaeger  <aj@suse.de>
5263         * final.c: Convert prototypes to ISO C90.
5264         * flow.c: Likewise.
5265         * flags.h: Likewise.
5266         * gcov-io.c: Likewise.
5267         * gcov-io.h: Likewise.
5269 See ChangeLog.9 for earlier changes.