OSDN Git Service

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