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