OSDN Git Service

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