OSDN Git Service

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