OSDN Git Service

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