OSDN Git Service

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