OSDN Git Service

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