OSDN Git Service

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