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>
85 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
86 depended on it being defined until now.
88 2003-01-29 Joel Sherrill <joel@OARcorp.com>
91 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
92 RTEMS code knows which C++ initialization style the toolset
93 configuration is using.
95 2003-01-29 Joel Sherrill <joel@OARcorp.com>
98 * config/m68k/t-crtstuff: Replace spaces with tabs, add
99 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
101 2003-01-29 Joel Sherrill <joel@OARcorp.com>
104 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
106 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
108 2003-01-29 Nick Clifton <nickc@redhat.com>
110 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
113 2003-01-29 Andrew Haley <aph@redhat.com>
115 * tree-inline.c (walk_tree): Add CHAR_TYPE.
117 Wed Jan 29 10:26:12 CET 2003 Jan Hubicka <jh@suse.cz>
119 * i386.md (subdi3_carry_rex64): Fix typo.
121 2003-01-28 Stan Shebs <shebs@apple.com>
123 * coretypes.h (cpp_reader): Forward declare struct.
124 * c-pragma.h (cpp_reader): Remove forward declaration.
125 * hashtable.h (cpp_reader): Likewise.
126 * scan.h (cpp_reader): Likewise.
127 * tree.h (cpp_reader): Likewise.
128 * config/darwin-protos.h (cpp_reader): Likewise.
129 * config/arm/arm-protos.h (cpp_reader): Likewise.
130 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
131 struct cpp_reader in prototypes.
133 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
135 * doc/install.texi: Add documentation for installation into
136 tooldirs and with DESTDIR.
138 2003-01-28 Richard Henderson <rth@redhat.com>
140 * config.gcc (ia64*-*-aix*): Remove.
141 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
142 * config/ia64/unwind-aix.c: Remove file.
144 2003-01-28 Andreas Schwab <schwab@suse.de>
146 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
148 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
149 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
150 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
151 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
152 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
153 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
154 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
156 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
158 * combine.c (nonzero_bits): Fix check for negative divide operands.
160 2003-01-28 Richard Henderson <rth@redhat.com>
162 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
163 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
165 2003-01-28 Richard Henderson <rth@redhat.com>
167 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
169 * config/cris/cris.c (cris_address_cost): Make static.
170 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
171 * config/cris/cris.h (ADDRESS_COST): Remove.
172 * config/cris/cris-protos.h: Update.
174 2003-01-23 Mike Stump <mrs@apple.com>
176 * regclass.c (init_reg_autoinc): New function.
177 (regclass): Move initialization of forbidden_inc_dec_class from
179 (init_regs): to here. Avoids reinitialization for each function,
180 saving compilation time.
182 2003-01-28 Jason Merrill <jason@redhat.com>
184 * cpplib.h (struct cpp_options): Add warn_deprecated field.
185 * cppinit.c (cpp_create_reader): Turn it on by default.
186 * c-opts.c (c_common_decode_option): Set it.
187 * cpplib.c (do_pragma_once): Only complain about #pragma once
188 if warn_deprecated is set.
190 2003-01-28 Dale Johannesen <dalej@apple.com>
192 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
193 * loop.c (scan_loop): Move movables on -Os rich-register targets.
194 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
196 2003-01-28 Richard Henderson <rth@redhat.com>
198 * target.h (targetm.address_cost): New.
199 * target-def.h (TARGET_ADDRESS_COST): New.
200 (TARGET_RTX_COSTS): Uncomment. Oops.
201 * cse.c (address_cost): Use new target hook.
202 (default_address_cost): New.
203 * output.h (default_address_cost): Declare.
204 * hooks.c (hook_int_rtx_0): New.
205 * hooks.h (hook_int_rtx_0): Declare.
206 * loop.c (combine_givs_p): Remove if 0 code.
207 * system.h (ADDRESS_COST): Poison.
209 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
210 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
211 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
212 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
213 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
214 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
215 config/xtensa/xtensa.c, config/xtensa/xtensa.h
216 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
217 (ADDRESS_COST): Remove.
219 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
220 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
221 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
222 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
223 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
224 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
225 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
226 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
227 config/mips/mips.c, config/mips/mips.h,
228 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
229 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
230 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
231 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
232 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
233 config/vax/vax.c, config/vax/vax.h
234 (foo_address_cost): Make static.
235 (TARGET_ADDRESS_COST): New.
236 (ADDRESS_COST): Remove.
238 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
239 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
240 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
241 config/stormy16/stormy16.h
242 (ADDRESS_COST): Move code ...
243 (foo_address_cost): ... here.
244 (TARGET_ADDRESS_COST): New.
246 * config/m32r/m32r.c (m32r_address_cost): Remove.
247 * config/m32r/m32r-protos.h: Update.
249 * config/mmix/mmix.c (mmix_address_cost): Remove.
250 * config/mmix/mmix-protos.h: Update.
252 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
253 mn10300_address_cost; move unsig allocation ...
254 (mn10300_address_cost): ... here.
255 (TARGET_ADDRESS_COST): New.
256 * config/mn10300/mn10300-protos.h: Update.
257 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
259 * doc/tm.texi: Update.
261 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
263 * haifa-sched.c (schedule_insn): Return necessary cycle advance
264 after issuing the insn.
265 (rank_for_schedule): Make a insn with /S the highest priority
267 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
268 (choose_ready): Check SCHED_GROUP_P.
269 (schedule_block): Advance cycle after issuing insn if it is
270 necessary. Don't reorder insns if there is an insn with /S.
271 (set_priorities): Ignore schedule groups.
273 * sched-deps.c (remove_dependence, group_leader): Remove the
275 (add_dependence): Ignore schedule groups.
276 (set_sched_group_p): Don't make copy of dependencies from previous
277 insn of the schedule group. Add anti-dependency to the previous
278 insn of the schedule group.
279 (compute_forward_dependences): Ignore schedule groups.
281 * sched-ebb.c (init_ready_list): Ignore schedule groups.
283 * sched-rgn.c (init_ready_list): Ditto.
284 (can_schedule_ready_p): Ditto.
286 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
288 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
289 register to another one.
291 2003-01-28 Richard Henderson <rth@redhat.com>
293 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
295 2003-01-28 Roger Sayle <roger@eyesopen.com>
297 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
299 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
301 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
302 class contains a floating-point register, return the size of the
305 Tue Jan 28 12:15:13 CET 2003 Jan Hubicka <jh@suse.cz>
307 * i386.c (ix86_carry_flag_operator): New predicate.
308 (fcmov_operator): Fix whitespace.
309 (ix86_expand_carry_flag_compare): Deal with floating point.
310 (ix86_expand_int_movcc): Deal with fp; update insn expansion
311 (ix86_expand_int_addcc): Likewise.
312 (ix86_expand_strlensi_unroll_1): likewsie.
313 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
314 * i386.md (add?i_carry_rex64): Use new predicate.
315 (sub?i3_carry_rex64): Likewise.
316 (x86_mov?icc_0_m1*): Likewise.
318 2003-01-28 Andreas Schwab <schwab@suse.de>
320 * cfgloopmanip.c (create_preheader): Initialize src to avoid
323 * expmed.c (emit_store_flag): Fix cast to avoid sign
326 * combine.c (force_to_mode): Add cast to fix warning when
327 STORE_FLAG_VALUE is negative.
329 2003-01-27 Richard Henderson <rth@redhat.com>
331 * Makefile.in (cse.o): Depend on TARGET_H.
332 * cse.c (rtx_cost): Use targetm.rtx_costs.
333 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
334 * doc/tm.texi: Update.
336 * target.h (targetm.rtx_costs): New.
337 * target-def.h (TARGET_RTX_COSTS): New.
338 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
341 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
342 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
343 * config/alpha/alpha.h (PROCESSOR_MAX): New.
344 (CONST_COSTS, RTX_COSTS): Remove.
346 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
347 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
348 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
349 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
350 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
351 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
352 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
353 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
354 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
355 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
356 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
357 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
358 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
359 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
360 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
361 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
362 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
363 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
364 config/v850/v850.c, config/v850/v850.h,
365 config/xtensa/xtensa.c, config/xtensa/xtensa.h
366 (CONST_COSTS, RTX_COSTS): Move code ...
367 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
369 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
370 (arm_rtx_costs, TARGET_RTX_COSTS): New.
371 * config/arm/arm-protos.h: Update.
372 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
374 * config/avr/avr.h (CONST_COSTS): Move code ...
375 * config/avr/avr.c (avr_rtx_costs): ... here.
376 (default_rtx_costs): Make static.
377 * config/avr/avr-protos.h: Update.
379 * config/h8300/h8300.c (const_costs): Make static.
380 (h8300_and_costs, h8300_shift_costs): Likewise.
381 * config/h8300/h8300-protos.h: Update.
383 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
384 (CONST_COSTS): Move code ...
385 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
386 default_rtx_costs; update for signature change.
387 * config/ip2k/ip2k-protos.h: Update.
389 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
390 (CONST_COSTS): Move code ...
391 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
392 (TARGET_RTX_COSTS): New.
393 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
394 * config/m68hc11/m68hc11-protos.h: Update.
396 * config/m68k/m68k.c (const_int_cost): Make static.
397 * config/m68k/m68k-protos.h: Update.
399 * config/mcore/mcore.c (mcore_const_costs): Make static.
400 (mcore_and_cost, mcore_ior_cost): Likewise.
401 * config/mcore/mcore-protos.h: Update.
403 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
404 (mmix_rtx_cost_recalculated): Remove.
405 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
406 * config/mmix/mmix-protos.h: Update.
408 * config/sh/sh.c (shiftcosts): Make static.
409 (addsubcosts, andcosts, multcosts): Likewise.
410 * config/sh/sh-protos.h: Update.
412 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
413 (sparc_rtx_costs): Make static; update for change in signature.
414 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
415 * config/sparc/sparc-protos.h: Update.
417 * config/v850/v850.c (const_costs): Make static.
418 * config/v850/v850-protos.h: Update.
420 * config/vax/vax.h (RTX_COSTS): Remove.
421 (CONST_COSTS): Move code ...
422 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
424 (vax_rtx_costs, TARGET_RTX_COSTS): New.
426 2003-01-27 Richard Henderson <rth@redhat.com>
428 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
429 * config/vax/vax-protos.h: Update. Really.
431 2003-01-28 Alexandre Oliva <aoliva@redhat.com>
433 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
434 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
435 zero if no hardware floating point.
436 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
437 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
438 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
439 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
440 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
441 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
442 even FP registers on N32 and N64.
443 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
444 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
445 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
446 even-register-like alignment to 128-bit arguments.
447 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
448 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
450 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
451 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
452 (TPBIT): Set to tp-bit.c.
453 (tp-bit.c): Create out of fp-bit.c.
455 2003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
457 * c-parse.in: Remove '%expect 32' directive in objc mode.
459 2003-01-27 Nathan Sidwell <nathan@codesourcery.com>
461 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
462 (LIBGCOV): New variable.
463 (libgcc.mk): Add LIBGCOV.
464 (LIBGCC_DEPS): Add libgcov.c.
465 (libgcov.a): New target.
466 (clean): Remove libgcov.a.
467 (install-libgcc): Do libgcov too.
468 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
470 * libgcc2.c (L_gcov): Move into ...
471 * libgcov.c: ... here. New file.
472 * mklibgcc.in: Add libgcov rules.
473 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
475 * doc/invoke.texi (profile-arcs, test-coverage): Update and
478 * profile.c (index_counts_file): Remove duplicate check for open file.
480 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
482 * gcc/doc/invoke.texi (Optimization Options): Group together
483 optional and experimental flags. Move trapv and bounds-check
484 out of this section. Group floating point flags together.
485 (Code Gen Options): Move trapv and bounds-check to here.
487 2003-01-27 Josef Zlomek <zlomekj@suse.cz>
489 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
491 2003-01-27 Richard Earnshaw <rearnsha@arm.com>
494 * function.c (purge_addressof_1): After pushing an addressed register
495 onto the stack, simplify the result.
497 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
499 * doc/extend.texi: Fix typo.
501 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
503 * doc/cppopts.texi: Fix typo.
504 * doc/objc.texi: Likewise.
505 * doc/passes.texi: Likewise.
507 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
509 * real.c (ibm_extended_format): Add 53 to minimum exponent.
510 (encode_ibm_extended): Adjust.
512 2003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
514 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
515 timevar_id enumerations.
517 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
519 * combine.c: Fix formatting.
521 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
523 * doc/gccint.texi: Update the copyright.
525 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
527 * doc/cpp.texi: Fix typos.
528 * doc/extend.texi: Likewise.
529 * doc/gty.texi: Likewise.
530 * doc/install.texi: Likewise.
531 * doc/passes.texi: Likewise.
532 * doc/rtl.texi: Likewise.
533 * doc/tm.texi: Likewise.
535 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
537 * config/ia64/fde-glibc.c: Fix comment typos.
538 * config/ia64/hpux.h: Likewise.
539 * config/ia64/ia64.c: Likewise.
540 * config/ia64/ia64.h: Likewise.
541 * config/ia64/unwind-ia64.c: Likewise.
543 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
545 * config/i386/i386-modes.def: Fix comment typos.
546 * config/i386/i386.c: Likewise.
547 * config/i386/i386.md: Likewise.
549 2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
551 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
552 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
553 ASM_FINISH_DECLARE_OBJECT before defining it.
554 * toplev.c (rest_of_decl_compilation): Don't define
555 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
556 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
557 parameters for DWARF2 targets because they _are_ used.
559 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
561 * fp-bit.h: Define macros for TFmode floating-point constants
562 in IBM-extended TFmode types.
563 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
565 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
568 * config/fp-bit.h: Define macros for TFmode floating-point
569 constants in IEEE quad TFmode type. Declare functions according
571 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
572 (TFtype, TItype, UTItype): Define if TMODES is defined.
573 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
574 (F_T_BITOFF, D_T_BITOFF): Define.
575 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
576 guaranteed to be wide enough.
577 * config/fp-bit.c: Check for L_ macros for tf functions.
580 (pack_d, unpack_d): Support IEEE 854 quad type.
581 (_fpmul_parts): Support TFmode. Compute exponent adjustment
582 from FRAC_NBITS, FRAC_BITS and NGARDS.
583 (usi_to_float): Cast constants to be shifted to fractype
584 instead of assuming long long is wide enough.
585 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
587 2003-01-26 Andreas Jaeger <aj@suse.de>
589 * df.c: Remove prototype of unused function df_regno_rtl_debug.
591 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
593 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
594 (DBBIT_FUNCS): Added _df_to_tf.
596 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
597 (LIBGCC_DEPS): Added TPBIT.
598 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
600 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
601 been able to move the result to target.
603 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
604 for the appropriate mode.
606 * calls.c (emit_library_call_value_1): Handle return values
609 * rtl.c (get_mode_alignment): Moved to...
610 * stor-layout.c: ... here.
612 * print-rtl.c (print_rtx): Don't print MEM details in
615 2003-01-26 Michael Hayes <mph@paradise.net.nz>
617 * df.h: Update comments, tidy formatting.
618 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
619 REVERSE, UNION, INTERSECTION. All uses updated.
620 (OLD_DF_INTERFACE): Remove.
621 (struct insn_info): Remove commented out insn field.
622 * df.c: Update comments, tidy formatting.
623 (df_def_table_realloc): Remove.
626 2003-01-26 Alan Modra <amodra@bigpond.net.au>
628 * calls.c (save_fixed_argument_area): Tidy.
629 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
630 (expand_call): Comment typo fixes. Don't init low_to_save. Start
631 call chain loop at 1 if !try_tail_call. Formatting.
632 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
633 Use save_fixed_argument_area and restore_fixed_argument_area.
635 2003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
637 * df.c (df_uses_record): Handle CC0.
639 2003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
641 * reload.c (maybe_memory_address_p): New function.
642 (find_reloads_address): Use it instead of memory_address_p.
644 2003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
646 * final.c (shorten_branches): Align the address of code label
647 when computing initial lengths and addresses.
649 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
651 * config/m68hc11/m68hc11.md: Fix a comment typo.
653 2003-01-25 Andreas Jaeger <aj@suse.de>
655 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
658 2003-01-25 Roger Sayle <roger@eyesopen.com>
660 * gcse.c (bypass_last_basic_block): New global variable.
661 (bypass_block): Use redirect_edge_and_branch_force to redirect
662 fall-through edges. Use bypass_last_basic_block to determine
663 which blocks have valid PRE information.
664 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
666 Sat Jan 25 22:31:59 CET 2003 Jan Hubicka <jh@suse.cz>
668 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
670 Sat Jan 25 21:04:33 CET 2003 Jan Hubicka <jh@suse.cz>
671 Eric Botcazou <ebotcazou@libertysurf.fr>
673 * gcse.c (one_cprop_pass): Delete unreachable blocks.
675 2003-01-25 Richard Henderson <rth@redhat.com>
677 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
678 from ia64_aix_select_rtx_section.
679 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
680 instead of saving and restoring flag_pic.
681 (ia64_rwreloc_unique_section): Similarly.
682 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
683 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
684 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
685 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
687 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
689 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
692 2002-01-25 Richard Henderson <rth@redhat.com>
694 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
696 2002-01-25 Kelley Cook <kelleycook@comcast.net>
698 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
700 2003-01-25 Segher Boessenkool <segher@koffie.nl>
702 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
703 type for bitmaps. Use unsigned long.
704 (nBITMAP_WORD_BITS): New macro.
705 (BITMAP_WORD_BITS): New macro.
706 (rest of file): Use it.
709 2003-01-25 Richard Henderson <rth@redhat.com>
711 2002-02-19 Robert Lipe <robertlipe@usa.net>
712 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
714 2002-01-25 Roger Sayle <roger@eyesopen.com>
716 * builtins.c (purge_builtin_constant_p): Scan insn stream
717 sequentially rather than by basic block.
718 * function.c (purge_addressof): Simplify test with INSN_P.
720 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
722 * combine.c (simplify_comparison, case AND): Remove a redundant test.
724 2002-01-25 Roger Sayle <roger@eyesopen.com>
726 * function.h (struct function): New field calls_constant_p.
727 (current_function_calls_constant_p): New macro for above.
728 * function.c (prepare_function_start): Initialize calls_eh_return
729 and calls_constant_p.
730 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
731 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
732 when the current_function_calls_constant_p.
733 * integrate.c (expand_inline_function): Set calls_constant_p if
734 the function being inlined has calls_constant_p set.
736 2002-01-25 Roger Sayle <roger@eyesopen.com>
738 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
739 optimizing, even if flag_gcse is true.
740 * toplev.c (rest_of_compilation): purge_builtin_constant_p
741 only needs to be called when "optimize > 0 && flag_gcse".
743 2003-01-25 Roger Sayle <roger@eyesopen.com>
745 * stmt.c (emit_case_bit_tests): New routine to implement suitable
746 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
747 (case_bit_test_cmp): New comparison function for "qsort" to order
748 case_bit_tests by decreasing number of destination nodes.
749 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
750 (expand_end_case_type): Use emit_case_bit_tests to implement
751 suitable switch statments.
752 (CASE_USE_BIT_TESTS): New target macro to disable the above.
753 * Makefile.in (stmt.o): Add dependency on optab.h.
754 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
756 2003-01-23 Andreas Schwab <schwab@suse.de>
758 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
759 __do_global_ctors_aux hidden global and don't put it in
761 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
762 instead so that it comes first.
764 Sat Jan 25 16:11:22 CET 2003 Jan Hubicka <jh@suse.cz>
766 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
767 subreg is read/modify.
769 Sat Jan 25 15:55:08 CET 2003 Jan Hubicka <jh@suse.cz>
771 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
772 do libcall for large blocks.
773 * i386.md (comi patterns): Set type to ssecomi.
774 (sse2_unpck?pd): Fix mode of vec_select.
776 * cse.c: Include except.h
777 (cse_set_around_loop): Do not create new basic blocks.
778 * Makefile.in (cse.o): Add dependnecy on except.h
780 Sat Jan 25 12:05:17 CET 2003 Jan Hubicka <jh@suse.cz>
782 * builtins.c (fold_trunc_transparent_mathfn): New function.
783 (fold_builtin): Use it.
784 * convert.c (convert_to_real): Re-enable code to convert
785 math functions; add support for floor familly functions.
787 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
789 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
790 dependencies on coretypes.h and $(TM_H).
792 Sat Jan 25 11:10:03 CET 2003 Jan Hubicka <jh@suse.cz>
794 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
796 2002-01-24 Stuart Hastings <stuart@apple.com>
798 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
800 2003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
802 * config/c4x/c4x.md (UNSPEC_BU): New constants.
803 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
804 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
805 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
806 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
807 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
808 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
809 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
811 Fri Jan 24 23:44:12 CET 2003 Jan Hubicka <jh@suse.cz>
813 * emit-rtl.c (reg_attrs_htab): New static variable.
814 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
816 (reg_rtx): Do not maintain regno_decl.
817 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
818 set_mem_attrs_from_reg): New global function.
819 (init_emit): Do not initialize regno_decl.
820 (init_emit_once): initialize reg_attrs_htab.
821 * final.c (alter_subreg): Do not replace REG by SUBREG.
822 (gen_mem_expr_from_op): Improve output.
823 (output_asm_operands): Likewise.
824 * function.c (assign_params): Do not set REGNO_DECL.
825 * function.h (struct function): Kill regno_decl.
827 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
828 * print_rtl.c (print_rtx): Output REG information.
829 * regclass.c (reg_scan_mark_refs): Update attrs.
830 * reload1.c (alter_reg): Likewise.
831 * simplify_rtx.c (simplify_subreg): Likewise.
832 * stmt.c (expand_decl): Likewise.
833 * rtl.def (REG): Add new field.
834 * rtl.h (struct reg_attrs): New.
835 (rtunion_def): At rtreg.
836 (X0MEMATTR): Add checking.
837 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
838 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
840 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
842 2003-01-24 Bob Wilson <bob.wilson@acm.org>
844 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
845 (xtensa_emit_call, print_operand): Fix printf format strings
846 to avoid compile warnings.
847 (xtensa_function_prologue, xtensa_function_epilogue): Change type
848 of "size" argument to HOST_WIDE_INT to fix compile warnings.
849 * config/xtensa/xtensa-protos.h
850 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
852 Fri Jan 24 23:03:32 CET 2003 Jan Hubicka <jh@suse.cz>
854 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
855 (implicit_built_in_decls): New global array.
856 (mathfn_built_in): New global function.
857 (fold_trunc_transparent_mathfn): New static function
858 (expand_builtin_strstr, expand_bultin_strchr,
859 expand_builtin_strpbrk, expand_builtin_strcpy,
860 expand_builtin_strncpy, expand_bultin_strcmp,
861 expand_bultin_strncat, expand_builtin_fputs): Use
862 implicint_built_in_decls.
863 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
864 * builtins.def: Fix comments.
865 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
866 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
867 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
868 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
869 (DEF_C99_C90RES_BULTIN): New.
870 (*f, *l builtins): Update.
871 * c-common.c (DEF_BUILTIN): Initialize implicit array.
872 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
873 * convert.c (strip_float_extensions): New global function.
874 * tree.h (DEF_BUILTIN): Accept 10 arguments.
875 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
877 * java/builtins.c (define_builtin): Handle implicit.
878 (DEF_BUILTIN): Update.
879 * tm.texi (TARGET_C99_FUNCTIONS): Document.
880 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
881 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
884 2003-01-24 Bob Wilson <bob.wilson@acm.org>
886 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
887 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
888 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
889 * config/xtensa/crti.asm: New file.
890 * config/xtensa/crtn.asm: New file.
891 * config/xtensa/t-elf: New file.
892 * config/xtensa/t-linux: New file.
893 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
894 Move various CFLAGS settings to new t-elf file.
896 2003-01-24 Richard Henderson <rth@redhat.com>
899 * tree-inline.c (find_builtin_longjmp_call_1): New.
900 (find_builtin_longjmp_call): New.
901 (inlinable_function_p): Use it.
903 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
905 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
906 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
907 * config/i386/i386.c (function_arg_pass_by_reference): New.
908 (ix86_va_arg): Support arguments passed by reference.
910 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
912 * cfgloopanal.c: New file.
913 * cfgloopmanip.c: New file.
914 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
915 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
916 cfglayout.o): Add dependency on cfgloop.h.
917 (cfgloop.o): Add flags.h dependency.
918 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
919 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
920 (struct loop, struct loops, flow_loops_find, flow_loops_update,
921 flow_loops_free, flow_loops_dump, flow_loop_dump,
922 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
923 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
924 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
925 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
926 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
927 find_common_loop, verify_loop_structure): Declarations moved to ...
928 * cfgloop.h: New file.
929 * bb-reorder.c (reorder_basic_blocks): Modified.
930 * cfglayout.c: Include cfgloop.h.
931 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
932 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
933 (break_superblocks): New static function.
934 (cfg_layout_finalize): Use it.
935 (cfg_layout_split_block): New function.
936 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
938 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
940 (cfg_layout_split_block): Declare.
941 * cfgloop.c: Include cfgloop.h and flags.h.
942 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
943 get_loop_body): Avoid signed versus unsigned comparison warnings.
944 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
945 loop_latch_edge): Modified.
946 (verify_loop_structure): Modified to use flags stored in loop structure;
947 check irreducible loops.
948 (cancel_loop, cancel_loop_tree): New functions.
949 (estimate_probability): Use loop analysis code for predictions.
950 (estimate_loops_at_level): Avoid signed versus unsigned comparison
952 * doloop.c: Include cfgloop.h.
953 * loop.c: Include cfgloop.h.
954 * predict.c: Include cfgloop.h.
955 * toplev.c: Include cfgloop.h.
956 * unroll.c: Include cfgloop.h.
957 * tracer.c (tracer): Modified.
959 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
961 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
963 2003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
965 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
966 * configure: Regenerate.
968 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
969 (tls_symbolic_reference_mentioned_p): Add prototype.
970 (s390_tls_get_offset): Add prototype.
971 (emit_pic_move): Remove prototype, replace by ...
972 (emit_symbolic_move): .. this new prototype.
974 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
975 (tls_model_chars): New global variable.
976 (s390_encode_section_info): Encode TLS model.
977 Use targetm.binds_local_p to check for local symbols.
978 (s390_strip_name_encoding): New function.
979 (TARGET_STRIP_NAME_ENCODING): Define.
981 (get_thread_pointer): New function.
982 (legitimize_tls_address): New function.
983 (legitimize_address): Call it.
984 (emit_pic_move): Remove, replace by ...
985 (emit_symbolic_move): ... this new function.
987 (larl_operand): Handle TLS operands.
988 (legitimate_constant_p): Likewise.
989 (s390_decompose_address): Likewise.
990 (s390_cannot_force_const_mem): New function.
991 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
993 (s390_output_symbolic_const): Handle TLS unspecs.
994 (print_operand): New code 'J'.
995 (machine_function): Add struct member 'some_ld_name'.
996 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
998 (enum s390_builtin): New type.
999 (code_for_builtin_64, code_for_builtin_31): New global variables.
1000 (s390_init_builtins, s390_expand_builtin): New functions.
1001 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1003 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
1004 (ASM_OUTPUT_LABELREF): Define.
1005 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
1007 * config/s390/s390.md: Define TLS UNSPEC constants.
1008 ("movdi", "movsi"): Handle TLS operands.
1009 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
1010 ("*tls_load_64", "*tls_load_31"): New insns.
1011 ("call_value_tls", "call_value_tls_exp"): New expanders.
1012 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
1013 "bas_tls_64", "bas_tls_31"): New insns.
1015 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
1017 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
1018 spe ABI is configured, if requested.
1020 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1022 * doc/passes.texi: Fix typo.
1024 2003-01-24 Andreas Schwab <schwab@suse.de>
1026 * stor-layout.c (excess_unit_span): Only define if used.
1028 2003-01-24 Jerry Quinn <jlquinn@optonline.net>
1030 * gcc/doc/invoke.texi (Optimization Options): List -O levels
1031 for each optimization flag.
1033 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
1035 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
1037 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1039 * doc/bugreport.texi: Use @command instead of @code for commands.
1040 * doc/collect2.texi: Likewise.
1041 * doc/headerdirs.texi: Likewise.
1042 * doc/invoke.texi: Likewise.
1043 * doc/standards.texi: Likewise.
1044 * doc/tm.texi: Likewise.
1045 * doc/trouble.texi: Likewise.
1047 2003-01-24 Nick Clifton <nickc@redhat.com>
1049 * config/arm/arm.c (use_return_insn): Do not use a single return
1050 instruction for interrupt handelrs which have to create a stack
1052 (arm_expand_prologue): Do not pre-bias the return address of
1053 interrupt handlers which create a stack frame.
1055 2003-01-24 Nick Clifton <nickc@redhat.com>
1059 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
1061 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
1062 med_cbranches. Fix logic in short_cbranches.
1064 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
1066 * config/sh/sh.md (delay for cbranch): Don't annul delay
1068 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
1069 cbranch with unfilled delay slot on SH2e.
1070 (output_branch): Fill with a nop the delay slot of a
1071 branch that required a delay slot but didn't get one.
1073 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1075 * doc/invoke.texi (SH options): Document -m2e.
1076 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
1077 * config/sh/lib1funcs.asm: Likewise.
1078 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
1079 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
1081 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
1083 (SH3E_BIT): Renamed to...
1084 (SH_E_BIT): ... this. Replace all uses.
1085 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
1086 Replace all uses of TARGET_SH3E with TARGET_SH2E.
1087 (TARGET_SWITCHES): Added 2e.
1088 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
1089 (processor_type): Added PROCESSOR_SH2E.
1090 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
1091 TARGET_SH2E, except in sqrtsf2_i.
1092 (attribute cpu): Added sh2e.
1093 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
1094 (MULTILIB_MATCHES): Use m2e multilib for m3e.
1095 * config.gcc: Add sh2e target support.
1097 2003-01-24 Phil Edwards <pme@gcc.gnu.org>
1099 Rename -W to -Wextra.
1100 * c-decl.c: Update comments.
1101 * c-typeck.c: Likewise.
1102 * flags.h: Likewise.
1103 * function.c: Likewise.
1105 * toplev.c: Update comments.
1106 (W_options): Add 'extra'.
1107 (display_help): Remove '-W'.
1108 (decode_W_option): Special warn_uninitialized treatment in the case
1110 * doc/invoke.texi: Update with new entries.
1112 2003-01-23 Richard Henderson <rth@redhat.com>
1114 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
1115 in no-else-block case. Add commentary.
1117 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1119 * configure.in: Revert last change.
1121 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1123 * configure.in: Don't include ansidecl.h in tconfig.h.
1124 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
1125 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
1128 * configure: Regenerate.
1130 2003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1133 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
1134 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
1137 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1139 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
1141 2003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
1143 * genattrtab.c (write_attr_get): Mark 'insn' paramter
1144 as ATTRIBUTE_UNUSED.
1146 2003-01-23 Richard Earnshaw <rearnsha@arm.com>
1148 * arm.c (thumb_base_register_rtx_p): New function.
1149 (thumb_index_register_rtx_p): New function.
1150 (thumb_legitimate_address_p): New function.
1151 (thumb_legitimate_offset_p): New function.
1152 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
1153 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
1155 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
1156 (THUMB_LEGITIMATE_OFFSET): Delte.
1157 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
1158 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
1159 (thumb_legitimate_offset_p): Likewise.
1161 2003-01-23 Andreas Schwab <schwab@suse.de>
1163 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
1165 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1167 * fixinc/Makefile.in (FL_LIST): Revert last change.
1169 2003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1172 * invoke.texi (ftest-coverage): Fix broken cross-reference.
1173 Change @code to @command for gcov command.
1175 * gcc.texi: Adjust title of gcov section.
1177 * gcov.texi: Likewise.
1179 2003-01-22 Roger Sayle <roger@eyesopen.com>
1181 PR optimization/8423
1182 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
1183 its argument is constant, or 0 if !flag_gcse.
1184 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
1185 if it's argument is constant.
1186 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
1187 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
1188 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
1189 * builtins.c (purge_builtin_constant_p): New function to force
1190 instantiation of any remaining CONSTANT_P_RTX nodes.
1191 * rtl.h (purge_builtin_constant_p): Prototype here.
1192 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
1193 pass after GCSE and before loop.
1194 (flag_gcse): No longer static.
1195 * flags.h (flag_gcse): Prototype here.
1197 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
1199 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
1200 introduced by last change.
1202 2003-01-22 Andreas Schwab <schwab@suse.de>
1204 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
1206 2003-01-22 Kazu Hirata <kazu@cs.umass.edu>
1208 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
1209 request a scratch reg on H8S when the shift count is 8.
1211 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
1213 * config/s390/s390-protos.h (preferred_la_operand_p):
1214 Remove second parameter.
1215 * config/s390/s390.c (preferred_la_operand_p): Likewise.
1216 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
1217 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
1218 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
1219 Add peepholes to transform ADD to LOAD ADDRESS.
1221 2003-01-22 Richard Earnshaw <rearnsha@arm.com>
1223 * arm.c (arm_address_register_rtx_p): New function.
1224 (arm_legitimate_address_p): New function.
1225 (arm_legitimate_index_p): New function.
1226 (legitimize_pic_address): Use arm_legitimate_index_p.
1227 * arm-protos.h (arm_legtimate_address_p): Add prototype.
1228 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
1229 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
1231 2003-01-22 Hartmut Penner <hpenner@de.ibm.com>
1233 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
1234 * config/s390/2064.md (define_bypass): Correct 'Load' and
1235 'Load-address' bypass values.
1237 2003-01-22 Andreas Schwab <schwab@suse.de>
1239 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
1241 2003-01-21 Zack Weinberg <zack@codesourcery.com>
1243 * genautomata.c (output_internal_insn_latency_func,
1244 output_print_reservation_func): Short circuit when there is no
1245 automaton to generate code for.
1247 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1249 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
1250 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
1252 2003-01-21 Geoffrey Keating <geoffk@apple.com>
1254 * config/rs6000/rs6000.md: Remove warning.
1255 (builtin_setjmp_receiver): Likewise.
1256 * config/darwin.c (update_stubs): Slightly improve terrible hack
1257 with identifiers. Add comment pointing out problems with it.
1258 (update_non_lazy_ptrs): Likewise.
1260 2003-01-21 Richard Henderson <rth@redhat.com>
1262 * dwarf2out.c (lookup_filename): Fix printf format warning.
1263 * system.h (fread_unlocked, fwrite_unlocked): Undef.
1265 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
1266 (fixincl.o-warn, gnu-regex.o-warn): New.
1267 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
1268 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
1269 * fixinc/fixincl.c (process): Fix printf format warning.
1271 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
1273 * dwarf2out (output_file_names): Don't crash if called
1274 with empty file_table.
1276 2003-01-21 Zack Weinberg <zack@codesourcery.com>
1278 * genautomata.c (output_internal_insn_latency_func): Add
1279 missing break statement to generated code.
1281 2003-01-21 Roger Sayle <roger@eyesopen.com>
1283 * stmt.c (same_case_target_p): New function to determine whether
1284 two case labels branch to the same target. Split out from...
1285 (group_case_nodes): ... here. Use same_case_target_p instead.
1286 (strip_default_case_nodes): Remove explicit case nodes
1287 that branch to the default destination.
1288 (expand_end_case_type): Call strip_default_case_nodes after
1289 group_case_nodes, to simplify the case-list before we count it.
1290 Only generate table_label RTX when actually needed. Try to share
1291 thiscase->exit_label and thiscase->data.case_stmt.default_label
1292 when a switch has no explicit default case. Simplify test for
1295 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
1297 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
1299 (*negsf2_h8300hs): Likewise.
1300 (*addsi3_lshiftrt_16_zexthi): Likewise.
1301 (*iorhi3_lshiftrt_8): Likewise.
1303 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
1305 * dwarf2out.c (fde_table_in_use): Mark GTY.
1306 (dwarf2out_cfi_label_num): New variable, marked GTY.
1307 (dwarf2out_cfi_label): Use it instead of static label_num.
1308 * emit-rtl.c (label_num): Mark GTY.
1310 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
1312 * config/h8300/h8300.c (output_plussi): Support H8/300.
1313 (compute_plussi_length): Likewise.
1314 (compute_plussi_cc): Likewise.
1315 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
1316 output assembly instructions.
1318 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1320 * calls.c (fix_unsafe_tree): Prototype.
1322 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
1323 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
1324 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
1325 c-parse.o-warn): Add -Wno-error.
1326 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
1328 * configure.in (--enable-werror): Add new flag.
1329 * doc/install.texi (--enable-werror): Document.
1330 * configure: Regenerate.
1332 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
1334 2003-01-21 Andreas Schwab <schwab@suse.de>
1336 * genautomata.c (output_internal_insn_latency_func): Fix missing
1337 close paren in output.
1339 2003-01-21 Zack Weinberg <zack@codesourcery.com>
1341 * genautomata.c: Space savings in generated code:
1342 (output_dfa_insn_code_func): Split out the table-enlargement
1343 path to an out-of-line static function, dfa_insn_code_enlarge.
1344 (output_internal_insn_latency_func): Use a lookup table for the
1346 (output_print_reservation_func): Use a lookup table for the
1349 2003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
1352 * calls.c (fix_unsafe_tree): Split out from ...
1353 (expand_call): ... here. Use it on the function address too.
1355 2003-01-20 Richard Henderson <rth@redhat.com>
1357 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
1359 2003-01-20 Richard Henderson <rth@redhat.com>
1362 * stmt.c (expand_asm_operands): Validize memory operands.
1364 2003-01-20 Richard Henderson <rth@redhat.com>
1367 * ifcvt.c (noce_process_if_block): Correct arguments to
1368 modified_between_p for no-else-block case.
1370 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1372 * config/h8300/h8300.c (const_costs): Remove a warning.
1373 (output_plussi): Likewise.
1374 (compute_plussi_length): Likewise.
1375 (compute_plussi_cc): Likewise.
1377 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1379 * config/h8300/h8300.md (addsi_h8300): Remove the last
1382 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1384 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
1386 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1388 * system.h (__NO_STRING_INLINES): Define.
1390 2003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1392 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
1393 is not a scalar int mode.
1395 2003-01-20 Roger Sayle <roger@eyesopen.com>
1397 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
1398 insn's notes following a substitution inside a libcall.
1400 2003-01-20 Zack Weinberg <zack@codesourcery.com>
1402 * configure.in: Check for system-provided 'uchar' type.
1403 * configure, config.in: Regenerate.
1404 * cpphash.h: Only typedef 'uchar' if the system doesn't.
1406 2003-01-20 Richard Henderson <rth@redhat.com>
1408 * expr.h (MUST_PASS_IN_STACK): Move implementation...
1409 * calls.c (default_must_pass_in_stack): ... here.
1411 2003-01-20 Vladimir Makarov <vmakarov@redhat.com>
1413 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
1415 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
1417 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
1418 Wrap up definition of `insn_alts'.
1420 * genattrtab.c (main): Wrap up `insn_alts'.
1422 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1424 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
1426 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
1428 * config.in, configure: Regenerate.
1430 2003-01-20 Nick Clifton <nickc@redhat.com>
1432 * config/arm/arm.md (sibcall_epilogue): Add an
1433 UNSPEC_PROLOGUE_USE to prevent the link register from being
1436 Mon Jan 20 14:36:23 CET 2003 Jan Hubicka <jh@suse.cz>
1438 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
1440 2003-01-20 Andreas Schwab <schwab@suse.de>
1442 * system.h: Don't declare strsignal if the decl test hasn't been
1445 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1447 * config/h8300/h8300.c (notice_update_cc): Don't assume that
1448 recog_data.operands[0] is always associated with cc0.
1450 2003-01-19 David Edelsohn <edelsohn@gnu.org>
1452 * collect2.c (ldgetname): Expand declaration to prototype.
1453 * read-rtl.c (atoll): Add prototype.
1454 * system.h (strsignal): Also declare if no declaration found.
1456 2003-01-19 Alexandre Oliva <aoliva@redhat.com>
1458 * config.gcc (mips64*-*-linux*): Added.
1459 * config/mips/linux64.h, config/mips/t-linux64: New file.
1460 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
1461 * config/mips/mips.c (override_options): Use it.
1462 * config/mips/mips.h (TARGET_SWITCHES): Added...
1463 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
1464 * Makefile.in (SPECS): New.
1465 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
1466 * gcc.c (process_command): Move self-spec processing past spec
1468 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
1469 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
1472 * doc/invoke.texi (-mabi-fake-default): Document.
1474 2003-01-19 Stephane Carrez <stcarrez@nerim.fr>
1476 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
1477 z_reg, z_reg_qi): Declare static and GTY().
1479 (create_regs_rtx): Don't create da_reg.
1480 ("gt-m68hc11.h"): Include for GTY roots.
1481 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
1483 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
1484 (m68hc11_soft_tmp_reg): Likewise.
1485 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
1487 2003-01-18 Kazu Hirata <kazu@cs.umass.edu>
1489 * basic-block.h: Fix comment formatting.
1490 * calls.c: Likewise.
1491 * combine.c: Likewise.
1492 * convert.c: Likewise.
1494 * haifa-sched.c: Likewise.
1495 * libgcc2.c: Likewise.
1497 * profile.c: Likewise.
1498 * system.h: Likewise.
1500 2003-01-18 Roger Sayle <roger@eyesopen.com>
1502 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
1504 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1506 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
1508 2003-01-17 Dale Johannesen <dalej@apple.com>
1510 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
1511 (*floatunssidf2_internal): Ditto.
1513 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
1515 * alias.c: Fix comment typos.
1516 * basic-block.h: Likewise.
1517 * c-common.c: Likewise.
1518 * c-common.h: Likewise.
1519 * c-decl.c: Likewise.
1520 * c-opts.c: Likewise.
1521 * c-pragma.c: Likewise.
1522 * c-pretty-print.h: Likewise.
1524 * cfganal.c: Likewise.
1525 * cfgbuild.c: Likewise.
1526 * cfgcleanup.c: Likewise.
1527 * cfglayout.c: Likewise.
1528 * cfgrtl.c: Likewise.
1529 * convert.c: Likewise.
1530 * cpphash.h: Likewise.
1531 * cpplex.c: Likewise.
1532 * cpplib.h: Likewise.
1534 * diagnostic.c: Likewise.
1535 * diagnostic.h: Likewise.
1536 * dwarf2.h: Likewise.
1538 2003-01-17 Stan Shebs <shebs@apple.com>
1540 * config/darwin-protos.h: Forward-declare struct cpp_reader.
1542 2003-01-17 Douglas B Rupp <rupp@gnat.com>
1544 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
1545 mistake in last checkin.
1547 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
1549 * et-forest.c: Fix comment typos.
1550 * et-forest.h: Likewise.
1551 * except.c: Likewise.
1553 * flags.h: Likewise.
1557 * genattrtab.c: Likewise.
1558 * genautomata.c: Likewise.
1559 * gengtype.c: Likewise.
1560 * genrecog.c: Likewise.
1561 * global.c: Likewise.
1562 * gthr-rtems.h: Likewise.
1564 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1566 * i386.c (x86_function_profiler): Fix format specifier.
1568 2003-01-17 Richard Henderson <rth@redhat.com>
1570 * gengtype.c (walk_type): Allow paramN_is.
1572 2003-01-17 Nick Clifton <nickc@redhat.com>
1574 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
1576 2003-01-16 Richard Henderson <rth@redhat.com>
1578 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
1580 2003-01-16 Richard Henderson <rth@redhat.com>
1582 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
1583 (alpha_next_sequence_number): Likewise.
1584 (alpha_this_literal_sequence_number): Likewise.
1585 (alpha_this_gpdisp_sequence_number): Likewise.
1586 (struct alpha_funcs, alpha_funcs_num): Likewise.
1587 (struct alpha_links): Fix branch merge error.
1588 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
1590 2003-01-17 Alexandre Oliva <aoliva@redhat.com>
1592 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
1595 2003-01-16 Kazu Hirata <kazu@cs.umass.edu>
1597 * ifcvt.c: Fix comment typos.
1599 * libgcc2.c: Likewise.
1600 * local-alloc.c: Likewise.
1602 * predict.c: Likewise.
1603 * ra-build.c: Likewise.
1605 * ra-colorize.c: Likewise.
1607 * ra-rewrite.c: Likewise.
1608 * regmove.c: Likewise.
1609 * reload.h: Likewise.
1610 * rtlanal.c: Likewise.
1611 * toplev.c: Likewise.
1613 * unwind-dw2-fde-glibc.c: Likewise.
1614 * vmsdbgout.c: Likewise.
1616 2003-01-16 Richard Henderson <rth@redhat.com>
1618 * dwarf2out.c (struct file_table): Remove.
1619 (FILE_TABLE_INCREMENT): Remove.
1620 (file_table): Make a varray; mark for GC. Update all users.
1621 (file_table_last_lookup_index): Extract from struct file_table.
1622 (output_file_names): Fix unsigned compare warnings.
1623 (add_name_attribute): Remove inline marker.
1624 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
1625 (lookup_filename): Don't manage size of file_table.
1626 (init_file_table): Allocate file_table with GC.
1627 (dwarf2out_init): Don't record main_input_filename here.
1628 (dwarf2out_finish): Do it here instead.
1630 2003-01-16 Bruce Korb <bkorb@gnu.org>
1632 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
1634 2003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
1636 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
1637 instead of rotldi3_mextr.
1639 2003-01-16 Vladimir Makarov <vmakarov@redhat.com>
1641 * haifa-sched.c (move_insn): Restore moving all schedule group.
1642 (set_priorities): Restore taking SCHED_GROUP_P into account.
1644 * sched-deps.c (add_dependence): Restore processing the last group
1646 (remove_dependence, group_leader): Restore the functions.
1647 (set_sched_group_p): Restore adding dependencies from previous insn
1649 (compute_forward_dependences): Restore usage of group_leader.
1651 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
1654 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
1656 (can_schedule_ready_p): Ditto.
1657 (add_branch_dependences): Restore skipping over the group insns.
1659 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
1661 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
1662 68HC12 pre/post inc/dec side effects.
1664 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
1666 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
1668 Thu Jan 16 21:50:25 2003 J"orn Rennecke <amylaar@onetel.net.uk>
1670 * sh.md (mshflo_w_x): Fix description of operation.
1672 2003-01-16 Zack Weinberg <zack@codesourcery.com>
1674 * config/rs6000/rs6000.h: Mention Altivec registers in
1675 commentary. Fix typo.
1677 2003-01-16 David Edelsohn <edelsohn@gnu.org>
1679 * config/rs6000/rs6000.md (movti_string): Remove clobber.
1680 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
1681 generate PARALLEL with clobber for TARGET_POWER.
1683 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1685 * ra-colorize.c (colorize_one_web): Initialize variable.
1686 * regmove.c (fixup_match_1): Likewise.
1687 * reload1.c (reload_as_needed): Likewise.
1688 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
1690 2003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1692 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
1694 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1696 * dbxout.c (lastfile, cwd): Fix `unused' warning.
1697 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
1698 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
1699 is_main_source, file_table, decl_die_table_in_use,
1700 abbrev_die_table_in_use, line_info_table_in_use,
1701 separate_line_info_table_in_use, pubname_table_in_use,
1702 arange_table_in_use, ranges_table_in_use,
1703 current_function_has_inlines): Likewise.
1704 * flow.c (life_analysis): Likewise.
1705 * genemit.c (gen_insn): Likewise.
1706 * protoize.c (cplus_suffix): Likewise.
1708 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
1709 * arm.h (ROUND_UP_WORD): Likewise.
1711 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
1713 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
1714 init_emit_once): Likewise.
1715 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
1717 * function.c (assign_stack_temp_for_type): Likewise.
1718 * loop.c (loop_invariant_p): Likewise.
1719 * recog.c (push_operand): Likewise.
1720 * regclass.c (init_reg_sets_1): Likewise.
1721 * reload.c (update_auto_inc_notes): Likewise.
1722 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
1723 * stmt.c (expand_asm_operands): Likewise.
1724 * stor-layout.c (start_record_layout): Likewise.
1726 2003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
1728 * config/c4x/c4x.md (epilogue): Correct last patch.
1730 2003-01-15 Richard Henderson <rth@redhat.com>
1732 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
1733 also check that GP is being used.
1734 (alpha_find_lo_sum_using_gp): New.
1735 (alpha_does_function_need_gp): Use get_attr_usegp.
1736 * config/alpha/alpha-protos.h: Update.
1737 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
1740 2003-01-15 Roger Sayle <roger@eyesopen.com>
1742 * gcse.c (one_cprop_pass): Change function arguments to take both
1743 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
1744 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
1745 (bypass_jumps): New function to perform separate jump bypassing pass.
1746 * rtl.h (bypass_jumps): Add function prototype.
1747 * timevar.def (TV_BYPASS): New timing variable.
1748 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
1749 (dump_file): New entry for the bypass RTL dump file.
1750 (rest_of_compilation): Insert new jump bypassing optimization
1752 * doc/passes.texi: Document new pass.
1754 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
1756 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
1757 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
1758 * pa.h (TARGET_SOM_SDEF): Define.
1759 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
1761 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
1763 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
1764 allocate 4-bytes of locals on 68HC11.
1765 (expand_epilogue): Likewise.
1766 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
1768 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
1770 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
1771 and -mshort-double to the assembler to specify the ABI.
1772 (LINK_SPEC): Likewise.
1773 (CPP_SPEC): Pass HCS12 specific define.
1774 (MASK_M68S12): New define.
1775 (TARGET_M68S12): Likewise.
1776 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
1777 (TARGET_VERSION): Update.
1778 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
1779 (LINK_SPEC): Update.
1781 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
1782 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
1784 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
1786 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
1789 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
1791 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
1792 flag before setting it.
1794 2003-01-15 Roger Sayle <roger@eyesopen.com>
1796 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
1797 when loop condition is known true, i.e. "while (1) { ... }".
1798 (genrtl_for_stmt): Similarly for "for" statements.
1800 2003-01-15 Roger Sayle <roger@eyesopen.com>
1802 * real.c (real_sqrt): Return a bool result indicating whether
1803 a floating point exception or trap should be raised.
1804 * real.h (real_sqrt): Update function prototype.
1805 * builtins.c (fold_builtin): Only fold non-trapping square
1806 roots unless we're ignoring errno and trapping math.
1808 2003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
1810 * expr.h (emit_conditional_add): Add PARAMS to declaration.
1811 * gengtype-lex.l (malloc, realloc): Move defines after include of
1812 system.h. Remove duplicate include of system.h.
1814 2003-01-15 Roger Sayle <roger@eyesopen.com>
1817 * optabs.c (expand_unop): When manipulating the FP sign bit
1818 using integer operations, account for targets with different
1819 integer and FP word orders.
1820 (expand_abs): Likewise.
1822 2003-01-15 David Edelsohn <edelsohn@gnu.org>
1824 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
1825 file extension in section name.
1827 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
1829 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
1832 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
1834 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
1835 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
1836 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
1837 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
1839 Wed Jan 15 12:23:21 CET 2003 Jan Hubicka <jh@suse.cz>
1842 * global.c (struct allocno): Add no_stack_reg.
1843 (global_conflicts): Set no_stack_reg.
1846 * convert.c (convert_to_real): Fold - and abs only when profitable.
1847 * fold-const.c (fold): Fold truncates in - and abs.
1849 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
1851 Segher Boessenkool <segher@koffie.nl>
1853 * predict.c (real_inv_br_prob_base): New variable.
1854 (propagate_freq): Use multiply by reciprocal instead of
1855 division. Don't divide by 1.0 at all.
1856 (estimate_bb_frequencies): Similar.
1858 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
1860 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
1861 * configure: Rebuilt.
1863 2003-01-15 Hartmut Penner <hpenner@de.ibm.com>
1865 * config/s390/s390.c (s390_safe_attr_type): New function.
1866 (s390_use_dfa_pipeline_interface): New function, return true for z900.
1867 (s390_issue_rate): New function.
1868 (s390_agen_dep_p): New function.
1869 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
1870 (s390_adjust_cost): Return 'cost' if new DFA is used.
1871 (s390_adjust_priority): Delete function.
1872 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
1873 * config/s390/s390.md (atype attribute): Attribute 'atype' default
1874 determined by 'op_type'.
1875 (type attribute): Added more type attributes.
1876 * config/s390/2064.md: New DFA description for z900 pipeline.
1878 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
1880 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
1881 forced to memory. Fixes PR bootstrap/9036.
1883 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
1884 to set $gp before the call.
1886 2003-01-14 Richard Henderson <rth@redhat.com>
1888 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
1889 for force_const_mem.
1891 2003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1893 * genattr.c (main): Rearrange output to avoid prototype warning.
1894 * genautomata.c (transform_3): Fix ambiguous-else warning.
1895 * local-alloc.c (requires_inout): Add parentheses around
1896 assignment used as truth-value.
1897 * timevar.c: Move system includes above local includes. Include
1899 * Makefile.in (timevar.o): Depend on toplev.h.
1901 2003-01-14 Denis Chertykov <denisc@overta.ru>
1903 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
1904 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
1906 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
1908 (TARGET_ATTRIBUTE_TABLE): New macro.
1909 (valid_machine_type_attribute): Remove.
1910 (valid_machine_decl_attribute): Remove.
1911 (ip2k_handle_progmem_attribute): New function.
1912 (ip2k_handle_fndecl_attribute): New function.
1914 2003-01-10 Andrew Haley <aph@redhat.com>
1916 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
1917 registers to be in correct order. Add rip.
1919 2003-01-14 Kazu Hirata <kazu@cs.umass.edu>
1921 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
1922 (*iorsi3_and_lshiftrt_9_sb): Likewise.
1924 Tue Jan 14 00:45:33 CET 2003 Jan Hubicka <jh@suse.cz>
1926 * convert.c (strip_float_extensions): Look for narrowest type handling
1929 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
1931 * convert.c (strip_float_extensions): Make global.
1932 * tree.h (strip_float_extensions): Declare.
1934 2003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
1936 * timevar.def: define TV_NAME_LOOKUP.
1937 * timevar.c (timevar_pop): Be verbose when aborting.
1939 2003-01-13 Andreas Schwab <schwab@suse.de>
1941 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
1942 $(parsedir), just move the temporary file at the end.
1943 ($(parsedir)/gengtype-yacc.c): Likewise.
1945 2003-01-13 Alexandre Oliva <aoliva@redhat.com>
1947 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
1948 ${ac_tool_prefix} to ADAC or CC. Protect them from word
1950 * configure: Rebuilt.
1952 2003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1954 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
1955 internal_mcount): Don't use PARAMS.
1956 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
1958 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
1960 2003-01-13 Andreas Schwab <schwab@suse.de>
1962 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
1965 2003-01-13 Kazu Hirata <kazu@cs.umass.edu>
1967 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
1968 (*iorsi3_and_lshiftrt_n_sb): Likewise.
1970 2003-01-12 Mark Mitchell <mark@codesourcery.com>
1973 * c-lex.c (c_lex): Set the token value to error_mark_node for
1974 invalid numeric constants.
1976 2003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1978 * c-pch.c (asm_file_startpos): Change to `long'.
1979 (pch_init): Use ftell, not ftello.
1980 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
1981 Use `long' instead of `off_t'.
1982 (c_common_read_pch): Likewise.
1983 * ggc-common.c (gt_pch_save): Use long/ftell instead of
1986 2003-01-12 Alan Modra <amodra@bigpond.net.au>
1988 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
1990 2003-01-11 Richard Earnshaw (rearnsha@arm.com)
1992 * arm-protos.h (struct cpp_reader): Add declaration.
1994 Sat Jan 11 11:02:58 CET 2003 Jan Hubicka <jh@suse.cz>
1997 * i386.c (output_fp_compare): Fix typo.
1999 2003-01-10 David Edelsohn <edelsohn@gnu.org>
2001 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
2003 2003-01-10 Geoffrey Keating <geoffk@apple.com>
2005 * Makefile.in (parsedir): New variable.
2006 (docobjdir): New variable.
2007 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
2008 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
2009 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
2010 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
2011 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
2013 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
2014 objc.maintainer-clean): Use parsedir.
2016 * varasm.c (struct constant_descriptor_rtx): Remove unused
2019 * toplev.c (documented_lang_options): Document -Winvalid-pch.
2021 2003-01-10 Richard Henderson <rth@redhat.com>
2023 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
2024 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
2026 2003-01-10 Richard Henderson <rth@redhat.com>
2028 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
2029 not INTEGRAL_MODE_P when widening extensions.
2031 2003-01-10 Richard Henderson <rth@redhat.com>
2033 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
2035 2003-01-10 Geoffrey Keating <geoffk@apple.com>
2037 * ggc-page.c (ggc_collect): Avoid overflow computing
2040 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
2041 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
2043 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
2045 Fri Jan 10 22:05:35 CET 2003 Jan Hubicka <jh@suse.cz>
2047 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
2048 with weird operands.
2050 2003-01-10 Dale Johannesen <dalej@apple.com>
2052 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
2053 parameters. Call check_sibcall_argument_overlap if indicated.
2054 (check_sibcall_argument_overlap): Add mark_stored_args_map
2055 parameter. Don't mark parameter area as clobbered if not set.
2056 (expand_call): Adjust calls to above.
2058 2003-01-10 Kelley Cook <kelleycook@comcast.net>
2060 * configure.in (linker read-only and read-write section mixing):
2061 Squelch some assembler warnings.
2062 * configure: Likewise.
2064 2003-01-10 Hartmut Penner <hpenner@de.ibm.com>
2066 * doc/invoke.texi: Document -mtune, delete -mcpu
2067 option for S/390 and zSeries.
2068 * config/s390/s390.c (s390_tune_string) New variable.
2069 (s390_cpu_string) Delete variable.
2070 (override_options): Use s390_tune_string instead of
2072 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
2074 2003-01-10 Kazu Hirata <kazu@cs.umass.edu>
2076 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
2078 2003-01-10 Josef Zlomek <zlomekj@suse.cz>
2080 * jump.c (next_nonnote_insn_in_loop): New function.
2081 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
2083 (duplicate_loop_exit_test). Likewise.
2085 2003-01-09 Geoffrey Keating <geoffk@apple.com>
2087 Merge from pch-branch:
2089 2003-01-06 Geoffrey Keating <geoffk@apple.com>
2091 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
2094 2002-12-24 Geoffrey Keating <geoffk@apple.com>
2096 * cpplib.c (count_registered_pragmas): New function.
2097 (save_registered_pragmas): New function.
2098 (_cpp_save_pragma_names): New function.
2099 (restore_registered_pragmas): New function.
2100 (_cpp_restore_pragma_names): New function.
2101 * cpphash.h (_cpp_save_pragma_names): Prototype.
2102 (_cpp_restore_pragma_names): Likewise.
2103 * cpppch.c (struct save_macro_item): Split from save_macro_data.
2104 (struct save_macro_data): New field 'saved_pragmas'.
2105 (save_macros): Update for changes to struct save_macro_data.
2106 (cpp_prepare_state): Call _cpp_save_pragma_names, update
2107 for changes to struct save_macro_data.
2108 (cpp_read_state): Call _cpp_restore_pragma_names, update
2109 for changes to struct save_macro_data.
2111 * cpppch.c (cpp_read_state): Restore the hashtable references
2114 * tree.h (built_in_decls): Mark for PCH.
2116 * dbxout.c (lastfile): Don't mark for PCH.
2118 * ggc.h: Document PCH calls into memory managers.
2120 2002-12-18 Geoffrey Keating <geoffk@apple.com>
2122 * doc/invoke.texi (Precompiled Headers): Document the
2123 directory form of PCH.
2124 * cppfiles.c (validate_pch): New function.
2125 (open_file_pch): Search suitably-named directories for PCH files.
2127 2002-12-14 Geoffrey Keating <geoffk@apple.com>
2129 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
2131 (Type Information): Mention that the information is also
2132 used to implement PCH.
2133 * doc/passes.texi (Passes): Improve documentation of
2134 language-specific files.
2136 2002-12-11 Geoffrey Keating <geoffk@apple.com>
2138 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
2139 (struct walk_type_data): Add reorder_fn field.
2140 (walk_type): Process 'reorder' option.
2141 (write_types_process_field): Reorder parameters to gt_pch_note_object,
2142 call reorder_note_routine.
2143 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
2144 (ggc_wtd): Update for change to struct write_types_data.
2145 (pch_wtd): Likewise.
2146 * ggc.h (gt_pch_note_object): Reorder parameters.
2147 (gt_handle_reorder): New definition.
2148 (gt_pch_note_reorder): New prototype.
2149 * ggc-common.c (struct ptr_data): Add reorder_fn.
2150 (gt_pch_note_object): Reorder parameters.
2151 (gt_pch_note_reorder): New.
2152 (gt_pch_save): Call reorder_fn.
2153 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
2155 * dbxout.c (cwd): Don't mark for PCH.
2157 2002-12-09 Geoffrey Keating <geoffk@apple.com>
2159 * gengtype.c (finish_root_table): Fix some warnings.
2160 (write_root): Handle TYPE_STRING.
2161 * ggc.h (gt_ggc_m_S): Add prototype.
2162 * stringpool.c (gt_ggc_m_S): New function.
2164 2002-11-30 Geoffrey Keating <geoffk@apple.com>
2166 * dwarf2out.c (dw2_string_counter): New.
2167 (AT_string_form): Use it.
2168 (same_dw_val_p): Update for removal of hashtable.h hash tables.
2170 2002-11-22 Geoffrey Keating <geoffk@apple.com>
2172 * dbxout.c: Include gt-dbxout.h.
2173 (lastfile): Mark for PCH/GGC.
2175 (struct typeinfo): Likewise.
2176 (typevec): Likewise.
2177 (typevec_len): Likewise.
2178 (next_type_number): Likewise.
2179 (struct dbx_file): Likewise.
2180 (current_file): Likewise.
2181 (next_file_number): Likewise.
2182 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
2183 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
2184 (dbxout_end_source_file): Don't free struct dbx_file.
2185 (dbxout_type): Use GGC to allocate typevec.
2186 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
2187 (GTFILES): Add dbxout.c.
2188 (gt-dbxout.h): New rule.
2190 * Makefile.in (c-pch.o): Add debug.h as dependency.
2191 * c-pch.c: Include debug.h.
2192 (pch_init): Call start_source_file to keep nesting right.
2193 (c_common_read_pch): Add orig_name parameter. Call
2194 start_source_file debug hook. Call end_source_file debug hook.
2195 * c-common.h (c_common_read_pch): Update prototype.
2196 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
2198 * cppfiles.c (struct include_file): Add new field `header_name'.
2199 (find_or_create_entry): Default it to `name'.
2200 (open_file_pch): Set it to the original header file searched for.
2201 (stack_include_file): Don't stack an empty buffer, just handle
2202 PCH files immediately. Pass header_name field to read_pch callback.
2204 2002-11-19 Geoffrey Keating <geoffk@apple.com>
2206 * function.c (funcdef_no): Mark to be saved in a PCH.
2208 2002-11-15 Geoffrey Keating <geoffk@apple.com>
2210 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
2212 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
2214 2002-11-14 Geoffrey Keating <geoffk@apple.com>
2216 * optabs.h (code_to_optab): Add GTY marker.
2218 2002-11-13 Geoffrey Keating <geoffk@apple.com>
2220 * Makefile.in (GTFILES): Add cpplib.h.
2221 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
2222 * c-decl.c (build_compound_literal): Don't use var_labelno.
2223 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
2224 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
2225 * varasm.c (const_labelno): Use gengtype to mark.
2226 (var_labelno): Likewise.
2227 (in_section): Likewise.
2228 (in_named_name): Likewise.
2229 (struct in_named_entry): Likewise.
2230 (in_named_htab): Likewise.
2231 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
2232 (init_varasm_once): Use GGC to allocate in_named_htab.
2233 * config/darwin.c (current_pic_label_num): Mark for PCH.
2235 2002-11-11 Geoffrey Keating <geoffk@apple.com>
2237 * ggc-simple.c (init_ggc_pch): New stub procedure.
2238 (ggc_pch_count_object): Likewise.
2239 (ggc_pch_total_size): Likewise.
2240 (ggc_pch_this_base): Likewise.
2241 (ggc_pch_alloc_object): Likewise.
2242 (ggc_pch_prepare_write): Likewise.
2243 (ggc_pch_write_object): Likewise
2244 (ggc_pch_finish): Likewise.
2245 (ggc_pch_read): Likewise.
2247 2002-11-08 Geoffrey Keating <geoffk@apple.com>
2249 * c-pch.c (c_common_write_pch): Write the macro definitions after
2251 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
2252 definitions after the GCed data.
2253 * cpplib.c (save_macros): New.
2255 (cpp_write_pch_deps): Split out of cpp_write_pch.
2256 (cpp_write_pch_state): Split out of cpp_write_pch.
2257 (cpp_write_pch): Delete.
2258 (struct save_macro_data): Delete.
2259 (cpp_prepare_state): New.
2260 (cpp_read_state): Erase and restore initial macro definitions.
2261 * cpplib.h (struct save_macro_data): Forward-declare.
2262 (cpp_write_pch_deps): Prototype.
2263 (cpp_write_pch_state): Prototype.
2264 (cpp_write_pch): Delete prototype.
2265 (cpp_prepare_state): Prototype.
2266 (cpp_read_state): Add fourth argument.
2268 2002-11-04 Geoffrey Keating <geoffk@apple.com>
2270 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
2271 (write_array): Remove warning.
2273 * gengtype.c (contains_scalar_p): New.
2274 (finish_root_table): Add the table to all languages, even if it's
2276 (write_roots): Output gt_pch_scalar_rtab.
2277 * ggc-common.c (gt_pch_save): Write out scalars.
2278 (gt_pch_restore): Read scalars back.
2280 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
2281 (struct page_entry): Delete pch_page field.
2282 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
2283 (clear_marks): Likewise.
2284 (sweep_pages): Likewise.
2285 (poison_pages): Likewise.
2286 (ggc_print_statistics): Likewise.
2287 (ggc_pch_read): Don't free objects read from a PCH.
2288 Properly set up in_use_p and page_tails.
2290 2002-10-25 Geoffrey Keating <geoffk@apple.com>
2292 * gengtype.c (struct write_types_data): New.
2293 (struct walk_type_data): Make `cookie' const; add extra
2294 prev_val item; add `orig_s' field.
2295 (walk_type): Update prev_val[3].
2296 (write_types_process_field): New.
2297 (write_func_for_structure): Take write_types_data structure.
2301 (write_types_local_process_field): New.
2302 (gc_mark_process_field): Delete.
2303 (write_local_func_for_structure): New.
2304 (gc_mark_func_name): Delete.
2305 (write_gc_types): Delete.
2307 (finish_root_table): Don't include 'ggc_' in PFX.
2308 (write_root): Rename from write_root. Fill pchw field of structures.
2310 (write_roots): Rename from write_gc_roots. Split out to write_array.
2311 Update to changes to other routines. Write gt_pch_cache_rtab table.
2312 (main): Write PCH walking routines.
2313 * ggc-common.c: Include toplev.h, sys/mman.h.
2314 (ggc_mark_roots): For cache hashtables, also mark the hash table
2315 and the array of entries.
2317 (struct ptr_data): New.
2318 (POINTER_HASH): New.
2319 (gt_pch_note_object): New.
2320 (saving_htab_hash): New.
2321 (saving_htab_eq): New.
2322 (struct traversal_state): New.
2325 (compare_ptr_data): New.
2326 (relocate_ptrs): New.
2327 (write_pch_globals): New.
2328 (struct mmap_info): New.
2330 (gt_pch_restore): New.
2331 * ggc-page.c (ROUND_UP_VALUE): New.
2333 (struct page_entry): Add field `pch_page'.
2334 (init_ggc): Use ROUND_UP.
2335 (struct ggc_pch_data): Declare.
2336 (init_ggc_pch): New.
2337 (ggc_pch_count_object): New.
2338 (ggc_pch_total_size): New.
2339 (ggc_pch_this_base): New.
2340 (ggc_pch_alloc_object): New.
2341 (ggc_pch_prepare_write): New.
2342 (ggc_pch_write_object): New.
2343 (ggc_pch_finish): New.
2344 (ggc_pch_read): New.
2345 * ggc.h (gt_pointer_operator): New.
2346 (gt_note_pointers): New.
2347 (gt_pch_note_object): New prototype.
2348 (gt_pointer_walker): New.
2349 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
2350 (LAST_GGC_ROOT_TAB): Update.
2351 (gt_pch_cache_rtab): Declare.
2352 (gt_pch_scalar_rtab): Declare.
2353 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
2354 (LAST_GGC_CACHE_TAB): Update.
2355 (gt_pch_save_stringpool): Declare.
2356 (gt_pch_restore_stringpool): Declare.
2357 (gt_pch_p_S): Declare.
2358 (gt_pch_n_S): Declare.
2359 (struct ggc_pch_data): Forward-declare.
2360 (init_ggc_pch): Declare.
2361 (ggc_pch_count_object): Declare.
2362 (ggc_pch_total_size): Declare.
2363 (ggc_pch_this_base): Declare.
2364 (ggc_pch_alloc_object): Declare.
2365 (ggc_pch_prepare_write): Declare.
2366 (ggc_pch_write_object): Declare.
2367 (ggc_pch_finish): Declare.
2368 (ggc_pch_read): Declare.
2369 (gt_pch_save): Declare.
2370 (gt_pch_restore): Declare.
2371 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
2372 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
2373 const_double_htab, mem_attrs_htab using GGC.
2374 * c-pch.c: Include ggc.h.
2375 (pch_init): Allow reading PCH file back.
2376 (c_common_write_pch): Call gt_pch_save.
2377 (c_common_read_pch): Call gt_pch_restore.
2378 * c-parse.in (init_reswords): Delete now-untrue comment.
2379 Allocate ridpointers using GGC.
2380 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
2381 calling expand_deferred_fns.
2382 * c-common.h (ridpointers): Mark for GTY machinery.
2383 * Makefile.in (stringpool.o): Update dependencies.
2384 (c-pch.o): Update dependencies.
2385 (ggc-common.o): Update dependencies.
2386 * stringpool.c: Include gt-stringpool.h.
2389 (struct string_pool_data): New.
2391 (gt_pch_save_stringpool): New.
2392 (gt_pch_restore_stringpool): New.
2393 * tree.c (init_ttree): Make type_hash_table allocated using GC.
2395 2002-10-04 Geoffrey Keating <geoffk@apple.com>
2397 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
2398 (output_mangled_typename): Don't pass size_t to printf.
2400 * tree.h (union tree_type_symtab): Add tag to `address' field.
2401 (union tree_decl_u2): Add tag to 'i' field.
2402 * varasm.c (union rtx_const_un): Add tags to all fields.
2403 * gengtype.c (struct walk_type_data): New.
2404 (output_escaped_param): Take struct walk_type_data parameter.
2405 (write_gc_structure_fields): Delete.
2407 (write_gc_marker_routine_for_structure): Delete.
2408 (write_func_for_structure): New.
2409 (gc_mark_process_field): New.
2410 (gc_mark_func_name): New.
2411 (gc_counter): Delete.
2412 (write_gc_types): Use write_func_for_structure.
2413 (write_gc_roots): Use walk_type.
2415 2002-10-02 Geoffrey Keating <geoffk@apple.com>
2417 * ggc-common.c (ggc_mark_roots): Delete 'x'.
2418 (ggc_splay_dont_free): Fix warning about unused 'x'.
2419 (ggc_print_common_statistics): Remove warnings.
2421 2002-10-01 Mike Stump <mrs@apple.com>
2423 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
2424 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
2426 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
2427 Catherine Moore <clm@redhat.com>
2429 * Makefile (c-pch.o): Update dependencies.
2430 (LIBCPP_OBJS): Add cpppch.o.
2432 * c-common.c (c_common_init): Don't call pch_init here.
2433 * c-common.h (c_common_read_pch): Update prototype.
2434 * c-lex.c (c_common_parse_file): Call pch_init here.
2435 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
2436 (c_common_decode_option): Handle them.
2437 * c-pch.c: Include c-pragma.h.
2438 (save_asm_offset): Delete.
2439 (pch_init): Move contents of save_asm_offset into here, call
2441 (c_common_write_pch): Call cpp_write_pch.
2442 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
2444 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
2445 * cppfiles.c (stack_include_file): Update for change to
2446 parameters of cb.read_pch.
2447 * cpphash.h (struct cpp_reader): Add `savedstate' field.
2448 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
2449 `restore_pch_deps' fields.
2450 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
2451 (cpp_save_state): Prototype.
2452 (cpp_write_pch): Prototype.
2453 (cpp_valid_state): Prototype.
2454 (cpp_read_state): Prototype.
2455 * cpppch.c: New file.
2456 * flags.h (version_flag): Remove prototype.
2457 * mkdeps.c (deps_save): New.
2458 (deps_restore): New.
2459 * mkdeps.h (deps_save): Prototype.
2460 (deps_restore): Prototype.
2461 * toplev.c (late_init_hook): Delete.
2462 (version_flag): Make static again.
2463 (compile_file): Don't call late_init_hook.
2464 * toplev.h (late_init_hook): Delete.
2465 * doc/cppopts.texi: Document -fpch-deps.
2466 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
2468 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
2470 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
2472 (c_common_valid_pch): Rename from c_valid_pch, change callers.
2473 (c_common_read_pch): Rename from c_read_pch, change callers.
2475 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
2476 a space between it and its argument.
2478 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
2480 * c-pch.c: New file.
2481 * toplev.h (late_init_hook): Declare.
2482 * toplev.c (late_init_hook): Define.
2483 (version_flag): Make globally visible.
2484 (compile_file): Call late_init_hook.
2485 (init_asm_output): Make output file seekable.
2486 * gcc.c (default_compilers): Update c-header rule.
2487 * flags.h (version_flag): Declare.
2488 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
2490 * cppfiles.c (struct include_file): Add 'pch' field.
2491 (INCLUDE_PCH_P): New.
2492 (open_file_pch): New.
2493 (stack_include_file): Handle PCH files specially.
2494 (find_include_file): Call open_file_pch instead of open_file.
2495 (_cpp_read_file): Explain why open_file is used instead of
2497 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
2498 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
2499 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
2500 in cpplib callbacks.
2501 * c-common.c (pch_file): Correct comment.
2502 (allow_pch): Define.
2503 (c_common_init): Call pch_init.
2504 * c-common.h (allow_pch): Declare.
2505 (pch_init): Declare.
2506 (c_valid_pch): Declare.
2507 (c_read_pch): Declare.
2508 (c_write_pch): Declare.
2509 * Makefile.in (c-pch.o): New.
2510 (C_AND_OBJC_OBJS): Add c-pch.o.
2511 * doc/invoke.texi (Precompiled Headers): Add index entries,
2512 complete truncated paragraph.
2514 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
2516 * c-common.c: (pch_file): Define.
2517 * c-common.h (pch_file): Declare.
2518 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
2519 (missing_arg): Require --output-pch= to have an argument.
2520 (c_common_decode_option): Handle --output-pch=.
2521 * gcc.c: Document new %V.
2522 (default_compilers): Handle compiling C header files.
2523 (do_spec_1): Implement %V.
2524 (main): Handle "gcc foo.h" without trying to run linker.
2525 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
2526 (Overall Options): Document what the driver does with header files,
2527 document new -x option possibilities.
2528 (Invoking G++): More documentation for PCH.
2529 (Precompiled Headers): New.
2531 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
2533 * ggc.h: Don't include varray.h. Rearrange functions to be more
2535 (ggc_add_root): Delete.
2536 (ggc_mark_rtx): Delete.
2537 (ggc_mark_tree): Delete.
2538 (struct ggc_statistics): Remove contents.
2539 * ggc-common.c: Remove unneeded includes.
2540 (struct ggc_root): Delete.
2542 (ggc_add_root): Delete.
2543 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
2544 (ggc_print_common_statistics): Remove most of the contents.
2545 * Makefile.in (GGC_H): No longer uses varray.h.
2546 (ggc-common.o): Update dependencies.
2547 (c-parse.o): Add varray.h to dependencies.
2548 (c-common.o): Add varray.h.
2549 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
2550 (mark_ident_hash): Rename to ggc_mark_stringpool.
2551 (init_stringpool): Don't use ggc_add_root.
2552 * c-parse.in: Include varray.h.
2553 * c-common.c: Include varray.h.
2554 * objc/Make-lang.in (objc-act.o): Add varray.h.
2555 * objc/objc-act.c: Include varray.h.
2557 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
2559 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
2560 (dw_cfi_oprnd1_desc): Likewise.
2562 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
2564 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
2566 (alpha_links): Use gengtype to mark; move out of ifdef.
2567 (mark_alpha_links_node): Delete.
2568 (mark_alpha_links): Delete.
2569 (alpha_need_linkage): Use GGC to allocate splay tree, struct
2570 alpha_links, strings. Don't use ggc_add_root.
2571 * ggc-common.c (ggc_splay_alloc): New.
2572 (ggc_splay_dont_free): New.
2573 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
2574 (ggc_mark_tree): Likewise.
2575 (splay_tree_new_ggc): New.
2576 (ggc_splay_alloc): Declare.
2577 (ggc_splay_dont_free): Declare.
2578 * dwarf2asm.c: Include gt-dwarf2asm.h.
2579 (mark_indirect_pool_entry): Delete.
2580 (mark_indirect_pool): Delete.
2581 (indirect_pool): Use gengtype to mark.
2582 (dw2_force_const_mem): Don't use ggc_add_root.
2583 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
2584 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
2585 (gt-dwarf2asm.h): Depend on s-gtype.
2587 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
2589 * tree.h (union tree_type_symtab): Mark `die' field.
2590 * Makefile.in (dwarf2out.o): Update dependencies.
2591 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
2593 (dw_cfi_oprnd1_desc): New function.
2594 (dw_cfi_oprnd2_desc): New function.
2595 (indirect_string_alloc): Delete.
2596 (debug_str_do_hash): New function.
2597 (debug_str_eq): New function.
2598 (mark_limbo_die_list): Delete.
2599 (dwarf2out_init): Don't call ggc_add_root.
2601 2003-01-09 Vladimir Makarov <vmakarov@redhat.com>
2603 The following changes are merged from itanium-sched-branch:
2605 2003-01-08 David Edelsohn <edelsohn@gnu.org>
2607 * doc/md.texi: Clarify assignment of units to automata description.
2609 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
2611 * genautomata.c (unit_decl): Remove members
2612 `the_same_automaton_unit' and
2613 `the_same_automaton_message_reported_p'.
2614 (process_unit_to_form_the_same_automaton_unit_lists,
2615 form_the_same_automaton_unit_lists_from_regexp,
2616 form_the_same_automaton_unit_lists, the_same_automaton_lists):
2618 (annotation_message_reported_p): New global variable.
2619 (check_unit_distribution_in_reserv,
2620 check_regexp_units_distribution): New functions.
2621 (check_unit_distributions_to_automata): Rewrite it.
2623 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
2625 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
2626 Use continue instead of break if cycle is too big.
2628 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
2630 * genautomata.c (check_unit_distributions_to_automata): Output at
2631 most one message for a unit.
2632 (process_unit_to_form_the_same_automaton_unit_lists): Check
2633 automaton of units instead of units themself.
2635 * doc/md.texi: Describe the constraint about assigning unit to
2638 2002-12-20 Jan Hubicka <jH@suse.cz>
2639 Vladimir Makarov <vmakarov@redhat.com>
2641 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
2643 (gen_cpu_unit): Initialize the new members.
2644 (process_regexp_cycles): Calculate minimal finish cycle too. Set
2645 up `min_occ_cycle_num'.
2646 (evaluate_max_reserv_cycles): Change the function call.
2647 (CLEAR_BIT): New macro.
2648 (states_union, state_shift): Use the mask.
2649 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
2650 (form_reservs_matter): New function.
2651 (make_automaton): Call the function and use the mask.
2652 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
2655 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2657 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
2659 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2661 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
2664 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2666 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
2669 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2670 2002-10-31 Dale Johannesen <dalej@apple.com>
2672 * haifa-sched.c (find_set_reg_weight): New function.
2673 (find_insn_reg_weight): Use the new function.
2674 (schedule_block): Do sorting ready queue always
2677 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
2679 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
2681 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
2683 * haifa-sched.c (choice_entry): New structure.
2684 (choice_stack, cycle_issued_insns): New variables.
2685 (max_issue): Rewrite it.
2686 (choose_ready): Set up ready_try for unknown insns too.
2687 (schedule_block): Allocate and free choice_stack. Set up
2688 and modify cycle_issued_insns.
2690 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
2691 with and without filling the bundle.
2692 (bundling): Combine calls of issue_nops_and_insn.
2694 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
2696 * config/ia64/itanium1.md: New file.
2698 * config/ia64/itanium2.md: New file.
2700 * config/ia64/ia64.md: Move DFA descriptions into the new files.
2701 Remove the old pipeline description.
2703 * config/ia64/ia64.c (ia64_override_options): Add aliases of
2704 itanium processor names.
2706 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
2708 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
2709 (ia64_reorg): Set up queried unit codes for Itanium2 too.
2711 * config/ia64/ia64.md: Add descriptions for Itanium2.
2713 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
2715 * config/ia64/ia64.h (processor_type): New enumeration.
2716 (ia64_tune, ia64_tune_string): New external declarations.
2717 (TARGET_OPTIONS): Add option `tune='.
2719 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
2721 (ia64_override_options): Set up `ia64_tune'.
2722 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
2723 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
2724 (bundling): Add nops for MM-insns only for Itanium.
2725 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
2728 * config/ia64/ia64.md (cpu): New attribute.
2729 (DFA description): Enable it only for Itanium.
2731 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
2732 Richard Henderson <rth@redhat.com>
2734 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
2735 MASK_EARLY_STOP_BITS.
2736 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
2737 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
2740 * config/ia64/ia64.c (ia64_dfa_new_cycle,
2741 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
2742 instead of TARGET_TUNE_STOP_BITS.
2744 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
2745 `-mearly-stop-bits'.
2747 * config/ia64/ia64.c (automata_option "v"): Comment it.
2749 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
2751 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
2753 (TARGET_SWITCHES): Add entries for the new option.
2755 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
2756 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
2757 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
2759 (ia64_sched_reorder2): Set up `clocks'.
2760 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
2761 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
2762 queue when TARGET_TUNE_STOP_BITS.
2763 (bundling): Insert additional nops for MM-insns.
2764 (final_emit_insn_group_barriers): Add insertion of stop bits
2765 according `stops_p'.
2766 (ia64_reorg): Initiate the new varibales.
2768 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
2770 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
2772 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
2773 insns at the end of block insn scheduling.
2775 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
2777 * sched-deps.c (remove_dependence, group_leader): Remove it.
2778 (add_dependence): Add dependence to group leader to.
2779 (set_sched_group_p): Add dependence to the first insn of the
2781 (sched_analyze_insn): Make dependence to jump as anti-dependence.
2782 Change true dependence by anti-dependence when
2783 `reg_pending_barrier'.
2785 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
2786 add_branch_dependences): Ignore schedule groups.
2788 * sched-ebb.c (init_ready_list): Ditto.
2790 * (move_insn, set_priorities): Ditto.
2792 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
2793 flag is clear after reload.
2794 (adjust_cost): Change cost only for output dependencies.
2796 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
2798 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
2800 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
2802 * target.h (gcc_target): Add member
2803 `dependencies_evaluation_hook'.
2805 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
2807 (TARGET_SCHED): Add initiatialization of the new member.
2809 * sched-ebb.c: Include `target.h'.
2810 (schedule_ebb): Call `dependencies_evaluation_hook'.
2812 * sched-rgn.c (schedule_region): Call
2813 `dependencies_evaluation_hook'.
2815 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
2817 (ia64_dependencies_evaluation_hook): New function.
2819 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
2820 Describe the new hook.
2822 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
2824 * target.h (gcc_target): Add members
2825 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
2827 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
2828 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
2830 (TARGET_SCHED): Add initiatialization of the new members.
2832 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
2833 insn scheduling too.
2834 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
2835 initialize `ready_try'.
2836 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
2837 `dfa_new_cycle' says not to do it.
2839 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
2842 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
2844 * config/ia64/ia64.c: Include `hashtab.h'.
2845 (ia64_first_cycle_multipass_dfa_lookahead_guard,
2846 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
2847 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
2848 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
2849 bundle_state_eq_p, insert_bundle_state,
2850 initiate_bundle_state_table, finish_bundle_state_table,
2851 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
2852 get_template, get_next_important_insn, bundling): New functions.
2853 (ia64_internal_sched_reorder): Remove it.
2854 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
2855 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
2856 (ia64_safe_itanium_requires_unit0): Remove it.
2857 (group_barrier_needed_p): Place group barrier right before a real
2859 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
2861 (bundle_name): New variable.
2862 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
2863 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
2864 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
2865 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
2866 temp_dfa_state, prev_cycle_state): New global variables.
2867 (insn_matches_slot, maybe_rotate, finish_last_head,
2868 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
2869 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
2870 find_best_packet, itanium_reorder, dump_current_packet,
2871 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
2872 (sched_data, sched_ready, sched_types): Remove them.
2873 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
2874 `init_insn_group_barriers'.
2875 (ia64_sched_reorder, ia64_sched_reorder2): Call
2876 ia64_dfa_sched_reorder.
2877 (ia64_variable_issue): Rewrite it.
2878 (bundle_state): New structure.
2879 (index_to_bundle_states, bundle_states_num,
2880 allocated_bundle_states_chain, free_bundle_state_chain): New
2882 (ia64_sched_finish): Add stop bits and call `bundling' after the
2883 2nd insn scheduling.
2884 (ia64_use_dfa_pipeline_interface): Return zero always.
2885 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
2887 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
2888 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
2889 (ia64_reorg): Add bundling insns.
2892 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
2893 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
2895 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
2897 * config/ia64/ia64.md: Add Itanium1 DFA description.
2898 (itanium_class): Add `nop' and `pre_cycle'. Add
2899 define_function_unit for `nop'.
2900 (nop): Change attribute `itanium_class'.
2901 (pre_cycle): New define_insn.
2903 * config/ia64/ia64-protos.h (bundling_p): New external variable.
2904 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
2905 ia64_produce_address_p): New function prototypes.
2907 * config/ia64/ia64.c (bundling_p): New global variable.
2908 (ia64_use_dfa_pipeline_interface,
2909 ia64_first_cycle_multipass_dfa_lookahead,
2910 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
2912 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2913 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2914 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2915 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
2916 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
2917 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
2918 (dfa_pre_cycle_insn): New variable.
2920 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
2922 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
2925 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
2926 New function prototypes.
2928 * genattrtab.c (main): Process the new constructions.
2930 * genautomata.c (gen_presence_absence_set,
2931 process_presence_absence_names, process_presence_absence_patterns,
2932 add_presence_absence, check_absence_pattern_sets): Add parameter
2934 (unit_decl): Add new members `final_presence_list' and
2935 `final_absence_list'.
2936 (unit_pattern_rel_decl): Add new member `final_p'.
2937 (gen_final_presence_set, gen_final_absence_set): New functions.
2938 (process_decls): Use member `final_p'.
2939 (temp_reserv): New global variable.
2940 (reserv_sets_are_intersected): Add processing `final_presence_set'
2941 and `final_absence_set'.
2942 (initiate_states): Allocate `temp_reserv'.
2943 (unit_final_presence_set_table, unit_final_absence_set_table): New
2945 (initiate_presence_absence_pattern_sets): Initiate them.
2946 (NDFA_to_DFA): Fix typo.
2947 (output_description): Output `final_presence_set' and
2948 `final_absence_set'.
2950 * doc/md.texi (final_presence_set, final_absence_set): Describe
2953 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
2955 * genautomata.c (transform_3): Process a missing case (nothing on
2958 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
2960 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
2961 comments about queried units and the minimization.
2963 * doc/md.texi: Ditto.
2965 * genautomata.c (create_composed_state): Return nonzero if the new
2966 state has been created.
2967 (first_cycle_unit_presence): New function.
2968 (state_is_differed): Add new parameter. Use the new function.
2969 Take queried units into account.
2970 (partition_equiv_class): Pass additional parameter to
2971 `state_is_differed'.
2972 (merge_states): Process composed states too.
2973 (build_automaton, create_automata, output_min_issue_delay_table,
2974 output_tables, output_statistics): Output more information.
2975 (output_reserved_units_table): Use function
2976 `first_cycle_unit_presence'.
2977 (output_tables): Output table of queried units even if the
2978 minimization is switched on.
2979 (write_automata): Output code for querying units even if the
2980 minimization is switched on.
2982 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
2984 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
2985 syntax of the constructions.
2987 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
2988 extended syntax of the constructions.
2990 * genautomata.c (unit_rel_decl): Rename it to
2991 `unit_pattern_rel_decl'.
2992 (pattern_set_el, pattern_reserv): New structures.
2993 (pattern_set_el_t, pattern_reserv_t): New types.
2994 (gen_presence_absence_set): New function.
2995 (process_presence_absence): Remove it.
2996 (process_presence_absence_names,
2997 process_presence_absence_patterns): New functions.
2998 (get_presence_absence_set): Remove it.
2999 (initiate_presence_absence_sets): Rename it on
3000 `initiate_presence_absence_pattern_sets'. Use new function
3001 `form_reserv_sets_list'.
3002 (form_reserv_sets_list, check_presence_pattern_sets,
3003 check_absence_pattern_sets, output_pattern_set_el_list): New
3005 (unit_decl): Change types of members `presence_list' and
3007 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
3008 (decl): Change types of members `excl', `presence', and `absence'.
3009 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
3010 at the end of the vector.
3011 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3012 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
3013 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
3014 (gen_presence_set, gen_absence_set): Use new function
3015 `gen_presence_absence_set'.
3016 (add_presence_absence): Process `pattern_list' instead of
3018 (process_decls): USe new functions
3019 `process_presence_absence_names' and
3020 `process_presence_absence_patterns'.
3021 (reserv_sets_are_intersected): Use new function
3022 `check_presence_pattern_sets'.
3023 (presence_set, absence_set): Remove them.
3024 (unit_presence_set_table, unit_absence_set_table): New global
3026 (output_description): Use new function
3027 `output_pattern_set_el_list'.
3028 (generate): Use `initiate_presence_absence_pattern_sets'.
3030 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
3032 * genattr.c (main): Add output of prototype of new interface
3033 function `dfa_clean_insn_cache'.
3035 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
3036 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
3037 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
3039 (write_automata): Call the new function.
3041 Thu Jan 9 22:47:38 CET 2003 Jan Hubicka <jh@suse.cz>
3043 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
3046 2003-01-09 Paolo Carlini <pcarlini@unitus.it>
3048 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
3050 Thu Jan 9 17:26:40 2003 J"orn Rennecke <joern.rennecke@superh.com>
3052 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
3053 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
3054 (CONSTRAINT_LEN): Provide default definition.
3055 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
3056 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
3057 (EXTRA_CONSTRAINT_STR): Likewise.
3058 (REG_CLASS_FROM_CONSTRAINT): Define.
3059 * genoutput.c (check_constraint_len, constraint_len): New functions.
3060 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
3061 constraint / modifier.
3062 (gen_insn): Call check_constraint_len.
3063 * local-alloc.c (block_alloc): Update to use new macros / pass
3064 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
3065 * ra-build.c (handle_asm_insn): Likewise.
3066 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
3067 (constrain_operands, peep2_find_free_register): Likewise.
3068 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
3069 * regmove.c (find_matches): Likewise.
3070 * reload.c (push_secondary_reload, find_reloads): Likewise.
3071 (alternative_allows_memconst): Likewise.
3072 * reload1.c (maybe_fix_stack_asms): Likewise.
3073 (reload_cse_simplify_operands): Likewise.
3074 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
3075 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
3076 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
3077 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
3078 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
3079 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
3081 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
3083 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
3085 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
3087 (*extzv_1_r_h8300hs): Likewise.
3088 (*extzv_1_r_inv_h8300): Likewise.
3089 (*extzv_1_r_inv_h8300hs): Likewise.
3091 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
3093 * config/h8300/h8300.h (PREDICATE_CODES): New.
3095 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
3097 * config/h8300/h8300.md (*addsi3_upper): New.
3098 (*iorsi3_shift): Likewise.
3099 (two splitters): Likewise.
3100 (*addsi3_shift): Likewise.
3101 (two splitters): Likewise.
3103 2003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3105 * Makefile.in (optabs.o): Add dependency on basic-block.h.
3106 * basic-block.h (control_flow_insn_p): Fuction was exported.
3107 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
3108 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
3109 notes only when the region is contained in a single basic block.
3111 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
3114 * tree.h (expand_asm): New prototype.
3115 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
3117 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
3119 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
3120 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
3121 (volatile_refs_p) [ASM_INPUT]: Likewise.
3122 (side_effects_p) [ASM_INPUT]: Likewise.
3124 Thu Jan 9 12:00:36 CET 2003 Jan Hubicka <jh@suse.cz>
3126 * i386.md (*mul*): FIx constraints; remove confused comment; fix
3127 athlon_decode attributes
3128 (imul/k8 optimization peep2s): New.
3130 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
3131 * i386.md (type attribute): Add ssecomi.
3132 (unit, memory, prefix attributes): Handle ssecomi.
3133 (cvt?2? patterns): Fix athlon_decode attribute
3134 (comi patterns): Set attribute to ssecomi.
3137 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
3139 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
3141 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
3142 that match register_operands.
3143 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
3144 register_operand the default case.
3146 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
3149 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
3150 an empty element, do not advance the pointer to unfilled
3151 fields if there are pending initializers.
3153 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
3155 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
3156 (install-gcc-tooldir, install-cpp, installdirs,
3157 install-common, install-driver, install-info, install-man,
3158 install-headers, install-include-dir, install-headers-tar,
3159 install-headers-cpio, install-headers-cp, install-mkheaders,
3160 install-collect2, uninstall): Prepend $(DESTDIR) to
3161 destination paths in all (un)installation commands.
3162 (install-driver): Rewrite $(LN) commands to support DESTDIR
3163 with "ln" as well as with "ln -s".
3164 (installdirs): Simply use mkinstalldirs.
3165 (install-libgcc, install-multilib): Also pass DESTDIR.
3166 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
3167 installation destination variable ldir.
3168 * config/alpha/t-osf4, config/arm/t-netbsd,
3169 config/ia64/t-hpux, config/mips/t-iris5-6,
3170 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
3171 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
3172 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
3173 in the definition of SHLIB_INSTALL.
3174 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
3175 $(libsubdir) in the installation commands.
3177 2003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
3179 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
3180 non-optimizing compile.
3181 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
3184 2003-01-08 Douglas B Rupp <rupp@gnat.com>
3186 * config/i386/i386.c (ix86_attribute_table): Add new attributes
3187 ms_struct and gcc_struct.
3188 (ix86_handle_struct_attribute): New function.
3189 (ix86_ms_bitfield_layout_p): Update to take new attributes
3191 * doc/extend.texi: Document new attributes.
3192 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
3194 2003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
3196 PR optimization/8750
3197 * config/i386/i386.c (ix86_expand_prologue): Don't allow
3198 scheduling pass to move insns across __alloca call.
3200 2003-01-08 Dale Johannesen <dalej@apple.com>
3202 * config/rs6000/rs6000.md: Replace *store_multiple_string
3205 2003-01-08 Jeff Sturm <jsturm@one-point.com>
3208 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
3209 Set SYMBOL_REF_FLAG on local data sym_ref.
3211 2003-01-08 Dale Johannesen <dalej@apple.com>
3213 * function.c (assign_parms): Don't set pretend_args_size if
3214 REG_PARM_STACK_SPACE.
3215 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
3218 2003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
3222 Thu Jan 9 00:57:15 CET 2003 Jan Hubicka <jh@suse.cz>
3224 * i386.c (ix86_expand_int_addcc): Fix thinko.
3226 2003-01-08 David Edelsohn <edelsohn@gnu.org>
3228 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
3229 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
3230 as hook_bool_tree_hwi_hwi_tree_true.
3231 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
3232 (rs6000_emit_epilogue): Same.
3233 (rs6000_output_mi_thunk): Re-implement as RTL.
3234 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
3235 xcoffout_declare_function if any debugging enabled.
3237 2003-01-08 Chris Demetriou <cgd@broadcom.com>
3239 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
3240 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
3241 * config/mips/mips.h (enum processor_type): Rename
3242 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
3243 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
3245 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
3246 (ISA_MIPS32R2): New define.
3247 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
3248 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
3249 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
3250 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
3251 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
3252 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
3253 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
3254 compiling MIPS16 code.
3255 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
3257 (ISA_HAS_SEB_SEH): New define.
3258 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
3259 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
3260 processor_type value renaming. Add support for MIPS32R2.
3261 Clean up comments, and move "sb1" entry with other MIPS64 CPU
3263 (override_options): Reimplement -mipsN option handling so that
3264 it will work correctly for -mips32r2. Avoid branch-likely
3265 instructions on MIPS32R2.
3266 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
3267 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
3268 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
3269 (extendhisi2_hw, extendqisi2_hw): New.
3270 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
3271 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
3272 MIPS32R2, and MIPS64.
3273 (LINK_SPEC): Pass -mips32r2 to linker.
3274 * config/mips/t-isa3264: Built -mips32r2 multilibs.
3275 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
3276 for mips32r2 in the -march description. Alphabetically sort
3277 CPU names in the -march description. Add long-missed -mips32
3278 and -mips64 to MIPS option summary.
3280 * config.gcc: Update copyright years to include 2003.
3281 * config/mips/mips.c: Likewise.
3282 * config/mips/mips.h: Likewise.
3283 * config/mips/mips.md: Likewise.
3284 * config/mips/netbsd.h: Likewise.
3285 * doc/invoke.texi: Likewise.
3287 2003-01-08 Andreas Schwab <schwab@suse.de>
3289 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
3291 * configure: Regenerated.
3293 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
3295 * config/h8300/h8300.c (output_logical_op): Replace byte/word
3296 extraction of det with b0, b1, w0, w2, etc.
3297 (compute_logical_op_length): Likewise.
3298 (compute_logical_op_cc): Likewise.
3300 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
3302 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
3303 HIGH on all variants.
3305 Wed Jan 8 14:06:34 CET 2003 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3307 * Makefile.in (PARTITION_H): New.
3308 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
3309 * basic-block.h: Include hard-reg-set.h.
3311 2003-01-08 Richard Earnshaw <rearnsha@arm.com>
3313 * arm.h (ENABLE_XF_PATTERNS): Delete.
3314 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
3315 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
3316 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
3317 (cmpxf_trap): Delete.
3318 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
3320 Wed Jan 8 12:10:57 CET 2003 Jan Hubicka <jh@suse.cz>
3322 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
3323 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
3324 (add??cc): New expanders.
3325 * i386.c (expand_int_addcc): New function.
3326 * i386-protos.h (expand_int_addcc): Declare.
3328 * alias.c (memory_modified_1): New static function.
3329 (memory_modified): New static varaible.
3330 (memory_modified_in_insn_p): New global function.
3331 * rtl.h (memory_modified_in_insn_p): Declare.
3332 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
3335 * expr.h (emit_conditional_add): Declare.
3337 2003-01-07 Janis Johnson <janis187@us.ibm.com>
3340 * doc/invoke.texi (-malign-double): Explain that the option breaks
3341 binary compatibility.
3343 2003-01-08 Andreas Schwab <schwab@suse.de>
3345 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
3346 should come from the generic *-*-linux* entry.
3348 Tue Jan 7 22:29:56 CET 2003 Jan Hubicka <jh@suse.cz>
3350 * cselib.c (cselib_current_insn_in_libcall): New static variable.
3351 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
3352 we are inside libcall.
3353 * cselib.h (elt_loc_list): Add in_libcall.
3354 * gcse.c (do_local_cprop): Do not copy propagate using insns
3357 2003-01-07 David Edelsohn <edelsohn@gnu.org>
3359 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
3360 not normally affect to issue rate.
3362 Tue Jan 7 21:46:57 CET 2003 Jan Hubicka <jh@suse.cz>
3364 * genopinit.c (optabs): Add addc_optab.
3365 * ifcvt.c (noce_try_store_flag): Rename to ...
3366 (noce_try_addcc): ... this one; handle generic conditional increment.
3367 (noce_process_if_block): Update noce_try_addcc call.
3368 * optabs.c (emit_conditional_add): New.
3369 (init_obtabs): Initialize addc_optab.
3370 * optabs.h (optab_index): Add OTI_addcc.
3371 (addcc_optab): New macro.
3372 * md.texi: Document addMcc
3375 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
3376 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
3377 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
3379 * reload1.c (delete_output_reload): Avoid repeated attempts
3382 2003-01-07 Andreas Schwab <schwab@suse.de>
3384 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
3385 Move --enable-initfini-array check ...
3386 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
3387 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
3388 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
3389 * configure: Rebuild.
3391 2003-01-07 Richard Henderson <rth@redhat.com>
3393 * alias.c (find_base_value): Only use new_reg_base_value shortcut
3394 if the register is set once.
3396 2003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
3398 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
3399 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
3400 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
3402 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
3403 Sunil Davasam <sunil.k.davasam@intel.com>
3406 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
3407 DW_CFA_same_value, read next and ignore.
3409 2003-01-07 Richard Henderson <rth@redhat.com>
3411 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
3413 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
3415 * cfg.c: Include alloc-pool.h
3416 (edge_pool): New pool.
3417 (bb_pool): New pool.
3418 (first_deleted_edge): Remove.
3419 (first_deleted_block): Remove.
3420 (init_flow): Alloc/free the pools.
3421 (free_edge): Use pools.
3422 (alloc_block): Ditto.
3423 (expunge_block): Ditto.
3424 (cached_make_edge): Ditto.
3426 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
3428 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
3430 * et-forest.c: Include alloc-pool.h.
3431 (struct et_forest): Add node_pool and occur_pool.
3432 (et_forest_create): Create the new pools.
3433 (et_forest_delete): Delete them.
3434 (et_forest_add_node): Allocate and free using pools.
3435 (et_forest_add_edge): Ditto.
3436 (et_forest_remove_node): Ditto.
3437 (et_forest_remove_edge): Ditto.
3439 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
3441 2003-01-07 Kazu Hirata <kazu@cs.umass.edu>
3443 * config/h8300/h8300.c (output_logical_op): Simplify and
3444 optimize the handling of SImode.
3445 * config/h8300/h8300.c (compute_logical_op_length): Update
3447 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
3449 2003-01-07 Richard Sandiford <rsandifo@redhat.com>
3451 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
3452 big-endian correction to indirect arguments too.
3454 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
3456 Segher Boessenkool <segher@koffie.nl>
3458 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
3459 (alt_reg_names): Ditto, fix formatting.
3460 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.