OSDN Git Service

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