OSDN Git Service

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