1 2003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
4 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
5 * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
6 * config/rs6000/t-rtems: New file. multilib variants to match OS.
7 * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
8 rs6000/t-ppcgas so we get the desired multilibs.
10 2003-01-30 Nick Clifton <nickc@redhat.com>
12 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
13 when popping saved IP register off the stack.
15 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
17 * config/rs6000/aix43.h: Fix comment typos.
18 * config/rs6000/aix51.h: Likewise.
19 * config/rs6000/aix52.h: Likewise.
20 * config/rs6000/altivec.h: Likewise.
21 * config/rs6000/rs6000.c: Likewise.
22 * config/rs6000/rs6000.h: Likewise.
23 * config/rs6000/rs6000.md: Likewise.
24 * config/rs6000/spe.md: Likewise.
26 2003-01-29 Mark Mitchell <mark@codesourcery.com>
28 * c-common.c (builtin_define_float_constants): Define
29 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
31 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
33 * config/sh/lib1funcs.asm: Fix comment typos.
34 * config/sh/linux.h: Likewise.
35 * config/sh/sh.c: Likewise.
36 * config/sh/sh.md: Likewise.
38 2003-01-30 Loren James Rittle <ljrittle@acm.org>
40 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
42 2003-01-30 Alexandre Oliva <aoliva@redhat.com>
44 * config/fp-bit.h (__make_dp): Declare if TMODES.
46 2003-01-29 Kazu Hirata <kazu@cs.umass.edu>
48 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
49 general_operand_src and general_operand_dst.
51 2003-01-29 David Edelsohn <edelsohn@gnu.org>
53 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
54 Return true for variable sized types.
55 (rs6000_va_arg): Handle variable sized types passed by reference
58 2003-01-29 Richard Earnshaw <rearnsha@arm.com>
60 * arm.c (arm_legtimize_address): New function.
61 * arm-protos.h (arm_legtimize_address): Add prototype.
62 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
63 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
66 2003-01-29 Joel Sherrill <joel@OARcorp.com>
68 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
69 depended on it being defined until now. This was tracked as PR9296.
71 2003-01-13 Joel Sherrill <joel@OARcorp.com>
73 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
74 RTEMS code knows which C++ initialization style the toolset
75 configuration is using. This was tracked as PR9295.
77 2003-01-29 Joel Sherrill <joel@OARcorp.com>
79 * config/m68k/t-crtstuff: Replace spaces with tabs, add
80 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
81 This issue was tracked as PR9293.
83 2003-01-29 Joel Sherrill <joel@OARcorp.com>
85 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
87 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
88 This issue was tracked as PR9292.
90 2003-01-29 Nick Clifton <nickc@redhat.com>
92 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
95 2003-01-29 Andrew Haley <aph@redhat.com>
97 * tree-inline.c (walk_tree): Add CHAR_TYPE.
99 Wed Jan 29 10:26:12 CET 2003 Jan Hubicka <jh@suse.cz>
101 * i386.md (subdi3_carry_rex64): Fix typo.
103 2003-01-28 Stan Shebs <shebs@apple.com>
105 * coretypes.h (cpp_reader): Forward declare struct.
106 * c-pragma.h (cpp_reader): Remove forward declaration.
107 * hashtable.h (cpp_reader): Likewise.
108 * scan.h (cpp_reader): Likewise.
109 * tree.h (cpp_reader): Likewise.
110 * config/darwin-protos.h (cpp_reader): Likewise.
111 * config/arm/arm-protos.h (cpp_reader): Likewise.
112 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
113 struct cpp_reader in prototypes.
115 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
117 * doc/install.texi: Add documentation for installation into
118 tooldirs and with DESTDIR.
120 2003-01-28 Richard Henderson <rth@redhat.com>
122 * config.gcc (ia64*-*-aix*): Remove.
123 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
124 * config/ia64/unwind-aix.c: Remove file.
126 2003-01-28 Andreas Schwab <schwab@suse.de>
128 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
130 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
131 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
132 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
133 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
134 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
135 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
136 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
138 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
140 * combine.c (nonzero_bits): Fix check for negative divide operands.
142 2003-01-28 Richard Henderson <rth@redhat.com>
144 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
145 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
147 2003-01-28 Richard Henderson <rth@redhat.com>
149 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
151 * config/cris/cris.c (cris_address_cost): Make static.
152 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
153 * config/cris/cris.h (ADDRESS_COST): Remove.
154 * config/cris/cris-protos.h: Update.
156 2003-01-23 Mike Stump <mrs@apple.com>
158 * regclass.c (init_reg_autoinc): New function.
159 (regclass): Move initialization of forbidden_inc_dec_class from
161 (init_regs): to here. Avoids reinitialization for each function,
162 saving compilation time.
164 2003-01-28 Jason Merrill <jason@redhat.com>
166 * cpplib.h (struct cpp_options): Add warn_deprecated field.
167 * cppinit.c (cpp_create_reader): Turn it on by default.
168 * c-opts.c (c_common_decode_option): Set it.
169 * cpplib.c (do_pragma_once): Only complain about #pragma once
170 if warn_deprecated is set.
172 2003-01-28 Dale Johannesen <dalej@apple.com>
174 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
175 * loop.c (scan_loop): Move movables on -Os rich-register targets.
176 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
178 2003-01-28 Richard Henderson <rth@redhat.com>
180 * target.h (targetm.address_cost): New.
181 * target-def.h (TARGET_ADDRESS_COST): New.
182 (TARGET_RTX_COSTS): Uncomment. Oops.
183 * cse.c (address_cost): Use new target hook.
184 (default_address_cost): New.
185 * output.h (default_address_cost): Declare.
186 * hooks.c (hook_int_rtx_0): New.
187 * hooks.h (hook_int_rtx_0): Declare.
188 * loop.c (combine_givs_p): Remove if 0 code.
189 * system.h (ADDRESS_COST): Poison.
191 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
192 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
193 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
194 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
195 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
196 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
197 config/xtensa/xtensa.c, config/xtensa/xtensa.h
198 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
199 (ADDRESS_COST): Remove.
201 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
202 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
203 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
204 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
205 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
206 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
207 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
208 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
209 config/mips/mips.c, config/mips/mips.h,
210 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
211 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
212 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
213 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
214 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
215 config/vax/vax.c, config/vax/vax.h
216 (foo_address_cost): Make static.
217 (TARGET_ADDRESS_COST): New.
218 (ADDRESS_COST): Remove.
220 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
221 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
222 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
223 config/stormy16/stormy16.h
224 (ADDRESS_COST): Move code ...
225 (foo_address_cost): ... here.
226 (TARGET_ADDRESS_COST): New.
228 * config/m32r/m32r.c (m32r_address_cost): Remove.
229 * config/m32r/m32r-protos.h: Update.
231 * config/mmix/mmix.c (mmix_address_cost): Remove.
232 * config/mmix/mmix-protos.h: Update.
234 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
235 mn10300_address_cost; move unsig allocation ...
236 (mn10300_address_cost): ... here.
237 (TARGET_ADDRESS_COST): New.
238 * config/mn10300/mn10300-protos.h: Update.
239 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
241 * doc/tm.texi: Update.
243 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
245 * haifa-sched.c (schedule_insn): Return necessary cycle advance
246 after issuing the insn.
247 (rank_for_schedule): Make a insn with /S the highest priority
249 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
250 (choose_ready): Check SCHED_GROUP_P.
251 (schedule_block): Advance cycle after issuing insn if it is
252 necessary. Don't reorder insns if there is an insn with /S.
253 (set_priorities): Ignore schedule groups.
255 * sched-deps.c (remove_dependence, group_leader): Remove the
257 (add_dependence): Ignore schedule groups.
258 (set_sched_group_p): Don't make copy of dependencies from previous
259 insn of the schedule group. Add anti-dependency to the previous
260 insn of the schedule group.
261 (compute_forward_dependences): Ignore schedule groups.
263 * sched-ebb.c (init_ready_list): Ignore schedule groups.
265 * sched-rgn.c (init_ready_list): Ditto.
266 (can_schedule_ready_p): Ditto.
268 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
270 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
271 register to another one.
273 2003-01-28 Richard Henderson <rth@redhat.com>
275 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
277 2003-01-28 Roger Sayle <roger@eyesopen.com>
279 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
281 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
283 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
284 class contains a floating-point register, return the size of the
287 Tue Jan 28 12:15:13 CET 2003 Jan Hubicka <jh@suse.cz>
289 * i386.c (ix86_carry_flag_operator): New predicate.
290 (fcmov_operator): Fix whitespace.
291 (ix86_expand_carry_flag_compare): Deal with floating point.
292 (ix86_expand_int_movcc): Deal with fp; update insn expansion
293 (ix86_expand_int_addcc): Likewise.
294 (ix86_expand_strlensi_unroll_1): likewsie.
295 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
296 * i386.md (add?i_carry_rex64): Use new predicate.
297 (sub?i3_carry_rex64): Likewise.
298 (x86_mov?icc_0_m1*): Likewise.
300 2003-01-28 Andreas Schwab <schwab@suse.de>
302 * cfgloopmanip.c (create_preheader): Initialize src to avoid
305 * expmed.c (emit_store_flag): Fix cast to avoid sign
308 * combine.c (force_to_mode): Add cast to fix warning when
309 STORE_FLAG_VALUE is negative.
311 2003-01-27 Richard Henderson <rth@redhat.com>
313 * Makefile.in (cse.o): Depend on TARGET_H.
314 * cse.c (rtx_cost): Use targetm.rtx_costs.
315 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
316 * doc/tm.texi: Update.
318 * target.h (targetm.rtx_costs): New.
319 * target-def.h (TARGET_RTX_COSTS): New.
320 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
323 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
324 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
325 * config/alpha/alpha.h (PROCESSOR_MAX): New.
326 (CONST_COSTS, RTX_COSTS): Remove.
328 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
329 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
330 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
331 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
332 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
333 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
334 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
335 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
336 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
337 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
338 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
339 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
340 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
341 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
342 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
343 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
344 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
345 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
346 config/v850/v850.c, config/v850/v850.h,
347 config/xtensa/xtensa.c, config/xtensa/xtensa.h
348 (CONST_COSTS, RTX_COSTS): Move code ...
349 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
351 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
352 (arm_rtx_costs, TARGET_RTX_COSTS): New.
353 * config/arm/arm-protos.h: Update.
354 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
356 * config/avr/avr.h (CONST_COSTS): Move code ...
357 * config/avr/avr.c (avr_rtx_costs): ... here.
358 (default_rtx_costs): Make static.
359 * config/avr/avr-protos.h: Update.
361 * config/h8300/h8300.c (const_costs): Make static.
362 (h8300_and_costs, h8300_shift_costs): Likewise.
363 * config/h8300/h8300-protos.h: Update.
365 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
366 (CONST_COSTS): Move code ...
367 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
368 default_rtx_costs; update for signature change.
369 * config/ip2k/ip2k-protos.h: Update.
371 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
372 (CONST_COSTS): Move code ...
373 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
374 (TARGET_RTX_COSTS): New.
375 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
376 * config/m68hc11/m68hc11-protos.h: Update.
378 * config/m68k/m68k.c (const_int_cost): Make static.
379 * config/m68k/m68k-protos.h: Update.
381 * config/mcore/mcore.c (mcore_const_costs): Make static.
382 (mcore_and_cost, mcore_ior_cost): Likewise.
383 * config/mcore/mcore-protos.h: Update.
385 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
386 (mmix_rtx_cost_recalculated): Remove.
387 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
388 * config/mmix/mmix-protos.h: Update.
390 * config/sh/sh.c (shiftcosts): Make static.
391 (addsubcosts, andcosts, multcosts): Likewise.
392 * config/sh/sh-protos.h: Update.
394 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
395 (sparc_rtx_costs): Make static; update for change in signature.
396 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
397 * config/sparc/sparc-protos.h: Update.
399 * config/v850/v850.c (const_costs): Make static.
400 * config/v850/v850-protos.h: Update.
402 * config/vax/vax.h (RTX_COSTS): Remove.
403 (CONST_COSTS): Move code ...
404 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
406 (vax_rtx_costs, TARGET_RTX_COSTS): New.
408 2003-01-27 Richard Henderson <rth@redhat.com>
410 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
411 * config/vax/vax-protos.h: Update. Really.
413 2003-01-28 Alexandre Oliva <aoliva@redhat.com>
415 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
416 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
417 zero if no hardware floating point.
418 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
419 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
420 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
421 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
422 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
423 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
424 even FP registers on N32 and N64.
425 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
426 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
427 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
428 even-register-like alignment to 128-bit arguments.
429 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
430 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
432 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
433 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
434 (TPBIT): Set to tp-bit.c.
435 (tp-bit.c): Create out of fp-bit.c.
437 2003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
439 * c-parse.in: Remove '%expect 32' directive in objc mode.
441 2003-01-27 Nathan Sidwell <nathan@codesourcery.com>
443 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
444 (LIBGCOV): New variable.
445 (libgcc.mk): Add LIBGCOV.
446 (LIBGCC_DEPS): Add libgcov.c.
447 (libgcov.a): New target.
448 (clean): Remove libgcov.a.
449 (install-libgcc): Do libgcov too.
450 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
452 * libgcc2.c (L_gcov): Move into ...
453 * libgcov.c: ... here. New file.
454 * mklibgcc.in: Add libgcov rules.
455 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
457 * doc/invoke.texi (profile-arcs, test-coverage): Update and
460 * profile.c (index_counts_file): Remove duplicate check for open file.
462 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
464 * gcc/doc/invoke.texi (Optimization Options): Group together
465 optional and experimental flags. Move trapv and bounds-check
466 out of this section. Group floating point flags together.
467 (Code Gen Options): Move trapv and bounds-check to here.
469 2003-01-27 Josef Zlomek <zlomekj@suse.cz>
471 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
473 2003-01-27 Richard Earnshaw <rearnsha@arm.com>
476 * function.c (purge_addressof_1): After pushing an addressed register
477 onto the stack, simplify the result.
479 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
481 * doc/extend.texi: Fix typo.
483 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
485 * doc/cppopts.texi: Fix typo.
486 * doc/objc.texi: Likewise.
487 * doc/passes.texi: Likewise.
489 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
491 * real.c (ibm_extended_format): Add 53 to minimum exponent.
492 (encode_ibm_extended): Adjust.
494 2003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
496 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
497 timevar_id enumerations.
499 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
501 * combine.c: Fix formatting.
503 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
505 * doc/gccint.texi: Update the copyright.
507 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
509 * doc/cpp.texi: Fix typos.
510 * doc/extend.texi: Likewise.
511 * doc/gty.texi: Likewise.
512 * doc/install.texi: Likewise.
513 * doc/passes.texi: Likewise.
514 * doc/rtl.texi: Likewise.
515 * doc/tm.texi: Likewise.
517 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
519 * config/ia64/fde-glibc.c: Fix comment typos.
520 * config/ia64/hpux.h: Likewise.
521 * config/ia64/ia64.c: Likewise.
522 * config/ia64/ia64.h: Likewise.
523 * config/ia64/unwind-ia64.c: Likewise.
525 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
527 * config/i386/i386-modes.def: Fix comment typos.
528 * config/i386/i386.c: Likewise.
529 * config/i386/i386.md: Likewise.
531 2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
533 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
534 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
535 ASM_FINISH_DECLARE_OBJECT before defining it.
536 * toplev.c (rest_of_decl_compilation): Don't define
537 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
538 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
539 parameters for DWARF2 targets because they _are_ used.
541 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
543 * fp-bit.h: Define macros for TFmode floating-point constants
544 in IBM-extended TFmode types.
545 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
547 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
550 * config/fp-bit.h: Define macros for TFmode floating-point
551 constants in IEEE quad TFmode type. Declare functions according
553 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
554 (TFtype, TItype, UTItype): Define if TMODES is defined.
555 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
556 (F_T_BITOFF, D_T_BITOFF): Define.
557 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
558 guaranteed to be wide enough.
559 * config/fp-bit.c: Check for L_ macros for tf functions.
562 (pack_d, unpack_d): Support IEEE 854 quad type.
563 (_fpmul_parts): Support TFmode. Compute exponent adjustment
564 from FRAC_NBITS, FRAC_BITS and NGARDS.
565 (usi_to_float): Cast constants to be shifted to fractype
566 instead of assuming long long is wide enough.
567 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
569 2003-01-26 Andreas Jaeger <aj@suse.de>
571 * df.c: Remove prototype of unused function df_regno_rtl_debug.
573 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
575 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
576 (DBBIT_FUNCS): Added _df_to_tf.
578 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
579 (LIBGCC_DEPS): Added TPBIT.
580 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
582 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
583 been able to move the result to target.
585 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
586 for the appropriate mode.
588 * calls.c (emit_library_call_value_1): Handle return values
591 * rtl.c (get_mode_alignment): Moved to...
592 * stor-layout.c: ... here.
594 * print-rtl.c (print_rtx): Don't print MEM details in
597 2003-01-26 Michael Hayes <mph@paradise.net.nz>
599 * df.h: Update comments, tidy formatting.
600 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
601 REVERSE, UNION, INTERSECTION. All uses updated.
602 (OLD_DF_INTERFACE): Remove.
603 (struct insn_info): Remove commented out insn field.
604 * df.c: Update comments, tidy formatting.
605 (df_def_table_realloc): Remove.
608 2003-01-26 Alan Modra <amodra@bigpond.net.au>
610 * calls.c (save_fixed_argument_area): Tidy.
611 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
612 (expand_call): Comment typo fixes. Don't init low_to_save. Start
613 call chain loop at 1 if !try_tail_call. Formatting.
614 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
615 Use save_fixed_argument_area and restore_fixed_argument_area.
617 2003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
619 * df.c (df_uses_record): Handle CC0.
621 2003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
623 * reload.c (maybe_memory_address_p): New function.
624 (find_reloads_address): Use it instead of memory_address_p.
626 2003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
628 * final.c (shorten_branches): Align the address of code label
629 when computing initial lengths and addresses.
631 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
633 * config/m68hc11/m68hc11.md: Fix a comment typo.
635 2003-01-25 Andreas Jaeger <aj@suse.de>
637 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
640 2003-01-25 Roger Sayle <roger@eyesopen.com>
642 * gcse.c (bypass_last_basic_block): New global variable.
643 (bypass_block): Use redirect_edge_and_branch_force to redirect
644 fall-through edges. Use bypass_last_basic_block to determine
645 which blocks have valid PRE information.
646 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
648 Sat Jan 25 22:31:59 CET 2003 Jan Hubicka <jh@suse.cz>
650 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
652 Sat Jan 25 21:04:33 CET 2003 Jan Hubicka <jh@suse.cz>
653 Eric Botcazou <ebotcazou@libertysurf.fr>
655 * gcse.c (one_cprop_pass): Delete unreachable blocks.
657 2003-01-25 Richard Henderson <rth@redhat.com>
659 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
660 from ia64_aix_select_rtx_section.
661 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
662 instead of saving and restoring flag_pic.
663 (ia64_rwreloc_unique_section): Similarly.
664 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
665 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
666 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
667 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
669 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
671 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
674 2002-01-25 Richard Henderson <rth@redhat.com>
676 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
678 2002-01-25 Kelley Cook <kelleycook@comcast.net>
680 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
682 2003-01-25 Segher Boessenkool <segher@koffie.nl>
684 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
685 type for bitmaps. Use unsigned long.
686 (nBITMAP_WORD_BITS): New macro.
687 (BITMAP_WORD_BITS): New macro.
688 (rest of file): Use it.
691 2003-01-25 Richard Henderson <rth@redhat.com>
693 2002-02-19 Robert Lipe <robertlipe@usa.net>
694 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
696 2002-01-25 Roger Sayle <roger@eyesopen.com>
698 * builtins.c (purge_builtin_constant_p): Scan insn stream
699 sequentially rather than by basic block.
700 * function.c (purge_addressof): Simplify test with INSN_P.
702 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
704 * combine.c (simplify_comparison, case AND): Remove a redundant test.
706 2002-01-25 Roger Sayle <roger@eyesopen.com>
708 * function.h (struct function): New field calls_constant_p.
709 (current_function_calls_constant_p): New macro for above.
710 * function.c (prepare_function_start): Initialize calls_eh_return
711 and calls_constant_p.
712 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
713 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
714 when the current_function_calls_constant_p.
715 * integrate.c (expand_inline_function): Set calls_constant_p if
716 the function being inlined has calls_constant_p set.
718 2002-01-25 Roger Sayle <roger@eyesopen.com>
720 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
721 optimizing, even if flag_gcse is true.
722 * toplev.c (rest_of_compilation): purge_builtin_constant_p
723 only needs to be called when "optimize > 0 && flag_gcse".
725 2003-01-25 Roger Sayle <roger@eyesopen.com>
727 * stmt.c (emit_case_bit_tests): New routine to implement suitable
728 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
729 (case_bit_test_cmp): New comparison function for "qsort" to order
730 case_bit_tests by decreasing number of destination nodes.
731 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
732 (expand_end_case_type): Use emit_case_bit_tests to implement
733 suitable switch statments.
734 (CASE_USE_BIT_TESTS): New target macro to disable the above.
735 * Makefile.in (stmt.o): Add dependency on optab.h.
736 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
738 2003-01-23 Andreas Schwab <schwab@suse.de>
740 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
741 __do_global_ctors_aux hidden global and don't put it in
743 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
744 instead so that it comes first.
746 Sat Jan 25 16:11:22 CET 2003 Jan Hubicka <jh@suse.cz>
748 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
749 subreg is read/modify.
751 Sat Jan 25 15:55:08 CET 2003 Jan Hubicka <jh@suse.cz>
753 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
754 do libcall for large blocks.
755 * i386.md (comi patterns): Set type to ssecomi.
756 (sse2_unpck?pd): Fix mode of vec_select.
758 * cse.c: Include except.h
759 (cse_set_around_loop): Do not create new basic blocks.
760 * Makefile.in (cse.o): Add dependnecy on except.h
762 Sat Jan 25 12:05:17 CET 2003 Jan Hubicka <jh@suse.cz>
764 * builtins.c (fold_trunc_transparent_mathfn): New function.
765 (fold_builtin): Use it.
766 * convert.c (convert_to_real): Re-enable code to convert
767 math functions; add support for floor familly functions.
769 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
771 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
772 dependencies on coretypes.h and $(TM_H).
774 Sat Jan 25 11:10:03 CET 2003 Jan Hubicka <jh@suse.cz>
776 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
778 2002-01-24 Stuart Hastings <stuart@apple.com>
780 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
782 2003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
784 * config/c4x/c4x.md (UNSPEC_BU): New constants.
785 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
786 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
787 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
788 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
789 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
790 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
791 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
793 Fri Jan 24 23:44:12 CET 2003 Jan Hubicka <jh@suse.cz>
795 * emit-rtl.c (reg_attrs_htab): New static variable.
796 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
798 (reg_rtx): Do not maintain regno_decl.
799 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
800 set_mem_attrs_from_reg): New global function.
801 (init_emit): Do not initialize regno_decl.
802 (init_emit_once): initialize reg_attrs_htab.
803 * final.c (alter_subreg): Do not replace REG by SUBREG.
804 (gen_mem_expr_from_op): Improve output.
805 (output_asm_operands): Likewise.
806 * function.c (assign_params): Do not set REGNO_DECL.
807 * function.h (struct function): Kill regno_decl.
809 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
810 * print_rtl.c (print_rtx): Output REG information.
811 * regclass.c (reg_scan_mark_refs): Update attrs.
812 * reload1.c (alter_reg): Likewise.
813 * simplify_rtx.c (simplify_subreg): Likewise.
814 * stmt.c (expand_decl): Likewise.
815 * rtl.def (REG): Add new field.
816 * rtl.h (struct reg_attrs): New.
817 (rtunion_def): At rtreg.
818 (X0MEMATTR): Add checking.
819 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
820 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
822 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
824 2003-01-24 Bob Wilson <bob.wilson@acm.org>
826 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
827 (xtensa_emit_call, print_operand): Fix printf format strings
828 to avoid compile warnings.
829 (xtensa_function_prologue, xtensa_function_epilogue): Change type
830 of "size" argument to HOST_WIDE_INT to fix compile warnings.
831 * config/xtensa/xtensa-protos.h
832 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
834 Fri Jan 24 23:03:32 CET 2003 Jan Hubicka <jh@suse.cz>
836 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
837 (implicit_built_in_decls): New global array.
838 (mathfn_built_in): New global function.
839 (fold_trunc_transparent_mathfn): New static function
840 (expand_builtin_strstr, expand_bultin_strchr,
841 expand_builtin_strpbrk, expand_builtin_strcpy,
842 expand_builtin_strncpy, expand_bultin_strcmp,
843 expand_bultin_strncat, expand_builtin_fputs): Use
844 implicint_built_in_decls.
845 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
846 * builtins.def: Fix comments.
847 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
848 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
849 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
850 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
851 (DEF_C99_C90RES_BULTIN): New.
852 (*f, *l builtins): Update.
853 * c-common.c (DEF_BUILTIN): Initialize implicit array.
854 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
855 * convert.c (strip_float_extensions): New global function.
856 * tree.h (DEF_BUILTIN): Accept 10 arguments.
857 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
859 * java/builtins.c (define_builtin): Handle implicit.
860 (DEF_BUILTIN): Update.
861 * tm.texi (TARGET_C99_FUNCTIONS): Document.
862 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
863 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
866 2003-01-24 Bob Wilson <bob.wilson@acm.org>
868 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
869 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
870 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
871 * config/xtensa/crti.asm: New file.
872 * config/xtensa/crtn.asm: New file.
873 * config/xtensa/t-elf: New file.
874 * config/xtensa/t-linux: New file.
875 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
876 Move various CFLAGS settings to new t-elf file.
878 2003-01-24 Richard Henderson <rth@redhat.com>
881 * tree-inline.c (find_builtin_longjmp_call_1): New.
882 (find_builtin_longjmp_call): New.
883 (inlinable_function_p): Use it.
885 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
887 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
888 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
889 * config/i386/i386.c (function_arg_pass_by_reference): New.
890 (ix86_va_arg): Support arguments passed by reference.
892 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
894 * cfgloopanal.c: New file.
895 * cfgloopmanip.c: New file.
896 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
897 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
898 cfglayout.o): Add dependency on cfgloop.h.
899 (cfgloop.o): Add flags.h dependency.
900 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
901 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
902 (struct loop, struct loops, flow_loops_find, flow_loops_update,
903 flow_loops_free, flow_loops_dump, flow_loop_dump,
904 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
905 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
906 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
907 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
908 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
909 find_common_loop, verify_loop_structure): Declarations moved to ...
910 * cfgloop.h: New file.
911 * bb-reorder.c (reorder_basic_blocks): Modified.
912 * cfglayout.c: Include cfgloop.h.
913 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
914 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
915 (break_superblocks): New static function.
916 (cfg_layout_finalize): Use it.
917 (cfg_layout_split_block): New function.
918 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
920 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
922 (cfg_layout_split_block): Declare.
923 * cfgloop.c: Include cfgloop.h and flags.h.
924 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
925 get_loop_body): Avoid signed versus unsigned comparison warnings.
926 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
927 loop_latch_edge): Modified.
928 (verify_loop_structure): Modified to use flags stored in loop structure;
929 check irreducible loops.
930 (cancel_loop, cancel_loop_tree): New functions.
931 (estimate_probability): Use loop analysis code for predictions.
932 (estimate_loops_at_level): Avoid signed versus unsigned comparison
934 * doloop.c: Include cfgloop.h.
935 * loop.c: Include cfgloop.h.
936 * predict.c: Include cfgloop.h.
937 * toplev.c: Include cfgloop.h.
938 * unroll.c: Include cfgloop.h.
939 * tracer.c (tracer): Modified.
941 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
943 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
945 2003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
947 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
948 * configure: Regenerate.
950 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
951 (tls_symbolic_reference_mentioned_p): Add prototype.
952 (s390_tls_get_offset): Add prototype.
953 (emit_pic_move): Remove prototype, replace by ...
954 (emit_symbolic_move): .. this new prototype.
956 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
957 (tls_model_chars): New global variable.
958 (s390_encode_section_info): Encode TLS model.
959 Use targetm.binds_local_p to check for local symbols.
960 (s390_strip_name_encoding): New function.
961 (TARGET_STRIP_NAME_ENCODING): Define.
963 (get_thread_pointer): New function.
964 (legitimize_tls_address): New function.
965 (legitimize_address): Call it.
966 (emit_pic_move): Remove, replace by ...
967 (emit_symbolic_move): ... this new function.
969 (larl_operand): Handle TLS operands.
970 (legitimate_constant_p): Likewise.
971 (s390_decompose_address): Likewise.
972 (s390_cannot_force_const_mem): New function.
973 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
975 (s390_output_symbolic_const): Handle TLS unspecs.
976 (print_operand): New code 'J'.
977 (machine_function): Add struct member 'some_ld_name'.
978 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
980 (enum s390_builtin): New type.
981 (code_for_builtin_64, code_for_builtin_31): New global variables.
982 (s390_init_builtins, s390_expand_builtin): New functions.
983 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
985 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
986 (ASM_OUTPUT_LABELREF): Define.
987 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
989 * config/s390/s390.md: Define TLS UNSPEC constants.
990 ("movdi", "movsi"): Handle TLS operands.
991 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
992 ("*tls_load_64", "*tls_load_31"): New insns.
993 ("call_value_tls", "call_value_tls_exp"): New expanders.
994 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
995 "bas_tls_64", "bas_tls_31"): New insns.
997 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
999 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
1000 spe ABI is configured, if requested.
1002 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1004 * doc/passes.texi: Fix typo.
1006 2003-01-24 Andreas Schwab <schwab@suse.de>
1008 * stor-layout.c (excess_unit_span): Only define if used.
1010 2003-01-24 Jerry Quinn <jlquinn@optonline.net>
1012 * gcc/doc/invoke.texi (Optimization Options): List -O levels
1013 for each optimization flag.
1015 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
1017 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
1019 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1021 * doc/bugreport.texi: Use @command instead of @code for commands.
1022 * doc/collect2.texi: Likewise.
1023 * doc/headerdirs.texi: Likewise.
1024 * doc/invoke.texi: Likewise.
1025 * doc/standards.texi: Likewise.
1026 * doc/tm.texi: Likewise.
1027 * doc/trouble.texi: Likewise.
1029 2003-01-24 Nick Clifton <nickc@redhat.com>
1031 * config/arm/arm.c (use_return_insn): Do not use a single return
1032 instruction for interrupt handelrs which have to create a stack
1034 (arm_expand_prologue): Do not pre-bias the return address of
1035 interrupt handlers which create a stack frame.
1037 2003-01-24 Nick Clifton <nickc@redhat.com>
1041 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
1043 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
1044 med_cbranches. Fix logic in short_cbranches.
1046 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
1048 * config/sh/sh.md (delay for cbranch): Don't annul delay
1050 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
1051 cbranch with unfilled delay slot on SH2e.
1052 (output_branch): Fill with a nop the delay slot of a
1053 branch that required a delay slot but didn't get one.
1055 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1057 * doc/invoke.texi (SH options): Document -m2e.
1058 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
1059 * config/sh/lib1funcs.asm: Likewise.
1060 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
1061 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
1063 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
1065 (SH3E_BIT): Renamed to...
1066 (SH_E_BIT): ... this. Replace all uses.
1067 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
1068 Replace all uses of TARGET_SH3E with TARGET_SH2E.
1069 (TARGET_SWITCHES): Added 2e.
1070 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
1071 (processor_type): Added PROCESSOR_SH2E.
1072 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
1073 TARGET_SH2E, except in sqrtsf2_i.
1074 (attribute cpu): Added sh2e.
1075 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
1076 (MULTILIB_MATCHES): Use m2e multilib for m3e.
1077 * config.gcc: Add sh2e target support.
1079 2003-01-24 Phil Edwards <pme@gcc.gnu.org>
1081 Rename -W to -Wextra.
1082 * c-decl.c: Update comments.
1083 * c-typeck.c: Likewise.
1084 * flags.h: Likewise.
1085 * function.c: Likewise.
1087 * toplev.c: Update comments.
1088 (W_options): Add 'extra'.
1089 (display_help): Remove '-W'.
1090 (decode_W_option): Special warn_uninitialized treatment in the case
1092 * doc/invoke.texi: Update with new entries.
1094 2003-01-23 Richard Henderson <rth@redhat.com>
1096 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
1097 in no-else-block case. Add commentary.
1099 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1101 * configure.in: Revert last change.
1103 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1105 * configure.in: Don't include ansidecl.h in tconfig.h.
1106 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
1107 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
1110 * configure: Regenerate.
1112 2003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1115 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
1116 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
1119 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1121 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
1123 2003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
1125 * genattrtab.c (write_attr_get): Mark 'insn' paramter
1126 as ATTRIBUTE_UNUSED.
1128 2003-01-23 Richard Earnshaw <rearnsha@arm.com>
1130 * arm.c (thumb_base_register_rtx_p): New function.
1131 (thumb_index_register_rtx_p): New function.
1132 (thumb_legitimate_address_p): New function.
1133 (thumb_legitimate_offset_p): New function.
1134 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
1135 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
1137 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
1138 (THUMB_LEGITIMATE_OFFSET): Delte.
1139 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
1140 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
1141 (thumb_legitimate_offset_p): Likewise.
1143 2003-01-23 Andreas Schwab <schwab@suse.de>
1145 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
1147 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1149 * fixinc/Makefile.in (FL_LIST): Revert last change.
1151 2003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1154 * invoke.texi (ftest-coverage): Fix broken cross-reference.
1155 Change @code to @command for gcov command.
1157 * gcc.texi: Adjust title of gcov section.
1159 * gcov.texi: Likewise.
1161 2003-01-22 Roger Sayle <roger@eyesopen.com>
1163 PR optimization/8423
1164 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
1165 its argument is constant, or 0 if !flag_gcse.
1166 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
1167 if it's argument is constant.
1168 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
1169 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
1170 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
1171 * builtins.c (purge_builtin_constant_p): New function to force
1172 instantiation of any remaining CONSTANT_P_RTX nodes.
1173 * rtl.h (purge_builtin_constant_p): Prototype here.
1174 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
1175 pass after GCSE and before loop.
1176 (flag_gcse): No longer static.
1177 * flags.h (flag_gcse): Prototype here.
1179 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
1181 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
1182 introduced by last change.
1184 2003-01-22 Andreas Schwab <schwab@suse.de>
1186 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
1188 2003-01-22 Kazu Hirata <kazu@cs.umass.edu>
1190 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
1191 request a scratch reg on H8S when the shift count is 8.
1193 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
1195 * config/s390/s390-protos.h (preferred_la_operand_p):
1196 Remove second parameter.
1197 * config/s390/s390.c (preferred_la_operand_p): Likewise.
1198 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
1199 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
1200 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
1201 Add peepholes to transform ADD to LOAD ADDRESS.
1203 2003-01-22 Richard Earnshaw <rearnsha@arm.com>
1205 * arm.c (arm_address_register_rtx_p): New function.
1206 (arm_legitimate_address_p): New function.
1207 (arm_legitimate_index_p): New function.
1208 (legitimize_pic_address): Use arm_legitimate_index_p.
1209 * arm-protos.h (arm_legtimate_address_p): Add prototype.
1210 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
1211 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
1213 2003-01-22 Hartmut Penner <hpenner@de.ibm.com>
1215 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
1216 * config/s390/2064.md (define_bypass): Correct 'Load' and
1217 'Load-address' bypass values.
1219 2003-01-22 Andreas Schwab <schwab@suse.de>
1221 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
1223 2003-01-21 Zack Weinberg <zack@codesourcery.com>
1225 * genautomata.c (output_internal_insn_latency_func,
1226 output_print_reservation_func): Short circuit when there is no
1227 automaton to generate code for.
1229 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1231 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
1232 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
1234 2003-01-21 Geoffrey Keating <geoffk@apple.com>
1236 * config/rs6000/rs6000.md: Remove warning.
1237 (builtin_setjmp_receiver): Likewise.
1238 * config/darwin.c (update_stubs): Slightly improve terrible hack
1239 with identifiers. Add comment pointing out problems with it.
1240 (update_non_lazy_ptrs): Likewise.
1242 2003-01-21 Richard Henderson <rth@redhat.com>
1244 * dwarf2out.c (lookup_filename): Fix printf format warning.
1245 * system.h (fread_unlocked, fwrite_unlocked): Undef.
1247 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
1248 (fixincl.o-warn, gnu-regex.o-warn): New.
1249 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
1250 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
1251 * fixinc/fixincl.c (process): Fix printf format warning.
1253 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
1255 * dwarf2out (output_file_names): Don't crash if called
1256 with empty file_table.
1258 2003-01-21 Zack Weinberg <zack@codesourcery.com>
1260 * genautomata.c (output_internal_insn_latency_func): Add
1261 missing break statement to generated code.
1263 2003-01-21 Roger Sayle <roger@eyesopen.com>
1265 * stmt.c (same_case_target_p): New function to determine whether
1266 two case labels branch to the same target. Split out from...
1267 (group_case_nodes): ... here. Use same_case_target_p instead.
1268 (strip_default_case_nodes): Remove explicit case nodes
1269 that branch to the default destination.
1270 (expand_end_case_type): Call strip_default_case_nodes after
1271 group_case_nodes, to simplify the case-list before we count it.
1272 Only generate table_label RTX when actually needed. Try to share
1273 thiscase->exit_label and thiscase->data.case_stmt.default_label
1274 when a switch has no explicit default case. Simplify test for
1277 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
1279 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
1281 (*negsf2_h8300hs): Likewise.
1282 (*addsi3_lshiftrt_16_zexthi): Likewise.
1283 (*iorhi3_lshiftrt_8): Likewise.
1285 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
1287 * dwarf2out.c (fde_table_in_use): Mark GTY.
1288 (dwarf2out_cfi_label_num): New variable, marked GTY.
1289 (dwarf2out_cfi_label): Use it instead of static label_num.
1290 * emit-rtl.c (label_num): Mark GTY.
1292 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
1294 * config/h8300/h8300.c (output_plussi): Support H8/300.
1295 (compute_plussi_length): Likewise.
1296 (compute_plussi_cc): Likewise.
1297 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
1298 output assembly instructions.
1300 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1302 * calls.c (fix_unsafe_tree): Prototype.
1304 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
1305 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
1306 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
1307 c-parse.o-warn): Add -Wno-error.
1308 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
1310 * configure.in (--enable-werror): Add new flag.
1311 * doc/install.texi (--enable-werror): Document.
1312 * configure: Regenerate.
1314 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
1316 2003-01-21 Andreas Schwab <schwab@suse.de>
1318 * genautomata.c (output_internal_insn_latency_func): Fix missing
1319 close paren in output.
1321 2003-01-21 Zack Weinberg <zack@codesourcery.com>
1323 * genautomata.c: Space savings in generated code:
1324 (output_dfa_insn_code_func): Split out the table-enlargement
1325 path to an out-of-line static function, dfa_insn_code_enlarge.
1326 (output_internal_insn_latency_func): Use a lookup table for the
1328 (output_print_reservation_func): Use a lookup table for the
1331 2003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
1334 * calls.c (fix_unsafe_tree): Split out from ...
1335 (expand_call): ... here. Use it on the function address too.
1337 2003-01-20 Richard Henderson <rth@redhat.com>
1339 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
1341 2003-01-20 Richard Henderson <rth@redhat.com>
1344 * stmt.c (expand_asm_operands): Validize memory operands.
1346 2003-01-20 Richard Henderson <rth@redhat.com>
1349 * ifcvt.c (noce_process_if_block): Correct arguments to
1350 modified_between_p for no-else-block case.
1352 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1354 * config/h8300/h8300.c (const_costs): Remove a warning.
1355 (output_plussi): Likewise.
1356 (compute_plussi_length): Likewise.
1357 (compute_plussi_cc): Likewise.
1359 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1361 * config/h8300/h8300.md (addsi_h8300): Remove the last
1364 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1366 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
1368 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1370 * system.h (__NO_STRING_INLINES): Define.
1372 2003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1374 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
1375 is not a scalar int mode.
1377 2003-01-20 Roger Sayle <roger@eyesopen.com>
1379 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
1380 insn's notes following a substitution inside a libcall.
1382 2003-01-20 Zack Weinberg <zack@codesourcery.com>
1384 * configure.in: Check for system-provided 'uchar' type.
1385 * configure, config.in: Regenerate.
1386 * cpphash.h: Only typedef 'uchar' if the system doesn't.
1388 2003-01-20 Richard Henderson <rth@redhat.com>
1390 * expr.h (MUST_PASS_IN_STACK): Move implementation...
1391 * calls.c (default_must_pass_in_stack): ... here.
1393 2003-01-20 Vladimir Makarov <vmakarov@redhat.com>
1395 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
1397 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
1399 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
1400 Wrap up definition of `insn_alts'.
1402 * genattrtab.c (main): Wrap up `insn_alts'.
1404 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1406 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
1408 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
1410 * config.in, configure: Regenerate.
1412 2003-01-20 Nick Clifton <nickc@redhat.com>
1414 * config/arm/arm.md (sibcall_epilogue): Add an
1415 UNSPEC_PROLOGUE_USE to prevent the link register from being
1418 Mon Jan 20 14:36:23 CET 2003 Jan Hubicka <jh@suse.cz>
1420 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
1422 2003-01-20 Andreas Schwab <schwab@suse.de>
1424 * system.h: Don't declare strsignal if the decl test hasn't been
1427 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1429 * config/h8300/h8300.c (notice_update_cc): Don't assume that
1430 recog_data.operands[0] is always associated with cc0.
1432 2003-01-19 David Edelsohn <edelsohn@gnu.org>
1434 * collect2.c (ldgetname): Expand declaration to prototype.
1435 * read-rtl.c (atoll): Add prototype.
1436 * system.h (strsignal): Also declare if no declaration found.
1438 2003-01-19 Alexandre Oliva <aoliva@redhat.com>
1440 * config.gcc (mips64*-*-linux*): Added.
1441 * config/mips/linux64.h, config/mips/t-linux64: New file.
1442 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
1443 * config/mips/mips.c (override_options): Use it.
1444 * config/mips/mips.h (TARGET_SWITCHES): Added...
1445 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
1446 * Makefile.in (SPECS): New.
1447 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
1448 * gcc.c (process_command): Move self-spec processing past spec
1450 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
1451 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
1454 * doc/invoke.texi (-mabi-fake-default): Document.
1456 2003-01-19 Stephane Carrez <stcarrez@nerim.fr>
1458 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
1459 z_reg, z_reg_qi): Declare static and GTY().
1461 (create_regs_rtx): Don't create da_reg.
1462 ("gt-m68hc11.h"): Include for GTY roots.
1463 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
1465 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
1466 (m68hc11_soft_tmp_reg): Likewise.
1467 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
1469 2003-01-18 Kazu Hirata <kazu@cs.umass.edu>
1471 * basic-block.h: Fix comment formatting.
1472 * calls.c: Likewise.
1473 * combine.c: Likewise.
1474 * convert.c: Likewise.
1476 * haifa-sched.c: Likewise.
1477 * libgcc2.c: Likewise.
1479 * profile.c: Likewise.
1480 * system.h: Likewise.
1482 2003-01-18 Roger Sayle <roger@eyesopen.com>
1484 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
1486 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1488 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
1490 2003-01-17 Dale Johannesen <dalej@apple.com>
1492 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
1493 (*floatunssidf2_internal): Ditto.
1495 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
1497 * alias.c: Fix comment typos.
1498 * basic-block.h: Likewise.
1499 * c-common.c: Likewise.
1500 * c-common.h: Likewise.
1501 * c-decl.c: Likewise.
1502 * c-opts.c: Likewise.
1503 * c-pragma.c: Likewise.
1504 * c-pretty-print.h: Likewise.
1506 * cfganal.c: Likewise.
1507 * cfgbuild.c: Likewise.
1508 * cfgcleanup.c: Likewise.
1509 * cfglayout.c: Likewise.
1510 * cfgrtl.c: Likewise.
1511 * convert.c: Likewise.
1512 * cpphash.h: Likewise.
1513 * cpplex.c: Likewise.
1514 * cpplib.h: Likewise.
1516 * diagnostic.c: Likewise.
1517 * diagnostic.h: Likewise.
1518 * dwarf2.h: Likewise.
1520 2003-01-17 Stan Shebs <shebs@apple.com>
1522 * config/darwin-protos.h: Forward-declare struct cpp_reader.
1524 2003-01-17 Douglas B Rupp <rupp@gnat.com>
1526 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
1527 mistake in last checkin.
1529 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
1531 * et-forest.c: Fix comment typos.
1532 * et-forest.h: Likewise.
1533 * except.c: Likewise.
1535 * flags.h: Likewise.
1539 * genattrtab.c: Likewise.
1540 * genautomata.c: Likewise.
1541 * gengtype.c: Likewise.
1542 * genrecog.c: Likewise.
1543 * global.c: Likewise.
1544 * gthr-rtems.h: Likewise.
1546 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1548 * i386.c (x86_function_profiler): Fix format specifier.
1550 2003-01-17 Richard Henderson <rth@redhat.com>
1552 * gengtype.c (walk_type): Allow paramN_is.
1554 2003-01-17 Nick Clifton <nickc@redhat.com>
1556 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
1558 2003-01-16 Richard Henderson <rth@redhat.com>
1560 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
1562 2003-01-16 Richard Henderson <rth@redhat.com>
1564 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
1565 (alpha_next_sequence_number): Likewise.
1566 (alpha_this_literal_sequence_number): Likewise.
1567 (alpha_this_gpdisp_sequence_number): Likewise.
1568 (struct alpha_funcs, alpha_funcs_num): Likewise.
1569 (struct alpha_links): Fix branch merge error.
1570 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
1572 2003-01-17 Alexandre Oliva <aoliva@redhat.com>
1574 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
1577 2003-01-16 Kazu Hirata <kazu@cs.umass.edu>
1579 * ifcvt.c: Fix comment typos.
1581 * libgcc2.c: Likewise.
1582 * local-alloc.c: Likewise.
1584 * predict.c: Likewise.
1585 * ra-build.c: Likewise.
1587 * ra-colorize.c: Likewise.
1589 * ra-rewrite.c: Likewise.
1590 * regmove.c: Likewise.
1591 * reload.h: Likewise.
1592 * rtlanal.c: Likewise.
1593 * toplev.c: Likewise.
1595 * unwind-dw2-fde-glibc.c: Likewise.
1596 * vmsdbgout.c: Likewise.
1598 2003-01-16 Richard Henderson <rth@redhat.com>
1600 * dwarf2out.c (struct file_table): Remove.
1601 (FILE_TABLE_INCREMENT): Remove.
1602 (file_table): Make a varray; mark for GC. Update all users.
1603 (file_table_last_lookup_index): Extract from struct file_table.
1604 (output_file_names): Fix unsigned compare warnings.
1605 (add_name_attribute): Remove inline marker.
1606 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
1607 (lookup_filename): Don't manage size of file_table.
1608 (init_file_table): Allocate file_table with GC.
1609 (dwarf2out_init): Don't record main_input_filename here.
1610 (dwarf2out_finish): Do it here instead.
1612 2003-01-16 Bruce Korb <bkorb@gnu.org>
1614 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
1616 2003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
1618 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
1619 instead of rotldi3_mextr.
1621 2003-01-16 Vladimir Makarov <vmakarov@redhat.com>
1623 * haifa-sched.c (move_insn): Restore moving all schedule group.
1624 (set_priorities): Restore taking SCHED_GROUP_P into account.
1626 * sched-deps.c (add_dependence): Restore processing the last group
1628 (remove_dependence, group_leader): Restore the functions.
1629 (set_sched_group_p): Restore adding dependencies from previous insn
1631 (compute_forward_dependences): Restore usage of group_leader.
1633 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
1636 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
1638 (can_schedule_ready_p): Ditto.
1639 (add_branch_dependences): Restore skipping over the group insns.
1641 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
1643 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
1644 68HC12 pre/post inc/dec side effects.
1646 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
1648 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
1650 Thu Jan 16 21:50:25 2003 J"orn Rennecke <amylaar@onetel.net.uk>
1652 * sh.md (mshflo_w_x): Fix description of operation.
1654 2003-01-16 Zack Weinberg <zack@codesourcery.com>
1656 * config/rs6000/rs6000.h: Mention Altivec registers in
1657 commentary. Fix typo.
1659 2003-01-16 David Edelsohn <edelsohn@gnu.org>
1661 * config/rs6000/rs6000.md (movti_string): Remove clobber.
1662 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
1663 generate PARALLEL with clobber for TARGET_POWER.
1665 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1667 * ra-colorize.c (colorize_one_web): Initialize variable.
1668 * regmove.c (fixup_match_1): Likewise.
1669 * reload1.c (reload_as_needed): Likewise.
1670 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
1672 2003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1674 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
1676 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1678 * dbxout.c (lastfile, cwd): Fix `unused' warning.
1679 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
1680 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
1681 is_main_source, file_table, decl_die_table_in_use,
1682 abbrev_die_table_in_use, line_info_table_in_use,
1683 separate_line_info_table_in_use, pubname_table_in_use,
1684 arange_table_in_use, ranges_table_in_use,
1685 current_function_has_inlines): Likewise.
1686 * flow.c (life_analysis): Likewise.
1687 * genemit.c (gen_insn): Likewise.
1688 * protoize.c (cplus_suffix): Likewise.
1690 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
1691 * arm.h (ROUND_UP_WORD): Likewise.
1693 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
1695 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
1696 init_emit_once): Likewise.
1697 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
1699 * function.c (assign_stack_temp_for_type): Likewise.
1700 * loop.c (loop_invariant_p): Likewise.
1701 * recog.c (push_operand): Likewise.
1702 * regclass.c (init_reg_sets_1): Likewise.
1703 * reload.c (update_auto_inc_notes): Likewise.
1704 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
1705 * stmt.c (expand_asm_operands): Likewise.
1706 * stor-layout.c (start_record_layout): Likewise.
1708 2003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
1710 * config/c4x/c4x.md (epilogue): Correct last patch.
1712 2003-01-15 Richard Henderson <rth@redhat.com>
1714 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
1715 also check that GP is being used.
1716 (alpha_find_lo_sum_using_gp): New.
1717 (alpha_does_function_need_gp): Use get_attr_usegp.
1718 * config/alpha/alpha-protos.h: Update.
1719 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
1722 2003-01-15 Roger Sayle <roger@eyesopen.com>
1724 * gcse.c (one_cprop_pass): Change function arguments to take both
1725 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
1726 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
1727 (bypass_jumps): New function to perform separate jump bypassing pass.
1728 * rtl.h (bypass_jumps): Add function prototype.
1729 * timevar.def (TV_BYPASS): New timing variable.
1730 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
1731 (dump_file): New entry for the bypass RTL dump file.
1732 (rest_of_compilation): Insert new jump bypassing optimization
1734 * doc/passes.texi: Document new pass.
1736 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
1738 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
1739 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
1740 * pa.h (TARGET_SOM_SDEF): Define.
1741 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
1743 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
1745 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
1746 allocate 4-bytes of locals on 68HC11.
1747 (expand_epilogue): Likewise.
1748 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
1750 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
1752 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
1753 and -mshort-double to the assembler to specify the ABI.
1754 (LINK_SPEC): Likewise.
1755 (CPP_SPEC): Pass HCS12 specific define.
1756 (MASK_M68S12): New define.
1757 (TARGET_M68S12): Likewise.
1758 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
1759 (TARGET_VERSION): Update.
1760 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
1761 (LINK_SPEC): Update.
1763 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
1764 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
1766 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
1768 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
1771 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
1773 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
1774 flag before setting it.
1776 2003-01-15 Roger Sayle <roger@eyesopen.com>
1778 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
1779 when loop condition is known true, i.e. "while (1) { ... }".
1780 (genrtl_for_stmt): Similarly for "for" statements.
1782 2003-01-15 Roger Sayle <roger@eyesopen.com>
1784 * real.c (real_sqrt): Return a bool result indicating whether
1785 a floating point exception or trap should be raised.
1786 * real.h (real_sqrt): Update function prototype.
1787 * builtins.c (fold_builtin): Only fold non-trapping square
1788 roots unless we're ignoring errno and trapping math.
1790 2003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
1792 * expr.h (emit_conditional_add): Add PARAMS to declaration.
1793 * gengtype-lex.l (malloc, realloc): Move defines after include of
1794 system.h. Remove duplicate include of system.h.
1796 2003-01-15 Roger Sayle <roger@eyesopen.com>
1799 * optabs.c (expand_unop): When manipulating the FP sign bit
1800 using integer operations, account for targets with different
1801 integer and FP word orders.
1802 (expand_abs): Likewise.
1804 2003-01-15 David Edelsohn <edelsohn@gnu.org>
1806 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
1807 file extension in section name.
1809 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
1811 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
1814 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
1816 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
1817 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
1818 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
1819 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
1821 Wed Jan 15 12:23:21 CET 2003 Jan Hubicka <jh@suse.cz>
1824 * global.c (struct allocno): Add no_stack_reg.
1825 (global_conflicts): Set no_stack_reg.
1828 * convert.c (convert_to_real): Fold - and abs only when profitable.
1829 * fold-const.c (fold): Fold truncates in - and abs.
1831 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
1833 Segher Boessenkool <segher@koffie.nl>
1835 * predict.c (real_inv_br_prob_base): New variable.
1836 (propagate_freq): Use multiply by reciprocal instead of
1837 division. Don't divide by 1.0 at all.
1838 (estimate_bb_frequencies): Similar.
1840 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
1842 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
1843 * configure: Rebuilt.
1845 2003-01-15 Hartmut Penner <hpenner@de.ibm.com>
1847 * config/s390/s390.c (s390_safe_attr_type): New function.
1848 (s390_use_dfa_pipeline_interface): New function, return true for z900.
1849 (s390_issue_rate): New function.
1850 (s390_agen_dep_p): New function.
1851 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
1852 (s390_adjust_cost): Return 'cost' if new DFA is used.
1853 (s390_adjust_priority): Delete function.
1854 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
1855 * config/s390/s390.md (atype attribute): Attribute 'atype' default
1856 determined by 'op_type'.
1857 (type attribute): Added more type attributes.
1858 * config/s390/2064.md: New DFA description for z900 pipeline.
1860 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
1862 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
1863 forced to memory. Fixes PR bootstrap/9036.
1865 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
1866 to set $gp before the call.
1868 2003-01-14 Richard Henderson <rth@redhat.com>
1870 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
1871 for force_const_mem.
1873 2003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1875 * genattr.c (main): Rearrange output to avoid prototype warning.
1876 * genautomata.c (transform_3): Fix ambiguous-else warning.
1877 * local-alloc.c (requires_inout): Add parentheses around
1878 assignment used as truth-value.
1879 * timevar.c: Move system includes above local includes. Include
1881 * Makefile.in (timevar.o): Depend on toplev.h.
1883 2003-01-14 Denis Chertykov <denisc@overta.ru>
1885 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
1886 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
1888 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
1890 (TARGET_ATTRIBUTE_TABLE): New macro.
1891 (valid_machine_type_attribute): Remove.
1892 (valid_machine_decl_attribute): Remove.
1893 (ip2k_handle_progmem_attribute): New function.
1894 (ip2k_handle_fndecl_attribute): New function.
1896 2003-01-10 Andrew Haley <aph@redhat.com>
1898 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
1899 registers to be in correct order. Add rip.
1901 2003-01-14 Kazu Hirata <kazu@cs.umass.edu>
1903 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
1904 (*iorsi3_and_lshiftrt_9_sb): Likewise.
1906 Tue Jan 14 00:45:33 CET 2003 Jan Hubicka <jh@suse.cz>
1908 * convert.c (strip_float_extensions): Look for narrowest type handling
1911 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
1913 * convert.c (strip_float_extensions): Make global.
1914 * tree.h (strip_float_extensions): Declare.
1916 2003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
1918 * timevar.def: define TV_NAME_LOOKUP.
1919 * timevar.c (timevar_pop): Be verbose when aborting.
1921 2003-01-13 Andreas Schwab <schwab@suse.de>
1923 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
1924 $(parsedir), just move the temporary file at the end.
1925 ($(parsedir)/gengtype-yacc.c): Likewise.
1927 2003-01-13 Alexandre Oliva <aoliva@redhat.com>
1929 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
1930 ${ac_tool_prefix} to ADAC or CC. Protect them from word
1932 * configure: Rebuilt.
1934 2003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1936 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
1937 internal_mcount): Don't use PARAMS.
1938 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
1940 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
1942 2003-01-13 Andreas Schwab <schwab@suse.de>
1944 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
1947 2003-01-13 Kazu Hirata <kazu@cs.umass.edu>
1949 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
1950 (*iorsi3_and_lshiftrt_n_sb): Likewise.
1952 2003-01-12 Mark Mitchell <mark@codesourcery.com>
1955 * c-lex.c (c_lex): Set the token value to error_mark_node for
1956 invalid numeric constants.
1958 2003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1960 * c-pch.c (asm_file_startpos): Change to `long'.
1961 (pch_init): Use ftell, not ftello.
1962 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
1963 Use `long' instead of `off_t'.
1964 (c_common_read_pch): Likewise.
1965 * ggc-common.c (gt_pch_save): Use long/ftell instead of
1968 2003-01-12 Alan Modra <amodra@bigpond.net.au>
1970 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
1972 2003-01-11 Richard Earnshaw (rearnsha@arm.com)
1974 * arm-protos.h (struct cpp_reader): Add declaration.
1976 Sat Jan 11 11:02:58 CET 2003 Jan Hubicka <jh@suse.cz>
1979 * i386.c (output_fp_compare): Fix typo.
1981 2003-01-10 David Edelsohn <edelsohn@gnu.org>
1983 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
1985 2003-01-10 Geoffrey Keating <geoffk@apple.com>
1987 * Makefile.in (parsedir): New variable.
1988 (docobjdir): New variable.
1989 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
1990 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
1991 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
1992 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
1993 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
1995 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
1996 objc.maintainer-clean): Use parsedir.
1998 * varasm.c (struct constant_descriptor_rtx): Remove unused
2001 * toplev.c (documented_lang_options): Document -Winvalid-pch.
2003 2003-01-10 Richard Henderson <rth@redhat.com>
2005 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
2006 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
2008 2003-01-10 Richard Henderson <rth@redhat.com>
2010 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
2011 not INTEGRAL_MODE_P when widening extensions.
2013 2003-01-10 Richard Henderson <rth@redhat.com>
2015 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
2017 2003-01-10 Geoffrey Keating <geoffk@apple.com>
2019 * ggc-page.c (ggc_collect): Avoid overflow computing
2022 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
2023 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
2025 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
2027 Fri Jan 10 22:05:35 CET 2003 Jan Hubicka <jh@suse.cz>
2029 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
2030 with weird operands.
2032 2003-01-10 Dale Johannesen <dalej@apple.com>
2034 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
2035 parameters. Call check_sibcall_argument_overlap if indicated.
2036 (check_sibcall_argument_overlap): Add mark_stored_args_map
2037 parameter. Don't mark parameter area as clobbered if not set.
2038 (expand_call): Adjust calls to above.
2040 2003-01-10 Kelley Cook <kelleycook@comcast.net>
2042 * configure.in (linker read-only and read-write section mixing):
2043 Squelch some assembler warnings.
2044 * configure: Likewise.
2046 2003-01-10 Hartmut Penner <hpenner@de.ibm.com>
2048 * doc/invoke.texi: Document -mtune, delete -mcpu
2049 option for S/390 and zSeries.
2050 * config/s390/s390.c (s390_tune_string) New variable.
2051 (s390_cpu_string) Delete variable.
2052 (override_options): Use s390_tune_string instead of
2054 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
2056 2003-01-10 Kazu Hirata <kazu@cs.umass.edu>
2058 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
2060 2003-01-10 Josef Zlomek <zlomekj@suse.cz>
2062 * jump.c (next_nonnote_insn_in_loop): New function.
2063 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
2065 (duplicate_loop_exit_test). Likewise.
2067 2003-01-09 Geoffrey Keating <geoffk@apple.com>
2069 Merge from pch-branch:
2071 2003-01-06 Geoffrey Keating <geoffk@apple.com>
2073 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
2076 2002-12-24 Geoffrey Keating <geoffk@apple.com>
2078 * cpplib.c (count_registered_pragmas): New function.
2079 (save_registered_pragmas): New function.
2080 (_cpp_save_pragma_names): New function.
2081 (restore_registered_pragmas): New function.
2082 (_cpp_restore_pragma_names): New function.
2083 * cpphash.h (_cpp_save_pragma_names): Prototype.
2084 (_cpp_restore_pragma_names): Likewise.
2085 * cpppch.c (struct save_macro_item): Split from save_macro_data.
2086 (struct save_macro_data): New field 'saved_pragmas'.
2087 (save_macros): Update for changes to struct save_macro_data.
2088 (cpp_prepare_state): Call _cpp_save_pragma_names, update
2089 for changes to struct save_macro_data.
2090 (cpp_read_state): Call _cpp_restore_pragma_names, update
2091 for changes to struct save_macro_data.
2093 * cpppch.c (cpp_read_state): Restore the hashtable references
2096 * tree.h (built_in_decls): Mark for PCH.
2098 * dbxout.c (lastfile): Don't mark for PCH.
2100 * ggc.h: Document PCH calls into memory managers.
2102 2002-12-18 Geoffrey Keating <geoffk@apple.com>
2104 * doc/invoke.texi (Precompiled Headers): Document the
2105 directory form of PCH.
2106 * cppfiles.c (validate_pch): New function.
2107 (open_file_pch): Search suitably-named directories for PCH files.
2109 2002-12-14 Geoffrey Keating <geoffk@apple.com>
2111 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
2113 (Type Information): Mention that the information is also
2114 used to implement PCH.
2115 * doc/passes.texi (Passes): Improve documentation of
2116 language-specific files.
2118 2002-12-11 Geoffrey Keating <geoffk@apple.com>
2120 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
2121 (struct walk_type_data): Add reorder_fn field.
2122 (walk_type): Process 'reorder' option.
2123 (write_types_process_field): Reorder parameters to gt_pch_note_object,
2124 call reorder_note_routine.
2125 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
2126 (ggc_wtd): Update for change to struct write_types_data.
2127 (pch_wtd): Likewise.
2128 * ggc.h (gt_pch_note_object): Reorder parameters.
2129 (gt_handle_reorder): New definition.
2130 (gt_pch_note_reorder): New prototype.
2131 * ggc-common.c (struct ptr_data): Add reorder_fn.
2132 (gt_pch_note_object): Reorder parameters.
2133 (gt_pch_note_reorder): New.
2134 (gt_pch_save): Call reorder_fn.
2135 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
2137 * dbxout.c (cwd): Don't mark for PCH.
2139 2002-12-09 Geoffrey Keating <geoffk@apple.com>
2141 * gengtype.c (finish_root_table): Fix some warnings.
2142 (write_root): Handle TYPE_STRING.
2143 * ggc.h (gt_ggc_m_S): Add prototype.
2144 * stringpool.c (gt_ggc_m_S): New function.
2146 2002-11-30 Geoffrey Keating <geoffk@apple.com>
2148 * dwarf2out.c (dw2_string_counter): New.
2149 (AT_string_form): Use it.
2150 (same_dw_val_p): Update for removal of hashtable.h hash tables.
2152 2002-11-22 Geoffrey Keating <geoffk@apple.com>
2154 * dbxout.c: Include gt-dbxout.h.
2155 (lastfile): Mark for PCH/GGC.
2157 (struct typeinfo): Likewise.
2158 (typevec): Likewise.
2159 (typevec_len): Likewise.
2160 (next_type_number): Likewise.
2161 (struct dbx_file): Likewise.
2162 (current_file): Likewise.
2163 (next_file_number): Likewise.
2164 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
2165 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
2166 (dbxout_end_source_file): Don't free struct dbx_file.
2167 (dbxout_type): Use GGC to allocate typevec.
2168 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
2169 (GTFILES): Add dbxout.c.
2170 (gt-dbxout.h): New rule.
2172 * Makefile.in (c-pch.o): Add debug.h as dependency.
2173 * c-pch.c: Include debug.h.
2174 (pch_init): Call start_source_file to keep nesting right.
2175 (c_common_read_pch): Add orig_name parameter. Call
2176 start_source_file debug hook. Call end_source_file debug hook.
2177 * c-common.h (c_common_read_pch): Update prototype.
2178 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
2180 * cppfiles.c (struct include_file): Add new field `header_name'.
2181 (find_or_create_entry): Default it to `name'.
2182 (open_file_pch): Set it to the original header file searched for.
2183 (stack_include_file): Don't stack an empty buffer, just handle
2184 PCH files immediately. Pass header_name field to read_pch callback.
2186 2002-11-19 Geoffrey Keating <geoffk@apple.com>
2188 * function.c (funcdef_no): Mark to be saved in a PCH.
2190 2002-11-15 Geoffrey Keating <geoffk@apple.com>
2192 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
2194 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
2196 2002-11-14 Geoffrey Keating <geoffk@apple.com>
2198 * optabs.h (code_to_optab): Add GTY marker.
2200 2002-11-13 Geoffrey Keating <geoffk@apple.com>
2202 * Makefile.in (GTFILES): Add cpplib.h.
2203 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
2204 * c-decl.c (build_compound_literal): Don't use var_labelno.
2205 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
2206 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
2207 * varasm.c (const_labelno): Use gengtype to mark.
2208 (var_labelno): Likewise.
2209 (in_section): Likewise.
2210 (in_named_name): Likewise.
2211 (struct in_named_entry): Likewise.
2212 (in_named_htab): Likewise.
2213 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
2214 (init_varasm_once): Use GGC to allocate in_named_htab.
2215 * config/darwin.c (current_pic_label_num): Mark for PCH.
2217 2002-11-11 Geoffrey Keating <geoffk@apple.com>
2219 * ggc-simple.c (init_ggc_pch): New stub procedure.
2220 (ggc_pch_count_object): Likewise.
2221 (ggc_pch_total_size): Likewise.
2222 (ggc_pch_this_base): Likewise.
2223 (ggc_pch_alloc_object): Likewise.
2224 (ggc_pch_prepare_write): Likewise.
2225 (ggc_pch_write_object): Likewise
2226 (ggc_pch_finish): Likewise.
2227 (ggc_pch_read): Likewise.
2229 2002-11-08 Geoffrey Keating <geoffk@apple.com>
2231 * c-pch.c (c_common_write_pch): Write the macro definitions after
2233 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
2234 definitions after the GCed data.
2235 * cpplib.c (save_macros): New.
2237 (cpp_write_pch_deps): Split out of cpp_write_pch.
2238 (cpp_write_pch_state): Split out of cpp_write_pch.
2239 (cpp_write_pch): Delete.
2240 (struct save_macro_data): Delete.
2241 (cpp_prepare_state): New.
2242 (cpp_read_state): Erase and restore initial macro definitions.
2243 * cpplib.h (struct save_macro_data): Forward-declare.
2244 (cpp_write_pch_deps): Prototype.
2245 (cpp_write_pch_state): Prototype.
2246 (cpp_write_pch): Delete prototype.
2247 (cpp_prepare_state): Prototype.
2248 (cpp_read_state): Add fourth argument.
2250 2002-11-04 Geoffrey Keating <geoffk@apple.com>
2252 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
2253 (write_array): Remove warning.
2255 * gengtype.c (contains_scalar_p): New.
2256 (finish_root_table): Add the table to all languages, even if it's
2258 (write_roots): Output gt_pch_scalar_rtab.
2259 * ggc-common.c (gt_pch_save): Write out scalars.
2260 (gt_pch_restore): Read scalars back.
2262 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
2263 (struct page_entry): Delete pch_page field.
2264 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
2265 (clear_marks): Likewise.
2266 (sweep_pages): Likewise.
2267 (poison_pages): Likewise.
2268 (ggc_print_statistics): Likewise.
2269 (ggc_pch_read): Don't free objects read from a PCH.
2270 Properly set up in_use_p and page_tails.
2272 2002-10-25 Geoffrey Keating <geoffk@apple.com>
2274 * gengtype.c (struct write_types_data): New.
2275 (struct walk_type_data): Make `cookie' const; add extra
2276 prev_val item; add `orig_s' field.
2277 (walk_type): Update prev_val[3].
2278 (write_types_process_field): New.
2279 (write_func_for_structure): Take write_types_data structure.
2283 (write_types_local_process_field): New.
2284 (gc_mark_process_field): Delete.
2285 (write_local_func_for_structure): New.
2286 (gc_mark_func_name): Delete.
2287 (write_gc_types): Delete.
2289 (finish_root_table): Don't include 'ggc_' in PFX.
2290 (write_root): Rename from write_root. Fill pchw field of structures.
2292 (write_roots): Rename from write_gc_roots. Split out to write_array.
2293 Update to changes to other routines. Write gt_pch_cache_rtab table.
2294 (main): Write PCH walking routines.
2295 * ggc-common.c: Include toplev.h, sys/mman.h.
2296 (ggc_mark_roots): For cache hashtables, also mark the hash table
2297 and the array of entries.
2299 (struct ptr_data): New.
2300 (POINTER_HASH): New.
2301 (gt_pch_note_object): New.
2302 (saving_htab_hash): New.
2303 (saving_htab_eq): New.
2304 (struct traversal_state): New.
2307 (compare_ptr_data): New.
2308 (relocate_ptrs): New.
2309 (write_pch_globals): New.
2310 (struct mmap_info): New.
2312 (gt_pch_restore): New.
2313 * ggc-page.c (ROUND_UP_VALUE): New.
2315 (struct page_entry): Add field `pch_page'.
2316 (init_ggc): Use ROUND_UP.
2317 (struct ggc_pch_data): Declare.
2318 (init_ggc_pch): New.
2319 (ggc_pch_count_object): New.
2320 (ggc_pch_total_size): New.
2321 (ggc_pch_this_base): New.
2322 (ggc_pch_alloc_object): New.
2323 (ggc_pch_prepare_write): New.
2324 (ggc_pch_write_object): New.
2325 (ggc_pch_finish): New.
2326 (ggc_pch_read): New.
2327 * ggc.h (gt_pointer_operator): New.
2328 (gt_note_pointers): New.
2329 (gt_pch_note_object): New prototype.
2330 (gt_pointer_walker): New.
2331 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
2332 (LAST_GGC_ROOT_TAB): Update.
2333 (gt_pch_cache_rtab): Declare.
2334 (gt_pch_scalar_rtab): Declare.
2335 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
2336 (LAST_GGC_CACHE_TAB): Update.
2337 (gt_pch_save_stringpool): Declare.
2338 (gt_pch_restore_stringpool): Declare.
2339 (gt_pch_p_S): Declare.
2340 (gt_pch_n_S): Declare.
2341 (struct ggc_pch_data): Forward-declare.
2342 (init_ggc_pch): Declare.
2343 (ggc_pch_count_object): Declare.
2344 (ggc_pch_total_size): Declare.
2345 (ggc_pch_this_base): Declare.
2346 (ggc_pch_alloc_object): Declare.
2347 (ggc_pch_prepare_write): Declare.
2348 (ggc_pch_write_object): Declare.
2349 (ggc_pch_finish): Declare.
2350 (ggc_pch_read): Declare.
2351 (gt_pch_save): Declare.
2352 (gt_pch_restore): Declare.
2353 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
2354 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
2355 const_double_htab, mem_attrs_htab using GGC.
2356 * c-pch.c: Include ggc.h.
2357 (pch_init): Allow reading PCH file back.
2358 (c_common_write_pch): Call gt_pch_save.
2359 (c_common_read_pch): Call gt_pch_restore.
2360 * c-parse.in (init_reswords): Delete now-untrue comment.
2361 Allocate ridpointers using GGC.
2362 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
2363 calling expand_deferred_fns.
2364 * c-common.h (ridpointers): Mark for GTY machinery.
2365 * Makefile.in (stringpool.o): Update dependencies.
2366 (c-pch.o): Update dependencies.
2367 (ggc-common.o): Update dependencies.
2368 * stringpool.c: Include gt-stringpool.h.
2371 (struct string_pool_data): New.
2373 (gt_pch_save_stringpool): New.
2374 (gt_pch_restore_stringpool): New.
2375 * tree.c (init_ttree): Make type_hash_table allocated using GC.
2377 2002-10-04 Geoffrey Keating <geoffk@apple.com>
2379 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
2380 (output_mangled_typename): Don't pass size_t to printf.
2382 * tree.h (union tree_type_symtab): Add tag to `address' field.
2383 (union tree_decl_u2): Add tag to 'i' field.
2384 * varasm.c (union rtx_const_un): Add tags to all fields.
2385 * gengtype.c (struct walk_type_data): New.
2386 (output_escaped_param): Take struct walk_type_data parameter.
2387 (write_gc_structure_fields): Delete.
2389 (write_gc_marker_routine_for_structure): Delete.
2390 (write_func_for_structure): New.
2391 (gc_mark_process_field): New.
2392 (gc_mark_func_name): New.
2393 (gc_counter): Delete.
2394 (write_gc_types): Use write_func_for_structure.
2395 (write_gc_roots): Use walk_type.
2397 2002-10-02 Geoffrey Keating <geoffk@apple.com>
2399 * ggc-common.c (ggc_mark_roots): Delete 'x'.
2400 (ggc_splay_dont_free): Fix warning about unused 'x'.
2401 (ggc_print_common_statistics): Remove warnings.
2403 2002-10-01 Mike Stump <mrs@apple.com>
2405 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
2406 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
2408 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
2409 Catherine Moore <clm@redhat.com>
2411 * Makefile (c-pch.o): Update dependencies.
2412 (LIBCPP_OBJS): Add cpppch.o.
2414 * c-common.c (c_common_init): Don't call pch_init here.
2415 * c-common.h (c_common_read_pch): Update prototype.
2416 * c-lex.c (c_common_parse_file): Call pch_init here.
2417 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
2418 (c_common_decode_option): Handle them.
2419 * c-pch.c: Include c-pragma.h.
2420 (save_asm_offset): Delete.
2421 (pch_init): Move contents of save_asm_offset into here, call
2423 (c_common_write_pch): Call cpp_write_pch.
2424 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
2426 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
2427 * cppfiles.c (stack_include_file): Update for change to
2428 parameters of cb.read_pch.
2429 * cpphash.h (struct cpp_reader): Add `savedstate' field.
2430 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
2431 `restore_pch_deps' fields.
2432 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
2433 (cpp_save_state): Prototype.
2434 (cpp_write_pch): Prototype.
2435 (cpp_valid_state): Prototype.
2436 (cpp_read_state): Prototype.
2437 * cpppch.c: New file.
2438 * flags.h (version_flag): Remove prototype.
2439 * mkdeps.c (deps_save): New.
2440 (deps_restore): New.
2441 * mkdeps.h (deps_save): Prototype.
2442 (deps_restore): Prototype.
2443 * toplev.c (late_init_hook): Delete.
2444 (version_flag): Make static again.
2445 (compile_file): Don't call late_init_hook.
2446 * toplev.h (late_init_hook): Delete.
2447 * doc/cppopts.texi: Document -fpch-deps.
2448 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
2450 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
2452 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
2454 (c_common_valid_pch): Rename from c_valid_pch, change callers.
2455 (c_common_read_pch): Rename from c_read_pch, change callers.
2457 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
2458 a space between it and its argument.
2460 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
2462 * c-pch.c: New file.
2463 * toplev.h (late_init_hook): Declare.
2464 * toplev.c (late_init_hook): Define.
2465 (version_flag): Make globally visible.
2466 (compile_file): Call late_init_hook.
2467 (init_asm_output): Make output file seekable.
2468 * gcc.c (default_compilers): Update c-header rule.
2469 * flags.h (version_flag): Declare.
2470 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
2472 * cppfiles.c (struct include_file): Add 'pch' field.
2473 (INCLUDE_PCH_P): New.
2474 (open_file_pch): New.
2475 (stack_include_file): Handle PCH files specially.
2476 (find_include_file): Call open_file_pch instead of open_file.
2477 (_cpp_read_file): Explain why open_file is used instead of
2479 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
2480 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
2481 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
2482 in cpplib callbacks.
2483 * c-common.c (pch_file): Correct comment.
2484 (allow_pch): Define.
2485 (c_common_init): Call pch_init.
2486 * c-common.h (allow_pch): Declare.
2487 (pch_init): Declare.
2488 (c_valid_pch): Declare.
2489 (c_read_pch): Declare.
2490 (c_write_pch): Declare.
2491 * Makefile.in (c-pch.o): New.
2492 (C_AND_OBJC_OBJS): Add c-pch.o.
2493 * doc/invoke.texi (Precompiled Headers): Add index entries,
2494 complete truncated paragraph.
2496 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
2498 * c-common.c: (pch_file): Define.
2499 * c-common.h (pch_file): Declare.
2500 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
2501 (missing_arg): Require --output-pch= to have an argument.
2502 (c_common_decode_option): Handle --output-pch=.
2503 * gcc.c: Document new %V.
2504 (default_compilers): Handle compiling C header files.
2505 (do_spec_1): Implement %V.
2506 (main): Handle "gcc foo.h" without trying to run linker.
2507 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
2508 (Overall Options): Document what the driver does with header files,
2509 document new -x option possibilities.
2510 (Invoking G++): More documentation for PCH.
2511 (Precompiled Headers): New.
2513 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
2515 * ggc.h: Don't include varray.h. Rearrange functions to be more
2517 (ggc_add_root): Delete.
2518 (ggc_mark_rtx): Delete.
2519 (ggc_mark_tree): Delete.
2520 (struct ggc_statistics): Remove contents.
2521 * ggc-common.c: Remove unneeded includes.
2522 (struct ggc_root): Delete.
2524 (ggc_add_root): Delete.
2525 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
2526 (ggc_print_common_statistics): Remove most of the contents.
2527 * Makefile.in (GGC_H): No longer uses varray.h.
2528 (ggc-common.o): Update dependencies.
2529 (c-parse.o): Add varray.h to dependencies.
2530 (c-common.o): Add varray.h.
2531 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
2532 (mark_ident_hash): Rename to ggc_mark_stringpool.
2533 (init_stringpool): Don't use ggc_add_root.
2534 * c-parse.in: Include varray.h.
2535 * c-common.c: Include varray.h.
2536 * objc/Make-lang.in (objc-act.o): Add varray.h.
2537 * objc/objc-act.c: Include varray.h.
2539 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
2541 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
2542 (dw_cfi_oprnd1_desc): Likewise.
2544 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
2546 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
2548 (alpha_links): Use gengtype to mark; move out of ifdef.
2549 (mark_alpha_links_node): Delete.
2550 (mark_alpha_links): Delete.
2551 (alpha_need_linkage): Use GGC to allocate splay tree, struct
2552 alpha_links, strings. Don't use ggc_add_root.
2553 * ggc-common.c (ggc_splay_alloc): New.
2554 (ggc_splay_dont_free): New.
2555 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
2556 (ggc_mark_tree): Likewise.
2557 (splay_tree_new_ggc): New.
2558 (ggc_splay_alloc): Declare.
2559 (ggc_splay_dont_free): Declare.
2560 * dwarf2asm.c: Include gt-dwarf2asm.h.
2561 (mark_indirect_pool_entry): Delete.
2562 (mark_indirect_pool): Delete.
2563 (indirect_pool): Use gengtype to mark.
2564 (dw2_force_const_mem): Don't use ggc_add_root.
2565 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
2566 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
2567 (gt-dwarf2asm.h): Depend on s-gtype.
2569 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
2571 * tree.h (union tree_type_symtab): Mark `die' field.
2572 * Makefile.in (dwarf2out.o): Update dependencies.
2573 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
2575 (dw_cfi_oprnd1_desc): New function.
2576 (dw_cfi_oprnd2_desc): New function.
2577 (indirect_string_alloc): Delete.
2578 (debug_str_do_hash): New function.
2579 (debug_str_eq): New function.
2580 (mark_limbo_die_list): Delete.
2581 (dwarf2out_init): Don't call ggc_add_root.
2583 2003-01-09 Vladimir Makarov <vmakarov@redhat.com>
2585 The following changes are merged from itanium-sched-branch:
2587 2003-01-08 David Edelsohn <edelsohn@gnu.org>
2589 * doc/md.texi: Clarify assignment of units to automata description.
2591 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
2593 * genautomata.c (unit_decl): Remove members
2594 `the_same_automaton_unit' and
2595 `the_same_automaton_message_reported_p'.
2596 (process_unit_to_form_the_same_automaton_unit_lists,
2597 form_the_same_automaton_unit_lists_from_regexp,
2598 form_the_same_automaton_unit_lists, the_same_automaton_lists):
2600 (annotation_message_reported_p): New global variable.
2601 (check_unit_distribution_in_reserv,
2602 check_regexp_units_distribution): New functions.
2603 (check_unit_distributions_to_automata): Rewrite it.
2605 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
2607 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
2608 Use continue instead of break if cycle is too big.
2610 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
2612 * genautomata.c (check_unit_distributions_to_automata): Output at
2613 most one message for a unit.
2614 (process_unit_to_form_the_same_automaton_unit_lists): Check
2615 automaton of units instead of units themself.
2617 * doc/md.texi: Describe the constraint about assigning unit to
2620 2002-12-20 Jan Hubicka <jH@suse.cz>
2621 Vladimir Makarov <vmakarov@redhat.com>
2623 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
2625 (gen_cpu_unit): Initialize the new members.
2626 (process_regexp_cycles): Calculate minimal finish cycle too. Set
2627 up `min_occ_cycle_num'.
2628 (evaluate_max_reserv_cycles): Change the function call.
2629 (CLEAR_BIT): New macro.
2630 (states_union, state_shift): Use the mask.
2631 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
2632 (form_reservs_matter): New function.
2633 (make_automaton): Call the function and use the mask.
2634 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
2637 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2639 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
2641 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2643 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
2646 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2648 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
2651 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2652 2002-10-31 Dale Johannesen <dalej@apple.com>
2654 * haifa-sched.c (find_set_reg_weight): New function.
2655 (find_insn_reg_weight): Use the new function.
2656 (schedule_block): Do sorting ready queue always
2659 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
2661 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
2663 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
2665 * haifa-sched.c (choice_entry): New structure.
2666 (choice_stack, cycle_issued_insns): New variables.
2667 (max_issue): Rewrite it.
2668 (choose_ready): Set up ready_try for unknown insns too.
2669 (schedule_block): Allocate and free choice_stack. Set up
2670 and modify cycle_issued_insns.
2672 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
2673 with and without filling the bundle.
2674 (bundling): Combine calls of issue_nops_and_insn.
2676 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
2678 * config/ia64/itanium1.md: New file.
2680 * config/ia64/itanium2.md: New file.
2682 * config/ia64/ia64.md: Move DFA descriptions into the new files.
2683 Remove the old pipeline description.
2685 * config/ia64/ia64.c (ia64_override_options): Add aliases of
2686 itanium processor names.
2688 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
2690 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
2691 (ia64_reorg): Set up queried unit codes for Itanium2 too.
2693 * config/ia64/ia64.md: Add descriptions for Itanium2.
2695 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
2697 * config/ia64/ia64.h (processor_type): New enumeration.
2698 (ia64_tune, ia64_tune_string): New external declarations.
2699 (TARGET_OPTIONS): Add option `tune='.
2701 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
2703 (ia64_override_options): Set up `ia64_tune'.
2704 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
2705 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
2706 (bundling): Add nops for MM-insns only for Itanium.
2707 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
2710 * config/ia64/ia64.md (cpu): New attribute.
2711 (DFA description): Enable it only for Itanium.
2713 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
2714 Richard Henderson <rth@redhat.com>
2716 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
2717 MASK_EARLY_STOP_BITS.
2718 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
2719 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
2722 * config/ia64/ia64.c (ia64_dfa_new_cycle,
2723 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
2724 instead of TARGET_TUNE_STOP_BITS.
2726 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
2727 `-mearly-stop-bits'.
2729 * config/ia64/ia64.c (automata_option "v"): Comment it.
2731 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
2733 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
2735 (TARGET_SWITCHES): Add entries for the new option.
2737 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
2738 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
2739 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
2741 (ia64_sched_reorder2): Set up `clocks'.
2742 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
2743 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
2744 queue when TARGET_TUNE_STOP_BITS.
2745 (bundling): Insert additional nops for MM-insns.
2746 (final_emit_insn_group_barriers): Add insertion of stop bits
2747 according `stops_p'.
2748 (ia64_reorg): Initiate the new varibales.
2750 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
2752 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
2754 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
2755 insns at the end of block insn scheduling.
2757 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
2759 * sched-deps.c (remove_dependence, group_leader): Remove it.
2760 (add_dependence): Add dependence to group leader to.
2761 (set_sched_group_p): Add dependence to the first insn of the
2763 (sched_analyze_insn): Make dependence to jump as anti-dependence.
2764 Change true dependence by anti-dependence when
2765 `reg_pending_barrier'.
2767 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
2768 add_branch_dependences): Ignore schedule groups.
2770 * sched-ebb.c (init_ready_list): Ditto.
2772 * (move_insn, set_priorities): Ditto.
2774 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
2775 flag is clear after reload.
2776 (adjust_cost): Change cost only for output dependencies.
2778 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
2780 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
2782 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
2784 * target.h (gcc_target): Add member
2785 `dependencies_evaluation_hook'.
2787 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
2789 (TARGET_SCHED): Add initiatialization of the new member.
2791 * sched-ebb.c: Include `target.h'.
2792 (schedule_ebb): Call `dependencies_evaluation_hook'.
2794 * sched-rgn.c (schedule_region): Call
2795 `dependencies_evaluation_hook'.
2797 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
2799 (ia64_dependencies_evaluation_hook): New function.
2801 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
2802 Describe the new hook.
2804 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
2806 * target.h (gcc_target): Add members
2807 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
2809 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
2810 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
2812 (TARGET_SCHED): Add initiatialization of the new members.
2814 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
2815 insn scheduling too.
2816 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
2817 initialize `ready_try'.
2818 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
2819 `dfa_new_cycle' says not to do it.
2821 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
2824 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
2826 * config/ia64/ia64.c: Include `hashtab.h'.
2827 (ia64_first_cycle_multipass_dfa_lookahead_guard,
2828 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
2829 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
2830 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
2831 bundle_state_eq_p, insert_bundle_state,
2832 initiate_bundle_state_table, finish_bundle_state_table,
2833 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
2834 get_template, get_next_important_insn, bundling): New functions.
2835 (ia64_internal_sched_reorder): Remove it.
2836 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
2837 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
2838 (ia64_safe_itanium_requires_unit0): Remove it.
2839 (group_barrier_needed_p): Place group barrier right before a real
2841 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
2843 (bundle_name): New variable.
2844 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
2845 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
2846 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
2847 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
2848 temp_dfa_state, prev_cycle_state): New global variables.
2849 (insn_matches_slot, maybe_rotate, finish_last_head,
2850 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
2851 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
2852 find_best_packet, itanium_reorder, dump_current_packet,
2853 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
2854 (sched_data, sched_ready, sched_types): Remove them.
2855 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
2856 `init_insn_group_barriers'.
2857 (ia64_sched_reorder, ia64_sched_reorder2): Call
2858 ia64_dfa_sched_reorder.
2859 (ia64_variable_issue): Rewrite it.
2860 (bundle_state): New structure.
2861 (index_to_bundle_states, bundle_states_num,
2862 allocated_bundle_states_chain, free_bundle_state_chain): New
2864 (ia64_sched_finish): Add stop bits and call `bundling' after the
2865 2nd insn scheduling.
2866 (ia64_use_dfa_pipeline_interface): Return zero always.
2867 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
2869 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
2870 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
2871 (ia64_reorg): Add bundling insns.
2874 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
2875 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
2877 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
2879 * config/ia64/ia64.md: Add Itanium1 DFA description.
2880 (itanium_class): Add `nop' and `pre_cycle'. Add
2881 define_function_unit for `nop'.
2882 (nop): Change attribute `itanium_class'.
2883 (pre_cycle): New define_insn.
2885 * config/ia64/ia64-protos.h (bundling_p): New external variable.
2886 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
2887 ia64_produce_address_p): New function prototypes.
2889 * config/ia64/ia64.c (bundling_p): New global variable.
2890 (ia64_use_dfa_pipeline_interface,
2891 ia64_first_cycle_multipass_dfa_lookahead,
2892 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
2894 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2895 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2896 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2897 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
2898 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
2899 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
2900 (dfa_pre_cycle_insn): New variable.
2902 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
2904 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
2907 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
2908 New function prototypes.
2910 * genattrtab.c (main): Process the new constructions.
2912 * genautomata.c (gen_presence_absence_set,
2913 process_presence_absence_names, process_presence_absence_patterns,
2914 add_presence_absence, check_absence_pattern_sets): Add parameter
2916 (unit_decl): Add new members `final_presence_list' and
2917 `final_absence_list'.
2918 (unit_pattern_rel_decl): Add new member `final_p'.
2919 (gen_final_presence_set, gen_final_absence_set): New functions.
2920 (process_decls): Use member `final_p'.
2921 (temp_reserv): New global variable.
2922 (reserv_sets_are_intersected): Add processing `final_presence_set'
2923 and `final_absence_set'.
2924 (initiate_states): Allocate `temp_reserv'.
2925 (unit_final_presence_set_table, unit_final_absence_set_table): New
2927 (initiate_presence_absence_pattern_sets): Initiate them.
2928 (NDFA_to_DFA): Fix typo.
2929 (output_description): Output `final_presence_set' and
2930 `final_absence_set'.
2932 * doc/md.texi (final_presence_set, final_absence_set): Describe
2935 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
2937 * genautomata.c (transform_3): Process a missing case (nothing on
2940 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
2942 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
2943 comments about queried units and the minimization.
2945 * doc/md.texi: Ditto.
2947 * genautomata.c (create_composed_state): Return nonzero if the new
2948 state has been created.
2949 (first_cycle_unit_presence): New function.
2950 (state_is_differed): Add new parameter. Use the new function.
2951 Take queried units into account.
2952 (partition_equiv_class): Pass additional parameter to
2953 `state_is_differed'.
2954 (merge_states): Process composed states too.
2955 (build_automaton, create_automata, output_min_issue_delay_table,
2956 output_tables, output_statistics): Output more information.
2957 (output_reserved_units_table): Use function
2958 `first_cycle_unit_presence'.
2959 (output_tables): Output table of queried units even if the
2960 minimization is switched on.
2961 (write_automata): Output code for querying units even if the
2962 minimization is switched on.
2964 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
2966 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
2967 syntax of the constructions.
2969 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
2970 extended syntax of the constructions.
2972 * genautomata.c (unit_rel_decl): Rename it to
2973 `unit_pattern_rel_decl'.
2974 (pattern_set_el, pattern_reserv): New structures.
2975 (pattern_set_el_t, pattern_reserv_t): New types.
2976 (gen_presence_absence_set): New function.
2977 (process_presence_absence): Remove it.
2978 (process_presence_absence_names,
2979 process_presence_absence_patterns): New functions.
2980 (get_presence_absence_set): Remove it.
2981 (initiate_presence_absence_sets): Rename it on
2982 `initiate_presence_absence_pattern_sets'. Use new function
2983 `form_reserv_sets_list'.
2984 (form_reserv_sets_list, check_presence_pattern_sets,
2985 check_absence_pattern_sets, output_pattern_set_el_list): New
2987 (unit_decl): Change types of members `presence_list' and
2989 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
2990 (decl): Change types of members `excl', `presence', and `absence'.
2991 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
2992 at the end of the vector.
2993 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2994 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
2995 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
2996 (gen_presence_set, gen_absence_set): Use new function
2997 `gen_presence_absence_set'.
2998 (add_presence_absence): Process `pattern_list' instead of
3000 (process_decls): USe new functions
3001 `process_presence_absence_names' and
3002 `process_presence_absence_patterns'.
3003 (reserv_sets_are_intersected): Use new function
3004 `check_presence_pattern_sets'.
3005 (presence_set, absence_set): Remove them.
3006 (unit_presence_set_table, unit_absence_set_table): New global
3008 (output_description): Use new function
3009 `output_pattern_set_el_list'.
3010 (generate): Use `initiate_presence_absence_pattern_sets'.
3012 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
3014 * genattr.c (main): Add output of prototype of new interface
3015 function `dfa_clean_insn_cache'.
3017 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
3018 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
3019 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
3021 (write_automata): Call the new function.
3023 Thu Jan 9 22:47:38 CET 2003 Jan Hubicka <jh@suse.cz>
3025 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
3028 2003-01-09 Paolo Carlini <pcarlini@unitus.it>
3030 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
3032 Thu Jan 9 17:26:40 2003 J"orn Rennecke <joern.rennecke@superh.com>
3034 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
3035 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
3036 (CONSTRAINT_LEN): Provide default definition.
3037 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
3038 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
3039 (EXTRA_CONSTRAINT_STR): Likewise.
3040 (REG_CLASS_FROM_CONSTRAINT): Define.
3041 * genoutput.c (check_constraint_len, constraint_len): New functions.
3042 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
3043 constraint / modifier.
3044 (gen_insn): Call check_constraint_len.
3045 * local-alloc.c (block_alloc): Update to use new macros / pass
3046 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
3047 * ra-build.c (handle_asm_insn): Likewise.
3048 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
3049 (constrain_operands, peep2_find_free_register): Likewise.
3050 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
3051 * regmove.c (find_matches): Likewise.
3052 * reload.c (push_secondary_reload, find_reloads): Likewise.
3053 (alternative_allows_memconst): Likewise.
3054 * reload1.c (maybe_fix_stack_asms): Likewise.
3055 (reload_cse_simplify_operands): Likewise.
3056 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
3057 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
3058 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
3059 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
3060 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
3061 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
3063 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
3065 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
3067 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
3069 (*extzv_1_r_h8300hs): Likewise.
3070 (*extzv_1_r_inv_h8300): Likewise.
3071 (*extzv_1_r_inv_h8300hs): Likewise.
3073 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
3075 * config/h8300/h8300.h (PREDICATE_CODES): New.
3077 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
3079 * config/h8300/h8300.md (*addsi3_upper): New.
3080 (*iorsi3_shift): Likewise.
3081 (two splitters): Likewise.
3082 (*addsi3_shift): Likewise.
3083 (two splitters): Likewise.
3085 2003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3087 * Makefile.in (optabs.o): Add dependency on basic-block.h.
3088 * basic-block.h (control_flow_insn_p): Fuction was exported.
3089 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
3090 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
3091 notes only when the region is contained in a single basic block.
3093 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
3096 * tree.h (expand_asm): New prototype.
3097 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
3099 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
3101 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
3102 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
3103 (volatile_refs_p) [ASM_INPUT]: Likewise.
3104 (side_effects_p) [ASM_INPUT]: Likewise.
3106 Thu Jan 9 12:00:36 CET 2003 Jan Hubicka <jh@suse.cz>
3108 * i386.md (*mul*): FIx constraints; remove confused comment; fix
3109 athlon_decode attributes
3110 (imul/k8 optimization peep2s): New.
3112 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
3113 * i386.md (type attribute): Add ssecomi.
3114 (unit, memory, prefix attributes): Handle ssecomi.
3115 (cvt?2? patterns): Fix athlon_decode attribute
3116 (comi patterns): Set attribute to ssecomi.
3119 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
3121 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
3123 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
3124 that match register_operands.
3125 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
3126 register_operand the default case.
3128 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
3131 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
3132 an empty element, do not advance the pointer to unfilled
3133 fields if there are pending initializers.
3135 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
3137 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
3138 (install-gcc-tooldir, install-cpp, installdirs,
3139 install-common, install-driver, install-info, install-man,
3140 install-headers, install-include-dir, install-headers-tar,
3141 install-headers-cpio, install-headers-cp, install-mkheaders,
3142 install-collect2, uninstall): Prepend $(DESTDIR) to
3143 destination paths in all (un)installation commands.
3144 (install-driver): Rewrite $(LN) commands to support DESTDIR
3145 with "ln" as well as with "ln -s".
3146 (installdirs): Simply use mkinstalldirs.
3147 (install-libgcc, install-multilib): Also pass DESTDIR.
3148 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
3149 installation destination variable ldir.
3150 * config/alpha/t-osf4, config/arm/t-netbsd,
3151 config/ia64/t-hpux, config/mips/t-iris5-6,
3152 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
3153 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
3154 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
3155 in the definition of SHLIB_INSTALL.
3156 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
3157 $(libsubdir) in the installation commands.
3159 2003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
3161 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
3162 non-optimizing compile.
3163 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
3166 2003-01-08 Douglas B Rupp <rupp@gnat.com>
3168 * config/i386/i386.c (ix86_attribute_table): Add new attributes
3169 ms_struct and gcc_struct.
3170 (ix86_handle_struct_attribute): New function.
3171 (ix86_ms_bitfield_layout_p): Update to take new attributes
3173 * doc/extend.texi: Document new attributes.
3174 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
3176 2003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
3178 PR optimization/8750
3179 * config/i386/i386.c (ix86_expand_prologue): Don't allow
3180 scheduling pass to move insns across __alloca call.
3182 2003-01-08 Dale Johannesen <dalej@apple.com>
3184 * config/rs6000/rs6000.md: Replace *store_multiple_string
3187 2003-01-08 Jeff Sturm <jsturm@one-point.com>
3190 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
3191 Set SYMBOL_REF_FLAG on local data sym_ref.
3193 2003-01-08 Dale Johannesen <dalej@apple.com>
3195 * function.c (assign_parms): Don't set pretend_args_size if
3196 REG_PARM_STACK_SPACE.
3197 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
3200 2003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
3204 Thu Jan 9 00:57:15 CET 2003 Jan Hubicka <jh@suse.cz>
3206 * i386.c (ix86_expand_int_addcc): Fix thinko.
3208 2003-01-08 David Edelsohn <edelsohn@gnu.org>
3210 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
3211 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
3212 as hook_bool_tree_hwi_hwi_tree_true.
3213 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
3214 (rs6000_emit_epilogue): Same.
3215 (rs6000_output_mi_thunk): Re-implement as RTL.
3216 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
3217 xcoffout_declare_function if any debugging enabled.
3219 2003-01-08 Chris Demetriou <cgd@broadcom.com>
3221 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
3222 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
3223 * config/mips/mips.h (enum processor_type): Rename
3224 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
3225 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
3227 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
3228 (ISA_MIPS32R2): New define.
3229 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
3230 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
3231 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
3232 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
3233 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
3234 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
3235 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
3236 compiling MIPS16 code.
3237 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
3239 (ISA_HAS_SEB_SEH): New define.
3240 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
3241 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
3242 processor_type value renaming. Add support for MIPS32R2.
3243 Clean up comments, and move "sb1" entry with other MIPS64 CPU
3245 (override_options): Reimplement -mipsN option handling so that
3246 it will work correctly for -mips32r2. Avoid branch-likely
3247 instructions on MIPS32R2.
3248 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
3249 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
3250 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
3251 (extendhisi2_hw, extendqisi2_hw): New.
3252 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
3253 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
3254 MIPS32R2, and MIPS64.
3255 (LINK_SPEC): Pass -mips32r2 to linker.
3256 * config/mips/t-isa3264: Built -mips32r2 multilibs.
3257 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
3258 for mips32r2 in the -march description. Alphabetically sort
3259 CPU names in the -march description. Add long-missed -mips32
3260 and -mips64 to MIPS option summary.
3262 * config.gcc: Update copyright years to include 2003.
3263 * config/mips/mips.c: Likewise.
3264 * config/mips/mips.h: Likewise.
3265 * config/mips/mips.md: Likewise.
3266 * config/mips/netbsd.h: Likewise.
3267 * doc/invoke.texi: Likewise.
3269 2003-01-08 Andreas Schwab <schwab@suse.de>
3271 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
3273 * configure: Regenerated.
3275 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
3277 * config/h8300/h8300.c (output_logical_op): Replace byte/word
3278 extraction of det with b0, b1, w0, w2, etc.
3279 (compute_logical_op_length): Likewise.
3280 (compute_logical_op_cc): Likewise.
3282 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
3284 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
3285 HIGH on all variants.
3287 Wed Jan 8 14:06:34 CET 2003 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3289 * Makefile.in (PARTITION_H): New.
3290 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
3291 * basic-block.h: Include hard-reg-set.h.
3293 2003-01-08 Richard Earnshaw <rearnsha@arm.com>
3295 * arm.h (ENABLE_XF_PATTERNS): Delete.
3296 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
3297 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
3298 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
3299 (cmpxf_trap): Delete.
3300 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
3302 Wed Jan 8 12:10:57 CET 2003 Jan Hubicka <jh@suse.cz>
3304 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
3305 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
3306 (add??cc): New expanders.
3307 * i386.c (expand_int_addcc): New function.
3308 * i386-protos.h (expand_int_addcc): Declare.
3310 * alias.c (memory_modified_1): New static function.
3311 (memory_modified): New static varaible.
3312 (memory_modified_in_insn_p): New global function.
3313 * rtl.h (memory_modified_in_insn_p): Declare.
3314 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
3317 * expr.h (emit_conditional_add): Declare.
3319 2003-01-07 Janis Johnson <janis187@us.ibm.com>
3322 * doc/invoke.texi (-malign-double): Explain that the option breaks
3323 binary compatibility.
3325 2003-01-08 Andreas Schwab <schwab@suse.de>
3327 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
3328 should come from the generic *-*-linux* entry.
3330 Tue Jan 7 22:29:56 CET 2003 Jan Hubicka <jh@suse.cz>
3332 * cselib.c (cselib_current_insn_in_libcall): New static variable.
3333 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
3334 we are inside libcall.
3335 * cselib.h (elt_loc_list): Add in_libcall.
3336 * gcse.c (do_local_cprop): Do not copy propagate using insns
3339 2003-01-07 David Edelsohn <edelsohn@gnu.org>
3341 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
3342 not normally affect to issue rate.
3344 Tue Jan 7 21:46:57 CET 2003 Jan Hubicka <jh@suse.cz>
3346 * genopinit.c (optabs): Add addc_optab.
3347 * ifcvt.c (noce_try_store_flag): Rename to ...
3348 (noce_try_addcc): ... this one; handle generic conditional increment.
3349 (noce_process_if_block): Update noce_try_addcc call.
3350 * optabs.c (emit_conditional_add): New.
3351 (init_obtabs): Initialize addc_optab.
3352 * optabs.h (optab_index): Add OTI_addcc.
3353 (addcc_optab): New macro.
3354 * md.texi: Document addMcc
3357 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
3358 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
3359 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
3361 * reload1.c (delete_output_reload): Avoid repeated attempts
3364 2003-01-07 Andreas Schwab <schwab@suse.de>
3366 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
3367 Move --enable-initfini-array check ...
3368 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
3369 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
3370 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
3371 * configure: Rebuild.
3373 2003-01-07 Richard Henderson <rth@redhat.com>
3375 * alias.c (find_base_value): Only use new_reg_base_value shortcut
3376 if the register is set once.
3378 2003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
3380 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
3381 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
3382 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
3384 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
3385 Sunil Davasam <sunil.k.davasam@intel.com>
3388 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
3389 DW_CFA_same_value, read next and ignore.
3391 2003-01-07 Richard Henderson <rth@redhat.com>
3393 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
3395 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
3397 * cfg.c: Include alloc-pool.h
3398 (edge_pool): New pool.
3399 (bb_pool): New pool.
3400 (first_deleted_edge): Remove.
3401 (first_deleted_block): Remove.
3402 (init_flow): Alloc/free the pools.
3403 (free_edge): Use pools.
3404 (alloc_block): Ditto.
3405 (expunge_block): Ditto.
3406 (cached_make_edge): Ditto.
3408 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
3410 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
3412 * et-forest.c: Include alloc-pool.h.
3413 (struct et_forest): Add node_pool and occur_pool.
3414 (et_forest_create): Create the new pools.
3415 (et_forest_delete): Delete them.
3416 (et_forest_add_node): Allocate and free using pools.
3417 (et_forest_add_edge): Ditto.
3418 (et_forest_remove_node): Ditto.
3419 (et_forest_remove_edge): Ditto.
3421 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
3423 2003-01-07 Kazu Hirata <kazu@cs.umass.edu>
3425 * config/h8300/h8300.c (output_logical_op): Simplify and
3426 optimize the handling of SImode.
3427 * config/h8300/h8300.c (compute_logical_op_length): Update
3429 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
3431 2003-01-07 Richard Sandiford <rsandifo@redhat.com>
3433 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
3434 big-endian correction to indirect arguments too.
3436 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
3438 Segher Boessenkool <segher@koffie.nl>
3440 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
3441 (alt_reg_names): Ditto, fix formatting.
3442 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
3444 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
3446 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
3447 (output_logical_op): Constify intval and det.
3448 (compute_logical_length): Likewise.
3449 (compute_logical_cc): Likewise.
3450 (output_a_shift): Constify mask.
3451 (h8300_encode_label): Constify len.
3453 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
3455 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
3456 (h8300_expand_epilogue): Likewise.
3458 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
3460 Segher Boessenkool <segher@koffie.nl>