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