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