1 2003-01-30 Richard Earnshaw <rearnsha@arm.com>
3 * arm.c (arm_compute_initial_elimination_offset): If optimizing for
4 size, the link register is always saved if any other register is
7 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
9 * config/h8300/h8300-protos.h: Update the prototype for
11 (cpp_reader): Declare before it is used.
12 * config/h8300/h8300.c (compute_plussi_cc): Change the return
14 * config/h8300/h8300.md (monitor_prologue): Call abort() if we
15 see an unknown H8 variant.
17 2003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
20 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
21 * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
22 * config/rs6000/t-rtems: New file. multilib variants to match OS.
23 * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
24 rs6000/t-ppcgas so we get the desired multilibs.
26 2003-01-30 Nick Clifton <nickc@redhat.com>
28 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
29 when popping saved IP register off the stack.
31 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
33 * config/rs6000/aix43.h: Fix comment typos.
34 * config/rs6000/aix51.h: Likewise.
35 * config/rs6000/aix52.h: Likewise.
36 * config/rs6000/altivec.h: Likewise.
37 * config/rs6000/rs6000.c: Likewise.
38 * config/rs6000/rs6000.h: Likewise.
39 * config/rs6000/rs6000.md: Likewise.
40 * config/rs6000/spe.md: Likewise.
42 2003-01-29 Mark Mitchell <mark@codesourcery.com>
44 * c-common.c (builtin_define_float_constants): Define
45 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
47 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
49 * config/sh/lib1funcs.asm: Fix comment typos.
50 * config/sh/linux.h: Likewise.
51 * config/sh/sh.c: Likewise.
52 * config/sh/sh.md: Likewise.
54 2003-01-30 Loren James Rittle <ljrittle@acm.org>
56 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
58 2003-01-30 Alexandre Oliva <aoliva@redhat.com>
60 * config/fp-bit.h (__make_dp): Declare if TMODES.
62 2003-01-29 Kazu Hirata <kazu@cs.umass.edu>
64 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
65 general_operand_src and general_operand_dst.
67 2003-01-29 David Edelsohn <edelsohn@gnu.org>
69 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
70 Return true for variable sized types.
71 (rs6000_va_arg): Handle variable sized types passed by reference
74 2003-01-29 Richard Earnshaw <rearnsha@arm.com>
76 * arm.c (arm_legtimize_address): New function.
77 * arm-protos.h (arm_legtimize_address): Add prototype.
78 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
79 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
82 2003-01-29 Joel Sherrill <joel@OARcorp.com>
84 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
85 depended on it being defined until now. This was tracked as PR9296.
87 2003-01-13 Joel Sherrill <joel@OARcorp.com>
89 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
90 RTEMS code knows which C++ initialization style the toolset
91 configuration is using. This was tracked as PR9295.
93 2003-01-29 Joel Sherrill <joel@OARcorp.com>
95 * config/m68k/t-crtstuff: Replace spaces with tabs, add
96 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
97 This issue was tracked as PR9293.
99 2003-01-29 Joel Sherrill <joel@OARcorp.com>
101 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
103 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
104 This issue was tracked as PR9292.
106 2003-01-29 Nick Clifton <nickc@redhat.com>
108 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
111 2003-01-29 Andrew Haley <aph@redhat.com>
113 * tree-inline.c (walk_tree): Add CHAR_TYPE.
115 Wed Jan 29 10:26:12 CET 2003 Jan Hubicka <jh@suse.cz>
117 * i386.md (subdi3_carry_rex64): Fix typo.
119 2003-01-28 Stan Shebs <shebs@apple.com>
121 * coretypes.h (cpp_reader): Forward declare struct.
122 * c-pragma.h (cpp_reader): Remove forward declaration.
123 * hashtable.h (cpp_reader): Likewise.
124 * scan.h (cpp_reader): Likewise.
125 * tree.h (cpp_reader): Likewise.
126 * config/darwin-protos.h (cpp_reader): Likewise.
127 * config/arm/arm-protos.h (cpp_reader): Likewise.
128 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
129 struct cpp_reader in prototypes.
131 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
133 * doc/install.texi: Add documentation for installation into
134 tooldirs and with DESTDIR.
136 2003-01-28 Richard Henderson <rth@redhat.com>
138 * config.gcc (ia64*-*-aix*): Remove.
139 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
140 * config/ia64/unwind-aix.c: Remove file.
142 2003-01-28 Andreas Schwab <schwab@suse.de>
144 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
146 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
147 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
148 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
149 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
150 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
151 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
152 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
154 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
156 * combine.c (nonzero_bits): Fix check for negative divide operands.
158 2003-01-28 Richard Henderson <rth@redhat.com>
160 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
161 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
163 2003-01-28 Richard Henderson <rth@redhat.com>
165 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
167 * config/cris/cris.c (cris_address_cost): Make static.
168 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
169 * config/cris/cris.h (ADDRESS_COST): Remove.
170 * config/cris/cris-protos.h: Update.
172 2003-01-23 Mike Stump <mrs@apple.com>
174 * regclass.c (init_reg_autoinc): New function.
175 (regclass): Move initialization of forbidden_inc_dec_class from
177 (init_regs): to here. Avoids reinitialization for each function,
178 saving compilation time.
180 2003-01-28 Jason Merrill <jason@redhat.com>
182 * cpplib.h (struct cpp_options): Add warn_deprecated field.
183 * cppinit.c (cpp_create_reader): Turn it on by default.
184 * c-opts.c (c_common_decode_option): Set it.
185 * cpplib.c (do_pragma_once): Only complain about #pragma once
186 if warn_deprecated is set.
188 2003-01-28 Dale Johannesen <dalej@apple.com>
190 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
191 * loop.c (scan_loop): Move movables on -Os rich-register targets.
192 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
194 2003-01-28 Richard Henderson <rth@redhat.com>
196 * target.h (targetm.address_cost): New.
197 * target-def.h (TARGET_ADDRESS_COST): New.
198 (TARGET_RTX_COSTS): Uncomment. Oops.
199 * cse.c (address_cost): Use new target hook.
200 (default_address_cost): New.
201 * output.h (default_address_cost): Declare.
202 * hooks.c (hook_int_rtx_0): New.
203 * hooks.h (hook_int_rtx_0): Declare.
204 * loop.c (combine_givs_p): Remove if 0 code.
205 * system.h (ADDRESS_COST): Poison.
207 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
208 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
209 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
210 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
211 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
212 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
213 config/xtensa/xtensa.c, config/xtensa/xtensa.h
214 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
215 (ADDRESS_COST): Remove.
217 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
218 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
219 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
220 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
221 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
222 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
223 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
224 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
225 config/mips/mips.c, config/mips/mips.h,
226 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
227 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
228 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
229 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
230 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
231 config/vax/vax.c, config/vax/vax.h
232 (foo_address_cost): Make static.
233 (TARGET_ADDRESS_COST): New.
234 (ADDRESS_COST): Remove.
236 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
237 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
238 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
239 config/stormy16/stormy16.h
240 (ADDRESS_COST): Move code ...
241 (foo_address_cost): ... here.
242 (TARGET_ADDRESS_COST): New.
244 * config/m32r/m32r.c (m32r_address_cost): Remove.
245 * config/m32r/m32r-protos.h: Update.
247 * config/mmix/mmix.c (mmix_address_cost): Remove.
248 * config/mmix/mmix-protos.h: Update.
250 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
251 mn10300_address_cost; move unsig allocation ...
252 (mn10300_address_cost): ... here.
253 (TARGET_ADDRESS_COST): New.
254 * config/mn10300/mn10300-protos.h: Update.
255 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
257 * doc/tm.texi: Update.
259 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
261 * haifa-sched.c (schedule_insn): Return necessary cycle advance
262 after issuing the insn.
263 (rank_for_schedule): Make a insn with /S the highest priority
265 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
266 (choose_ready): Check SCHED_GROUP_P.
267 (schedule_block): Advance cycle after issuing insn if it is
268 necessary. Don't reorder insns if there is an insn with /S.
269 (set_priorities): Ignore schedule groups.
271 * sched-deps.c (remove_dependence, group_leader): Remove the
273 (add_dependence): Ignore schedule groups.
274 (set_sched_group_p): Don't make copy of dependencies from previous
275 insn of the schedule group. Add anti-dependency to the previous
276 insn of the schedule group.
277 (compute_forward_dependences): Ignore schedule groups.
279 * sched-ebb.c (init_ready_list): Ignore schedule groups.
281 * sched-rgn.c (init_ready_list): Ditto.
282 (can_schedule_ready_p): Ditto.
284 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
286 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
287 register to another one.
289 2003-01-28 Richard Henderson <rth@redhat.com>
291 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
293 2003-01-28 Roger Sayle <roger@eyesopen.com>
295 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
297 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
299 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
300 class contains a floating-point register, return the size of the
303 Tue Jan 28 12:15:13 CET 2003 Jan Hubicka <jh@suse.cz>
305 * i386.c (ix86_carry_flag_operator): New predicate.
306 (fcmov_operator): Fix whitespace.
307 (ix86_expand_carry_flag_compare): Deal with floating point.
308 (ix86_expand_int_movcc): Deal with fp; update insn expansion
309 (ix86_expand_int_addcc): Likewise.
310 (ix86_expand_strlensi_unroll_1): likewsie.
311 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
312 * i386.md (add?i_carry_rex64): Use new predicate.
313 (sub?i3_carry_rex64): Likewise.
314 (x86_mov?icc_0_m1*): Likewise.
316 2003-01-28 Andreas Schwab <schwab@suse.de>
318 * cfgloopmanip.c (create_preheader): Initialize src to avoid
321 * expmed.c (emit_store_flag): Fix cast to avoid sign
324 * combine.c (force_to_mode): Add cast to fix warning when
325 STORE_FLAG_VALUE is negative.
327 2003-01-27 Richard Henderson <rth@redhat.com>
329 * Makefile.in (cse.o): Depend on TARGET_H.
330 * cse.c (rtx_cost): Use targetm.rtx_costs.
331 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
332 * doc/tm.texi: Update.
334 * target.h (targetm.rtx_costs): New.
335 * target-def.h (TARGET_RTX_COSTS): New.
336 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
339 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
340 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
341 * config/alpha/alpha.h (PROCESSOR_MAX): New.
342 (CONST_COSTS, RTX_COSTS): Remove.
344 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
345 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
346 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
347 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
348 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
349 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
350 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
351 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
352 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
353 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
354 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
355 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
356 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
357 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
358 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
359 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
360 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
361 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
362 config/v850/v850.c, config/v850/v850.h,
363 config/xtensa/xtensa.c, config/xtensa/xtensa.h
364 (CONST_COSTS, RTX_COSTS): Move code ...
365 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
367 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
368 (arm_rtx_costs, TARGET_RTX_COSTS): New.
369 * config/arm/arm-protos.h: Update.
370 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
372 * config/avr/avr.h (CONST_COSTS): Move code ...
373 * config/avr/avr.c (avr_rtx_costs): ... here.
374 (default_rtx_costs): Make static.
375 * config/avr/avr-protos.h: Update.
377 * config/h8300/h8300.c (const_costs): Make static.
378 (h8300_and_costs, h8300_shift_costs): Likewise.
379 * config/h8300/h8300-protos.h: Update.
381 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
382 (CONST_COSTS): Move code ...
383 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
384 default_rtx_costs; update for signature change.
385 * config/ip2k/ip2k-protos.h: Update.
387 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
388 (CONST_COSTS): Move code ...
389 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
390 (TARGET_RTX_COSTS): New.
391 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
392 * config/m68hc11/m68hc11-protos.h: Update.
394 * config/m68k/m68k.c (const_int_cost): Make static.
395 * config/m68k/m68k-protos.h: Update.
397 * config/mcore/mcore.c (mcore_const_costs): Make static.
398 (mcore_and_cost, mcore_ior_cost): Likewise.
399 * config/mcore/mcore-protos.h: Update.
401 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
402 (mmix_rtx_cost_recalculated): Remove.
403 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
404 * config/mmix/mmix-protos.h: Update.
406 * config/sh/sh.c (shiftcosts): Make static.
407 (addsubcosts, andcosts, multcosts): Likewise.
408 * config/sh/sh-protos.h: Update.
410 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
411 (sparc_rtx_costs): Make static; update for change in signature.
412 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
413 * config/sparc/sparc-protos.h: Update.
415 * config/v850/v850.c (const_costs): Make static.
416 * config/v850/v850-protos.h: Update.
418 * config/vax/vax.h (RTX_COSTS): Remove.
419 (CONST_COSTS): Move code ...
420 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
422 (vax_rtx_costs, TARGET_RTX_COSTS): New.
424 2003-01-27 Richard Henderson <rth@redhat.com>
426 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
427 * config/vax/vax-protos.h: Update. Really.
429 2003-01-28 Alexandre Oliva <aoliva@redhat.com>
431 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
432 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
433 zero if no hardware floating point.
434 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
435 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
436 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
437 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
438 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
439 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
440 even FP registers on N32 and N64.
441 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
442 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
443 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
444 even-register-like alignment to 128-bit arguments.
445 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
446 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
448 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
449 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
450 (TPBIT): Set to tp-bit.c.
451 (tp-bit.c): Create out of fp-bit.c.
453 2003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
455 * c-parse.in: Remove '%expect 32' directive in objc mode.
457 2003-01-27 Nathan Sidwell <nathan@codesourcery.com>
459 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
460 (LIBGCOV): New variable.
461 (libgcc.mk): Add LIBGCOV.
462 (LIBGCC_DEPS): Add libgcov.c.
463 (libgcov.a): New target.
464 (clean): Remove libgcov.a.
465 (install-libgcc): Do libgcov too.
466 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
468 * libgcc2.c (L_gcov): Move into ...
469 * libgcov.c: ... here. New file.
470 * mklibgcc.in: Add libgcov rules.
471 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
473 * doc/invoke.texi (profile-arcs, test-coverage): Update and
476 * profile.c (index_counts_file): Remove duplicate check for open file.
478 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
480 * gcc/doc/invoke.texi (Optimization Options): Group together
481 optional and experimental flags. Move trapv and bounds-check
482 out of this section. Group floating point flags together.
483 (Code Gen Options): Move trapv and bounds-check to here.
485 2003-01-27 Josef Zlomek <zlomekj@suse.cz>
487 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
489 2003-01-27 Richard Earnshaw <rearnsha@arm.com>
492 * function.c (purge_addressof_1): After pushing an addressed register
493 onto the stack, simplify the result.
495 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
497 * doc/extend.texi: Fix typo.
499 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
501 * doc/cppopts.texi: Fix typo.
502 * doc/objc.texi: Likewise.
503 * doc/passes.texi: Likewise.
505 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
507 * real.c (ibm_extended_format): Add 53 to minimum exponent.
508 (encode_ibm_extended): Adjust.
510 2003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
512 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
513 timevar_id enumerations.
515 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
517 * combine.c: Fix formatting.
519 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
521 * doc/gccint.texi: Update the copyright.
523 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
525 * doc/cpp.texi: Fix typos.
526 * doc/extend.texi: Likewise.
527 * doc/gty.texi: Likewise.
528 * doc/install.texi: Likewise.
529 * doc/passes.texi: Likewise.
530 * doc/rtl.texi: Likewise.
531 * doc/tm.texi: Likewise.
533 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
535 * config/ia64/fde-glibc.c: Fix comment typos.
536 * config/ia64/hpux.h: Likewise.
537 * config/ia64/ia64.c: Likewise.
538 * config/ia64/ia64.h: Likewise.
539 * config/ia64/unwind-ia64.c: Likewise.
541 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
543 * config/i386/i386-modes.def: Fix comment typos.
544 * config/i386/i386.c: Likewise.
545 * config/i386/i386.md: Likewise.
547 2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
549 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
550 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
551 ASM_FINISH_DECLARE_OBJECT before defining it.
552 * toplev.c (rest_of_decl_compilation): Don't define
553 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
554 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
555 parameters for DWARF2 targets because they _are_ used.
557 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
559 * fp-bit.h: Define macros for TFmode floating-point constants
560 in IBM-extended TFmode types.
561 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
563 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
566 * config/fp-bit.h: Define macros for TFmode floating-point
567 constants in IEEE quad TFmode type. Declare functions according
569 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
570 (TFtype, TItype, UTItype): Define if TMODES is defined.
571 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
572 (F_T_BITOFF, D_T_BITOFF): Define.
573 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
574 guaranteed to be wide enough.
575 * config/fp-bit.c: Check for L_ macros for tf functions.
578 (pack_d, unpack_d): Support IEEE 854 quad type.
579 (_fpmul_parts): Support TFmode. Compute exponent adjustment
580 from FRAC_NBITS, FRAC_BITS and NGARDS.
581 (usi_to_float): Cast constants to be shifted to fractype
582 instead of assuming long long is wide enough.
583 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
585 2003-01-26 Andreas Jaeger <aj@suse.de>
587 * df.c: Remove prototype of unused function df_regno_rtl_debug.
589 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
591 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
592 (DBBIT_FUNCS): Added _df_to_tf.
594 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
595 (LIBGCC_DEPS): Added TPBIT.
596 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
598 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
599 been able to move the result to target.
601 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
602 for the appropriate mode.
604 * calls.c (emit_library_call_value_1): Handle return values
607 * rtl.c (get_mode_alignment): Moved to...
608 * stor-layout.c: ... here.
610 * print-rtl.c (print_rtx): Don't print MEM details in
613 2003-01-26 Michael Hayes <mph@paradise.net.nz>
615 * df.h: Update comments, tidy formatting.
616 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
617 REVERSE, UNION, INTERSECTION. All uses updated.
618 (OLD_DF_INTERFACE): Remove.
619 (struct insn_info): Remove commented out insn field.
620 * df.c: Update comments, tidy formatting.
621 (df_def_table_realloc): Remove.
624 2003-01-26 Alan Modra <amodra@bigpond.net.au>
626 * calls.c (save_fixed_argument_area): Tidy.
627 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
628 (expand_call): Comment typo fixes. Don't init low_to_save. Start
629 call chain loop at 1 if !try_tail_call. Formatting.
630 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
631 Use save_fixed_argument_area and restore_fixed_argument_area.
633 2003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
635 * df.c (df_uses_record): Handle CC0.
637 2003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
639 * reload.c (maybe_memory_address_p): New function.
640 (find_reloads_address): Use it instead of memory_address_p.
642 2003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
644 * final.c (shorten_branches): Align the address of code label
645 when computing initial lengths and addresses.
647 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
649 * config/m68hc11/m68hc11.md: Fix a comment typo.
651 2003-01-25 Andreas Jaeger <aj@suse.de>
653 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
656 2003-01-25 Roger Sayle <roger@eyesopen.com>
658 * gcse.c (bypass_last_basic_block): New global variable.
659 (bypass_block): Use redirect_edge_and_branch_force to redirect
660 fall-through edges. Use bypass_last_basic_block to determine
661 which blocks have valid PRE information.
662 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
664 Sat Jan 25 22:31:59 CET 2003 Jan Hubicka <jh@suse.cz>
666 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
668 Sat Jan 25 21:04:33 CET 2003 Jan Hubicka <jh@suse.cz>
669 Eric Botcazou <ebotcazou@libertysurf.fr>
671 * gcse.c (one_cprop_pass): Delete unreachable blocks.
673 2003-01-25 Richard Henderson <rth@redhat.com>
675 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
676 from ia64_aix_select_rtx_section.
677 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
678 instead of saving and restoring flag_pic.
679 (ia64_rwreloc_unique_section): Similarly.
680 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
681 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
682 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
683 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
685 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
687 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
690 2002-01-25 Richard Henderson <rth@redhat.com>
692 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
694 2002-01-25 Kelley Cook <kelleycook@comcast.net>
696 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
698 2003-01-25 Segher Boessenkool <segher@koffie.nl>
700 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
701 type for bitmaps. Use unsigned long.
702 (nBITMAP_WORD_BITS): New macro.
703 (BITMAP_WORD_BITS): New macro.
704 (rest of file): Use it.
707 2003-01-25 Richard Henderson <rth@redhat.com>
709 2002-02-19 Robert Lipe <robertlipe@usa.net>
710 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
712 2002-01-25 Roger Sayle <roger@eyesopen.com>
714 * builtins.c (purge_builtin_constant_p): Scan insn stream
715 sequentially rather than by basic block.
716 * function.c (purge_addressof): Simplify test with INSN_P.
718 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
720 * combine.c (simplify_comparison, case AND): Remove a redundant test.
722 2002-01-25 Roger Sayle <roger@eyesopen.com>
724 * function.h (struct function): New field calls_constant_p.
725 (current_function_calls_constant_p): New macro for above.
726 * function.c (prepare_function_start): Initialize calls_eh_return
727 and calls_constant_p.
728 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
729 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
730 when the current_function_calls_constant_p.
731 * integrate.c (expand_inline_function): Set calls_constant_p if
732 the function being inlined has calls_constant_p set.
734 2002-01-25 Roger Sayle <roger@eyesopen.com>
736 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
737 optimizing, even if flag_gcse is true.
738 * toplev.c (rest_of_compilation): purge_builtin_constant_p
739 only needs to be called when "optimize > 0 && flag_gcse".
741 2003-01-25 Roger Sayle <roger@eyesopen.com>
743 * stmt.c (emit_case_bit_tests): New routine to implement suitable
744 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
745 (case_bit_test_cmp): New comparison function for "qsort" to order
746 case_bit_tests by decreasing number of destination nodes.
747 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
748 (expand_end_case_type): Use emit_case_bit_tests to implement
749 suitable switch statments.
750 (CASE_USE_BIT_TESTS): New target macro to disable the above.
751 * Makefile.in (stmt.o): Add dependency on optab.h.
752 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
754 2003-01-23 Andreas Schwab <schwab@suse.de>
756 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
757 __do_global_ctors_aux hidden global and don't put it in
759 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
760 instead so that it comes first.
762 Sat Jan 25 16:11:22 CET 2003 Jan Hubicka <jh@suse.cz>
764 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
765 subreg is read/modify.
767 Sat Jan 25 15:55:08 CET 2003 Jan Hubicka <jh@suse.cz>
769 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
770 do libcall for large blocks.
771 * i386.md (comi patterns): Set type to ssecomi.
772 (sse2_unpck?pd): Fix mode of vec_select.
774 * cse.c: Include except.h
775 (cse_set_around_loop): Do not create new basic blocks.
776 * Makefile.in (cse.o): Add dependnecy on except.h
778 Sat Jan 25 12:05:17 CET 2003 Jan Hubicka <jh@suse.cz>
780 * builtins.c (fold_trunc_transparent_mathfn): New function.
781 (fold_builtin): Use it.
782 * convert.c (convert_to_real): Re-enable code to convert
783 math functions; add support for floor familly functions.
785 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
787 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
788 dependencies on coretypes.h and $(TM_H).
790 Sat Jan 25 11:10:03 CET 2003 Jan Hubicka <jh@suse.cz>
792 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
794 2002-01-24 Stuart Hastings <stuart@apple.com>
796 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
798 2003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
800 * config/c4x/c4x.md (UNSPEC_BU): New constants.
801 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
802 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
803 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
804 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
805 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
806 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
807 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
809 Fri Jan 24 23:44:12 CET 2003 Jan Hubicka <jh@suse.cz>
811 * emit-rtl.c (reg_attrs_htab): New static variable.
812 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
814 (reg_rtx): Do not maintain regno_decl.
815 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
816 set_mem_attrs_from_reg): New global function.
817 (init_emit): Do not initialize regno_decl.
818 (init_emit_once): initialize reg_attrs_htab.
819 * final.c (alter_subreg): Do not replace REG by SUBREG.
820 (gen_mem_expr_from_op): Improve output.
821 (output_asm_operands): Likewise.
822 * function.c (assign_params): Do not set REGNO_DECL.
823 * function.h (struct function): Kill regno_decl.
825 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
826 * print_rtl.c (print_rtx): Output REG information.
827 * regclass.c (reg_scan_mark_refs): Update attrs.
828 * reload1.c (alter_reg): Likewise.
829 * simplify_rtx.c (simplify_subreg): Likewise.
830 * stmt.c (expand_decl): Likewise.
831 * rtl.def (REG): Add new field.
832 * rtl.h (struct reg_attrs): New.
833 (rtunion_def): At rtreg.
834 (X0MEMATTR): Add checking.
835 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
836 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
838 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
840 2003-01-24 Bob Wilson <bob.wilson@acm.org>
842 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
843 (xtensa_emit_call, print_operand): Fix printf format strings
844 to avoid compile warnings.
845 (xtensa_function_prologue, xtensa_function_epilogue): Change type
846 of "size" argument to HOST_WIDE_INT to fix compile warnings.
847 * config/xtensa/xtensa-protos.h
848 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
850 Fri Jan 24 23:03:32 CET 2003 Jan Hubicka <jh@suse.cz>
852 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
853 (implicit_built_in_decls): New global array.
854 (mathfn_built_in): New global function.
855 (fold_trunc_transparent_mathfn): New static function
856 (expand_builtin_strstr, expand_bultin_strchr,
857 expand_builtin_strpbrk, expand_builtin_strcpy,
858 expand_builtin_strncpy, expand_bultin_strcmp,
859 expand_bultin_strncat, expand_builtin_fputs): Use
860 implicint_built_in_decls.
861 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
862 * builtins.def: Fix comments.
863 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
864 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
865 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
866 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
867 (DEF_C99_C90RES_BULTIN): New.
868 (*f, *l builtins): Update.
869 * c-common.c (DEF_BUILTIN): Initialize implicit array.
870 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
871 * convert.c (strip_float_extensions): New global function.
872 * tree.h (DEF_BUILTIN): Accept 10 arguments.
873 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
875 * java/builtins.c (define_builtin): Handle implicit.
876 (DEF_BUILTIN): Update.
877 * tm.texi (TARGET_C99_FUNCTIONS): Document.
878 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
879 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
882 2003-01-24 Bob Wilson <bob.wilson@acm.org>
884 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
885 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
886 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
887 * config/xtensa/crti.asm: New file.
888 * config/xtensa/crtn.asm: New file.
889 * config/xtensa/t-elf: New file.
890 * config/xtensa/t-linux: New file.
891 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
892 Move various CFLAGS settings to new t-elf file.
894 2003-01-24 Richard Henderson <rth@redhat.com>
897 * tree-inline.c (find_builtin_longjmp_call_1): New.
898 (find_builtin_longjmp_call): New.
899 (inlinable_function_p): Use it.
901 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
903 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
904 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
905 * config/i386/i386.c (function_arg_pass_by_reference): New.
906 (ix86_va_arg): Support arguments passed by reference.
908 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
910 * cfgloopanal.c: New file.
911 * cfgloopmanip.c: New file.
912 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
913 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
914 cfglayout.o): Add dependency on cfgloop.h.
915 (cfgloop.o): Add flags.h dependency.
916 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
917 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
918 (struct loop, struct loops, flow_loops_find, flow_loops_update,
919 flow_loops_free, flow_loops_dump, flow_loop_dump,
920 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
921 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
922 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
923 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
924 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
925 find_common_loop, verify_loop_structure): Declarations moved to ...
926 * cfgloop.h: New file.
927 * bb-reorder.c (reorder_basic_blocks): Modified.
928 * cfglayout.c: Include cfgloop.h.
929 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
930 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
931 (break_superblocks): New static function.
932 (cfg_layout_finalize): Use it.
933 (cfg_layout_split_block): New function.
934 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
936 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
938 (cfg_layout_split_block): Declare.
939 * cfgloop.c: Include cfgloop.h and flags.h.
940 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
941 get_loop_body): Avoid signed versus unsigned comparison warnings.
942 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
943 loop_latch_edge): Modified.
944 (verify_loop_structure): Modified to use flags stored in loop structure;
945 check irreducible loops.
946 (cancel_loop, cancel_loop_tree): New functions.
947 (estimate_probability): Use loop analysis code for predictions.
948 (estimate_loops_at_level): Avoid signed versus unsigned comparison
950 * doloop.c: Include cfgloop.h.
951 * loop.c: Include cfgloop.h.
952 * predict.c: Include cfgloop.h.
953 * toplev.c: Include cfgloop.h.
954 * unroll.c: Include cfgloop.h.
955 * tracer.c (tracer): Modified.
957 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
959 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
961 2003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
963 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
964 * configure: Regenerate.
966 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
967 (tls_symbolic_reference_mentioned_p): Add prototype.
968 (s390_tls_get_offset): Add prototype.
969 (emit_pic_move): Remove prototype, replace by ...
970 (emit_symbolic_move): .. this new prototype.
972 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
973 (tls_model_chars): New global variable.
974 (s390_encode_section_info): Encode TLS model.
975 Use targetm.binds_local_p to check for local symbols.
976 (s390_strip_name_encoding): New function.
977 (TARGET_STRIP_NAME_ENCODING): Define.
979 (get_thread_pointer): New function.
980 (legitimize_tls_address): New function.
981 (legitimize_address): Call it.
982 (emit_pic_move): Remove, replace by ...
983 (emit_symbolic_move): ... this new function.
985 (larl_operand): Handle TLS operands.
986 (legitimate_constant_p): Likewise.
987 (s390_decompose_address): Likewise.
988 (s390_cannot_force_const_mem): New function.
989 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
991 (s390_output_symbolic_const): Handle TLS unspecs.
992 (print_operand): New code 'J'.
993 (machine_function): Add struct member 'some_ld_name'.
994 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
996 (enum s390_builtin): New type.
997 (code_for_builtin_64, code_for_builtin_31): New global variables.
998 (s390_init_builtins, s390_expand_builtin): New functions.
999 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1001 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
1002 (ASM_OUTPUT_LABELREF): Define.
1003 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
1005 * config/s390/s390.md: Define TLS UNSPEC constants.
1006 ("movdi", "movsi"): Handle TLS operands.
1007 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
1008 ("*tls_load_64", "*tls_load_31"): New insns.
1009 ("call_value_tls", "call_value_tls_exp"): New expanders.
1010 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
1011 "bas_tls_64", "bas_tls_31"): New insns.
1013 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
1015 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
1016 spe ABI is configured, if requested.
1018 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1020 * doc/passes.texi: Fix typo.
1022 2003-01-24 Andreas Schwab <schwab@suse.de>
1024 * stor-layout.c (excess_unit_span): Only define if used.
1026 2003-01-24 Jerry Quinn <jlquinn@optonline.net>
1028 * gcc/doc/invoke.texi (Optimization Options): List -O levels
1029 for each optimization flag.
1031 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
1033 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
1035 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1037 * doc/bugreport.texi: Use @command instead of @code for commands.
1038 * doc/collect2.texi: Likewise.
1039 * doc/headerdirs.texi: Likewise.
1040 * doc/invoke.texi: Likewise.
1041 * doc/standards.texi: Likewise.
1042 * doc/tm.texi: Likewise.
1043 * doc/trouble.texi: Likewise.
1045 2003-01-24 Nick Clifton <nickc@redhat.com>
1047 * config/arm/arm.c (use_return_insn): Do not use a single return
1048 instruction for interrupt handelrs which have to create a stack
1050 (arm_expand_prologue): Do not pre-bias the return address of
1051 interrupt handlers which create a stack frame.
1053 2003-01-24 Nick Clifton <nickc@redhat.com>
1057 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
1059 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
1060 med_cbranches. Fix logic in short_cbranches.
1062 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
1064 * config/sh/sh.md (delay for cbranch): Don't annul delay
1066 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
1067 cbranch with unfilled delay slot on SH2e.
1068 (output_branch): Fill with a nop the delay slot of a
1069 branch that required a delay slot but didn't get one.
1071 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1073 * doc/invoke.texi (SH options): Document -m2e.
1074 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
1075 * config/sh/lib1funcs.asm: Likewise.
1076 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
1077 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
1079 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
1081 (SH3E_BIT): Renamed to...
1082 (SH_E_BIT): ... this. Replace all uses.
1083 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
1084 Replace all uses of TARGET_SH3E with TARGET_SH2E.
1085 (TARGET_SWITCHES): Added 2e.
1086 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
1087 (processor_type): Added PROCESSOR_SH2E.
1088 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
1089 TARGET_SH2E, except in sqrtsf2_i.
1090 (attribute cpu): Added sh2e.
1091 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
1092 (MULTILIB_MATCHES): Use m2e multilib for m3e.
1093 * config.gcc: Add sh2e target support.
1095 2003-01-24 Phil Edwards <pme@gcc.gnu.org>
1097 Rename -W to -Wextra.
1098 * c-decl.c: Update comments.
1099 * c-typeck.c: Likewise.
1100 * flags.h: Likewise.
1101 * function.c: Likewise.
1103 * toplev.c: Update comments.
1104 (W_options): Add 'extra'.
1105 (display_help): Remove '-W'.
1106 (decode_W_option): Special warn_uninitialized treatment in the case
1108 * doc/invoke.texi: Update with new entries.
1110 2003-01-23 Richard Henderson <rth@redhat.com>
1112 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
1113 in no-else-block case. Add commentary.
1115 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1117 * configure.in: Revert last change.
1119 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1121 * configure.in: Don't include ansidecl.h in tconfig.h.
1122 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
1123 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
1126 * configure: Regenerate.
1128 2003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1131 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
1132 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
1135 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1137 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
1139 2003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
1141 * genattrtab.c (write_attr_get): Mark 'insn' paramter
1142 as ATTRIBUTE_UNUSED.
1144 2003-01-23 Richard Earnshaw <rearnsha@arm.com>
1146 * arm.c (thumb_base_register_rtx_p): New function.
1147 (thumb_index_register_rtx_p): New function.
1148 (thumb_legitimate_address_p): New function.
1149 (thumb_legitimate_offset_p): New function.
1150 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
1151 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
1153 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
1154 (THUMB_LEGITIMATE_OFFSET): Delte.
1155 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
1156 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
1157 (thumb_legitimate_offset_p): Likewise.
1159 2003-01-23 Andreas Schwab <schwab@suse.de>
1161 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
1163 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1165 * fixinc/Makefile.in (FL_LIST): Revert last change.
1167 2003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1170 * invoke.texi (ftest-coverage): Fix broken cross-reference.
1171 Change @code to @command for gcov command.
1173 * gcc.texi: Adjust title of gcov section.
1175 * gcov.texi: Likewise.
1177 2003-01-22 Roger Sayle <roger@eyesopen.com>
1179 PR optimization/8423
1180 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
1181 its argument is constant, or 0 if !flag_gcse.
1182 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
1183 if it's argument is constant.
1184 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
1185 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
1186 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
1187 * builtins.c (purge_builtin_constant_p): New function to force
1188 instantiation of any remaining CONSTANT_P_RTX nodes.
1189 * rtl.h (purge_builtin_constant_p): Prototype here.
1190 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
1191 pass after GCSE and before loop.
1192 (flag_gcse): No longer static.
1193 * flags.h (flag_gcse): Prototype here.
1195 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
1197 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
1198 introduced by last change.
1200 2003-01-22 Andreas Schwab <schwab@suse.de>
1202 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
1204 2003-01-22 Kazu Hirata <kazu@cs.umass.edu>
1206 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
1207 request a scratch reg on H8S when the shift count is 8.
1209 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
1211 * config/s390/s390-protos.h (preferred_la_operand_p):
1212 Remove second parameter.
1213 * config/s390/s390.c (preferred_la_operand_p): Likewise.
1214 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
1215 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
1216 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
1217 Add peepholes to transform ADD to LOAD ADDRESS.
1219 2003-01-22 Richard Earnshaw <rearnsha@arm.com>
1221 * arm.c (arm_address_register_rtx_p): New function.
1222 (arm_legitimate_address_p): New function.
1223 (arm_legitimate_index_p): New function.
1224 (legitimize_pic_address): Use arm_legitimate_index_p.
1225 * arm-protos.h (arm_legtimate_address_p): Add prototype.
1226 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
1227 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
1229 2003-01-22 Hartmut Penner <hpenner@de.ibm.com>
1231 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
1232 * config/s390/2064.md (define_bypass): Correct 'Load' and
1233 'Load-address' bypass values.
1235 2003-01-22 Andreas Schwab <schwab@suse.de>
1237 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
1239 2003-01-21 Zack Weinberg <zack@codesourcery.com>
1241 * genautomata.c (output_internal_insn_latency_func,
1242 output_print_reservation_func): Short circuit when there is no
1243 automaton to generate code for.
1245 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1247 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
1248 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
1250 2003-01-21 Geoffrey Keating <geoffk@apple.com>
1252 * config/rs6000/rs6000.md: Remove warning.
1253 (builtin_setjmp_receiver): Likewise.
1254 * config/darwin.c (update_stubs): Slightly improve terrible hack
1255 with identifiers. Add comment pointing out problems with it.
1256 (update_non_lazy_ptrs): Likewise.
1258 2003-01-21 Richard Henderson <rth@redhat.com>
1260 * dwarf2out.c (lookup_filename): Fix printf format warning.
1261 * system.h (fread_unlocked, fwrite_unlocked): Undef.
1263 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
1264 (fixincl.o-warn, gnu-regex.o-warn): New.
1265 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
1266 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
1267 * fixinc/fixincl.c (process): Fix printf format warning.
1269 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
1271 * dwarf2out (output_file_names): Don't crash if called
1272 with empty file_table.
1274 2003-01-21 Zack Weinberg <zack@codesourcery.com>
1276 * genautomata.c (output_internal_insn_latency_func): Add
1277 missing break statement to generated code.
1279 2003-01-21 Roger Sayle <roger@eyesopen.com>
1281 * stmt.c (same_case_target_p): New function to determine whether
1282 two case labels branch to the same target. Split out from...
1283 (group_case_nodes): ... here. Use same_case_target_p instead.
1284 (strip_default_case_nodes): Remove explicit case nodes
1285 that branch to the default destination.
1286 (expand_end_case_type): Call strip_default_case_nodes after
1287 group_case_nodes, to simplify the case-list before we count it.
1288 Only generate table_label RTX when actually needed. Try to share
1289 thiscase->exit_label and thiscase->data.case_stmt.default_label
1290 when a switch has no explicit default case. Simplify test for
1293 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
1295 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
1297 (*negsf2_h8300hs): Likewise.
1298 (*addsi3_lshiftrt_16_zexthi): Likewise.
1299 (*iorhi3_lshiftrt_8): Likewise.
1301 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
1303 * dwarf2out.c (fde_table_in_use): Mark GTY.
1304 (dwarf2out_cfi_label_num): New variable, marked GTY.
1305 (dwarf2out_cfi_label): Use it instead of static label_num.
1306 * emit-rtl.c (label_num): Mark GTY.
1308 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
1310 * config/h8300/h8300.c (output_plussi): Support H8/300.
1311 (compute_plussi_length): Likewise.
1312 (compute_plussi_cc): Likewise.
1313 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
1314 output assembly instructions.
1316 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1318 * calls.c (fix_unsafe_tree): Prototype.
1320 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
1321 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
1322 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
1323 c-parse.o-warn): Add -Wno-error.
1324 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
1326 * configure.in (--enable-werror): Add new flag.
1327 * doc/install.texi (--enable-werror): Document.
1328 * configure: Regenerate.
1330 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
1332 2003-01-21 Andreas Schwab <schwab@suse.de>
1334 * genautomata.c (output_internal_insn_latency_func): Fix missing
1335 close paren in output.
1337 2003-01-21 Zack Weinberg <zack@codesourcery.com>
1339 * genautomata.c: Space savings in generated code:
1340 (output_dfa_insn_code_func): Split out the table-enlargement
1341 path to an out-of-line static function, dfa_insn_code_enlarge.
1342 (output_internal_insn_latency_func): Use a lookup table for the
1344 (output_print_reservation_func): Use a lookup table for the
1347 2003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
1350 * calls.c (fix_unsafe_tree): Split out from ...
1351 (expand_call): ... here. Use it on the function address too.
1353 2003-01-20 Richard Henderson <rth@redhat.com>
1355 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
1357 2003-01-20 Richard Henderson <rth@redhat.com>
1360 * stmt.c (expand_asm_operands): Validize memory operands.
1362 2003-01-20 Richard Henderson <rth@redhat.com>
1365 * ifcvt.c (noce_process_if_block): Correct arguments to
1366 modified_between_p for no-else-block case.
1368 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1370 * config/h8300/h8300.c (const_costs): Remove a warning.
1371 (output_plussi): Likewise.
1372 (compute_plussi_length): Likewise.
1373 (compute_plussi_cc): Likewise.
1375 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1377 * config/h8300/h8300.md (addsi_h8300): Remove the last
1380 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1382 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
1384 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1386 * system.h (__NO_STRING_INLINES): Define.
1388 2003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1390 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
1391 is not a scalar int mode.
1393 2003-01-20 Roger Sayle <roger@eyesopen.com>
1395 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
1396 insn's notes following a substitution inside a libcall.
1398 2003-01-20 Zack Weinberg <zack@codesourcery.com>
1400 * configure.in: Check for system-provided 'uchar' type.
1401 * configure, config.in: Regenerate.
1402 * cpphash.h: Only typedef 'uchar' if the system doesn't.
1404 2003-01-20 Richard Henderson <rth@redhat.com>
1406 * expr.h (MUST_PASS_IN_STACK): Move implementation...
1407 * calls.c (default_must_pass_in_stack): ... here.
1409 2003-01-20 Vladimir Makarov <vmakarov@redhat.com>
1411 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
1413 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
1415 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
1416 Wrap up definition of `insn_alts'.
1418 * genattrtab.c (main): Wrap up `insn_alts'.
1420 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1422 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
1424 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
1426 * config.in, configure: Regenerate.
1428 2003-01-20 Nick Clifton <nickc@redhat.com>
1430 * config/arm/arm.md (sibcall_epilogue): Add an
1431 UNSPEC_PROLOGUE_USE to prevent the link register from being
1434 Mon Jan 20 14:36:23 CET 2003 Jan Hubicka <jh@suse.cz>
1436 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
1438 2003-01-20 Andreas Schwab <schwab@suse.de>
1440 * system.h: Don't declare strsignal if the decl test hasn't been
1443 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1445 * config/h8300/h8300.c (notice_update_cc): Don't assume that
1446 recog_data.operands[0] is always associated with cc0.
1448 2003-01-19 David Edelsohn <edelsohn@gnu.org>
1450 * collect2.c (ldgetname): Expand declaration to prototype.
1451 * read-rtl.c (atoll): Add prototype.
1452 * system.h (strsignal): Also declare if no declaration found.
1454 2003-01-19 Alexandre Oliva <aoliva@redhat.com>
1456 * config.gcc (mips64*-*-linux*): Added.
1457 * config/mips/linux64.h, config/mips/t-linux64: New file.
1458 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
1459 * config/mips/mips.c (override_options): Use it.
1460 * config/mips/mips.h (TARGET_SWITCHES): Added...
1461 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
1462 * Makefile.in (SPECS): New.
1463 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
1464 * gcc.c (process_command): Move self-spec processing past spec
1466 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
1467 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
1470 * doc/invoke.texi (-mabi-fake-default): Document.
1472 2003-01-19 Stephane Carrez <stcarrez@nerim.fr>
1474 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
1475 z_reg, z_reg_qi): Declare static and GTY().
1477 (create_regs_rtx): Don't create da_reg.
1478 ("gt-m68hc11.h"): Include for GTY roots.
1479 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
1481 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
1482 (m68hc11_soft_tmp_reg): Likewise.
1483 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
1485 2003-01-18 Kazu Hirata <kazu@cs.umass.edu>
1487 * basic-block.h: Fix comment formatting.
1488 * calls.c: Likewise.
1489 * combine.c: Likewise.
1490 * convert.c: Likewise.
1492 * haifa-sched.c: Likewise.
1493 * libgcc2.c: Likewise.
1495 * profile.c: Likewise.
1496 * system.h: Likewise.
1498 2003-01-18 Roger Sayle <roger@eyesopen.com>
1500 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
1502 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1504 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
1506 2003-01-17 Dale Johannesen <dalej@apple.com>
1508 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
1509 (*floatunssidf2_internal): Ditto.
1511 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
1513 * alias.c: Fix comment typos.
1514 * basic-block.h: Likewise.
1515 * c-common.c: Likewise.
1516 * c-common.h: Likewise.
1517 * c-decl.c: Likewise.
1518 * c-opts.c: Likewise.
1519 * c-pragma.c: Likewise.
1520 * c-pretty-print.h: Likewise.
1522 * cfganal.c: Likewise.
1523 * cfgbuild.c: Likewise.
1524 * cfgcleanup.c: Likewise.
1525 * cfglayout.c: Likewise.
1526 * cfgrtl.c: Likewise.
1527 * convert.c: Likewise.
1528 * cpphash.h: Likewise.
1529 * cpplex.c: Likewise.
1530 * cpplib.h: Likewise.
1532 * diagnostic.c: Likewise.
1533 * diagnostic.h: Likewise.
1534 * dwarf2.h: Likewise.
1536 2003-01-17 Stan Shebs <shebs@apple.com>
1538 * config/darwin-protos.h: Forward-declare struct cpp_reader.
1540 2003-01-17 Douglas B Rupp <rupp@gnat.com>
1542 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
1543 mistake in last checkin.
1545 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
1547 * et-forest.c: Fix comment typos.
1548 * et-forest.h: Likewise.
1549 * except.c: Likewise.
1551 * flags.h: Likewise.
1555 * genattrtab.c: Likewise.
1556 * genautomata.c: Likewise.
1557 * gengtype.c: Likewise.
1558 * genrecog.c: Likewise.
1559 * global.c: Likewise.
1560 * gthr-rtems.h: Likewise.
1562 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1564 * i386.c (x86_function_profiler): Fix format specifier.
1566 2003-01-17 Richard Henderson <rth@redhat.com>
1568 * gengtype.c (walk_type): Allow paramN_is.
1570 2003-01-17 Nick Clifton <nickc@redhat.com>
1572 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
1574 2003-01-16 Richard Henderson <rth@redhat.com>
1576 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
1578 2003-01-16 Richard Henderson <rth@redhat.com>
1580 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
1581 (alpha_next_sequence_number): Likewise.
1582 (alpha_this_literal_sequence_number): Likewise.
1583 (alpha_this_gpdisp_sequence_number): Likewise.
1584 (struct alpha_funcs, alpha_funcs_num): Likewise.
1585 (struct alpha_links): Fix branch merge error.
1586 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
1588 2003-01-17 Alexandre Oliva <aoliva@redhat.com>
1590 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
1593 2003-01-16 Kazu Hirata <kazu@cs.umass.edu>
1595 * ifcvt.c: Fix comment typos.
1597 * libgcc2.c: Likewise.
1598 * local-alloc.c: Likewise.
1600 * predict.c: Likewise.
1601 * ra-build.c: Likewise.
1603 * ra-colorize.c: Likewise.
1605 * ra-rewrite.c: Likewise.
1606 * regmove.c: Likewise.
1607 * reload.h: Likewise.
1608 * rtlanal.c: Likewise.
1609 * toplev.c: Likewise.
1611 * unwind-dw2-fde-glibc.c: Likewise.
1612 * vmsdbgout.c: Likewise.
1614 2003-01-16 Richard Henderson <rth@redhat.com>
1616 * dwarf2out.c (struct file_table): Remove.
1617 (FILE_TABLE_INCREMENT): Remove.
1618 (file_table): Make a varray; mark for GC. Update all users.
1619 (file_table_last_lookup_index): Extract from struct file_table.
1620 (output_file_names): Fix unsigned compare warnings.
1621 (add_name_attribute): Remove inline marker.
1622 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
1623 (lookup_filename): Don't manage size of file_table.
1624 (init_file_table): Allocate file_table with GC.
1625 (dwarf2out_init): Don't record main_input_filename here.
1626 (dwarf2out_finish): Do it here instead.
1628 2003-01-16 Bruce Korb <bkorb@gnu.org>
1630 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
1632 2003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
1634 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
1635 instead of rotldi3_mextr.
1637 2003-01-16 Vladimir Makarov <vmakarov@redhat.com>
1639 * haifa-sched.c (move_insn): Restore moving all schedule group.
1640 (set_priorities): Restore taking SCHED_GROUP_P into account.
1642 * sched-deps.c (add_dependence): Restore processing the last group
1644 (remove_dependence, group_leader): Restore the functions.
1645 (set_sched_group_p): Restore adding dependencies from previous insn
1647 (compute_forward_dependences): Restore usage of group_leader.
1649 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
1652 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
1654 (can_schedule_ready_p): Ditto.
1655 (add_branch_dependences): Restore skipping over the group insns.
1657 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
1659 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
1660 68HC12 pre/post inc/dec side effects.
1662 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
1664 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
1666 Thu Jan 16 21:50:25 2003 J"orn Rennecke <amylaar@onetel.net.uk>
1668 * sh.md (mshflo_w_x): Fix description of operation.
1670 2003-01-16 Zack Weinberg <zack@codesourcery.com>
1672 * config/rs6000/rs6000.h: Mention Altivec registers in
1673 commentary. Fix typo.
1675 2003-01-16 David Edelsohn <edelsohn@gnu.org>
1677 * config/rs6000/rs6000.md (movti_string): Remove clobber.
1678 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
1679 generate PARALLEL with clobber for TARGET_POWER.
1681 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1683 * ra-colorize.c (colorize_one_web): Initialize variable.
1684 * regmove.c (fixup_match_1): Likewise.
1685 * reload1.c (reload_as_needed): Likewise.
1686 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
1688 2003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1690 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
1692 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1694 * dbxout.c (lastfile, cwd): Fix `unused' warning.
1695 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
1696 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
1697 is_main_source, file_table, decl_die_table_in_use,
1698 abbrev_die_table_in_use, line_info_table_in_use,
1699 separate_line_info_table_in_use, pubname_table_in_use,
1700 arange_table_in_use, ranges_table_in_use,
1701 current_function_has_inlines): Likewise.
1702 * flow.c (life_analysis): Likewise.
1703 * genemit.c (gen_insn): Likewise.
1704 * protoize.c (cplus_suffix): Likewise.
1706 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
1707 * arm.h (ROUND_UP_WORD): Likewise.
1709 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
1711 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
1712 init_emit_once): Likewise.
1713 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
1715 * function.c (assign_stack_temp_for_type): Likewise.
1716 * loop.c (loop_invariant_p): Likewise.
1717 * recog.c (push_operand): Likewise.
1718 * regclass.c (init_reg_sets_1): Likewise.
1719 * reload.c (update_auto_inc_notes): Likewise.
1720 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
1721 * stmt.c (expand_asm_operands): Likewise.
1722 * stor-layout.c (start_record_layout): Likewise.
1724 2003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
1726 * config/c4x/c4x.md (epilogue): Correct last patch.
1728 2003-01-15 Richard Henderson <rth@redhat.com>
1730 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
1731 also check that GP is being used.
1732 (alpha_find_lo_sum_using_gp): New.
1733 (alpha_does_function_need_gp): Use get_attr_usegp.
1734 * config/alpha/alpha-protos.h: Update.
1735 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
1738 2003-01-15 Roger Sayle <roger@eyesopen.com>
1740 * gcse.c (one_cprop_pass): Change function arguments to take both
1741 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
1742 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
1743 (bypass_jumps): New function to perform separate jump bypassing pass.
1744 * rtl.h (bypass_jumps): Add function prototype.
1745 * timevar.def (TV_BYPASS): New timing variable.
1746 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
1747 (dump_file): New entry for the bypass RTL dump file.
1748 (rest_of_compilation): Insert new jump bypassing optimization
1750 * doc/passes.texi: Document new pass.
1752 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
1754 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
1755 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
1756 * pa.h (TARGET_SOM_SDEF): Define.
1757 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
1759 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
1761 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
1762 allocate 4-bytes of locals on 68HC11.
1763 (expand_epilogue): Likewise.
1764 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
1766 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
1768 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
1769 and -mshort-double to the assembler to specify the ABI.
1770 (LINK_SPEC): Likewise.
1771 (CPP_SPEC): Pass HCS12 specific define.
1772 (MASK_M68S12): New define.
1773 (TARGET_M68S12): Likewise.
1774 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
1775 (TARGET_VERSION): Update.
1776 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
1777 (LINK_SPEC): Update.
1779 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
1780 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
1782 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
1784 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
1787 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
1789 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
1790 flag before setting it.
1792 2003-01-15 Roger Sayle <roger@eyesopen.com>
1794 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
1795 when loop condition is known true, i.e. "while (1) { ... }".
1796 (genrtl_for_stmt): Similarly for "for" statements.
1798 2003-01-15 Roger Sayle <roger@eyesopen.com>
1800 * real.c (real_sqrt): Return a bool result indicating whether
1801 a floating point exception or trap should be raised.
1802 * real.h (real_sqrt): Update function prototype.
1803 * builtins.c (fold_builtin): Only fold non-trapping square
1804 roots unless we're ignoring errno and trapping math.
1806 2003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
1808 * expr.h (emit_conditional_add): Add PARAMS to declaration.
1809 * gengtype-lex.l (malloc, realloc): Move defines after include of
1810 system.h. Remove duplicate include of system.h.
1812 2003-01-15 Roger Sayle <roger@eyesopen.com>
1815 * optabs.c (expand_unop): When manipulating the FP sign bit
1816 using integer operations, account for targets with different
1817 integer and FP word orders.
1818 (expand_abs): Likewise.
1820 2003-01-15 David Edelsohn <edelsohn@gnu.org>
1822 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
1823 file extension in section name.
1825 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
1827 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
1830 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
1832 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
1833 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
1834 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
1835 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
1837 Wed Jan 15 12:23:21 CET 2003 Jan Hubicka <jh@suse.cz>
1840 * global.c (struct allocno): Add no_stack_reg.
1841 (global_conflicts): Set no_stack_reg.
1844 * convert.c (convert_to_real): Fold - and abs only when profitable.
1845 * fold-const.c (fold): Fold truncates in - and abs.
1847 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
1849 Segher Boessenkool <segher@koffie.nl>
1851 * predict.c (real_inv_br_prob_base): New variable.
1852 (propagate_freq): Use multiply by reciprocal instead of
1853 division. Don't divide by 1.0 at all.
1854 (estimate_bb_frequencies): Similar.
1856 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
1858 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
1859 * configure: Rebuilt.
1861 2003-01-15 Hartmut Penner <hpenner@de.ibm.com>
1863 * config/s390/s390.c (s390_safe_attr_type): New function.
1864 (s390_use_dfa_pipeline_interface): New function, return true for z900.
1865 (s390_issue_rate): New function.
1866 (s390_agen_dep_p): New function.
1867 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
1868 (s390_adjust_cost): Return 'cost' if new DFA is used.
1869 (s390_adjust_priority): Delete function.
1870 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
1871 * config/s390/s390.md (atype attribute): Attribute 'atype' default
1872 determined by 'op_type'.
1873 (type attribute): Added more type attributes.
1874 * config/s390/2064.md: New DFA description for z900 pipeline.
1876 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
1878 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
1879 forced to memory. Fixes PR bootstrap/9036.
1881 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
1882 to set $gp before the call.
1884 2003-01-14 Richard Henderson <rth@redhat.com>
1886 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
1887 for force_const_mem.
1889 2003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1891 * genattr.c (main): Rearrange output to avoid prototype warning.
1892 * genautomata.c (transform_3): Fix ambiguous-else warning.
1893 * local-alloc.c (requires_inout): Add parentheses around
1894 assignment used as truth-value.
1895 * timevar.c: Move system includes above local includes. Include
1897 * Makefile.in (timevar.o): Depend on toplev.h.
1899 2003-01-14 Denis Chertykov <denisc@overta.ru>
1901 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
1902 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
1904 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
1906 (TARGET_ATTRIBUTE_TABLE): New macro.
1907 (valid_machine_type_attribute): Remove.
1908 (valid_machine_decl_attribute): Remove.
1909 (ip2k_handle_progmem_attribute): New function.
1910 (ip2k_handle_fndecl_attribute): New function.
1912 2003-01-10 Andrew Haley <aph@redhat.com>
1914 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
1915 registers to be in correct order. Add rip.
1917 2003-01-14 Kazu Hirata <kazu@cs.umass.edu>
1919 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
1920 (*iorsi3_and_lshiftrt_9_sb): Likewise.
1922 Tue Jan 14 00:45:33 CET 2003 Jan Hubicka <jh@suse.cz>
1924 * convert.c (strip_float_extensions): Look for narrowest type handling
1927 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
1929 * convert.c (strip_float_extensions): Make global.
1930 * tree.h (strip_float_extensions): Declare.
1932 2003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
1934 * timevar.def: define TV_NAME_LOOKUP.
1935 * timevar.c (timevar_pop): Be verbose when aborting.
1937 2003-01-13 Andreas Schwab <schwab@suse.de>
1939 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
1940 $(parsedir), just move the temporary file at the end.
1941 ($(parsedir)/gengtype-yacc.c): Likewise.
1943 2003-01-13 Alexandre Oliva <aoliva@redhat.com>
1945 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
1946 ${ac_tool_prefix} to ADAC or CC. Protect them from word
1948 * configure: Rebuilt.
1950 2003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1952 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
1953 internal_mcount): Don't use PARAMS.
1954 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
1956 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
1958 2003-01-13 Andreas Schwab <schwab@suse.de>
1960 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
1963 2003-01-13 Kazu Hirata <kazu@cs.umass.edu>
1965 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
1966 (*iorsi3_and_lshiftrt_n_sb): Likewise.
1968 2003-01-12 Mark Mitchell <mark@codesourcery.com>
1971 * c-lex.c (c_lex): Set the token value to error_mark_node for
1972 invalid numeric constants.
1974 2003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1976 * c-pch.c (asm_file_startpos): Change to `long'.
1977 (pch_init): Use ftell, not ftello.
1978 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
1979 Use `long' instead of `off_t'.
1980 (c_common_read_pch): Likewise.
1981 * ggc-common.c (gt_pch_save): Use long/ftell instead of
1984 2003-01-12 Alan Modra <amodra@bigpond.net.au>
1986 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
1988 2003-01-11 Richard Earnshaw (rearnsha@arm.com)
1990 * arm-protos.h (struct cpp_reader): Add declaration.
1992 Sat Jan 11 11:02:58 CET 2003 Jan Hubicka <jh@suse.cz>
1995 * i386.c (output_fp_compare): Fix typo.
1997 2003-01-10 David Edelsohn <edelsohn@gnu.org>
1999 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
2001 2003-01-10 Geoffrey Keating <geoffk@apple.com>
2003 * Makefile.in (parsedir): New variable.
2004 (docobjdir): New variable.
2005 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
2006 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
2007 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
2008 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
2009 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
2011 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
2012 objc.maintainer-clean): Use parsedir.
2014 * varasm.c (struct constant_descriptor_rtx): Remove unused
2017 * toplev.c (documented_lang_options): Document -Winvalid-pch.
2019 2003-01-10 Richard Henderson <rth@redhat.com>
2021 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
2022 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
2024 2003-01-10 Richard Henderson <rth@redhat.com>
2026 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
2027 not INTEGRAL_MODE_P when widening extensions.
2029 2003-01-10 Richard Henderson <rth@redhat.com>
2031 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
2033 2003-01-10 Geoffrey Keating <geoffk@apple.com>
2035 * ggc-page.c (ggc_collect): Avoid overflow computing
2038 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
2039 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
2041 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
2043 Fri Jan 10 22:05:35 CET 2003 Jan Hubicka <jh@suse.cz>
2045 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
2046 with weird operands.
2048 2003-01-10 Dale Johannesen <dalej@apple.com>
2050 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
2051 parameters. Call check_sibcall_argument_overlap if indicated.
2052 (check_sibcall_argument_overlap): Add mark_stored_args_map
2053 parameter. Don't mark parameter area as clobbered if not set.
2054 (expand_call): Adjust calls to above.
2056 2003-01-10 Kelley Cook <kelleycook@comcast.net>
2058 * configure.in (linker read-only and read-write section mixing):
2059 Squelch some assembler warnings.
2060 * configure: Likewise.
2062 2003-01-10 Hartmut Penner <hpenner@de.ibm.com>
2064 * doc/invoke.texi: Document -mtune, delete -mcpu
2065 option for S/390 and zSeries.
2066 * config/s390/s390.c (s390_tune_string) New variable.
2067 (s390_cpu_string) Delete variable.
2068 (override_options): Use s390_tune_string instead of
2070 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
2072 2003-01-10 Kazu Hirata <kazu@cs.umass.edu>
2074 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
2076 2003-01-10 Josef Zlomek <zlomekj@suse.cz>
2078 * jump.c (next_nonnote_insn_in_loop): New function.
2079 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
2081 (duplicate_loop_exit_test). Likewise.
2083 2003-01-09 Geoffrey Keating <geoffk@apple.com>
2085 Merge from pch-branch:
2087 2003-01-06 Geoffrey Keating <geoffk@apple.com>
2089 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
2092 2002-12-24 Geoffrey Keating <geoffk@apple.com>
2094 * cpplib.c (count_registered_pragmas): New function.
2095 (save_registered_pragmas): New function.
2096 (_cpp_save_pragma_names): New function.
2097 (restore_registered_pragmas): New function.
2098 (_cpp_restore_pragma_names): New function.
2099 * cpphash.h (_cpp_save_pragma_names): Prototype.
2100 (_cpp_restore_pragma_names): Likewise.
2101 * cpppch.c (struct save_macro_item): Split from save_macro_data.
2102 (struct save_macro_data): New field 'saved_pragmas'.
2103 (save_macros): Update for changes to struct save_macro_data.
2104 (cpp_prepare_state): Call _cpp_save_pragma_names, update
2105 for changes to struct save_macro_data.
2106 (cpp_read_state): Call _cpp_restore_pragma_names, update
2107 for changes to struct save_macro_data.
2109 * cpppch.c (cpp_read_state): Restore the hashtable references
2112 * tree.h (built_in_decls): Mark for PCH.
2114 * dbxout.c (lastfile): Don't mark for PCH.
2116 * ggc.h: Document PCH calls into memory managers.
2118 2002-12-18 Geoffrey Keating <geoffk@apple.com>
2120 * doc/invoke.texi (Precompiled Headers): Document the
2121 directory form of PCH.
2122 * cppfiles.c (validate_pch): New function.
2123 (open_file_pch): Search suitably-named directories for PCH files.
2125 2002-12-14 Geoffrey Keating <geoffk@apple.com>
2127 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
2129 (Type Information): Mention that the information is also
2130 used to implement PCH.
2131 * doc/passes.texi (Passes): Improve documentation of
2132 language-specific files.
2134 2002-12-11 Geoffrey Keating <geoffk@apple.com>
2136 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
2137 (struct walk_type_data): Add reorder_fn field.
2138 (walk_type): Process 'reorder' option.
2139 (write_types_process_field): Reorder parameters to gt_pch_note_object,
2140 call reorder_note_routine.
2141 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
2142 (ggc_wtd): Update for change to struct write_types_data.
2143 (pch_wtd): Likewise.
2144 * ggc.h (gt_pch_note_object): Reorder parameters.
2145 (gt_handle_reorder): New definition.
2146 (gt_pch_note_reorder): New prototype.
2147 * ggc-common.c (struct ptr_data): Add reorder_fn.
2148 (gt_pch_note_object): Reorder parameters.
2149 (gt_pch_note_reorder): New.
2150 (gt_pch_save): Call reorder_fn.
2151 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
2153 * dbxout.c (cwd): Don't mark for PCH.
2155 2002-12-09 Geoffrey Keating <geoffk@apple.com>
2157 * gengtype.c (finish_root_table): Fix some warnings.
2158 (write_root): Handle TYPE_STRING.
2159 * ggc.h (gt_ggc_m_S): Add prototype.
2160 * stringpool.c (gt_ggc_m_S): New function.
2162 2002-11-30 Geoffrey Keating <geoffk@apple.com>
2164 * dwarf2out.c (dw2_string_counter): New.
2165 (AT_string_form): Use it.
2166 (same_dw_val_p): Update for removal of hashtable.h hash tables.
2168 2002-11-22 Geoffrey Keating <geoffk@apple.com>
2170 * dbxout.c: Include gt-dbxout.h.
2171 (lastfile): Mark for PCH/GGC.
2173 (struct typeinfo): Likewise.
2174 (typevec): Likewise.
2175 (typevec_len): Likewise.
2176 (next_type_number): Likewise.
2177 (struct dbx_file): Likewise.
2178 (current_file): Likewise.
2179 (next_file_number): Likewise.
2180 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
2181 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
2182 (dbxout_end_source_file): Don't free struct dbx_file.
2183 (dbxout_type): Use GGC to allocate typevec.
2184 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
2185 (GTFILES): Add dbxout.c.
2186 (gt-dbxout.h): New rule.
2188 * Makefile.in (c-pch.o): Add debug.h as dependency.
2189 * c-pch.c: Include debug.h.
2190 (pch_init): Call start_source_file to keep nesting right.
2191 (c_common_read_pch): Add orig_name parameter. Call
2192 start_source_file debug hook. Call end_source_file debug hook.
2193 * c-common.h (c_common_read_pch): Update prototype.
2194 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
2196 * cppfiles.c (struct include_file): Add new field `header_name'.
2197 (find_or_create_entry): Default it to `name'.
2198 (open_file_pch): Set it to the original header file searched for.
2199 (stack_include_file): Don't stack an empty buffer, just handle
2200 PCH files immediately. Pass header_name field to read_pch callback.
2202 2002-11-19 Geoffrey Keating <geoffk@apple.com>
2204 * function.c (funcdef_no): Mark to be saved in a PCH.
2206 2002-11-15 Geoffrey Keating <geoffk@apple.com>
2208 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
2210 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
2212 2002-11-14 Geoffrey Keating <geoffk@apple.com>
2214 * optabs.h (code_to_optab): Add GTY marker.
2216 2002-11-13 Geoffrey Keating <geoffk@apple.com>
2218 * Makefile.in (GTFILES): Add cpplib.h.
2219 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
2220 * c-decl.c (build_compound_literal): Don't use var_labelno.
2221 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
2222 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
2223 * varasm.c (const_labelno): Use gengtype to mark.
2224 (var_labelno): Likewise.
2225 (in_section): Likewise.
2226 (in_named_name): Likewise.
2227 (struct in_named_entry): Likewise.
2228 (in_named_htab): Likewise.
2229 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
2230 (init_varasm_once): Use GGC to allocate in_named_htab.
2231 * config/darwin.c (current_pic_label_num): Mark for PCH.
2233 2002-11-11 Geoffrey Keating <geoffk@apple.com>
2235 * ggc-simple.c (init_ggc_pch): New stub procedure.
2236 (ggc_pch_count_object): Likewise.
2237 (ggc_pch_total_size): Likewise.
2238 (ggc_pch_this_base): Likewise.
2239 (ggc_pch_alloc_object): Likewise.
2240 (ggc_pch_prepare_write): Likewise.
2241 (ggc_pch_write_object): Likewise
2242 (ggc_pch_finish): Likewise.
2243 (ggc_pch_read): Likewise.
2245 2002-11-08 Geoffrey Keating <geoffk@apple.com>
2247 * c-pch.c (c_common_write_pch): Write the macro definitions after
2249 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
2250 definitions after the GCed data.
2251 * cpplib.c (save_macros): New.
2253 (cpp_write_pch_deps): Split out of cpp_write_pch.
2254 (cpp_write_pch_state): Split out of cpp_write_pch.
2255 (cpp_write_pch): Delete.
2256 (struct save_macro_data): Delete.
2257 (cpp_prepare_state): New.
2258 (cpp_read_state): Erase and restore initial macro definitions.
2259 * cpplib.h (struct save_macro_data): Forward-declare.
2260 (cpp_write_pch_deps): Prototype.
2261 (cpp_write_pch_state): Prototype.
2262 (cpp_write_pch): Delete prototype.
2263 (cpp_prepare_state): Prototype.
2264 (cpp_read_state): Add fourth argument.
2266 2002-11-04 Geoffrey Keating <geoffk@apple.com>
2268 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
2269 (write_array): Remove warning.
2271 * gengtype.c (contains_scalar_p): New.
2272 (finish_root_table): Add the table to all languages, even if it's
2274 (write_roots): Output gt_pch_scalar_rtab.
2275 * ggc-common.c (gt_pch_save): Write out scalars.
2276 (gt_pch_restore): Read scalars back.
2278 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
2279 (struct page_entry): Delete pch_page field.
2280 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
2281 (clear_marks): Likewise.
2282 (sweep_pages): Likewise.
2283 (poison_pages): Likewise.
2284 (ggc_print_statistics): Likewise.
2285 (ggc_pch_read): Don't free objects read from a PCH.
2286 Properly set up in_use_p and page_tails.
2288 2002-10-25 Geoffrey Keating <geoffk@apple.com>
2290 * gengtype.c (struct write_types_data): New.
2291 (struct walk_type_data): Make `cookie' const; add extra
2292 prev_val item; add `orig_s' field.
2293 (walk_type): Update prev_val[3].
2294 (write_types_process_field): New.
2295 (write_func_for_structure): Take write_types_data structure.
2299 (write_types_local_process_field): New.
2300 (gc_mark_process_field): Delete.
2301 (write_local_func_for_structure): New.
2302 (gc_mark_func_name): Delete.
2303 (write_gc_types): Delete.
2305 (finish_root_table): Don't include 'ggc_' in PFX.
2306 (write_root): Rename from write_root. Fill pchw field of structures.
2308 (write_roots): Rename from write_gc_roots. Split out to write_array.
2309 Update to changes to other routines. Write gt_pch_cache_rtab table.
2310 (main): Write PCH walking routines.
2311 * ggc-common.c: Include toplev.h, sys/mman.h.
2312 (ggc_mark_roots): For cache hashtables, also mark the hash table
2313 and the array of entries.
2315 (struct ptr_data): New.
2316 (POINTER_HASH): New.
2317 (gt_pch_note_object): New.
2318 (saving_htab_hash): New.
2319 (saving_htab_eq): New.
2320 (struct traversal_state): New.
2323 (compare_ptr_data): New.
2324 (relocate_ptrs): New.
2325 (write_pch_globals): New.
2326 (struct mmap_info): New.
2328 (gt_pch_restore): New.
2329 * ggc-page.c (ROUND_UP_VALUE): New.
2331 (struct page_entry): Add field `pch_page'.
2332 (init_ggc): Use ROUND_UP.
2333 (struct ggc_pch_data): Declare.
2334 (init_ggc_pch): New.
2335 (ggc_pch_count_object): New.
2336 (ggc_pch_total_size): New.
2337 (ggc_pch_this_base): New.
2338 (ggc_pch_alloc_object): New.
2339 (ggc_pch_prepare_write): New.
2340 (ggc_pch_write_object): New.
2341 (ggc_pch_finish): New.
2342 (ggc_pch_read): New.
2343 * ggc.h (gt_pointer_operator): New.
2344 (gt_note_pointers): New.
2345 (gt_pch_note_object): New prototype.
2346 (gt_pointer_walker): New.
2347 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
2348 (LAST_GGC_ROOT_TAB): Update.
2349 (gt_pch_cache_rtab): Declare.
2350 (gt_pch_scalar_rtab): Declare.
2351 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
2352 (LAST_GGC_CACHE_TAB): Update.
2353 (gt_pch_save_stringpool): Declare.
2354 (gt_pch_restore_stringpool): Declare.
2355 (gt_pch_p_S): Declare.
2356 (gt_pch_n_S): Declare.
2357 (struct ggc_pch_data): Forward-declare.
2358 (init_ggc_pch): Declare.
2359 (ggc_pch_count_object): Declare.
2360 (ggc_pch_total_size): Declare.
2361 (ggc_pch_this_base): Declare.
2362 (ggc_pch_alloc_object): Declare.
2363 (ggc_pch_prepare_write): Declare.
2364 (ggc_pch_write_object): Declare.
2365 (ggc_pch_finish): Declare.
2366 (ggc_pch_read): Declare.
2367 (gt_pch_save): Declare.
2368 (gt_pch_restore): Declare.
2369 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
2370 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
2371 const_double_htab, mem_attrs_htab using GGC.
2372 * c-pch.c: Include ggc.h.
2373 (pch_init): Allow reading PCH file back.
2374 (c_common_write_pch): Call gt_pch_save.
2375 (c_common_read_pch): Call gt_pch_restore.
2376 * c-parse.in (init_reswords): Delete now-untrue comment.
2377 Allocate ridpointers using GGC.
2378 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
2379 calling expand_deferred_fns.
2380 * c-common.h (ridpointers): Mark for GTY machinery.
2381 * Makefile.in (stringpool.o): Update dependencies.
2382 (c-pch.o): Update dependencies.
2383 (ggc-common.o): Update dependencies.
2384 * stringpool.c: Include gt-stringpool.h.
2387 (struct string_pool_data): New.
2389 (gt_pch_save_stringpool): New.
2390 (gt_pch_restore_stringpool): New.
2391 * tree.c (init_ttree): Make type_hash_table allocated using GC.
2393 2002-10-04 Geoffrey Keating <geoffk@apple.com>
2395 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
2396 (output_mangled_typename): Don't pass size_t to printf.
2398 * tree.h (union tree_type_symtab): Add tag to `address' field.
2399 (union tree_decl_u2): Add tag to 'i' field.
2400 * varasm.c (union rtx_const_un): Add tags to all fields.
2401 * gengtype.c (struct walk_type_data): New.
2402 (output_escaped_param): Take struct walk_type_data parameter.
2403 (write_gc_structure_fields): Delete.
2405 (write_gc_marker_routine_for_structure): Delete.
2406 (write_func_for_structure): New.
2407 (gc_mark_process_field): New.
2408 (gc_mark_func_name): New.
2409 (gc_counter): Delete.
2410 (write_gc_types): Use write_func_for_structure.
2411 (write_gc_roots): Use walk_type.
2413 2002-10-02 Geoffrey Keating <geoffk@apple.com>
2415 * ggc-common.c (ggc_mark_roots): Delete 'x'.
2416 (ggc_splay_dont_free): Fix warning about unused 'x'.
2417 (ggc_print_common_statistics): Remove warnings.
2419 2002-10-01 Mike Stump <mrs@apple.com>
2421 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
2422 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
2424 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
2425 Catherine Moore <clm@redhat.com>
2427 * Makefile (c-pch.o): Update dependencies.
2428 (LIBCPP_OBJS): Add cpppch.o.
2430 * c-common.c (c_common_init): Don't call pch_init here.
2431 * c-common.h (c_common_read_pch): Update prototype.
2432 * c-lex.c (c_common_parse_file): Call pch_init here.
2433 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
2434 (c_common_decode_option): Handle them.
2435 * c-pch.c: Include c-pragma.h.
2436 (save_asm_offset): Delete.
2437 (pch_init): Move contents of save_asm_offset into here, call
2439 (c_common_write_pch): Call cpp_write_pch.
2440 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
2442 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
2443 * cppfiles.c (stack_include_file): Update for change to
2444 parameters of cb.read_pch.
2445 * cpphash.h (struct cpp_reader): Add `savedstate' field.
2446 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
2447 `restore_pch_deps' fields.
2448 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
2449 (cpp_save_state): Prototype.
2450 (cpp_write_pch): Prototype.
2451 (cpp_valid_state): Prototype.
2452 (cpp_read_state): Prototype.
2453 * cpppch.c: New file.
2454 * flags.h (version_flag): Remove prototype.
2455 * mkdeps.c (deps_save): New.
2456 (deps_restore): New.
2457 * mkdeps.h (deps_save): Prototype.
2458 (deps_restore): Prototype.
2459 * toplev.c (late_init_hook): Delete.
2460 (version_flag): Make static again.
2461 (compile_file): Don't call late_init_hook.
2462 * toplev.h (late_init_hook): Delete.
2463 * doc/cppopts.texi: Document -fpch-deps.
2464 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
2466 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
2468 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
2470 (c_common_valid_pch): Rename from c_valid_pch, change callers.
2471 (c_common_read_pch): Rename from c_read_pch, change callers.
2473 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
2474 a space between it and its argument.
2476 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
2478 * c-pch.c: New file.
2479 * toplev.h (late_init_hook): Declare.
2480 * toplev.c (late_init_hook): Define.
2481 (version_flag): Make globally visible.
2482 (compile_file): Call late_init_hook.
2483 (init_asm_output): Make output file seekable.
2484 * gcc.c (default_compilers): Update c-header rule.
2485 * flags.h (version_flag): Declare.
2486 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
2488 * cppfiles.c (struct include_file): Add 'pch' field.
2489 (INCLUDE_PCH_P): New.
2490 (open_file_pch): New.
2491 (stack_include_file): Handle PCH files specially.
2492 (find_include_file): Call open_file_pch instead of open_file.
2493 (_cpp_read_file): Explain why open_file is used instead of
2495 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
2496 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
2497 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
2498 in cpplib callbacks.
2499 * c-common.c (pch_file): Correct comment.
2500 (allow_pch): Define.
2501 (c_common_init): Call pch_init.
2502 * c-common.h (allow_pch): Declare.
2503 (pch_init): Declare.
2504 (c_valid_pch): Declare.
2505 (c_read_pch): Declare.
2506 (c_write_pch): Declare.
2507 * Makefile.in (c-pch.o): New.
2508 (C_AND_OBJC_OBJS): Add c-pch.o.
2509 * doc/invoke.texi (Precompiled Headers): Add index entries,
2510 complete truncated paragraph.
2512 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
2514 * c-common.c: (pch_file): Define.
2515 * c-common.h (pch_file): Declare.
2516 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
2517 (missing_arg): Require --output-pch= to have an argument.
2518 (c_common_decode_option): Handle --output-pch=.
2519 * gcc.c: Document new %V.
2520 (default_compilers): Handle compiling C header files.
2521 (do_spec_1): Implement %V.
2522 (main): Handle "gcc foo.h" without trying to run linker.
2523 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
2524 (Overall Options): Document what the driver does with header files,
2525 document new -x option possibilities.
2526 (Invoking G++): More documentation for PCH.
2527 (Precompiled Headers): New.
2529 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
2531 * ggc.h: Don't include varray.h. Rearrange functions to be more
2533 (ggc_add_root): Delete.
2534 (ggc_mark_rtx): Delete.
2535 (ggc_mark_tree): Delete.
2536 (struct ggc_statistics): Remove contents.
2537 * ggc-common.c: Remove unneeded includes.
2538 (struct ggc_root): Delete.
2540 (ggc_add_root): Delete.
2541 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
2542 (ggc_print_common_statistics): Remove most of the contents.
2543 * Makefile.in (GGC_H): No longer uses varray.h.
2544 (ggc-common.o): Update dependencies.
2545 (c-parse.o): Add varray.h to dependencies.
2546 (c-common.o): Add varray.h.
2547 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
2548 (mark_ident_hash): Rename to ggc_mark_stringpool.
2549 (init_stringpool): Don't use ggc_add_root.
2550 * c-parse.in: Include varray.h.
2551 * c-common.c: Include varray.h.
2552 * objc/Make-lang.in (objc-act.o): Add varray.h.
2553 * objc/objc-act.c: Include varray.h.
2555 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
2557 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
2558 (dw_cfi_oprnd1_desc): Likewise.
2560 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
2562 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
2564 (alpha_links): Use gengtype to mark; move out of ifdef.
2565 (mark_alpha_links_node): Delete.
2566 (mark_alpha_links): Delete.
2567 (alpha_need_linkage): Use GGC to allocate splay tree, struct
2568 alpha_links, strings. Don't use ggc_add_root.
2569 * ggc-common.c (ggc_splay_alloc): New.
2570 (ggc_splay_dont_free): New.
2571 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
2572 (ggc_mark_tree): Likewise.
2573 (splay_tree_new_ggc): New.
2574 (ggc_splay_alloc): Declare.
2575 (ggc_splay_dont_free): Declare.
2576 * dwarf2asm.c: Include gt-dwarf2asm.h.
2577 (mark_indirect_pool_entry): Delete.
2578 (mark_indirect_pool): Delete.
2579 (indirect_pool): Use gengtype to mark.
2580 (dw2_force_const_mem): Don't use ggc_add_root.
2581 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
2582 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
2583 (gt-dwarf2asm.h): Depend on s-gtype.
2585 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
2587 * tree.h (union tree_type_symtab): Mark `die' field.
2588 * Makefile.in (dwarf2out.o): Update dependencies.
2589 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
2591 (dw_cfi_oprnd1_desc): New function.
2592 (dw_cfi_oprnd2_desc): New function.
2593 (indirect_string_alloc): Delete.
2594 (debug_str_do_hash): New function.
2595 (debug_str_eq): New function.
2596 (mark_limbo_die_list): Delete.
2597 (dwarf2out_init): Don't call ggc_add_root.
2599 2003-01-09 Vladimir Makarov <vmakarov@redhat.com>
2601 The following changes are merged from itanium-sched-branch:
2603 2003-01-08 David Edelsohn <edelsohn@gnu.org>
2605 * doc/md.texi: Clarify assignment of units to automata description.
2607 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
2609 * genautomata.c (unit_decl): Remove members
2610 `the_same_automaton_unit' and
2611 `the_same_automaton_message_reported_p'.
2612 (process_unit_to_form_the_same_automaton_unit_lists,
2613 form_the_same_automaton_unit_lists_from_regexp,
2614 form_the_same_automaton_unit_lists, the_same_automaton_lists):
2616 (annotation_message_reported_p): New global variable.
2617 (check_unit_distribution_in_reserv,
2618 check_regexp_units_distribution): New functions.
2619 (check_unit_distributions_to_automata): Rewrite it.
2621 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
2623 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
2624 Use continue instead of break if cycle is too big.
2626 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
2628 * genautomata.c (check_unit_distributions_to_automata): Output at
2629 most one message for a unit.
2630 (process_unit_to_form_the_same_automaton_unit_lists): Check
2631 automaton of units instead of units themself.
2633 * doc/md.texi: Describe the constraint about assigning unit to
2636 2002-12-20 Jan Hubicka <jH@suse.cz>
2637 Vladimir Makarov <vmakarov@redhat.com>
2639 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
2641 (gen_cpu_unit): Initialize the new members.
2642 (process_regexp_cycles): Calculate minimal finish cycle too. Set
2643 up `min_occ_cycle_num'.
2644 (evaluate_max_reserv_cycles): Change the function call.
2645 (CLEAR_BIT): New macro.
2646 (states_union, state_shift): Use the mask.
2647 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
2648 (form_reservs_matter): New function.
2649 (make_automaton): Call the function and use the mask.
2650 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
2653 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2655 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
2657 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2659 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
2662 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2664 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
2667 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2668 2002-10-31 Dale Johannesen <dalej@apple.com>
2670 * haifa-sched.c (find_set_reg_weight): New function.
2671 (find_insn_reg_weight): Use the new function.
2672 (schedule_block): Do sorting ready queue always
2675 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
2677 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
2679 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
2681 * haifa-sched.c (choice_entry): New structure.
2682 (choice_stack, cycle_issued_insns): New variables.
2683 (max_issue): Rewrite it.
2684 (choose_ready): Set up ready_try for unknown insns too.
2685 (schedule_block): Allocate and free choice_stack. Set up
2686 and modify cycle_issued_insns.
2688 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
2689 with and without filling the bundle.
2690 (bundling): Combine calls of issue_nops_and_insn.
2692 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
2694 * config/ia64/itanium1.md: New file.
2696 * config/ia64/itanium2.md: New file.
2698 * config/ia64/ia64.md: Move DFA descriptions into the new files.
2699 Remove the old pipeline description.
2701 * config/ia64/ia64.c (ia64_override_options): Add aliases of
2702 itanium processor names.
2704 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
2706 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
2707 (ia64_reorg): Set up queried unit codes for Itanium2 too.
2709 * config/ia64/ia64.md: Add descriptions for Itanium2.
2711 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
2713 * config/ia64/ia64.h (processor_type): New enumeration.
2714 (ia64_tune, ia64_tune_string): New external declarations.
2715 (TARGET_OPTIONS): Add option `tune='.
2717 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
2719 (ia64_override_options): Set up `ia64_tune'.
2720 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
2721 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
2722 (bundling): Add nops for MM-insns only for Itanium.
2723 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
2726 * config/ia64/ia64.md (cpu): New attribute.
2727 (DFA description): Enable it only for Itanium.
2729 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
2730 Richard Henderson <rth@redhat.com>
2732 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
2733 MASK_EARLY_STOP_BITS.
2734 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
2735 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
2738 * config/ia64/ia64.c (ia64_dfa_new_cycle,
2739 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
2740 instead of TARGET_TUNE_STOP_BITS.
2742 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
2743 `-mearly-stop-bits'.
2745 * config/ia64/ia64.c (automata_option "v"): Comment it.
2747 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
2749 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
2751 (TARGET_SWITCHES): Add entries for the new option.
2753 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
2754 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
2755 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
2757 (ia64_sched_reorder2): Set up `clocks'.
2758 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
2759 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
2760 queue when TARGET_TUNE_STOP_BITS.
2761 (bundling): Insert additional nops for MM-insns.
2762 (final_emit_insn_group_barriers): Add insertion of stop bits
2763 according `stops_p'.
2764 (ia64_reorg): Initiate the new varibales.
2766 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
2768 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
2770 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
2771 insns at the end of block insn scheduling.
2773 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
2775 * sched-deps.c (remove_dependence, group_leader): Remove it.
2776 (add_dependence): Add dependence to group leader to.
2777 (set_sched_group_p): Add dependence to the first insn of the
2779 (sched_analyze_insn): Make dependence to jump as anti-dependence.
2780 Change true dependence by anti-dependence when
2781 `reg_pending_barrier'.
2783 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
2784 add_branch_dependences): Ignore schedule groups.
2786 * sched-ebb.c (init_ready_list): Ditto.
2788 * (move_insn, set_priorities): Ditto.
2790 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
2791 flag is clear after reload.
2792 (adjust_cost): Change cost only for output dependencies.
2794 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
2796 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
2798 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
2800 * target.h (gcc_target): Add member
2801 `dependencies_evaluation_hook'.
2803 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
2805 (TARGET_SCHED): Add initiatialization of the new member.
2807 * sched-ebb.c: Include `target.h'.
2808 (schedule_ebb): Call `dependencies_evaluation_hook'.
2810 * sched-rgn.c (schedule_region): Call
2811 `dependencies_evaluation_hook'.
2813 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
2815 (ia64_dependencies_evaluation_hook): New function.
2817 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
2818 Describe the new hook.
2820 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
2822 * target.h (gcc_target): Add members
2823 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
2825 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
2826 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
2828 (TARGET_SCHED): Add initiatialization of the new members.
2830 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
2831 insn scheduling too.
2832 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
2833 initialize `ready_try'.
2834 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
2835 `dfa_new_cycle' says not to do it.
2837 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
2840 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
2842 * config/ia64/ia64.c: Include `hashtab.h'.
2843 (ia64_first_cycle_multipass_dfa_lookahead_guard,
2844 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
2845 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
2846 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
2847 bundle_state_eq_p, insert_bundle_state,
2848 initiate_bundle_state_table, finish_bundle_state_table,
2849 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
2850 get_template, get_next_important_insn, bundling): New functions.
2851 (ia64_internal_sched_reorder): Remove it.
2852 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
2853 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
2854 (ia64_safe_itanium_requires_unit0): Remove it.
2855 (group_barrier_needed_p): Place group barrier right before a real
2857 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
2859 (bundle_name): New variable.
2860 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
2861 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
2862 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
2863 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
2864 temp_dfa_state, prev_cycle_state): New global variables.
2865 (insn_matches_slot, maybe_rotate, finish_last_head,
2866 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
2867 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
2868 find_best_packet, itanium_reorder, dump_current_packet,
2869 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
2870 (sched_data, sched_ready, sched_types): Remove them.
2871 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
2872 `init_insn_group_barriers'.
2873 (ia64_sched_reorder, ia64_sched_reorder2): Call
2874 ia64_dfa_sched_reorder.
2875 (ia64_variable_issue): Rewrite it.
2876 (bundle_state): New structure.
2877 (index_to_bundle_states, bundle_states_num,
2878 allocated_bundle_states_chain, free_bundle_state_chain): New
2880 (ia64_sched_finish): Add stop bits and call `bundling' after the
2881 2nd insn scheduling.
2882 (ia64_use_dfa_pipeline_interface): Return zero always.
2883 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
2885 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
2886 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
2887 (ia64_reorg): Add bundling insns.
2890 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
2891 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
2893 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
2895 * config/ia64/ia64.md: Add Itanium1 DFA description.
2896 (itanium_class): Add `nop' and `pre_cycle'. Add
2897 define_function_unit for `nop'.
2898 (nop): Change attribute `itanium_class'.
2899 (pre_cycle): New define_insn.
2901 * config/ia64/ia64-protos.h (bundling_p): New external variable.
2902 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
2903 ia64_produce_address_p): New function prototypes.
2905 * config/ia64/ia64.c (bundling_p): New global variable.
2906 (ia64_use_dfa_pipeline_interface,
2907 ia64_first_cycle_multipass_dfa_lookahead,
2908 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
2910 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2911 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2912 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2913 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
2914 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
2915 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
2916 (dfa_pre_cycle_insn): New variable.
2918 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
2920 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
2923 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
2924 New function prototypes.
2926 * genattrtab.c (main): Process the new constructions.
2928 * genautomata.c (gen_presence_absence_set,
2929 process_presence_absence_names, process_presence_absence_patterns,
2930 add_presence_absence, check_absence_pattern_sets): Add parameter
2932 (unit_decl): Add new members `final_presence_list' and
2933 `final_absence_list'.
2934 (unit_pattern_rel_decl): Add new member `final_p'.
2935 (gen_final_presence_set, gen_final_absence_set): New functions.
2936 (process_decls): Use member `final_p'.
2937 (temp_reserv): New global variable.
2938 (reserv_sets_are_intersected): Add processing `final_presence_set'
2939 and `final_absence_set'.
2940 (initiate_states): Allocate `temp_reserv'.
2941 (unit_final_presence_set_table, unit_final_absence_set_table): New
2943 (initiate_presence_absence_pattern_sets): Initiate them.
2944 (NDFA_to_DFA): Fix typo.
2945 (output_description): Output `final_presence_set' and
2946 `final_absence_set'.
2948 * doc/md.texi (final_presence_set, final_absence_set): Describe
2951 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
2953 * genautomata.c (transform_3): Process a missing case (nothing on
2956 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
2958 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
2959 comments about queried units and the minimization.
2961 * doc/md.texi: Ditto.
2963 * genautomata.c (create_composed_state): Return nonzero if the new
2964 state has been created.
2965 (first_cycle_unit_presence): New function.
2966 (state_is_differed): Add new parameter. Use the new function.
2967 Take queried units into account.
2968 (partition_equiv_class): Pass additional parameter to
2969 `state_is_differed'.
2970 (merge_states): Process composed states too.
2971 (build_automaton, create_automata, output_min_issue_delay_table,
2972 output_tables, output_statistics): Output more information.
2973 (output_reserved_units_table): Use function
2974 `first_cycle_unit_presence'.
2975 (output_tables): Output table of queried units even if the
2976 minimization is switched on.
2977 (write_automata): Output code for querying units even if the
2978 minimization is switched on.
2980 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
2982 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
2983 syntax of the constructions.
2985 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
2986 extended syntax of the constructions.
2988 * genautomata.c (unit_rel_decl): Rename it to
2989 `unit_pattern_rel_decl'.
2990 (pattern_set_el, pattern_reserv): New structures.
2991 (pattern_set_el_t, pattern_reserv_t): New types.
2992 (gen_presence_absence_set): New function.
2993 (process_presence_absence): Remove it.
2994 (process_presence_absence_names,
2995 process_presence_absence_patterns): New functions.
2996 (get_presence_absence_set): Remove it.
2997 (initiate_presence_absence_sets): Rename it on
2998 `initiate_presence_absence_pattern_sets'. Use new function
2999 `form_reserv_sets_list'.
3000 (form_reserv_sets_list, check_presence_pattern_sets,
3001 check_absence_pattern_sets, output_pattern_set_el_list): New
3003 (unit_decl): Change types of members `presence_list' and
3005 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
3006 (decl): Change types of members `excl', `presence', and `absence'.
3007 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
3008 at the end of the vector.
3009 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3010 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
3011 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
3012 (gen_presence_set, gen_absence_set): Use new function
3013 `gen_presence_absence_set'.
3014 (add_presence_absence): Process `pattern_list' instead of
3016 (process_decls): USe new functions
3017 `process_presence_absence_names' and
3018 `process_presence_absence_patterns'.
3019 (reserv_sets_are_intersected): Use new function
3020 `check_presence_pattern_sets'.
3021 (presence_set, absence_set): Remove them.
3022 (unit_presence_set_table, unit_absence_set_table): New global
3024 (output_description): Use new function
3025 `output_pattern_set_el_list'.
3026 (generate): Use `initiate_presence_absence_pattern_sets'.
3028 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
3030 * genattr.c (main): Add output of prototype of new interface
3031 function `dfa_clean_insn_cache'.
3033 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
3034 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
3035 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
3037 (write_automata): Call the new function.
3039 Thu Jan 9 22:47:38 CET 2003 Jan Hubicka <jh@suse.cz>
3041 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
3044 2003-01-09 Paolo Carlini <pcarlini@unitus.it>
3046 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
3048 Thu Jan 9 17:26:40 2003 J"orn Rennecke <joern.rennecke@superh.com>
3050 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
3051 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
3052 (CONSTRAINT_LEN): Provide default definition.
3053 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
3054 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
3055 (EXTRA_CONSTRAINT_STR): Likewise.
3056 (REG_CLASS_FROM_CONSTRAINT): Define.
3057 * genoutput.c (check_constraint_len, constraint_len): New functions.
3058 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
3059 constraint / modifier.
3060 (gen_insn): Call check_constraint_len.
3061 * local-alloc.c (block_alloc): Update to use new macros / pass
3062 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
3063 * ra-build.c (handle_asm_insn): Likewise.
3064 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
3065 (constrain_operands, peep2_find_free_register): Likewise.
3066 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
3067 * regmove.c (find_matches): Likewise.
3068 * reload.c (push_secondary_reload, find_reloads): Likewise.
3069 (alternative_allows_memconst): Likewise.
3070 * reload1.c (maybe_fix_stack_asms): Likewise.
3071 (reload_cse_simplify_operands): Likewise.
3072 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
3073 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
3074 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
3075 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
3076 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
3077 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
3079 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
3081 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
3083 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
3085 (*extzv_1_r_h8300hs): Likewise.
3086 (*extzv_1_r_inv_h8300): Likewise.
3087 (*extzv_1_r_inv_h8300hs): Likewise.
3089 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
3091 * config/h8300/h8300.h (PREDICATE_CODES): New.
3093 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
3095 * config/h8300/h8300.md (*addsi3_upper): New.
3096 (*iorsi3_shift): Likewise.
3097 (two splitters): Likewise.
3098 (*addsi3_shift): Likewise.
3099 (two splitters): Likewise.
3101 2003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3103 * Makefile.in (optabs.o): Add dependency on basic-block.h.
3104 * basic-block.h (control_flow_insn_p): Fuction was exported.
3105 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
3106 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
3107 notes only when the region is contained in a single basic block.
3109 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
3112 * tree.h (expand_asm): New prototype.
3113 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
3115 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
3117 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
3118 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
3119 (volatile_refs_p) [ASM_INPUT]: Likewise.
3120 (side_effects_p) [ASM_INPUT]: Likewise.
3122 Thu Jan 9 12:00:36 CET 2003 Jan Hubicka <jh@suse.cz>
3124 * i386.md (*mul*): FIx constraints; remove confused comment; fix
3125 athlon_decode attributes
3126 (imul/k8 optimization peep2s): New.
3128 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
3129 * i386.md (type attribute): Add ssecomi.
3130 (unit, memory, prefix attributes): Handle ssecomi.
3131 (cvt?2? patterns): Fix athlon_decode attribute
3132 (comi patterns): Set attribute to ssecomi.
3135 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
3137 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
3139 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
3140 that match register_operands.
3141 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
3142 register_operand the default case.
3144 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
3147 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
3148 an empty element, do not advance the pointer to unfilled
3149 fields if there are pending initializers.
3151 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
3153 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
3154 (install-gcc-tooldir, install-cpp, installdirs,
3155 install-common, install-driver, install-info, install-man,
3156 install-headers, install-include-dir, install-headers-tar,
3157 install-headers-cpio, install-headers-cp, install-mkheaders,
3158 install-collect2, uninstall): Prepend $(DESTDIR) to
3159 destination paths in all (un)installation commands.
3160 (install-driver): Rewrite $(LN) commands to support DESTDIR
3161 with "ln" as well as with "ln -s".
3162 (installdirs): Simply use mkinstalldirs.
3163 (install-libgcc, install-multilib): Also pass DESTDIR.
3164 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
3165 installation destination variable ldir.
3166 * config/alpha/t-osf4, config/arm/t-netbsd,
3167 config/ia64/t-hpux, config/mips/t-iris5-6,
3168 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
3169 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
3170 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
3171 in the definition of SHLIB_INSTALL.
3172 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
3173 $(libsubdir) in the installation commands.
3175 2003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
3177 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
3178 non-optimizing compile.
3179 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
3182 2003-01-08 Douglas B Rupp <rupp@gnat.com>
3184 * config/i386/i386.c (ix86_attribute_table): Add new attributes
3185 ms_struct and gcc_struct.
3186 (ix86_handle_struct_attribute): New function.
3187 (ix86_ms_bitfield_layout_p): Update to take new attributes
3189 * doc/extend.texi: Document new attributes.
3190 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
3192 2003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
3194 PR optimization/8750
3195 * config/i386/i386.c (ix86_expand_prologue): Don't allow
3196 scheduling pass to move insns across __alloca call.
3198 2003-01-08 Dale Johannesen <dalej@apple.com>
3200 * config/rs6000/rs6000.md: Replace *store_multiple_string
3203 2003-01-08 Jeff Sturm <jsturm@one-point.com>
3206 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
3207 Set SYMBOL_REF_FLAG on local data sym_ref.
3209 2003-01-08 Dale Johannesen <dalej@apple.com>
3211 * function.c (assign_parms): Don't set pretend_args_size if
3212 REG_PARM_STACK_SPACE.
3213 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
3216 2003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
3220 Thu Jan 9 00:57:15 CET 2003 Jan Hubicka <jh@suse.cz>
3222 * i386.c (ix86_expand_int_addcc): Fix thinko.
3224 2003-01-08 David Edelsohn <edelsohn@gnu.org>
3226 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
3227 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
3228 as hook_bool_tree_hwi_hwi_tree_true.
3229 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
3230 (rs6000_emit_epilogue): Same.
3231 (rs6000_output_mi_thunk): Re-implement as RTL.
3232 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
3233 xcoffout_declare_function if any debugging enabled.
3235 2003-01-08 Chris Demetriou <cgd@broadcom.com>
3237 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
3238 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
3239 * config/mips/mips.h (enum processor_type): Rename
3240 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
3241 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
3243 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
3244 (ISA_MIPS32R2): New define.
3245 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
3246 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
3247 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
3248 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
3249 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
3250 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
3251 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
3252 compiling MIPS16 code.
3253 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
3255 (ISA_HAS_SEB_SEH): New define.
3256 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
3257 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
3258 processor_type value renaming. Add support for MIPS32R2.
3259 Clean up comments, and move "sb1" entry with other MIPS64 CPU
3261 (override_options): Reimplement -mipsN option handling so that
3262 it will work correctly for -mips32r2. Avoid branch-likely
3263 instructions on MIPS32R2.
3264 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
3265 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
3266 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
3267 (extendhisi2_hw, extendqisi2_hw): New.
3268 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
3269 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
3270 MIPS32R2, and MIPS64.
3271 (LINK_SPEC): Pass -mips32r2 to linker.
3272 * config/mips/t-isa3264: Built -mips32r2 multilibs.
3273 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
3274 for mips32r2 in the -march description. Alphabetically sort
3275 CPU names in the -march description. Add long-missed -mips32
3276 and -mips64 to MIPS option summary.
3278 * config.gcc: Update copyright years to include 2003.
3279 * config/mips/mips.c: Likewise.
3280 * config/mips/mips.h: Likewise.
3281 * config/mips/mips.md: Likewise.
3282 * config/mips/netbsd.h: Likewise.
3283 * doc/invoke.texi: Likewise.
3285 2003-01-08 Andreas Schwab <schwab@suse.de>
3287 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
3289 * configure: Regenerated.
3291 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
3293 * config/h8300/h8300.c (output_logical_op): Replace byte/word
3294 extraction of det with b0, b1, w0, w2, etc.
3295 (compute_logical_op_length): Likewise.
3296 (compute_logical_op_cc): Likewise.
3298 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
3300 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
3301 HIGH on all variants.
3303 Wed Jan 8 14:06:34 CET 2003 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3305 * Makefile.in (PARTITION_H): New.
3306 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
3307 * basic-block.h: Include hard-reg-set.h.
3309 2003-01-08 Richard Earnshaw <rearnsha@arm.com>
3311 * arm.h (ENABLE_XF_PATTERNS): Delete.
3312 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
3313 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
3314 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
3315 (cmpxf_trap): Delete.
3316 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
3318 Wed Jan 8 12:10:57 CET 2003 Jan Hubicka <jh@suse.cz>
3320 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
3321 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
3322 (add??cc): New expanders.
3323 * i386.c (expand_int_addcc): New function.
3324 * i386-protos.h (expand_int_addcc): Declare.
3326 * alias.c (memory_modified_1): New static function.
3327 (memory_modified): New static varaible.
3328 (memory_modified_in_insn_p): New global function.
3329 * rtl.h (memory_modified_in_insn_p): Declare.
3330 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
3333 * expr.h (emit_conditional_add): Declare.
3335 2003-01-07 Janis Johnson <janis187@us.ibm.com>
3338 * doc/invoke.texi (-malign-double): Explain that the option breaks
3339 binary compatibility.
3341 2003-01-08 Andreas Schwab <schwab@suse.de>
3343 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
3344 should come from the generic *-*-linux* entry.
3346 Tue Jan 7 22:29:56 CET 2003 Jan Hubicka <jh@suse.cz>
3348 * cselib.c (cselib_current_insn_in_libcall): New static variable.
3349 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
3350 we are inside libcall.
3351 * cselib.h (elt_loc_list): Add in_libcall.
3352 * gcse.c (do_local_cprop): Do not copy propagate using insns
3355 2003-01-07 David Edelsohn <edelsohn@gnu.org>
3357 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
3358 not normally affect to issue rate.
3360 Tue Jan 7 21:46:57 CET 2003 Jan Hubicka <jh@suse.cz>
3362 * genopinit.c (optabs): Add addc_optab.
3363 * ifcvt.c (noce_try_store_flag): Rename to ...
3364 (noce_try_addcc): ... this one; handle generic conditional increment.
3365 (noce_process_if_block): Update noce_try_addcc call.
3366 * optabs.c (emit_conditional_add): New.
3367 (init_obtabs): Initialize addc_optab.
3368 * optabs.h (optab_index): Add OTI_addcc.
3369 (addcc_optab): New macro.
3370 * md.texi: Document addMcc
3373 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
3374 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
3375 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
3377 * reload1.c (delete_output_reload): Avoid repeated attempts
3380 2003-01-07 Andreas Schwab <schwab@suse.de>
3382 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
3383 Move --enable-initfini-array check ...
3384 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
3385 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
3386 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
3387 * configure: Rebuild.
3389 2003-01-07 Richard Henderson <rth@redhat.com>
3391 * alias.c (find_base_value): Only use new_reg_base_value shortcut
3392 if the register is set once.
3394 2003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
3396 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
3397 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
3398 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
3400 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
3401 Sunil Davasam <sunil.k.davasam@intel.com>
3404 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
3405 DW_CFA_same_value, read next and ignore.
3407 2003-01-07 Richard Henderson <rth@redhat.com>
3409 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
3411 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
3413 * cfg.c: Include alloc-pool.h
3414 (edge_pool): New pool.
3415 (bb_pool): New pool.
3416 (first_deleted_edge): Remove.
3417 (first_deleted_block): Remove.
3418 (init_flow): Alloc/free the pools.
3419 (free_edge): Use pools.
3420 (alloc_block): Ditto.
3421 (expunge_block): Ditto.
3422 (cached_make_edge): Ditto.
3424 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
3426 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
3428 * et-forest.c: Include alloc-pool.h.
3429 (struct et_forest): Add node_pool and occur_pool.
3430 (et_forest_create): Create the new pools.
3431 (et_forest_delete): Delete them.
3432 (et_forest_add_node): Allocate and free using pools.
3433 (et_forest_add_edge): Ditto.
3434 (et_forest_remove_node): Ditto.
3435 (et_forest_remove_edge): Ditto.
3437 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
3439 2003-01-07 Kazu Hirata <kazu@cs.umass.edu>
3441 * config/h8300/h8300.c (output_logical_op): Simplify and
3442 optimize the handling of SImode.
3443 * config/h8300/h8300.c (compute_logical_op_length): Update
3445 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
3447 2003-01-07 Richard Sandiford <rsandifo@redhat.com>
3449 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
3450 big-endian correction to indirect arguments too.
3452 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
3454 Segher Boessenkool <segher@koffie.nl>
3456 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
3457 (alt_reg_names): Ditto, fix formatting.
3458 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
3460 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
3462 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
3463 (output_logical_op): Constify intval and det.
3464 (compute_logical_length): Likewise.
3465 (compute_logical_cc): Likewise.
3466 (output_a_shift): Constify mask.
3467 (h8300_encode_label): Constify len.
3469 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
3471 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
3472 (h8300_expand_epilogue): Likewise.
3474 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
3476 Segher Boessenkool <segher@koffie.nl>
3478 * config/rs6000/altivec.md: Remove spaces from assembler
3479 instruction argument lists.
3481 2003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3483 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
3484 c4x_assembler_function_p.
3485 (c4x_null_epilogue_p): Complement return value, all uses updated.
3486 (c4x_insert_attributes): Add naked.
3487 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
3488 * doc/extend.texi: Update C4x function attributes.
3490 2003-01-06 Richard Henderson <rth@redhat.com>
3492 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
3493 properly when changing "local-ness".
3494 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
3496 2003-01-06 Dale Johannesen <dalej@apple.com>
3498 * config/darwin-protos.h: Add prototypes for new section functions.
3500 2003-01-06 Chris Demetriou <cgd@broadcom.com>
3502 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
3505 2003-01-06 Zack Weinberg <zack@codesourcery.com>
3507 * hwint.h: If the current compiler has no 64-bit type at all,
3508 make HOST_WIDEST_INT 32 bits.
3510 2003-01-06 Eric Christopher <echristo@redhat.com>
3512 * config/mips/mips.md (movdf_internal2): Fix constraints.
3514 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
3516 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
3518 2003-01-06 Richard Sandiford <rsandifo@redhat.com>
3520 * config/mips/mips.md (leadi): Use dla rather than la.
3522 2003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
3524 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
3525 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
3527 2003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
3529 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
3532 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
3534 * config/h8300/h8300.md (*extzv_8_23): New.
3536 2003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3538 * pa64-hpux.h (JCR_SECTION_NAME): Define.
3539 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
3540 USE_EH_FRAME_REGISTRY when defining.
3542 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
3544 * config/h8300/h8300.c (output_a_shift): Do not output a
3546 * config/h8300/h8300.md (two splitters): New.
3548 2003-01-05 Richard Sandiford <rsandifo@redhat.com>
3550 * config/mips/mips.md: Disable the movstrsi define_split.
3552 2003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3554 * alloc-pool.c: Don't include "libiberty.h".
3555 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
3556 * convert.c (convert_to_real): Hide unused variable.
3558 2003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3560 * Makefile.in (gtyp-gen.h): Const-ify.
3561 * gcov-dump.c (tag_table): Likewise.
3563 2003-01-04 Bruce Korb <bkorb@gnu.org>
3565 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
3566 of *both* the file name and the fix name.
3568 2003-01-04 John David Anglin <dave.anglin@nrc.ca>
3570 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
3572 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
3573 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
3574 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
3575 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
3576 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
3577 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
3579 (EH_FRAME_IN_DATA_SECTION): Delete define.
3580 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
3581 (STARTFILE_SPEC): Use crtbegin.o.
3582 (ENDFILE_SPEC): Use crtend.o.
3583 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
3584 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
3585 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
3586 DTOR_LIST_BEGIN): Define.
3587 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
3588 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
3589 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
3591 2002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
3593 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
3594 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
3595 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
3596 Cleanup handling of replacement text.
3597 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
3599 2003-01-04 Bruce Korb <bkorb@gnu.org>
3601 * fixinc/tests/base/math.h: removed obsolete results
3602 * fixinc/tests/base/stdlib.h: ditto
3603 * fixinc/tests/base/sys/param.h: ditto
3604 * fixinc/tests/base/sys/stat.h: ditto
3605 * fixinc/tests/base/time.h: ditto
3606 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
3607 * fixinc/tests/base/sys/byteorder.h: ditto
3608 * fixinc/inclhack.def: Remove superfluous backslashes
3610 2003-01-04 Kazu Hirata <kazu@cs.umass.edu>
3612 * config/h8300/h8300-protos.h: Add prototypes for
3613 the new functions defined below.
3614 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
3616 (dosize): Emit RTL instead of assembly code.
3619 (h8300_output_function_prologue): Remove.
3620 (h8300_expand_prologue): New.
3621 (h8300_expand_epilogue): New.
3622 (h8300_output_function_epilogue): Do only the reset of
3624 * config/h8300/h8300.md (push_h8300): New.
3625 (push_h8300hs): Likewise.
3626 (pop_h8300): Likewise.
3627 (pop_h8300hs): Likewise.
3628 (*stm_h8300s_2): Change the name to stm_h8300s_2.
3629 (*stm_h8300s_3): Change the name to stm_h8300s_3.
3630 (*stm_h8300s_4): Change the name to stm_h8300s_4.
3631 (*ldm_h8300s_2): New.
3632 (*ldm_h8300s_3): Likewise.
3633 (*ldm_h8300s_4): Likewise.
3635 (*return_1): Likewise.
3636 (prologue): Likewise.
3637 (epilogue): Likewise.
3638 (monitor_prologue): Likewise.
3640 2003-01-03 Dale Johannesen <dalej@apple.com>
3642 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
3643 machopic_picsymbol_stub1.
3644 (EXTRA_SECTION_FUNCTIONS): Ditto.
3645 * rs6000/rs6000.c: Update copyright.
3646 (machopic_output_stub): Use them. Remove an insn from stub code.
3648 2003-01-02 Jason Merrill <jason@redhat.com>
3650 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
3652 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
3653 static/external decls.
3655 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
3657 * c-decl.c (c_make_fname_decl): Push the decls there, too.
3659 2003-01-03 Kazu Hirata <kazu@cs.umass.edu>
3661 * config/h8300/h8300-protos.h: Add a prototype for
3662 h8300_current_function_interrupt_function_p.
3663 * config/h8300/h8300.c (interrupt_handler): Remove.
3664 (os_task): Likewise.
3665 (monitor): Likewise.
3666 (pragma_interrupt): New.
3667 (WORD_REG_USED): Use
3668 h8300_current_function_interrupt_function_p.
3670 (h8300_output_function_prologue): Likewise.
3671 Do not set interrupt_handler, os_task, monitor.
3672 (h8300_output_function_prologue): Use
3673 h8300_current_function_interrupt_function_p.
3674 Do not set interrupt_handler, os_task, monitor.
3675 (h8300_current_function_interrupt_function_p): New.
3676 (h8300_pr_interrupt): Set pragma_interrupt.
3677 (h8300_insert_attributes): Reset pragma_interrupt.
3679 2003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3681 * doc/install.texi (Configuration): Fix markup for reference to
3684 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
3686 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
3687 (*iorhi3_two_qi): Likewise.
3688 (*iorsi3_zexthi): Likewise.
3689 (*xorhi3_zextqi): Likewise.
3690 (*xorsi3_zexthi): Likewise.
3691 (*xorsi3_zextqi): Likewise.
3693 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
3695 * config/h8300/h8300.c (stack_pointer_operand): New.
3696 (const_int_gt_2_operand): Likewise.
3697 (const_int_ge_8_operand): Likewise.
3698 * config/h8300/h8300.md (a splitter): Likewise.
3699 (a peephole2): Likewise.
3700 * config/h8300/h8300-protos.h: Add prototypes for the new
3703 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
3705 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
3706 objc/objc-act.h: Fix copyright years.
3708 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
3710 * doc/passes.texi: Fix documentation for -fssa-ccp
3712 2003-01-02 Neil Booth <neil@daikokuya.co.uk>
3714 * gccbug.in: Update for new categories.
3716 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
3718 * config/h8300/h8300.md: Reorder some patterns.
3720 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
3722 * config/h8300/h8300.c (output_logical_op): Fix a warning.
3724 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
3726 * config/darwin-protos.h, config/c4x/c4x-protos.h,
3727 config/cris/cris-protos.h, config/i370/i370-protos.h,
3728 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
3729 config/v850/v850-protos.h: Use struct, and don't conditionally
3730 compile on GCC_C_PRAGMA_H.
3732 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
3734 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
3735 * config/h8300/h8300-protos.h: Likewise.
3736 * config/sh/sh-protos.h: Likewise.
3738 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
3740 * config/arm/arm-protos.h: Use struct cpp_reader instead of
3742 * config/h8300/h8300-protos.h: Likewise.
3743 * config/sh/sh-protos.h: Likewise.
3745 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
3747 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
3748 arm_pr_long_calls_off): Use struct.
3749 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
3751 Don't include cpplib.h.
3752 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
3753 sh_pr_nosave_low_regs): Similarly.
3755 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
3757 * config/h8300/h8300.c: Include cpplib.h.
3759 2003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
3761 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
3762 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
3763 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
3764 "GCC" in the copyright header.
3766 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
3768 * c-pragma.c (c_register_pragma): New.
3769 (init_pragma): Use it.
3770 * c-pragma.h (cpp_register_pragma): Don't declare.
3771 (c_register_pragma): New.
3772 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
3773 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
3774 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
3775 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
3776 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
3777 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
3778 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
3779 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
3780 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
3781 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
3782 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
3783 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
3785 2002-12-31 Kazu Hirata <kazu@cs.umass.edu>
3787 * config/h8300/h8300-protos.h: Update the prototypes.
3788 * config/h8300/h8300.c (const_le_2_operand): Change to
3789 const_int_le_2_operand.
3790 (const_int_le_6_operand): Change to const_int_le_6_operand.
3791 * config/h8300/h8300.md (two peepholes): Update the function
3794 2002-12-31 Tom Tromey <tromey@redhat.com>
3796 * doc/install.texi (Testing): Fixed typo.
3798 2002-12-31 Kazu Hirata <kazu@cs.umass.edu>
3800 * config/h8300/h8300.h (TRAMPOLINE_TEMPLATE): Remove.
3801 (TRAMPOLINE_SIZE): Support the normal mode.
3802 (INITIALIZE_TRAMPOLINE): Emit the entire trampoline.
3804 2002-12-31 Mark Mitchell <mark@codesourcery.com>
3806 * c-common.h (pending_lang_change): Declare.
3808 2002-12-31 Jerry Quinn <jlquinn@optonline.net>
3810 * gcc/doc/invoke.texi (Optimization Options): Clean up -O flag
3813 2002-12-31 Jerry Quinn <jlquinn@optonline.net>
3815 * gcc/doc/invoke.texi (Optimization Options): List the options
3816 enabled by each -O flag.
3818 2002-12-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3820 * doc/install.texi (Configuration): Explicitly refer
3821 gcc/config.gcc for a list of cpu models.
3823 2002-12-31 Kazu Hirata <kazu@cs.umass.edu>
3825 * config/h8300/h8300.h: Fix comment typos.
3827 2002-12-30 David Edelsohn <edelsohn@gnu.org>
3829 * config/rs6000/rs6000.h (WIDEST_HARDWARE_FP_SIZE): Define.
3831 2002-12-30 Tom Tromey <tromey@redhat.com>
3833 * doc/install.texi (Testing): Mention Jacks.
3835 2002-12-30 Joseph S. Myers <jsm@polyomino.org.uk>
3837 * doc/gcc.texi, doc/gccint.texi: Update last modification dates.
3839 2002-12-30 Kazu Hirata <kazu@cs.umass.edu>
3841 * config/h8300/h8300.c (output_logical_op): Use extu.w in more
3843 (compute_logical_op_length): Update to reflect the change in
3845 (compute_logical_op_cc): Likewise.
3847 2002-12-30 Joseph S. Myers <jsm@polyomino.org.uk>
3849 * doc/service.texi: Uncomment and update FAQ link.
3851 2002-12-30 Andreas Jaeger <aj@suse.de>
3853 * unwind-dw2-fde.h (last_fde): Add unused attribute for obj.
3855 2002-12-30 Kazu Hirata <kazu@cs.umass.edu>
3857 * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): New.
3859 2002-12-30 Kazu Hirata <kazu@cs.umass.edu>
3861 * config/h8300/h8300.c (output_logical_op): Use extu.w if we
3862 are clearing the most significant byte.
3863 (compute_logical_op_length): Update to reflect the change in
3865 (compute_logical_op_cc): Likewise.
3867 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
3869 * config/h8300/h8300.md: Give internal names to anonymous
3872 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
3874 * config/h8300/h8300.md: Reorder some insns.
3876 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
3878 * config/h8300/h8300-protos.h: Add prototypes for
3879 const_int_qi_operand and const_int_hi_operand.
3880 * config/h8300/h8300.c (const_int_qi_operand): New.
3881 (const_int_hi_operand): Likewise.
3882 * config/h8300/h8300.md (three peepholes): New.
3884 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
3886 * doc/cpp.texi, doc/gcc.texi, doc/gccint.texi, doc/install.texi:
3889 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
3891 * configure.in: Increase makeinfo version requirement to 4.[2-9].
3892 * configure: Regenerate.
3893 * doc/install.texi: Update Texinfo version requirement.
3895 2002-12-28 Andreas Jaeger <aj@suse.de>
3897 * config/i386/i386.c (x86_function_profiler): Mark labelno as
3900 * c-parse.in (yyprint): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX for
3903 2002-12-27 Kazu Hirata <kazu@cs.umass.edu>
3905 * config/h8300/h8300.md (*iorhi_shift_8): Change the name to
3907 (*iorhi_lshiftrt_8): New.
3909 2002-12-27 Joseph S. Myers <jsm@polyomino.org.uk>
3911 * doc/include/texinfo.tex: Update to version 2002-12-26.16.
3913 2002-12-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3915 * doc/contrib.texi (Contributors): Add Abramo and Roberto Bagnara.
3917 2002-12-26 Kazu Hirata <kazu@cs.umass.edu>
3919 * config/h8300/h8300-protos.h: Fix comment typos.
3921 * config/h8300/h8300.c: Fix comment typos.
3923 2002-12-26 Kazu Hirata <kazu@cs.umass.edu>
3925 * config/h8300/h8300.h (IDENT_ASM_OP): End with a tab.
3927 2002-12-26 Kazu Hirata <kazu@cs.umass.edu>
3929 * config/i386/athlon.md: Fix comment typos.
3930 * config/i386/crtdll.h: Likewise.
3931 * config/i386/djgpp.h: Likewise.
3932 * config/i386/i386-interix.h: Likewise.
3933 * config/i386/i386.c: Likewise.
3934 * config/i386/i386.h: Likewise.
3935 * config/i386/i386.md: Likewise.
3936 * config/i386/k6.md: Likewise.
3937 * config/i386/mingw32.h: Likewise.
3938 * config/i386/pentium.md: Likewise.
3939 * config/i386/sco5.h: Likewise.
3940 * config/i386/winnt.c: Likewise.
3941 * config/i386/xmmintrin.h: Likewise.
3943 2002-12-26 Jose Renau <renau@cs.uiuc.edu>
3945 * ssa-dce.c (EXECUTE_IF_UNNECESSARY): Verify INSN is an
3946 INSN_P before checking to see if it is dead.
3947 (mark_all_insn_unnecessary): Similarly.
3948 (ssa_eliminate_dead_code): Similarly.
3949 * rtl.h (struct rtx_def): Update comments for in_struct usage
3950 in dead code elimination pass.
3951 (INSN_DEAD_CODE_P): Allow JUMP_INSN and CALL_INSN as well.
3953 2002-12-26 Andreas Schwab <schwab@suse.de>
3955 * config.gcc (powerpc*-*-*, rs6000-*-*): Fix assignment syntax.
3957 2002-12-25 David Edelsohn <edelsohn@gnu.org>
3959 * config/rs6000/rs6000.c (rs6000_override_options): Convert to
3960 tartet_flags_explicit.
3961 * config/rs6000/rs6000.h (MASK_MULTIPLE_SET, MASK_STRING_SET): Delete.
3962 Compact target_flags bits.
3963 (TARGET_MULTIPLE_SET, TARGET_STRING_SET): Delete.
3964 (TARGET_SWITCHES): Delete references to *_SET flags.
3966 Wed Dec 25 20:30:53 CET 2002 Jan Hubicka <jh@suse.cz>
3968 * i386.md (memory attribute): Fix setcc attribute.
3970 2002-12-25 Kazu Hirata <kazu@cs.umass.edu>
3972 * output.h: Fix comment typos.
3973 * predict.c: Likewise.
3974 * print-tree.c: Likewise.
3975 * profile.c: Likewise.
3976 * ra-build.c: Likewise.
3977 * ra-colorize.c: Likewise.
3978 * ra-debug.c: Likewise.
3979 * ra-rewrite.c: Likewise.
3983 * recog.c: Likewise.
3984 * reg-stack.c: Likewise.
3985 * regclass.c: Likewise.
3987 2002-12-25 Kazu Hirata <kazu@cs.umass.edu>
3989 * config/h8300/h8300.c (print_operand_address): Do not negate
3990 a negative number when printing one.
3992 2002-12-25 Kazu Hirata <kazu@cs.umass.edu>
3994 * config/h8300/h8300-protos.h: Add prototypes for
3995 output_plussi, compute_plussi_length, and compute_plussi_cc.
3996 * config/h8300/h8300.c (output_plussi): New.
3997 (compute_plussi_length): Likewise.
3998 (compute_plussi_cc): Likewise.
3999 * config/h8300/h8300.md (addsi_h8300h): Call
4000 output_plussi, compute_plussi_length, and compute_plussi_cc.
4002 2002-12-24 Kazu Hirata <kazu@cs.umass.edu>
4004 * config/h8300/h8300.md (two peepholes): Use match_dup instead
4005 of match_operand in the new patterns.
4007 2002-12-24 Joseph S. Myers <jsm@polyomino.org.uk>
4009 * doc/include/texinfo.tex: Update to version 2002-11-25.11.
4011 2002-12-24 Nathan Sidwell <nathan@codesourcery.com>
4013 * configure.in (enable-coverage): Add SELF_COVERAGE.
4014 * profile.c (end_branch_prob): Use SELF_COVERAGE.
4016 2002-12-24 Jim Wilson <wilson@redhat.com>
4018 * alias.c (record_set): Handle multi-reg hard registers.
4020 2002-12-24 Kazu Hirata <kazu@cs.umass.edu>
4022 * regmove.c: Fix comment typos.
4023 * reload.c: Likewise.
4024 * reload1.c: Likewise.
4025 * resource.c: Likewise.
4026 * rtl.def: Likewise.
4028 * rtlanal.c: Likewise.
4029 * sched-deps.c: Likewise.
4030 * sched-rgn.c: Likewise.
4031 * sibcall.c: Likewise.
4032 * simplify-rtx.c: Likewise.
4033 * ssa-ccp.c: Likewise.
4036 * stor-layout.c: Likewise.
4037 * system.h: Likewise.
4038 * tlink.c: Likewise.
4039 * toplev.c: Likewise.
4040 * tracer.c: Likewise.
4041 * tree-inline.c: Likewise.
4044 * unroll.c: Likewise.
4045 * varasm.c: Likewise.
4047 2002-12-23 Larin Hennessy <larin@science.oregonstate.edu>
4049 * doc/install.texi: Remove i386-*-isc, i860-*-bsd,
4050 m68k-altos-sysv, m68k-isi-bsd, m68k-sony-bsd entries.
4051 * doc/invoke.texi: Remove AMD 29K, ARM RISC/iX, Clipper, Convex,
4053 * doc/md.texi: Remove AMD 29K entries.
4054 * doc/trouble.texi: Remove Alliant, DG/UX, Iris 4.0.5F, GAS
4055 1.38.1, NewsOS, RT PC, WE32K entries.
4057 2002-12-23 Aldy Hernandez <aldyh@redhat.com>
4060 * config/rs6000/altivec.md (mulv4sf3): Rewrite to add -0.0 vector.
4061 (altivec_vspltisw_v4sf): Name pattern.
4062 (altivec_vslw_v4sf): New pattern.
4064 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
4066 * doc/include/gcc-common.texi: Define DEVELOPMENT.
4068 2002-12-23 Mark Mitchell <mark@codesourcery.com>
4070 * stor-layout.c (update_alignment_for_field): Correct handling of
4071 unnamed bitfields on PCC_BITFIELD_TYPE_MATTERS machines.
4072 * doc/tm.texi (PCC_BITFIELD_TYPE_MATTERS): Note that an unnamed
4073 bitfield does not affect alignment.
4075 2002-12-23 David Edelsohn <edelsohn@gnu.org>
4077 * expr.c (expand_assignment): Apply special treatment to
4080 2002-12-23 Kazu Hirata <kazu@cs.umass.edu>
4082 * config/h8300/h8300-protos.h: Update the prototype of
4084 * config/h8300/h8300.c (expand_a_shift): Change the