OSDN Git Service

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