1 2003-01-30 Nick Clifton <nickc@redhat.com>
3 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
4 when popping saved IP register off the stack.
6 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
8 * config/rs6000/aix43.h: Fix comment typos.
9 * config/rs6000/aix51.h: Likewise.
10 * config/rs6000/aix52.h: Likewise.
11 * config/rs6000/altivec.h: Likewise.
12 * config/rs6000/rs6000.c: Likewise.
13 * config/rs6000/rs6000.h: Likewise.
14 * config/rs6000/rs6000.md: Likewise.
15 * config/rs6000/spe.md: Likewise.
17 2003-01-29 Mark Mitchell <mark@codesourcery.com>
19 * c-common.c (builtin_define_float_constants): Define
20 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
22 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
24 * config/sh/lib1funcs.asm: Fix comment typos.
25 * config/sh/linux.h: Likewise.
26 * config/sh/sh.c: Likewise.
27 * config/sh/sh.md: Likewise.
29 2003-01-30 Loren James Rittle <ljrittle@acm.org>
31 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
33 2003-01-30 Alexandre Oliva <aoliva@redhat.com>
35 * config/fp-bit.h (__make_dp): Declare if TMODES.
37 2003-01-29 Kazu Hirata <kazu@cs.umass.edu>
39 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
40 general_operand_src and general_operand_dst.
42 2003-01-29 David Edelsohn <edelsohn@gnu.org>
44 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
45 Return true for variable sized types.
46 (rs6000_va_arg): Handle variable sized types passed by reference
49 2003-01-29 Richard Earnshaw <rearnsha@arm.com>
51 * arm.c (arm_legtimize_address): New function.
52 * arm-protos.h (arm_legtimize_address): Add prototype.
53 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
54 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
57 2003-01-29 Joel Sherrill <joel@OARcorp.com>
59 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
60 depended on it being defined until now. This was tracked as PR9296.
62 2003-01-13 Joel Sherrill <joel@OARcorp.com>
64 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
65 RTEMS code knows which C++ initialization style the toolset
66 configuration is using. This was tracked as PR9295.
68 2003-01-29 Joel Sherrill <joel@OARcorp.com>
70 * config/m68k/t-crtstuff: Replace spaces with tabs, add
71 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
72 This issue was tracked as PR9293.
74 2003-01-29 Joel Sherrill <joel@OARcorp.com>
76 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
78 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
79 This issue was tracked as PR9292.
81 2003-01-29 Nick Clifton <nickc@redhat.com>
83 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
86 2003-01-29 Andrew Haley <aph@redhat.com>
88 * tree-inline.c (walk_tree): Add CHAR_TYPE.
90 Wed Jan 29 10:26:12 CET 2003 Jan Hubicka <jh@suse.cz>
92 * i386.md (subdi3_carry_rex64): Fix typo.
94 2003-01-28 Stan Shebs <shebs@apple.com>
96 * coretypes.h (cpp_reader): Forward declare struct.
97 * c-pragma.h (cpp_reader): Remove forward declaration.
98 * hashtable.h (cpp_reader): Likewise.
99 * scan.h (cpp_reader): Likewise.
100 * tree.h (cpp_reader): Likewise.
101 * config/darwin-protos.h (cpp_reader): Likewise.
102 * config/arm/arm-protos.h (cpp_reader): Likewise.
103 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
104 struct cpp_reader in prototypes.
106 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
108 * doc/install.texi: Add documentation for installation into
109 tooldirs and with DESTDIR.
111 2003-01-28 Richard Henderson <rth@redhat.com>
113 * config.gcc (ia64*-*-aix*): Remove.
114 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
115 * config/ia64/unwind-aix.c: Remove file.
117 2003-01-28 Andreas Schwab <schwab@suse.de>
119 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
121 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
122 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
123 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
124 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
125 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
126 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
127 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
129 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
131 * combine.c (nonzero_bits): Fix check for negative divide operands.
133 2003-01-28 Richard Henderson <rth@redhat.com>
135 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
136 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
138 2003-01-28 Richard Henderson <rth@redhat.com>
140 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
142 * config/cris/cris.c (cris_address_cost): Make static.
143 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
144 * config/cris/cris.h (ADDRESS_COST): Remove.
145 * config/cris/cris-protos.h: Update.
147 2003-01-23 Mike Stump <mrs@apple.com>
149 * regclass.c (init_reg_autoinc): New function.
150 (regclass): Move initialization of forbidden_inc_dec_class from
152 (init_regs): to here. Avoids reinitialization for each function,
153 saving compilation time.
155 2003-01-28 Jason Merrill <jason@redhat.com>
157 * cpplib.h (struct cpp_options): Add warn_deprecated field.
158 * cppinit.c (cpp_create_reader): Turn it on by default.
159 * c-opts.c (c_common_decode_option): Set it.
160 * cpplib.c (do_pragma_once): Only complain about #pragma once
161 if warn_deprecated is set.
163 2003-01-28 Dale Johannesen <dalej@apple.com>
165 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
166 * loop.c (scan_loop): Move movables on -Os rich-register targets.
167 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
169 2003-01-28 Richard Henderson <rth@redhat.com>
171 * target.h (targetm.address_cost): New.
172 * target-def.h (TARGET_ADDRESS_COST): New.
173 (TARGET_RTX_COSTS): Uncomment. Oops.
174 * cse.c (address_cost): Use new target hook.
175 (default_address_cost): New.
176 * output.h (default_address_cost): Declare.
177 * hooks.c (hook_int_rtx_0): New.
178 * hooks.h (hook_int_rtx_0): Declare.
179 * loop.c (combine_givs_p): Remove if 0 code.
180 * system.h (ADDRESS_COST): Poison.
182 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
183 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
184 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
185 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
186 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
187 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
188 config/xtensa/xtensa.c, config/xtensa/xtensa.h
189 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
190 (ADDRESS_COST): Remove.
192 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
193 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
194 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
195 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
196 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
197 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
198 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
199 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
200 config/mips/mips.c, config/mips/mips.h,
201 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
202 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
203 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
204 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
205 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
206 config/vax/vax.c, config/vax/vax.h
207 (foo_address_cost): Make static.
208 (TARGET_ADDRESS_COST): New.
209 (ADDRESS_COST): Remove.
211 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
212 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
213 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
214 config/stormy16/stormy16.h
215 (ADDRESS_COST): Move code ...
216 (foo_address_cost): ... here.
217 (TARGET_ADDRESS_COST): New.
219 * config/m32r/m32r.c (m32r_address_cost): Remove.
220 * config/m32r/m32r-protos.h: Update.
222 * config/mmix/mmix.c (mmix_address_cost): Remove.
223 * config/mmix/mmix-protos.h: Update.
225 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
226 mn10300_address_cost; move unsig allocation ...
227 (mn10300_address_cost): ... here.
228 (TARGET_ADDRESS_COST): New.
229 * config/mn10300/mn10300-protos.h: Update.
230 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
232 * doc/tm.texi: Update.
234 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
236 * haifa-sched.c (schedule_insn): Return necessary cycle advance
237 after issuing the insn.
238 (rank_for_schedule): Make a insn with /S the highest priority
240 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
241 (choose_ready): Check SCHED_GROUP_P.
242 (schedule_block): Advance cycle after issuing insn if it is
243 necessary. Don't reorder insns if there is an insn with /S.
244 (set_priorities): Ignore schedule groups.
246 * sched-deps.c (remove_dependence, group_leader): Remove the
248 (add_dependence): Ignore schedule groups.
249 (set_sched_group_p): Don't make copy of dependencies from previous
250 insn of the schedule group. Add anti-dependency to the previous
251 insn of the schedule group.
252 (compute_forward_dependences): Ignore schedule groups.
254 * sched-ebb.c (init_ready_list): Ignore schedule groups.
256 * sched-rgn.c (init_ready_list): Ditto.
257 (can_schedule_ready_p): Ditto.
259 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
261 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
262 register to another one.
264 2003-01-28 Richard Henderson <rth@redhat.com>
266 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
268 2003-01-28 Roger Sayle <roger@eyesopen.com>
270 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
272 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
274 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
275 class contains a floating-point register, return the size of the
278 Tue Jan 28 12:15:13 CET 2003 Jan Hubicka <jh@suse.cz>
280 * i386.c (ix86_carry_flag_operator): New predicate.
281 (fcmov_operator): Fix whitespace.
282 (ix86_expand_carry_flag_compare): Deal with floating point.
283 (ix86_expand_int_movcc): Deal with fp; update insn expansion
284 (ix86_expand_int_addcc): Likewise.
285 (ix86_expand_strlensi_unroll_1): likewsie.
286 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
287 * i386.md (add?i_carry_rex64): Use new predicate.
288 (sub?i3_carry_rex64): Likewise.
289 (x86_mov?icc_0_m1*): Likewise.
291 2003-01-28 Andreas Schwab <schwab@suse.de>
293 * cfgloopmanip.c (create_preheader): Initialize src to avoid
296 * expmed.c (emit_store_flag): Fix cast to avoid sign
299 * combine.c (force_to_mode): Add cast to fix warning when
300 STORE_FLAG_VALUE is negative.
302 2003-01-27 Richard Henderson <rth@redhat.com>
304 * Makefile.in (cse.o): Depend on TARGET_H.
305 * cse.c (rtx_cost): Use targetm.rtx_costs.
306 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
307 * doc/tm.texi: Update.
309 * target.h (targetm.rtx_costs): New.
310 * target-def.h (TARGET_RTX_COSTS): New.
311 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
314 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
315 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
316 * config/alpha/alpha.h (PROCESSOR_MAX): New.
317 (CONST_COSTS, RTX_COSTS): Remove.
319 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
320 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
321 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
322 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
323 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
324 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
325 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
326 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
327 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
328 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
329 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
330 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
331 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
332 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
333 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
334 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
335 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
336 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
337 config/v850/v850.c, config/v850/v850.h,
338 config/xtensa/xtensa.c, config/xtensa/xtensa.h
339 (CONST_COSTS, RTX_COSTS): Move code ...
340 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
342 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
343 (arm_rtx_costs, TARGET_RTX_COSTS): New.
344 * config/arm/arm-protos.h: Update.
345 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
347 * config/avr/avr.h (CONST_COSTS): Move code ...
348 * config/avr/avr.c (avr_rtx_costs): ... here.
349 (default_rtx_costs): Make static.
350 * config/avr/avr-protos.h: Update.
352 * config/h8300/h8300.c (const_costs): Make static.
353 (h8300_and_costs, h8300_shift_costs): Likewise.
354 * config/h8300/h8300-protos.h: Update.
356 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
357 (CONST_COSTS): Move code ...
358 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
359 default_rtx_costs; update for signature change.
360 * config/ip2k/ip2k-protos.h: Update.
362 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
363 (CONST_COSTS): Move code ...
364 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
365 (TARGET_RTX_COSTS): New.
366 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
367 * config/m68hc11/m68hc11-protos.h: Update.
369 * config/m68k/m68k.c (const_int_cost): Make static.
370 * config/m68k/m68k-protos.h: Update.
372 * config/mcore/mcore.c (mcore_const_costs): Make static.
373 (mcore_and_cost, mcore_ior_cost): Likewise.
374 * config/mcore/mcore-protos.h: Update.
376 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
377 (mmix_rtx_cost_recalculated): Remove.
378 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
379 * config/mmix/mmix-protos.h: Update.
381 * config/sh/sh.c (shiftcosts): Make static.
382 (addsubcosts, andcosts, multcosts): Likewise.
383 * config/sh/sh-protos.h: Update.
385 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
386 (sparc_rtx_costs): Make static; update for change in signature.
387 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
388 * config/sparc/sparc-protos.h: Update.
390 * config/v850/v850.c (const_costs): Make static.
391 * config/v850/v850-protos.h: Update.
393 * config/vax/vax.h (RTX_COSTS): Remove.
394 (CONST_COSTS): Move code ...
395 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
397 (vax_rtx_costs, TARGET_RTX_COSTS): New.
399 2003-01-27 Richard Henderson <rth@redhat.com>
401 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
402 * config/vax/vax-protos.h: Update. Really.
404 2003-01-28 Alexandre Oliva <aoliva@redhat.com>
406 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
407 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
408 zero if no hardware floating point.
409 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
410 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
411 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
412 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
413 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
414 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
415 even FP registers on N32 and N64.
416 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
417 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
418 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
419 even-register-like alignment to 128-bit arguments.
420 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
421 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
423 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
424 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
425 (TPBIT): Set to tp-bit.c.
426 (tp-bit.c): Create out of fp-bit.c.
428 2003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
430 * c-parse.in: Remove '%expect 32' directive in objc mode.
432 2003-01-27 Nathan Sidwell <nathan@codesourcery.com>
434 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
435 (LIBGCOV): New variable.
436 (libgcc.mk): Add LIBGCOV.
437 (LIBGCC_DEPS): Add libgcov.c.
438 (libgcov.a): New target.
439 (clean): Remove libgcov.a.
440 (install-libgcc): Do libgcov too.
441 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
443 * libgcc2.c (L_gcov): Move into ...
444 * libgcov.c: ... here. New file.
445 * mklibgcc.in: Add libgcov rules.
446 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
448 * doc/invoke.texi (profile-arcs, test-coverage): Update and
451 * profile.c (index_counts_file): Remove duplicate check for open file.
453 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
455 * gcc/doc/invoke.texi (Optimization Options): Group together
456 optional and experimental flags. Move trapv and bounds-check
457 out of this section. Group floating point flags together.
458 (Code Gen Options): Move trapv and bounds-check to here.
460 2003-01-27 Josef Zlomek <zlomekj@suse.cz>
462 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
464 2003-01-27 Richard Earnshaw <rearnsha@arm.com>
467 * function.c (purge_addressof_1): After pushing an addressed register
468 onto the stack, simplify the result.
470 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
472 * doc/extend.texi: Fix typo.
474 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
476 * doc/cppopts.texi: Fix typo.
477 * doc/objc.texi: Likewise.
478 * doc/passes.texi: Likewise.
480 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
482 * real.c (ibm_extended_format): Add 53 to minimum exponent.
483 (encode_ibm_extended): Adjust.
485 2003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
487 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
488 timevar_id enumerations.
490 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
492 * combine.c: Fix formatting.
494 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
496 * doc/gccint.texi: Update the copyright.
498 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
500 * doc/cpp.texi: Fix typos.
501 * doc/extend.texi: Likewise.
502 * doc/gty.texi: Likewise.
503 * doc/install.texi: Likewise.
504 * doc/passes.texi: Likewise.
505 * doc/rtl.texi: Likewise.
506 * doc/tm.texi: Likewise.
508 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
510 * config/ia64/fde-glibc.c: Fix comment typos.
511 * config/ia64/hpux.h: Likewise.
512 * config/ia64/ia64.c: Likewise.
513 * config/ia64/ia64.h: Likewise.
514 * config/ia64/unwind-ia64.c: Likewise.
516 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
518 * config/i386/i386-modes.def: Fix comment typos.
519 * config/i386/i386.c: Likewise.
520 * config/i386/i386.md: Likewise.
522 2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
524 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
525 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
526 ASM_FINISH_DECLARE_OBJECT before defining it.
527 * toplev.c (rest_of_decl_compilation): Don't define
528 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
529 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
530 parameters for DWARF2 targets because they _are_ used.
532 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
534 * fp-bit.h: Define macros for TFmode floating-point constants
535 in IBM-extended TFmode types.
536 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
538 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
541 * config/fp-bit.h: Define macros for TFmode floating-point
542 constants in IEEE quad TFmode type. Declare functions according
544 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
545 (TFtype, TItype, UTItype): Define if TMODES is defined.
546 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
547 (F_T_BITOFF, D_T_BITOFF): Define.
548 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
549 guaranteed to be wide enough.
550 * config/fp-bit.c: Check for L_ macros for tf functions.
553 (pack_d, unpack_d): Support IEEE 854 quad type.
554 (_fpmul_parts): Support TFmode. Compute exponent adjustment
555 from FRAC_NBITS, FRAC_BITS and NGARDS.
556 (usi_to_float): Cast constants to be shifted to fractype
557 instead of assuming long long is wide enough.
558 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
560 2003-01-26 Andreas Jaeger <aj@suse.de>
562 * df.c: Remove prototype of unused function df_regno_rtl_debug.
564 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
566 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
567 (DBBIT_FUNCS): Added _df_to_tf.
569 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
570 (LIBGCC_DEPS): Added TPBIT.
571 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
573 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
574 been able to move the result to target.
576 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
577 for the appropriate mode.
579 * calls.c (emit_library_call_value_1): Handle return values
582 * rtl.c (get_mode_alignment): Moved to...
583 * stor-layout.c: ... here.
585 * print-rtl.c (print_rtx): Don't print MEM details in
588 2003-01-26 Michael Hayes <mph@paradise.net.nz>
590 * df.h: Update comments, tidy formatting.
591 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
592 REVERSE, UNION, INTERSECTION. All uses updated.
593 (OLD_DF_INTERFACE): Remove.
594 (struct insn_info): Remove commented out insn field.
595 * df.c: Update comments, tidy formatting.
596 (df_def_table_realloc): Remove.
599 2003-01-26 Alan Modra <amodra@bigpond.net.au>
601 * calls.c (save_fixed_argument_area): Tidy.
602 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
603 (expand_call): Comment typo fixes. Don't init low_to_save. Start
604 call chain loop at 1 if !try_tail_call. Formatting.
605 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
606 Use save_fixed_argument_area and restore_fixed_argument_area.
608 2003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
610 * df.c (df_uses_record): Handle CC0.
612 2003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
614 * reload.c (maybe_memory_address_p): New function.
615 (find_reloads_address): Use it instead of memory_address_p.
617 2003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
619 * final.c (shorten_branches): Align the address of code label
620 when computing initial lengths and addresses.
622 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
624 * config/m68hc11/m68hc11.md: Fix a comment typo.
626 2003-01-25 Andreas Jaeger <aj@suse.de>
628 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
631 2003-01-25 Roger Sayle <roger@eyesopen.com>
633 * gcse.c (bypass_last_basic_block): New global variable.
634 (bypass_block): Use redirect_edge_and_branch_force to redirect
635 fall-through edges. Use bypass_last_basic_block to determine
636 which blocks have valid PRE information.
637 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
639 Sat Jan 25 22:31:59 CET 2003 Jan Hubicka <jh@suse.cz>
641 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
643 Sat Jan 25 21:04:33 CET 2003 Jan Hubicka <jh@suse.cz>
644 Eric Botcazou <ebotcazou@libertysurf.fr>
646 * gcse.c (one_cprop_pass): Delete unreachable blocks.
648 2003-01-25 Richard Henderson <rth@redhat.com>
650 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
651 from ia64_aix_select_rtx_section.
652 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
653 instead of saving and restoring flag_pic.
654 (ia64_rwreloc_unique_section): Similarly.
655 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
656 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
657 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
658 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
660 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
662 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
665 2002-01-25 Richard Henderson <rth@redhat.com>
667 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
669 2002-01-25 Kelley Cook <kelleycook@comcast.net>
671 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
673 2003-01-25 Segher Boessenkool <segher@koffie.nl>
675 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
676 type for bitmaps. Use unsigned long.
677 (nBITMAP_WORD_BITS): New macro.
678 (BITMAP_WORD_BITS): New macro.
679 (rest of file): Use it.
682 2003-01-25 Richard Henderson <rth@redhat.com>
684 2002-02-19 Robert Lipe <robertlipe@usa.net>
685 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
687 2002-01-25 Roger Sayle <roger@eyesopen.com>
689 * builtins.c (purge_builtin_constant_p): Scan insn stream
690 sequentially rather than by basic block.
691 * function.c (purge_addressof): Simplify test with INSN_P.
693 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
695 * combine.c (simplify_comparison, case AND): Remove a redundant test.
697 2002-01-25 Roger Sayle <roger@eyesopen.com>
699 * function.h (struct function): New field calls_constant_p.
700 (current_function_calls_constant_p): New macro for above.
701 * function.c (prepare_function_start): Initialize calls_eh_return
702 and calls_constant_p.
703 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
704 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
705 when the current_function_calls_constant_p.
706 * integrate.c (expand_inline_function): Set calls_constant_p if
707 the function being inlined has calls_constant_p set.
709 2002-01-25 Roger Sayle <roger@eyesopen.com>
711 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
712 optimizing, even if flag_gcse is true.
713 * toplev.c (rest_of_compilation): purge_builtin_constant_p
714 only needs to be called when "optimize > 0 && flag_gcse".
716 2003-01-25 Roger Sayle <roger@eyesopen.com>
718 * stmt.c (emit_case_bit_tests): New routine to implement suitable
719 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
720 (case_bit_test_cmp): New comparison function for "qsort" to order
721 case_bit_tests by decreasing number of destination nodes.
722 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
723 (expand_end_case_type): Use emit_case_bit_tests to implement
724 suitable switch statments.
725 (CASE_USE_BIT_TESTS): New target macro to disable the above.
726 * Makefile.in (stmt.o): Add dependency on optab.h.
727 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
729 2003-01-23 Andreas Schwab <schwab@suse.de>
731 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
732 __do_global_ctors_aux hidden global and don't put it in
734 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
735 instead so that it comes first.
737 Sat Jan 25 16:11:22 CET 2003 Jan Hubicka <jh@suse.cz>
739 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
740 subreg is read/modify.
742 Sat Jan 25 15:55:08 CET 2003 Jan Hubicka <jh@suse.cz>
744 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
745 do libcall for large blocks.
746 * i386.md (comi patterns): Set type to ssecomi.
747 (sse2_unpck?pd): Fix mode of vec_select.
749 * cse.c: Include except.h
750 (cse_set_around_loop): Do not create new basic blocks.
751 * Makefile.in (cse.o): Add dependnecy on except.h
753 Sat Jan 25 12:05:17 CET 2003 Jan Hubicka <jh@suse.cz>
755 * builtins.c (fold_trunc_transparent_mathfn): New function.
756 (fold_builtin): Use it.
757 * convert.c (convert_to_real): Re-enable code to convert
758 math functions; add support for floor familly functions.
760 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
762 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
763 dependencies on coretypes.h and $(TM_H).
765 Sat Jan 25 11:10:03 CET 2003 Jan Hubicka <jh@suse.cz>
767 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
769 2002-01-24 Stuart Hastings <stuart@apple.com>
771 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
773 2003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
775 * config/c4x/c4x.md (UNSPEC_BU): New constants.
776 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
777 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
778 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
779 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
780 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
781 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
782 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
784 Fri Jan 24 23:44:12 CET 2003 Jan Hubicka <jh@suse.cz>
786 * emit-rtl.c (reg_attrs_htab): New static variable.
787 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
789 (reg_rtx): Do not maintain regno_decl.
790 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
791 set_mem_attrs_from_reg): New global function.
792 (init_emit): Do not initialize regno_decl.
793 (init_emit_once): initialize reg_attrs_htab.
794 * final.c (alter_subreg): Do not replace REG by SUBREG.
795 (gen_mem_expr_from_op): Improve output.
796 (output_asm_operands): Likewise.
797 * function.c (assign_params): Do not set REGNO_DECL.
798 * function.h (struct function): Kill regno_decl.
800 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
801 * print_rtl.c (print_rtx): Output REG information.
802 * regclass.c (reg_scan_mark_refs): Update attrs.
803 * reload1.c (alter_reg): Likewise.
804 * simplify_rtx.c (simplify_subreg): Likewise.
805 * stmt.c (expand_decl): Likewise.
806 * rtl.def (REG): Add new field.
807 * rtl.h (struct reg_attrs): New.
808 (rtunion_def): At rtreg.
809 (X0MEMATTR): Add checking.
810 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
811 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
813 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
815 2003-01-24 Bob Wilson <bob.wilson@acm.org>
817 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
818 (xtensa_emit_call, print_operand): Fix printf format strings
819 to avoid compile warnings.
820 (xtensa_function_prologue, xtensa_function_epilogue): Change type
821 of "size" argument to HOST_WIDE_INT to fix compile warnings.
822 * config/xtensa/xtensa-protos.h
823 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
825 Fri Jan 24 23:03:32 CET 2003 Jan Hubicka <jh@suse.cz>
827 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
828 (implicit_built_in_decls): New global array.
829 (mathfn_built_in): New global function.
830 (fold_trunc_transparent_mathfn): New static function
831 (expand_builtin_strstr, expand_bultin_strchr,
832 expand_builtin_strpbrk, expand_builtin_strcpy,
833 expand_builtin_strncpy, expand_bultin_strcmp,
834 expand_bultin_strncat, expand_builtin_fputs): Use
835 implicint_built_in_decls.
836 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
837 * builtins.def: Fix comments.
838 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
839 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
840 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
841 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
842 (DEF_C99_C90RES_BULTIN): New.
843 (*f, *l builtins): Update.
844 * c-common.c (DEF_BUILTIN): Initialize implicit array.
845 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
846 * convert.c (strip_float_extensions): New global function.
847 * tree.h (DEF_BUILTIN): Accept 10 arguments.
848 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
850 * java/builtins.c (define_builtin): Handle implicit.
851 (DEF_BUILTIN): Update.
852 * tm.texi (TARGET_C99_FUNCTIONS): Document.
853 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
854 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
857 2003-01-24 Bob Wilson <bob.wilson@acm.org>
859 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
860 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
861 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
862 * config/xtensa/crti.asm: New file.
863 * config/xtensa/crtn.asm: New file.
864 * config/xtensa/t-elf: New file.
865 * config/xtensa/t-linux: New file.
866 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
867 Move various CFLAGS settings to new t-elf file.
869 2003-01-24 Richard Henderson <rth@redhat.com>
872 * tree-inline.c (find_builtin_longjmp_call_1): New.
873 (find_builtin_longjmp_call): New.
874 (inlinable_function_p): Use it.
876 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
878 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
879 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
880 * config/i386/i386.c (function_arg_pass_by_reference): New.
881 (ix86_va_arg): Support arguments passed by reference.
883 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
885 * cfgloopanal.c: New file.
886 * cfgloopmanip.c: New file.
887 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
888 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
889 cfglayout.o): Add dependency on cfgloop.h.
890 (cfgloop.o): Add flags.h dependency.
891 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
892 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
893 (struct loop, struct loops, flow_loops_find, flow_loops_update,
894 flow_loops_free, flow_loops_dump, flow_loop_dump,
895 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
896 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
897 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
898 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
899 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
900 find_common_loop, verify_loop_structure): Declarations moved to ...
901 * cfgloop.h: New file.
902 * bb-reorder.c (reorder_basic_blocks): Modified.
903 * cfglayout.c: Include cfgloop.h.
904 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
905 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
906 (break_superblocks): New static function.
907 (cfg_layout_finalize): Use it.
908 (cfg_layout_split_block): New function.
909 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
911 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
913 (cfg_layout_split_block): Declare.
914 * cfgloop.c: Include cfgloop.h and flags.h.
915 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
916 get_loop_body): Avoid signed versus unsigned comparison warnings.
917 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
918 loop_latch_edge): Modified.
919 (verify_loop_structure): Modified to use flags stored in loop structure;
920 check irreducible loops.
921 (cancel_loop, cancel_loop_tree): New functions.
922 (estimate_probability): Use loop analysis code for predictions.
923 (estimate_loops_at_level): Avoid signed versus unsigned comparison
925 * doloop.c: Include cfgloop.h.
926 * loop.c: Include cfgloop.h.
927 * predict.c: Include cfgloop.h.
928 * toplev.c: Include cfgloop.h.
929 * unroll.c: Include cfgloop.h.
930 * tracer.c (tracer): Modified.
932 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
934 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
936 2003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
938 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
939 * configure: Regenerate.
941 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
942 (tls_symbolic_reference_mentioned_p): Add prototype.
943 (s390_tls_get_offset): Add prototype.
944 (emit_pic_move): Remove prototype, replace by ...
945 (emit_symbolic_move): .. this new prototype.
947 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
948 (tls_model_chars): New global variable.
949 (s390_encode_section_info): Encode TLS model.
950 Use targetm.binds_local_p to check for local symbols.
951 (s390_strip_name_encoding): New function.
952 (TARGET_STRIP_NAME_ENCODING): Define.
954 (get_thread_pointer): New function.
955 (legitimize_tls_address): New function.
956 (legitimize_address): Call it.
957 (emit_pic_move): Remove, replace by ...
958 (emit_symbolic_move): ... this new function.
960 (larl_operand): Handle TLS operands.
961 (legitimate_constant_p): Likewise.
962 (s390_decompose_address): Likewise.
963 (s390_cannot_force_const_mem): New function.
964 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
966 (s390_output_symbolic_const): Handle TLS unspecs.
967 (print_operand): New code 'J'.
968 (machine_function): Add struct member 'some_ld_name'.
969 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
971 (enum s390_builtin): New type.
972 (code_for_builtin_64, code_for_builtin_31): New global variables.
973 (s390_init_builtins, s390_expand_builtin): New functions.
974 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
976 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
977 (ASM_OUTPUT_LABELREF): Define.
978 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
980 * config/s390/s390.md: Define TLS UNSPEC constants.
981 ("movdi", "movsi"): Handle TLS operands.
982 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
983 ("*tls_load_64", "*tls_load_31"): New insns.
984 ("call_value_tls", "call_value_tls_exp"): New expanders.
985 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
986 "bas_tls_64", "bas_tls_31"): New insns.
988 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
990 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
991 spe ABI is configured, if requested.
993 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
995 * doc/passes.texi: Fix typo.
997 2003-01-24 Andreas Schwab <schwab@suse.de>
999 * stor-layout.c (excess_unit_span): Only define if used.
1001 2003-01-24 Jerry Quinn <jlquinn@optonline.net>
1003 * gcc/doc/invoke.texi (Optimization Options): List -O levels
1004 for each optimization flag.
1006 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
1008 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
1010 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1012 * doc/bugreport.texi: Use @command instead of @code for commands.
1013 * doc/collect2.texi: Likewise.
1014 * doc/headerdirs.texi: Likewise.
1015 * doc/invoke.texi: Likewise.
1016 * doc/standards.texi: Likewise.
1017 * doc/tm.texi: Likewise.
1018 * doc/trouble.texi: Likewise.
1020 2003-01-24 Nick Clifton <nickc@redhat.com>
1022 * config/arm/arm.c (use_return_insn): Do not use a single return
1023 instruction for interrupt handelrs which have to create a stack
1025 (arm_expand_prologue): Do not pre-bias the return address of
1026 interrupt handlers which create a stack frame.
1028 2003-01-24 Nick Clifton <nickc@redhat.com>
1032 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
1034 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
1035 med_cbranches. Fix logic in short_cbranches.
1037 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
1039 * config/sh/sh.md (delay for cbranch): Don't annul delay
1041 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
1042 cbranch with unfilled delay slot on SH2e.
1043 (output_branch): Fill with a nop the delay slot of a
1044 branch that required a delay slot but didn't get one.
1046 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1048 * doc/invoke.texi (SH options): Document -m2e.
1049 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
1050 * config/sh/lib1funcs.asm: Likewise.
1051 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
1052 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
1054 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
1056 (SH3E_BIT): Renamed to...
1057 (SH_E_BIT): ... this. Replace all uses.
1058 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
1059 Replace all uses of TARGET_SH3E with TARGET_SH2E.
1060 (TARGET_SWITCHES): Added 2e.
1061 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
1062 (processor_type): Added PROCESSOR_SH2E.
1063 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
1064 TARGET_SH2E, except in sqrtsf2_i.
1065 (attribute cpu): Added sh2e.
1066 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
1067 (MULTILIB_MATCHES): Use m2e multilib for m3e.
1068 * config.gcc: Add sh2e target support.
1070 2003-01-24 Phil Edwards <pme@gcc.gnu.org>
1072 Rename -W to -Wextra.
1073 * c-decl.c: Update comments.
1074 * c-typeck.c: Likewise.
1075 * flags.h: Likewise.
1076 * function.c: Likewise.
1078 * toplev.c: Update comments.
1079 (W_options): Add 'extra'.
1080 (display_help): Remove '-W'.
1081 (decode_W_option): Special warn_uninitialized treatment in the case
1083 * doc/invoke.texi: Update with new entries.
1085 2003-01-23 Richard Henderson <rth@redhat.com>
1087 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
1088 in no-else-block case. Add commentary.
1090 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1092 * configure.in: Revert last change.
1094 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1096 * configure.in: Don't include ansidecl.h in tconfig.h.
1097 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
1098 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
1101 * configure: Regenerate.
1103 2003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1106 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
1107 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
1110 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1112 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
1114 2003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
1116 * genattrtab.c (write_attr_get): Mark 'insn' paramter
1117 as ATTRIBUTE_UNUSED.
1119 2003-01-23 Richard Earnshaw <rearnsha@arm.com>
1121 * arm.c (thumb_base_register_rtx_p): New function.
1122 (thumb_index_register_rtx_p): New function.
1123 (thumb_legitimate_address_p): New function.
1124 (thumb_legitimate_offset_p): New function.
1125 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
1126 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
1128 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
1129 (THUMB_LEGITIMATE_OFFSET): Delte.
1130 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
1131 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
1132 (thumb_legitimate_offset_p): Likewise.
1134 2003-01-23 Andreas Schwab <schwab@suse.de>
1136 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
1138 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1140 * fixinc/Makefile.in (FL_LIST): Revert last change.
1142 2003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1145 * invoke.texi (ftest-coverage): Fix broken cross-reference.
1146 Change @code to @command for gcov command.
1148 * gcc.texi: Adjust title of gcov section.
1150 * gcov.texi: Likewise.
1152 2003-01-22 Roger Sayle <roger@eyesopen.com>
1154 PR optimization/8423
1155 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
1156 its argument is constant, or 0 if !flag_gcse.
1157 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
1158 if it's argument is constant.
1159 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
1160 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
1161 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
1162 * builtins.c (purge_builtin_constant_p): New function to force
1163 instantiation of any remaining CONSTANT_P_RTX nodes.
1164 * rtl.h (purge_builtin_constant_p): Prototype here.
1165 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
1166 pass after GCSE and before loop.
1167 (flag_gcse): No longer static.
1168 * flags.h (flag_gcse): Prototype here.
1170 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
1172 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
1173 introduced by last change.
1175 2003-01-22 Andreas Schwab <schwab@suse.de>
1177 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
1179 2003-01-22 Kazu Hirata <kazu@cs.umass.edu>
1181 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
1182 request a scratch reg on H8S when the shift count is 8.
1184 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
1186 * config/s390/s390-protos.h (preferred_la_operand_p):
1187 Remove second parameter.
1188 * config/s390/s390.c (preferred_la_operand_p): Likewise.
1189 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
1190 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
1191 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
1192 Add peepholes to transform ADD to LOAD ADDRESS.
1194 2003-01-22 Richard Earnshaw <rearnsha@arm.com>
1196 * arm.c (arm_address_register_rtx_p): New function.
1197 (arm_legitimate_address_p): New function.
1198 (arm_legitimate_index_p): New function.
1199 (legitimize_pic_address): Use arm_legitimate_index_p.
1200 * arm-protos.h (arm_legtimate_address_p): Add prototype.
1201 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
1202 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
1204 2003-01-22 Hartmut Penner <hpenner@de.ibm.com>
1206 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
1207 * config/s390/2064.md (define_bypass): Correct 'Load' and
1208 'Load-address' bypass values.
1210 2003-01-22 Andreas Schwab <schwab@suse.de>
1212 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
1214 2003-01-21 Zack Weinberg <zack@codesourcery.com>
1216 * genautomata.c (output_internal_insn_latency_func,
1217 output_print_reservation_func): Short circuit when there is no
1218 automaton to generate code for.
1220 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1222 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
1223 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
1225 2003-01-21 Geoffrey Keating <geoffk@apple.com>
1227 * config/rs6000/rs6000.md: Remove warning.
1228 (builtin_setjmp_receiver): Likewise.
1229 * config/darwin.c (update_stubs): Slightly improve terrible hack
1230 with identifiers. Add comment pointing out problems with it.
1231 (update_non_lazy_ptrs): Likewise.
1233 2003-01-21 Richard Henderson <rth@redhat.com>
1235 * dwarf2out.c (lookup_filename): Fix printf format warning.
1236 * system.h (fread_unlocked, fwrite_unlocked): Undef.
1238 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
1239 (fixincl.o-warn, gnu-regex.o-warn): New.
1240 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
1241 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
1242 * fixinc/fixincl.c (process): Fix printf format warning.
1244 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
1246 * dwarf2out (output_file_names): Don't crash if called
1247 with empty file_table.
1249 2003-01-21 Zack Weinberg <zack@codesourcery.com>
1251 * genautomata.c (output_internal_insn_latency_func): Add
1252 missing break statement to generated code.
1254 2003-01-21 Roger Sayle <roger@eyesopen.com>
1256 * stmt.c (same_case_target_p): New function to determine whether
1257 two case labels branch to the same target. Split out from...
1258 (group_case_nodes): ... here. Use same_case_target_p instead.
1259 (strip_default_case_nodes): Remove explicit case nodes
1260 that branch to the default destination.
1261 (expand_end_case_type): Call strip_default_case_nodes after
1262 group_case_nodes, to simplify the case-list before we count it.
1263 Only generate table_label RTX when actually needed. Try to share
1264 thiscase->exit_label and thiscase->data.case_stmt.default_label
1265 when a switch has no explicit default case. Simplify test for
1268 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
1270 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
1272 (*negsf2_h8300hs): Likewise.
1273 (*addsi3_lshiftrt_16_zexthi): Likewise.
1274 (*iorhi3_lshiftrt_8): Likewise.
1276 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
1278 * dwarf2out.c (fde_table_in_use): Mark GTY.
1279 (dwarf2out_cfi_label_num): New variable, marked GTY.
1280 (dwarf2out_cfi_label): Use it instead of static label_num.
1281 * emit-rtl.c (label_num): Mark GTY.
1283 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
1285 * config/h8300/h8300.c (output_plussi): Support H8/300.
1286 (compute_plussi_length): Likewise.
1287 (compute_plussi_cc): Likewise.
1288 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
1289 output assembly instructions.
1291 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1293 * calls.c (fix_unsafe_tree): Prototype.
1295 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
1296 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
1297 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
1298 c-parse.o-warn): Add -Wno-error.
1299 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
1301 * configure.in (--enable-werror): Add new flag.
1302 * doc/install.texi (--enable-werror): Document.
1303 * configure: Regenerate.
1305 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
1307 2003-01-21 Andreas Schwab <schwab@suse.de>
1309 * genautomata.c (output_internal_insn_latency_func): Fix missing
1310 close paren in output.
1312 2003-01-21 Zack Weinberg <zack@codesourcery.com>
1314 * genautomata.c: Space savings in generated code:
1315 (output_dfa_insn_code_func): Split out the table-enlargement
1316 path to an out-of-line static function, dfa_insn_code_enlarge.
1317 (output_internal_insn_latency_func): Use a lookup table for the
1319 (output_print_reservation_func): Use a lookup table for the
1322 2003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
1325 * calls.c (fix_unsafe_tree): Split out from ...
1326 (expand_call): ... here. Use it on the function address too.
1328 2003-01-20 Richard Henderson <rth@redhat.com>
1330 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
1332 2003-01-20 Richard Henderson <rth@redhat.com>
1335 * stmt.c (expand_asm_operands): Validize memory operands.
1337 2003-01-20 Richard Henderson <rth@redhat.com>
1340 * ifcvt.c (noce_process_if_block): Correct arguments to
1341 modified_between_p for no-else-block case.
1343 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1345 * config/h8300/h8300.c (const_costs): Remove a warning.
1346 (output_plussi): Likewise.
1347 (compute_plussi_length): Likewise.
1348 (compute_plussi_cc): Likewise.
1350 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1352 * config/h8300/h8300.md (addsi_h8300): Remove the last
1355 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1357 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
1359 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1361 * system.h (__NO_STRING_INLINES): Define.
1363 2003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1365 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
1366 is not a scalar int mode.
1368 2003-01-20 Roger Sayle <roger@eyesopen.com>
1370 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
1371 insn's notes following a substitution inside a libcall.
1373 2003-01-20 Zack Weinberg <zack@codesourcery.com>
1375 * configure.in: Check for system-provided 'uchar' type.
1376 * configure, config.in: Regenerate.
1377 * cpphash.h: Only typedef 'uchar' if the system doesn't.
1379 2003-01-20 Richard Henderson <rth@redhat.com>
1381 * expr.h (MUST_PASS_IN_STACK): Move implementation...
1382 * calls.c (default_must_pass_in_stack): ... here.
1384 2003-01-20 Vladimir Makarov <vmakarov@redhat.com>
1386 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
1388 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
1390 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
1391 Wrap up definition of `insn_alts'.
1393 * genattrtab.c (main): Wrap up `insn_alts'.
1395 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1397 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
1399 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
1401 * config.in, configure: Regenerate.
1403 2003-01-20 Nick Clifton <nickc@redhat.com>
1405 * config/arm/arm.md (sibcall_epilogue): Add an
1406 UNSPEC_PROLOGUE_USE to prevent the link register from being
1409 Mon Jan 20 14:36:23 CET 2003 Jan Hubicka <jh@suse.cz>
1411 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
1413 2003-01-20 Andreas Schwab <schwab@suse.de>
1415 * system.h: Don't declare strsignal if the decl test hasn't been
1418 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
1420 * config/h8300/h8300.c (notice_update_cc): Don't assume that
1421 recog_data.operands[0] is always associated with cc0.
1423 2003-01-19 David Edelsohn <edelsohn@gnu.org>
1425 * collect2.c (ldgetname): Expand declaration to prototype.
1426 * read-rtl.c (atoll): Add prototype.
1427 * system.h (strsignal): Also declare if no declaration found.
1429 2003-01-19 Alexandre Oliva <aoliva@redhat.com>
1431 * config.gcc (mips64*-*-linux*): Added.
1432 * config/mips/linux64.h, config/mips/t-linux64: New file.
1433 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
1434 * config/mips/mips.c (override_options): Use it.
1435 * config/mips/mips.h (TARGET_SWITCHES): Added...
1436 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
1437 * Makefile.in (SPECS): New.
1438 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
1439 * gcc.c (process_command): Move self-spec processing past spec
1441 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
1442 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
1445 * doc/invoke.texi (-mabi-fake-default): Document.
1447 2003-01-19 Stephane Carrez <stcarrez@nerim.fr>
1449 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
1450 z_reg, z_reg_qi): Declare static and GTY().
1452 (create_regs_rtx): Don't create da_reg.
1453 ("gt-m68hc11.h"): Include for GTY roots.
1454 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
1456 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
1457 (m68hc11_soft_tmp_reg): Likewise.
1458 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
1460 2003-01-18 Kazu Hirata <kazu@cs.umass.edu>
1462 * basic-block.h: Fix comment formatting.
1463 * calls.c: Likewise.
1464 * combine.c: Likewise.
1465 * convert.c: Likewise.
1467 * haifa-sched.c: Likewise.
1468 * libgcc2.c: Likewise.
1470 * profile.c: Likewise.
1471 * system.h: Likewise.
1473 2003-01-18 Roger Sayle <roger@eyesopen.com>
1475 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
1477 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1479 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
1481 2003-01-17 Dale Johannesen <dalej@apple.com>
1483 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
1484 (*floatunssidf2_internal): Ditto.
1486 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
1488 * alias.c: Fix comment typos.
1489 * basic-block.h: Likewise.
1490 * c-common.c: Likewise.
1491 * c-common.h: Likewise.
1492 * c-decl.c: Likewise.
1493 * c-opts.c: Likewise.
1494 * c-pragma.c: Likewise.
1495 * c-pretty-print.h: Likewise.
1497 * cfganal.c: Likewise.
1498 * cfgbuild.c: Likewise.
1499 * cfgcleanup.c: Likewise.
1500 * cfglayout.c: Likewise.
1501 * cfgrtl.c: Likewise.
1502 * convert.c: Likewise.
1503 * cpphash.h: Likewise.
1504 * cpplex.c: Likewise.
1505 * cpplib.h: Likewise.
1507 * diagnostic.c: Likewise.
1508 * diagnostic.h: Likewise.
1509 * dwarf2.h: Likewise.
1511 2003-01-17 Stan Shebs <shebs@apple.com>
1513 * config/darwin-protos.h: Forward-declare struct cpp_reader.
1515 2003-01-17 Douglas B Rupp <rupp@gnat.com>
1517 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
1518 mistake in last checkin.
1520 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
1522 * et-forest.c: Fix comment typos.
1523 * et-forest.h: Likewise.
1524 * except.c: Likewise.
1526 * flags.h: Likewise.
1530 * genattrtab.c: Likewise.
1531 * genautomata.c: Likewise.
1532 * gengtype.c: Likewise.
1533 * genrecog.c: Likewise.
1534 * global.c: Likewise.
1535 * gthr-rtems.h: Likewise.
1537 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1539 * i386.c (x86_function_profiler): Fix format specifier.
1541 2003-01-17 Richard Henderson <rth@redhat.com>
1543 * gengtype.c (walk_type): Allow paramN_is.
1545 2003-01-17 Nick Clifton <nickc@redhat.com>
1547 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
1549 2003-01-16 Richard Henderson <rth@redhat.com>
1551 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
1553 2003-01-16 Richard Henderson <rth@redhat.com>
1555 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
1556 (alpha_next_sequence_number): Likewise.
1557 (alpha_this_literal_sequence_number): Likewise.
1558 (alpha_this_gpdisp_sequence_number): Likewise.
1559 (struct alpha_funcs, alpha_funcs_num): Likewise.
1560 (struct alpha_links): Fix branch merge error.
1561 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
1563 2003-01-17 Alexandre Oliva <aoliva@redhat.com>
1565 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
1568 2003-01-16 Kazu Hirata <kazu@cs.umass.edu>
1570 * ifcvt.c: Fix comment typos.
1572 * libgcc2.c: Likewise.
1573 * local-alloc.c: Likewise.
1575 * predict.c: Likewise.
1576 * ra-build.c: Likewise.
1578 * ra-colorize.c: Likewise.
1580 * ra-rewrite.c: Likewise.
1581 * regmove.c: Likewise.
1582 * reload.h: Likewise.
1583 * rtlanal.c: Likewise.
1584 * toplev.c: Likewise.
1586 * unwind-dw2-fde-glibc.c: Likewise.
1587 * vmsdbgout.c: Likewise.
1589 2003-01-16 Richard Henderson <rth@redhat.com>
1591 * dwarf2out.c (struct file_table): Remove.
1592 (FILE_TABLE_INCREMENT): Remove.
1593 (file_table): Make a varray; mark for GC. Update all users.
1594 (file_table_last_lookup_index): Extract from struct file_table.
1595 (output_file_names): Fix unsigned compare warnings.
1596 (add_name_attribute): Remove inline marker.
1597 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
1598 (lookup_filename): Don't manage size of file_table.
1599 (init_file_table): Allocate file_table with GC.
1600 (dwarf2out_init): Don't record main_input_filename here.
1601 (dwarf2out_finish): Do it here instead.
1603 2003-01-16 Bruce Korb <bkorb@gnu.org>
1605 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
1607 2003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
1609 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
1610 instead of rotldi3_mextr.
1612 2003-01-16 Vladimir Makarov <vmakarov@redhat.com>
1614 * haifa-sched.c (move_insn): Restore moving all schedule group.
1615 (set_priorities): Restore taking SCHED_GROUP_P into account.
1617 * sched-deps.c (add_dependence): Restore processing the last group
1619 (remove_dependence, group_leader): Restore the functions.
1620 (set_sched_group_p): Restore adding dependencies from previous insn
1622 (compute_forward_dependences): Restore usage of group_leader.
1624 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
1627 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
1629 (can_schedule_ready_p): Ditto.
1630 (add_branch_dependences): Restore skipping over the group insns.
1632 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
1634 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
1635 68HC12 pre/post inc/dec side effects.
1637 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
1639 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
1641 Thu Jan 16 21:50:25 2003 J"orn Rennecke <amylaar@onetel.net.uk>
1643 * sh.md (mshflo_w_x): Fix description of operation.
1645 2003-01-16 Zack Weinberg <zack@codesourcery.com>
1647 * config/rs6000/rs6000.h: Mention Altivec registers in
1648 commentary. Fix typo.
1650 2003-01-16 David Edelsohn <edelsohn@gnu.org>
1652 * config/rs6000/rs6000.md (movti_string): Remove clobber.
1653 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
1654 generate PARALLEL with clobber for TARGET_POWER.
1656 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1658 * ra-colorize.c (colorize_one_web): Initialize variable.
1659 * regmove.c (fixup_match_1): Likewise.
1660 * reload1.c (reload_as_needed): Likewise.
1661 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
1663 2003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1665 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
1667 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1669 * dbxout.c (lastfile, cwd): Fix `unused' warning.
1670 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
1671 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
1672 is_main_source, file_table, decl_die_table_in_use,
1673 abbrev_die_table_in_use, line_info_table_in_use,
1674 separate_line_info_table_in_use, pubname_table_in_use,
1675 arange_table_in_use, ranges_table_in_use,
1676 current_function_has_inlines): Likewise.
1677 * flow.c (life_analysis): Likewise.
1678 * genemit.c (gen_insn): Likewise.
1679 * protoize.c (cplus_suffix): Likewise.
1681 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
1682 * arm.h (ROUND_UP_WORD): Likewise.
1684 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
1686 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
1687 init_emit_once): Likewise.
1688 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
1690 * function.c (assign_stack_temp_for_type): Likewise.
1691 * loop.c (loop_invariant_p): Likewise.
1692 * recog.c (push_operand): Likewise.
1693 * regclass.c (init_reg_sets_1): Likewise.
1694 * reload.c (update_auto_inc_notes): Likewise.
1695 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
1696 * stmt.c (expand_asm_operands): Likewise.
1697 * stor-layout.c (start_record_layout): Likewise.
1699 2003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
1701 * config/c4x/c4x.md (epilogue): Correct last patch.
1703 2003-01-15 Richard Henderson <rth@redhat.com>
1705 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
1706 also check that GP is being used.
1707 (alpha_find_lo_sum_using_gp): New.
1708 (alpha_does_function_need_gp): Use get_attr_usegp.
1709 * config/alpha/alpha-protos.h: Update.
1710 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
1713 2003-01-15 Roger Sayle <roger@eyesopen.com>
1715 * gcse.c (one_cprop_pass): Change function arguments to take both
1716 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
1717 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
1718 (bypass_jumps): New function to perform separate jump bypassing pass.
1719 * rtl.h (bypass_jumps): Add function prototype.
1720 * timevar.def (TV_BYPASS): New timing variable.
1721 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
1722 (dump_file): New entry for the bypass RTL dump file.
1723 (rest_of_compilation): Insert new jump bypassing optimization
1725 * doc/passes.texi: Document new pass.
1727 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
1729 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
1730 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
1731 * pa.h (TARGET_SOM_SDEF): Define.
1732 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
1734 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
1736 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
1737 allocate 4-bytes of locals on 68HC11.
1738 (expand_epilogue): Likewise.
1739 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
1741 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
1743 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
1744 and -mshort-double to the assembler to specify the ABI.
1745 (LINK_SPEC): Likewise.
1746 (CPP_SPEC): Pass HCS12 specific define.
1747 (MASK_M68S12): New define.
1748 (TARGET_M68S12): Likewise.
1749 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
1750 (TARGET_VERSION): Update.
1751 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
1752 (LINK_SPEC): Update.
1754 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
1755 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
1757 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
1759 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
1762 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
1764 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
1765 flag before setting it.
1767 2003-01-15 Roger Sayle <roger@eyesopen.com>
1769 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
1770 when loop condition is known true, i.e. "while (1) { ... }".
1771 (genrtl_for_stmt): Similarly for "for" statements.
1773 2003-01-15 Roger Sayle <roger@eyesopen.com>
1775 * real.c (real_sqrt): Return a bool result indicating whether
1776 a floating point exception or trap should be raised.
1777 * real.h (real_sqrt): Update function prototype.
1778 * builtins.c (fold_builtin): Only fold non-trapping square
1779 roots unless we're ignoring errno and trapping math.
1781 2003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
1783 * expr.h (emit_conditional_add): Add PARAMS to declaration.
1784 * gengtype-lex.l (malloc, realloc): Move defines after include of
1785 system.h. Remove duplicate include of system.h.
1787 2003-01-15 Roger Sayle <roger@eyesopen.com>
1790 * optabs.c (expand_unop): When manipulating the FP sign bit
1791 using integer operations, account for targets with different
1792 integer and FP word orders.
1793 (expand_abs): Likewise.
1795 2003-01-15 David Edelsohn <edelsohn@gnu.org>
1797 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
1798 file extension in section name.
1800 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
1802 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
1805 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
1807 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
1808 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
1809 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
1810 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
1812 Wed Jan 15 12:23:21 CET 2003 Jan Hubicka <jh@suse.cz>
1815 * global.c (struct allocno): Add no_stack_reg.
1816 (global_conflicts): Set no_stack_reg.
1819 * convert.c (convert_to_real): Fold - and abs only when profitable.
1820 * fold-const.c (fold): Fold truncates in - and abs.
1822 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
1824 Segher Boessenkool <segher@koffie.nl>
1826 * predict.c (real_inv_br_prob_base): New variable.
1827 (propagate_freq): Use multiply by reciprocal instead of
1828 division. Don't divide by 1.0 at all.
1829 (estimate_bb_frequencies): Similar.
1831 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
1833 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
1834 * configure: Rebuilt.
1836 2003-01-15 Hartmut Penner <hpenner@de.ibm.com>
1838 * config/s390/s390.c (s390_safe_attr_type): New function.
1839 (s390_use_dfa_pipeline_interface): New function, return true for z900.
1840 (s390_issue_rate): New function.
1841 (s390_agen_dep_p): New function.
1842 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
1843 (s390_adjust_cost): Return 'cost' if new DFA is used.
1844 (s390_adjust_priority): Delete function.
1845 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
1846 * config/s390/s390.md (atype attribute): Attribute 'atype' default
1847 determined by 'op_type'.
1848 (type attribute): Added more type attributes.
1849 * config/s390/2064.md: New DFA description for z900 pipeline.
1851 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
1853 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
1854 forced to memory. Fixes PR bootstrap/9036.
1856 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
1857 to set $gp before the call.
1859 2003-01-14 Richard Henderson <rth@redhat.com>
1861 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
1862 for force_const_mem.
1864 2003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1866 * genattr.c (main): Rearrange output to avoid prototype warning.
1867 * genautomata.c (transform_3): Fix ambiguous-else warning.
1868 * local-alloc.c (requires_inout): Add parentheses around
1869 assignment used as truth-value.
1870 * timevar.c: Move system includes above local includes. Include
1872 * Makefile.in (timevar.o): Depend on toplev.h.
1874 2003-01-14 Denis Chertykov <denisc@overta.ru>
1876 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
1877 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
1879 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
1881 (TARGET_ATTRIBUTE_TABLE): New macro.
1882 (valid_machine_type_attribute): Remove.
1883 (valid_machine_decl_attribute): Remove.
1884 (ip2k_handle_progmem_attribute): New function.
1885 (ip2k_handle_fndecl_attribute): New function.
1887 2003-01-10 Andrew Haley <aph@redhat.com>
1889 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
1890 registers to be in correct order. Add rip.
1892 2003-01-14 Kazu Hirata <kazu@cs.umass.edu>
1894 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
1895 (*iorsi3_and_lshiftrt_9_sb): Likewise.
1897 Tue Jan 14 00:45:33 CET 2003 Jan Hubicka <jh@suse.cz>
1899 * convert.c (strip_float_extensions): Look for narrowest type handling
1902 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
1904 * convert.c (strip_float_extensions): Make global.
1905 * tree.h (strip_float_extensions): Declare.
1907 2003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
1909 * timevar.def: define TV_NAME_LOOKUP.
1910 * timevar.c (timevar_pop): Be verbose when aborting.
1912 2003-01-13 Andreas Schwab <schwab@suse.de>
1914 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
1915 $(parsedir), just move the temporary file at the end.
1916 ($(parsedir)/gengtype-yacc.c): Likewise.
1918 2003-01-13 Alexandre Oliva <aoliva@redhat.com>
1920 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
1921 ${ac_tool_prefix} to ADAC or CC. Protect them from word
1923 * configure: Rebuilt.
1925 2003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1927 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
1928 internal_mcount): Don't use PARAMS.
1929 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
1931 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
1933 2003-01-13 Andreas Schwab <schwab@suse.de>
1935 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
1938 2003-01-13 Kazu Hirata <kazu@cs.umass.edu>
1940 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
1941 (*iorsi3_and_lshiftrt_n_sb): Likewise.
1943 2003-01-12 Mark Mitchell <mark@codesourcery.com>
1946 * c-lex.c (c_lex): Set the token value to error_mark_node for
1947 invalid numeric constants.
1949 2003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1951 * c-pch.c (asm_file_startpos): Change to `long'.
1952 (pch_init): Use ftell, not ftello.
1953 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
1954 Use `long' instead of `off_t'.
1955 (c_common_read_pch): Likewise.
1956 * ggc-common.c (gt_pch_save): Use long/ftell instead of
1959 2003-01-12 Alan Modra <amodra@bigpond.net.au>
1961 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
1963 2003-01-11 Richard Earnshaw (rearnsha@arm.com)
1965 * arm-protos.h (struct cpp_reader): Add declaration.
1967 Sat Jan 11 11:02:58 CET 2003 Jan Hubicka <jh@suse.cz>
1970 * i386.c (output_fp_compare): Fix typo.
1972 2003-01-10 David Edelsohn <edelsohn@gnu.org>
1974 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
1976 2003-01-10 Geoffrey Keating <geoffk@apple.com>
1978 * Makefile.in (parsedir): New variable.
1979 (docobjdir): New variable.
1980 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
1981 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
1982 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
1983 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
1984 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
1986 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
1987 objc.maintainer-clean): Use parsedir.
1989 * varasm.c (struct constant_descriptor_rtx): Remove unused
1992 * toplev.c (documented_lang_options): Document -Winvalid-pch.
1994 2003-01-10 Richard Henderson <rth@redhat.com>
1996 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
1997 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
1999 2003-01-10 Richard Henderson <rth@redhat.com>
2001 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
2002 not INTEGRAL_MODE_P when widening extensions.
2004 2003-01-10 Richard Henderson <rth@redhat.com>
2006 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
2008 2003-01-10 Geoffrey Keating <geoffk@apple.com>
2010 * ggc-page.c (ggc_collect): Avoid overflow computing
2013 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
2014 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
2016 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
2018 Fri Jan 10 22:05:35 CET 2003 Jan Hubicka <jh@suse.cz>
2020 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
2021 with weird operands.
2023 2003-01-10 Dale Johannesen <dalej@apple.com>
2025 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
2026 parameters. Call check_sibcall_argument_overlap if indicated.
2027 (check_sibcall_argument_overlap): Add mark_stored_args_map
2028 parameter. Don't mark parameter area as clobbered if not set.
2029 (expand_call): Adjust calls to above.
2031 2003-01-10 Kelley Cook <kelleycook@comcast.net>
2033 * configure.in (linker read-only and read-write section mixing):
2034 Squelch some assembler warnings.
2035 * configure: Likewise.
2037 2003-01-10 Hartmut Penner <hpenner@de.ibm.com>
2039 * doc/invoke.texi: Document -mtune, delete -mcpu
2040 option for S/390 and zSeries.
2041 * config/s390/s390.c (s390_tune_string) New variable.
2042 (s390_cpu_string) Delete variable.
2043 (override_options): Use s390_tune_string instead of
2045 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
2047 2003-01-10 Kazu Hirata <kazu@cs.umass.edu>
2049 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
2051 2003-01-10 Josef Zlomek <zlomekj@suse.cz>
2053 * jump.c (next_nonnote_insn_in_loop): New function.
2054 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
2056 (duplicate_loop_exit_test). Likewise.
2058 2003-01-09 Geoffrey Keating <geoffk@apple.com>
2060 Merge from pch-branch:
2062 2003-01-06 Geoffrey Keating <geoffk@apple.com>
2064 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
2067 2002-12-24 Geoffrey Keating <geoffk@apple.com>
2069 * cpplib.c (count_registered_pragmas): New function.
2070 (save_registered_pragmas): New function.
2071 (_cpp_save_pragma_names): New function.
2072 (restore_registered_pragmas): New function.
2073 (_cpp_restore_pragma_names): New function.
2074 * cpphash.h (_cpp_save_pragma_names): Prototype.
2075 (_cpp_restore_pragma_names): Likewise.
2076 * cpppch.c (struct save_macro_item): Split from save_macro_data.
2077 (struct save_macro_data): New field 'saved_pragmas'.
2078 (save_macros): Update for changes to struct save_macro_data.
2079 (cpp_prepare_state): Call _cpp_save_pragma_names, update
2080 for changes to struct save_macro_data.
2081 (cpp_read_state): Call _cpp_restore_pragma_names, update
2082 for changes to struct save_macro_data.
2084 * cpppch.c (cpp_read_state): Restore the hashtable references
2087 * tree.h (built_in_decls): Mark for PCH.
2089 * dbxout.c (lastfile): Don't mark for PCH.
2091 * ggc.h: Document PCH calls into memory managers.
2093 2002-12-18 Geoffrey Keating <geoffk@apple.com>
2095 * doc/invoke.texi (Precompiled Headers): Document the
2096 directory form of PCH.
2097 * cppfiles.c (validate_pch): New function.
2098 (open_file_pch): Search suitably-named directories for PCH files.
2100 2002-12-14 Geoffrey Keating <geoffk@apple.com>
2102 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
2104 (Type Information): Mention that the information is also
2105 used to implement PCH.
2106 * doc/passes.texi (Passes): Improve documentation of
2107 language-specific files.
2109 2002-12-11 Geoffrey Keating <geoffk@apple.com>
2111 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
2112 (struct walk_type_data): Add reorder_fn field.
2113 (walk_type): Process 'reorder' option.
2114 (write_types_process_field): Reorder parameters to gt_pch_note_object,
2115 call reorder_note_routine.
2116 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
2117 (ggc_wtd): Update for change to struct write_types_data.
2118 (pch_wtd): Likewise.
2119 * ggc.h (gt_pch_note_object): Reorder parameters.
2120 (gt_handle_reorder): New definition.
2121 (gt_pch_note_reorder): New prototype.
2122 * ggc-common.c (struct ptr_data): Add reorder_fn.
2123 (gt_pch_note_object): Reorder parameters.
2124 (gt_pch_note_reorder): New.
2125 (gt_pch_save): Call reorder_fn.
2126 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
2128 * dbxout.c (cwd): Don't mark for PCH.
2130 2002-12-09 Geoffrey Keating <geoffk@apple.com>
2132 * gengtype.c (finish_root_table): Fix some warnings.
2133 (write_root): Handle TYPE_STRING.
2134 * ggc.h (gt_ggc_m_S): Add prototype.
2135 * stringpool.c (gt_ggc_m_S): New function.
2137 2002-11-30 Geoffrey Keating <geoffk@apple.com>
2139 * dwarf2out.c (dw2_string_counter): New.
2140 (AT_string_form): Use it.
2141 (same_dw_val_p): Update for removal of hashtable.h hash tables.
2143 2002-11-22 Geoffrey Keating <geoffk@apple.com>
2145 * dbxout.c: Include gt-dbxout.h.
2146 (lastfile): Mark for PCH/GGC.
2148 (struct typeinfo): Likewise.
2149 (typevec): Likewise.
2150 (typevec_len): Likewise.
2151 (next_type_number): Likewise.
2152 (struct dbx_file): Likewise.
2153 (current_file): Likewise.
2154 (next_file_number): Likewise.
2155 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
2156 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
2157 (dbxout_end_source_file): Don't free struct dbx_file.
2158 (dbxout_type): Use GGC to allocate typevec.
2159 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
2160 (GTFILES): Add dbxout.c.
2161 (gt-dbxout.h): New rule.
2163 * Makefile.in (c-pch.o): Add debug.h as dependency.
2164 * c-pch.c: Include debug.h.
2165 (pch_init): Call start_source_file to keep nesting right.
2166 (c_common_read_pch): Add orig_name parameter. Call
2167 start_source_file debug hook. Call end_source_file debug hook.
2168 * c-common.h (c_common_read_pch): Update prototype.
2169 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
2171 * cppfiles.c (struct include_file): Add new field `header_name'.
2172 (find_or_create_entry): Default it to `name'.
2173 (open_file_pch): Set it to the original header file searched for.
2174 (stack_include_file): Don't stack an empty buffer, just handle
2175 PCH files immediately. Pass header_name field to read_pch callback.
2177 2002-11-19 Geoffrey Keating <geoffk@apple.com>
2179 * function.c (funcdef_no): Mark to be saved in a PCH.
2181 2002-11-15 Geoffrey Keating <geoffk@apple.com>
2183 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
2185 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
2187 2002-11-14 Geoffrey Keating <geoffk@apple.com>
2189 * optabs.h (code_to_optab): Add GTY marker.
2191 2002-11-13 Geoffrey Keating <geoffk@apple.com>
2193 * Makefile.in (GTFILES): Add cpplib.h.
2194 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
2195 * c-decl.c (build_compound_literal): Don't use var_labelno.
2196 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
2197 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
2198 * varasm.c (const_labelno): Use gengtype to mark.
2199 (var_labelno): Likewise.
2200 (in_section): Likewise.
2201 (in_named_name): Likewise.
2202 (struct in_named_entry): Likewise.
2203 (in_named_htab): Likewise.
2204 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
2205 (init_varasm_once): Use GGC to allocate in_named_htab.
2206 * config/darwin.c (current_pic_label_num): Mark for PCH.
2208 2002-11-11 Geoffrey Keating <geoffk@apple.com>
2210 * ggc-simple.c (init_ggc_pch): New stub procedure.
2211 (ggc_pch_count_object): Likewise.
2212 (ggc_pch_total_size): Likewise.
2213 (ggc_pch_this_base): Likewise.
2214 (ggc_pch_alloc_object): Likewise.
2215 (ggc_pch_prepare_write): Likewise.
2216 (ggc_pch_write_object): Likewise
2217 (ggc_pch_finish): Likewise.
2218 (ggc_pch_read): Likewise.
2220 2002-11-08 Geoffrey Keating <geoffk@apple.com>
2222 * c-pch.c (c_common_write_pch): Write the macro definitions after
2224 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
2225 definitions after the GCed data.
2226 * cpplib.c (save_macros): New.
2228 (cpp_write_pch_deps): Split out of cpp_write_pch.
2229 (cpp_write_pch_state): Split out of cpp_write_pch.
2230 (cpp_write_pch): Delete.
2231 (struct save_macro_data): Delete.
2232 (cpp_prepare_state): New.
2233 (cpp_read_state): Erase and restore initial macro definitions.
2234 * cpplib.h (struct save_macro_data): Forward-declare.
2235 (cpp_write_pch_deps): Prototype.
2236 (cpp_write_pch_state): Prototype.
2237 (cpp_write_pch): Delete prototype.
2238 (cpp_prepare_state): Prototype.
2239 (cpp_read_state): Add fourth argument.
2241 2002-11-04 Geoffrey Keating <geoffk@apple.com>
2243 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
2244 (write_array): Remove warning.
2246 * gengtype.c (contains_scalar_p): New.
2247 (finish_root_table): Add the table to all languages, even if it's
2249 (write_roots): Output gt_pch_scalar_rtab.
2250 * ggc-common.c (gt_pch_save): Write out scalars.
2251 (gt_pch_restore): Read scalars back.
2253 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
2254 (struct page_entry): Delete pch_page field.
2255 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
2256 (clear_marks): Likewise.
2257 (sweep_pages): Likewise.
2258 (poison_pages): Likewise.
2259 (ggc_print_statistics): Likewise.
2260 (ggc_pch_read): Don't free objects read from a PCH.
2261 Properly set up in_use_p and page_tails.
2263 2002-10-25 Geoffrey Keating <geoffk@apple.com>
2265 * gengtype.c (struct write_types_data): New.
2266 (struct walk_type_data): Make `cookie' const; add extra
2267 prev_val item; add `orig_s' field.
2268 (walk_type): Update prev_val[3].
2269 (write_types_process_field): New.
2270 (write_func_for_structure): Take write_types_data structure.
2274 (write_types_local_process_field): New.
2275 (gc_mark_process_field): Delete.
2276 (write_local_func_for_structure): New.
2277 (gc_mark_func_name): Delete.
2278 (write_gc_types): Delete.
2280 (finish_root_table): Don't include 'ggc_' in PFX.
2281 (write_root): Rename from write_root. Fill pchw field of structures.
2283 (write_roots): Rename from write_gc_roots. Split out to write_array.
2284 Update to changes to other routines. Write gt_pch_cache_rtab table.
2285 (main): Write PCH walking routines.
2286 * ggc-common.c: Include toplev.h, sys/mman.h.
2287 (ggc_mark_roots): For cache hashtables, also mark the hash table
2288 and the array of entries.
2290 (struct ptr_data): New.
2291 (POINTER_HASH): New.
2292 (gt_pch_note_object): New.
2293 (saving_htab_hash): New.
2294 (saving_htab_eq): New.
2295 (struct traversal_state): New.
2298 (compare_ptr_data): New.
2299 (relocate_ptrs): New.
2300 (write_pch_globals): New.
2301 (struct mmap_info): New.
2303 (gt_pch_restore): New.
2304 * ggc-page.c (ROUND_UP_VALUE): New.
2306 (struct page_entry): Add field `pch_page'.
2307 (init_ggc): Use ROUND_UP.
2308 (struct ggc_pch_data): Declare.
2309 (init_ggc_pch): New.
2310 (ggc_pch_count_object): New.
2311 (ggc_pch_total_size): New.
2312 (ggc_pch_this_base): New.
2313 (ggc_pch_alloc_object): New.
2314 (ggc_pch_prepare_write): New.
2315 (ggc_pch_write_object): New.
2316 (ggc_pch_finish): New.
2317 (ggc_pch_read): New.
2318 * ggc.h (gt_pointer_operator): New.
2319 (gt_note_pointers): New.
2320 (gt_pch_note_object): New prototype.
2321 (gt_pointer_walker): New.
2322 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
2323 (LAST_GGC_ROOT_TAB): Update.
2324 (gt_pch_cache_rtab): Declare.
2325 (gt_pch_scalar_rtab): Declare.
2326 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
2327 (LAST_GGC_CACHE_TAB): Update.
2328 (gt_pch_save_stringpool): Declare.
2329 (gt_pch_restore_stringpool): Declare.
2330 (gt_pch_p_S): Declare.
2331 (gt_pch_n_S): Declare.
2332 (struct ggc_pch_data): Forward-declare.
2333 (init_ggc_pch): Declare.
2334 (ggc_pch_count_object): Declare.
2335 (ggc_pch_total_size): Declare.
2336 (ggc_pch_this_base): Declare.
2337 (ggc_pch_alloc_object): Declare.
2338 (ggc_pch_prepare_write): Declare.
2339 (ggc_pch_write_object): Declare.
2340 (ggc_pch_finish): Declare.
2341 (ggc_pch_read): Declare.
2342 (gt_pch_save): Declare.
2343 (gt_pch_restore): Declare.
2344 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
2345 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
2346 const_double_htab, mem_attrs_htab using GGC.
2347 * c-pch.c: Include ggc.h.
2348 (pch_init): Allow reading PCH file back.
2349 (c_common_write_pch): Call gt_pch_save.
2350 (c_common_read_pch): Call gt_pch_restore.
2351 * c-parse.in (init_reswords): Delete now-untrue comment.
2352 Allocate ridpointers using GGC.
2353 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
2354 calling expand_deferred_fns.
2355 * c-common.h (ridpointers): Mark for GTY machinery.
2356 * Makefile.in (stringpool.o): Update dependencies.
2357 (c-pch.o): Update dependencies.
2358 (ggc-common.o): Update dependencies.
2359 * stringpool.c: Include gt-stringpool.h.
2362 (struct string_pool_data): New.
2364 (gt_pch_save_stringpool): New.
2365 (gt_pch_restore_stringpool): New.
2366 * tree.c (init_ttree): Make type_hash_table allocated using GC.
2368 2002-10-04 Geoffrey Keating <geoffk@apple.com>
2370 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
2371 (output_mangled_typename): Don't pass size_t to printf.
2373 * tree.h (union tree_type_symtab): Add tag to `address' field.
2374 (union tree_decl_u2): Add tag to 'i' field.
2375 * varasm.c (union rtx_const_un): Add tags to all fields.
2376 * gengtype.c (struct walk_type_data): New.
2377 (output_escaped_param): Take struct walk_type_data parameter.
2378 (write_gc_structure_fields): Delete.
2380 (write_gc_marker_routine_for_structure): Delete.
2381 (write_func_for_structure): New.
2382 (gc_mark_process_field): New.
2383 (gc_mark_func_name): New.
2384 (gc_counter): Delete.
2385 (write_gc_types): Use write_func_for_structure.
2386 (write_gc_roots): Use walk_type.
2388 2002-10-02 Geoffrey Keating <geoffk@apple.com>
2390 * ggc-common.c (ggc_mark_roots): Delete 'x'.
2391 (ggc_splay_dont_free): Fix warning about unused 'x'.
2392 (ggc_print_common_statistics): Remove warnings.
2394 2002-10-01 Mike Stump <mrs@apple.com>
2396 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
2397 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
2399 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
2400 Catherine Moore <clm@redhat.com>
2402 * Makefile (c-pch.o): Update dependencies.
2403 (LIBCPP_OBJS): Add cpppch.o.
2405 * c-common.c (c_common_init): Don't call pch_init here.
2406 * c-common.h (c_common_read_pch): Update prototype.
2407 * c-lex.c (c_common_parse_file): Call pch_init here.
2408 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
2409 (c_common_decode_option): Handle them.
2410 * c-pch.c: Include c-pragma.h.
2411 (save_asm_offset): Delete.
2412 (pch_init): Move contents of save_asm_offset into here, call
2414 (c_common_write_pch): Call cpp_write_pch.
2415 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
2417 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
2418 * cppfiles.c (stack_include_file): Update for change to
2419 parameters of cb.read_pch.
2420 * cpphash.h (struct cpp_reader): Add `savedstate' field.
2421 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
2422 `restore_pch_deps' fields.
2423 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
2424 (cpp_save_state): Prototype.
2425 (cpp_write_pch): Prototype.
2426 (cpp_valid_state): Prototype.
2427 (cpp_read_state): Prototype.
2428 * cpppch.c: New file.
2429 * flags.h (version_flag): Remove prototype.
2430 * mkdeps.c (deps_save): New.
2431 (deps_restore): New.
2432 * mkdeps.h (deps_save): Prototype.
2433 (deps_restore): Prototype.
2434 * toplev.c (late_init_hook): Delete.
2435 (version_flag): Make static again.
2436 (compile_file): Don't call late_init_hook.
2437 * toplev.h (late_init_hook): Delete.
2438 * doc/cppopts.texi: Document -fpch-deps.
2439 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
2441 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
2443 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
2445 (c_common_valid_pch): Rename from c_valid_pch, change callers.
2446 (c_common_read_pch): Rename from c_read_pch, change callers.
2448 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
2449 a space between it and its argument.
2451 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
2453 * c-pch.c: New file.
2454 * toplev.h (late_init_hook): Declare.
2455 * toplev.c (late_init_hook): Define.
2456 (version_flag): Make globally visible.
2457 (compile_file): Call late_init_hook.
2458 (init_asm_output): Make output file seekable.
2459 * gcc.c (default_compilers): Update c-header rule.
2460 * flags.h (version_flag): Declare.
2461 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
2463 * cppfiles.c (struct include_file): Add 'pch' field.
2464 (INCLUDE_PCH_P): New.
2465 (open_file_pch): New.
2466 (stack_include_file): Handle PCH files specially.
2467 (find_include_file): Call open_file_pch instead of open_file.
2468 (_cpp_read_file): Explain why open_file is used instead of
2470 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
2471 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
2472 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
2473 in cpplib callbacks.
2474 * c-common.c (pch_file): Correct comment.
2475 (allow_pch): Define.
2476 (c_common_init): Call pch_init.
2477 * c-common.h (allow_pch): Declare.
2478 (pch_init): Declare.
2479 (c_valid_pch): Declare.
2480 (c_read_pch): Declare.
2481 (c_write_pch): Declare.
2482 * Makefile.in (c-pch.o): New.
2483 (C_AND_OBJC_OBJS): Add c-pch.o.
2484 * doc/invoke.texi (Precompiled Headers): Add index entries,
2485 complete truncated paragraph.
2487 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
2489 * c-common.c: (pch_file): Define.
2490 * c-common.h (pch_file): Declare.
2491 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
2492 (missing_arg): Require --output-pch= to have an argument.
2493 (c_common_decode_option): Handle --output-pch=.
2494 * gcc.c: Document new %V.
2495 (default_compilers): Handle compiling C header files.
2496 (do_spec_1): Implement %V.
2497 (main): Handle "gcc foo.h" without trying to run linker.
2498 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
2499 (Overall Options): Document what the driver does with header files,
2500 document new -x option possibilities.
2501 (Invoking G++): More documentation for PCH.
2502 (Precompiled Headers): New.
2504 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
2506 * ggc.h: Don't include varray.h. Rearrange functions to be more
2508 (ggc_add_root): Delete.
2509 (ggc_mark_rtx): Delete.
2510 (ggc_mark_tree): Delete.
2511 (struct ggc_statistics): Remove contents.
2512 * ggc-common.c: Remove unneeded includes.
2513 (struct ggc_root): Delete.
2515 (ggc_add_root): Delete.
2516 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
2517 (ggc_print_common_statistics): Remove most of the contents.
2518 * Makefile.in (GGC_H): No longer uses varray.h.
2519 (ggc-common.o): Update dependencies.
2520 (c-parse.o): Add varray.h to dependencies.
2521 (c-common.o): Add varray.h.
2522 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
2523 (mark_ident_hash): Rename to ggc_mark_stringpool.
2524 (init_stringpool): Don't use ggc_add_root.
2525 * c-parse.in: Include varray.h.
2526 * c-common.c: Include varray.h.
2527 * objc/Make-lang.in (objc-act.o): Add varray.h.
2528 * objc/objc-act.c: Include varray.h.
2530 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
2532 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
2533 (dw_cfi_oprnd1_desc): Likewise.
2535 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
2537 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
2539 (alpha_links): Use gengtype to mark; move out of ifdef.
2540 (mark_alpha_links_node): Delete.
2541 (mark_alpha_links): Delete.
2542 (alpha_need_linkage): Use GGC to allocate splay tree, struct
2543 alpha_links, strings. Don't use ggc_add_root.
2544 * ggc-common.c (ggc_splay_alloc): New.
2545 (ggc_splay_dont_free): New.
2546 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
2547 (ggc_mark_tree): Likewise.
2548 (splay_tree_new_ggc): New.
2549 (ggc_splay_alloc): Declare.
2550 (ggc_splay_dont_free): Declare.
2551 * dwarf2asm.c: Include gt-dwarf2asm.h.
2552 (mark_indirect_pool_entry): Delete.
2553 (mark_indirect_pool): Delete.
2554 (indirect_pool): Use gengtype to mark.
2555 (dw2_force_const_mem): Don't use ggc_add_root.
2556 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
2557 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
2558 (gt-dwarf2asm.h): Depend on s-gtype.
2560 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
2562 * tree.h (union tree_type_symtab): Mark `die' field.
2563 * Makefile.in (dwarf2out.o): Update dependencies.
2564 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
2566 (dw_cfi_oprnd1_desc): New function.
2567 (dw_cfi_oprnd2_desc): New function.
2568 (indirect_string_alloc): Delete.
2569 (debug_str_do_hash): New function.
2570 (debug_str_eq): New function.
2571 (mark_limbo_die_list): Delete.
2572 (dwarf2out_init): Don't call ggc_add_root.
2574 2003-01-09 Vladimir Makarov <vmakarov@redhat.com>
2576 The following changes are merged from itanium-sched-branch:
2578 2003-01-08 David Edelsohn <edelsohn@gnu.org>
2580 * doc/md.texi: Clarify assignment of units to automata description.
2582 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
2584 * genautomata.c (unit_decl): Remove members
2585 `the_same_automaton_unit' and
2586 `the_same_automaton_message_reported_p'.
2587 (process_unit_to_form_the_same_automaton_unit_lists,
2588 form_the_same_automaton_unit_lists_from_regexp,
2589 form_the_same_automaton_unit_lists, the_same_automaton_lists):
2591 (annotation_message_reported_p): New global variable.
2592 (check_unit_distribution_in_reserv,
2593 check_regexp_units_distribution): New functions.
2594 (check_unit_distributions_to_automata): Rewrite it.
2596 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
2598 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
2599 Use continue instead of break if cycle is too big.
2601 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
2603 * genautomata.c (check_unit_distributions_to_automata): Output at
2604 most one message for a unit.
2605 (process_unit_to_form_the_same_automaton_unit_lists): Check
2606 automaton of units instead of units themself.
2608 * doc/md.texi: Describe the constraint about assigning unit to
2611 2002-12-20 Jan Hubicka <jH@suse.cz>
2612 Vladimir Makarov <vmakarov@redhat.com>
2614 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
2616 (gen_cpu_unit): Initialize the new members.
2617 (process_regexp_cycles): Calculate minimal finish cycle too. Set
2618 up `min_occ_cycle_num'.
2619 (evaluate_max_reserv_cycles): Change the function call.
2620 (CLEAR_BIT): New macro.
2621 (states_union, state_shift): Use the mask.
2622 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
2623 (form_reservs_matter): New function.
2624 (make_automaton): Call the function and use the mask.
2625 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
2628 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2630 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
2632 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2634 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
2637 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2639 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
2642 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2643 2002-10-31 Dale Johannesen <dalej@apple.com>
2645 * haifa-sched.c (find_set_reg_weight): New function.
2646 (find_insn_reg_weight): Use the new function.
2647 (schedule_block): Do sorting ready queue always
2650 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
2652 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
2654 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
2656 * haifa-sched.c (choice_entry): New structure.
2657 (choice_stack, cycle_issued_insns): New variables.
2658 (max_issue): Rewrite it.
2659 (choose_ready): Set up ready_try for unknown insns too.
2660 (schedule_block): Allocate and free choice_stack. Set up
2661 and modify cycle_issued_insns.
2663 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
2664 with and without filling the bundle.
2665 (bundling): Combine calls of issue_nops_and_insn.
2667 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
2669 * config/ia64/itanium1.md: New file.
2671 * config/ia64/itanium2.md: New file.
2673 * config/ia64/ia64.md: Move DFA descriptions into the new files.
2674 Remove the old pipeline description.
2676 * config/ia64/ia64.c (ia64_override_options): Add aliases of
2677 itanium processor names.
2679 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
2681 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
2682 (ia64_reorg): Set up queried unit codes for Itanium2 too.
2684 * config/ia64/ia64.md: Add descriptions for Itanium2.
2686 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
2688 * config/ia64/ia64.h (processor_type): New enumeration.
2689 (ia64_tune, ia64_tune_string): New external declarations.
2690 (TARGET_OPTIONS): Add option `tune='.
2692 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
2694 (ia64_override_options): Set up `ia64_tune'.
2695 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
2696 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
2697 (bundling): Add nops for MM-insns only for Itanium.
2698 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
2701 * config/ia64/ia64.md (cpu): New attribute.
2702 (DFA description): Enable it only for Itanium.
2704 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
2705 Richard Henderson <rth@redhat.com>
2707 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
2708 MASK_EARLY_STOP_BITS.
2709 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
2710 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
2713 * config/ia64/ia64.c (ia64_dfa_new_cycle,
2714 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
2715 instead of TARGET_TUNE_STOP_BITS.
2717 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
2718 `-mearly-stop-bits'.
2720 * config/ia64/ia64.c (automata_option "v"): Comment it.
2722 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
2724 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
2726 (TARGET_SWITCHES): Add entries for the new option.
2728 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
2729 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
2730 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
2732 (ia64_sched_reorder2): Set up `clocks'.
2733 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
2734 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
2735 queue when TARGET_TUNE_STOP_BITS.
2736 (bundling): Insert additional nops for MM-insns.
2737 (final_emit_insn_group_barriers): Add insertion of stop bits
2738 according `stops_p'.
2739 (ia64_reorg): Initiate the new varibales.
2741 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
2743 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
2745 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
2746 insns at the end of block insn scheduling.
2748 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
2750 * sched-deps.c (remove_dependence, group_leader): Remove it.
2751 (add_dependence): Add dependence to group leader to.
2752 (set_sched_group_p): Add dependence to the first insn of the
2754 (sched_analyze_insn): Make dependence to jump as anti-dependence.
2755 Change true dependence by anti-dependence when
2756 `reg_pending_barrier'.
2758 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
2759 add_branch_dependences): Ignore schedule groups.
2761 * sched-ebb.c (init_ready_list): Ditto.
2763 * (move_insn, set_priorities): Ditto.
2765 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
2766 flag is clear after reload.
2767 (adjust_cost): Change cost only for output dependencies.
2769 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
2771 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
2773 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
2775 * target.h (gcc_target): Add member
2776 `dependencies_evaluation_hook'.
2778 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
2780 (TARGET_SCHED): Add initiatialization of the new member.
2782 * sched-ebb.c: Include `target.h'.
2783 (schedule_ebb): Call `dependencies_evaluation_hook'.
2785 * sched-rgn.c (schedule_region): Call
2786 `dependencies_evaluation_hook'.
2788 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
2790 (ia64_dependencies_evaluation_hook): New function.
2792 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
2793 Describe the new hook.
2795 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
2797 * target.h (gcc_target): Add members
2798 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
2800 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
2801 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
2803 (TARGET_SCHED): Add initiatialization of the new members.
2805 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
2806 insn scheduling too.
2807 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
2808 initialize `ready_try'.
2809 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
2810 `dfa_new_cycle' says not to do it.
2812 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
2815 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
2817 * config/ia64/ia64.c: Include `hashtab.h'.
2818 (ia64_first_cycle_multipass_dfa_lookahead_guard,
2819 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
2820 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
2821 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
2822 bundle_state_eq_p, insert_bundle_state,
2823 initiate_bundle_state_table, finish_bundle_state_table,
2824 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
2825 get_template, get_next_important_insn, bundling): New functions.
2826 (ia64_internal_sched_reorder): Remove it.
2827 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
2828 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
2829 (ia64_safe_itanium_requires_unit0): Remove it.
2830 (group_barrier_needed_p): Place group barrier right before a real
2832 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
2834 (bundle_name): New variable.
2835 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
2836 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
2837 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
2838 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
2839 temp_dfa_state, prev_cycle_state): New global variables.
2840 (insn_matches_slot, maybe_rotate, finish_last_head,
2841 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
2842 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
2843 find_best_packet, itanium_reorder, dump_current_packet,
2844 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
2845 (sched_data, sched_ready, sched_types): Remove them.
2846 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
2847 `init_insn_group_barriers'.
2848 (ia64_sched_reorder, ia64_sched_reorder2): Call
2849 ia64_dfa_sched_reorder.
2850 (ia64_variable_issue): Rewrite it.
2851 (bundle_state): New structure.
2852 (index_to_bundle_states, bundle_states_num,
2853 allocated_bundle_states_chain, free_bundle_state_chain): New
2855 (ia64_sched_finish): Add stop bits and call `bundling' after the
2856 2nd insn scheduling.
2857 (ia64_use_dfa_pipeline_interface): Return zero always.
2858 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
2860 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
2861 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
2862 (ia64_reorg): Add bundling insns.
2865 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
2866 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
2868 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
2870 * config/ia64/ia64.md: Add Itanium1 DFA description.
2871 (itanium_class): Add `nop' and `pre_cycle'. Add
2872 define_function_unit for `nop'.
2873 (nop): Change attribute `itanium_class'.
2874 (pre_cycle): New define_insn.
2876 * config/ia64/ia64-protos.h (bundling_p): New external variable.
2877 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
2878 ia64_produce_address_p): New function prototypes.
2880 * config/ia64/ia64.c (bundling_p): New global variable.
2881 (ia64_use_dfa_pipeline_interface,
2882 ia64_first_cycle_multipass_dfa_lookahead,
2883 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
2885 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2886 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2887 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2888 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
2889 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
2890 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
2891 (dfa_pre_cycle_insn): New variable.
2893 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
2895 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
2898 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
2899 New function prototypes.
2901 * genattrtab.c (main): Process the new constructions.
2903 * genautomata.c (gen_presence_absence_set,
2904 process_presence_absence_names, process_presence_absence_patterns,
2905 add_presence_absence, check_absence_pattern_sets): Add parameter
2907 (unit_decl): Add new members `final_presence_list' and
2908 `final_absence_list'.
2909 (unit_pattern_rel_decl): Add new member `final_p'.
2910 (gen_final_presence_set, gen_final_absence_set): New functions.
2911 (process_decls): Use member `final_p'.
2912 (temp_reserv): New global variable.
2913 (reserv_sets_are_intersected): Add processing `final_presence_set'
2914 and `final_absence_set'.
2915 (initiate_states): Allocate `temp_reserv'.
2916 (unit_final_presence_set_table, unit_final_absence_set_table): New
2918 (initiate_presence_absence_pattern_sets): Initiate them.
2919 (NDFA_to_DFA): Fix typo.
2920 (output_description): Output `final_presence_set' and
2921 `final_absence_set'.
2923 * doc/md.texi (final_presence_set, final_absence_set): Describe
2926 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
2928 * genautomata.c (transform_3): Process a missing case (nothing on
2931 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
2933 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
2934 comments about queried units and the minimization.
2936 * doc/md.texi: Ditto.
2938 * genautomata.c (create_composed_state): Return nonzero if the new
2939 state has been created.
2940 (first_cycle_unit_presence): New function.
2941 (state_is_differed): Add new parameter. Use the new function.
2942 Take queried units into account.
2943 (partition_equiv_class): Pass additional parameter to
2944 `state_is_differed'.
2945 (merge_states): Process composed states too.
2946 (build_automaton, create_automata, output_min_issue_delay_table,
2947 output_tables, output_statistics): Output more information.
2948 (output_reserved_units_table): Use function
2949 `first_cycle_unit_presence'.
2950 (output_tables): Output table of queried units even if the
2951 minimization is switched on.
2952 (write_automata): Output code for querying units even if the
2953 minimization is switched on.
2955 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
2957 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
2958 syntax of the constructions.
2960 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
2961 extended syntax of the constructions.
2963 * genautomata.c (unit_rel_decl): Rename it to
2964 `unit_pattern_rel_decl'.
2965 (pattern_set_el, pattern_reserv): New structures.
2966 (pattern_set_el_t, pattern_reserv_t): New types.
2967 (gen_presence_absence_set): New function.
2968 (process_presence_absence): Remove it.
2969 (process_presence_absence_names,
2970 process_presence_absence_patterns): New functions.
2971 (get_presence_absence_set): Remove it.
2972 (initiate_presence_absence_sets): Rename it on
2973 `initiate_presence_absence_pattern_sets'. Use new function
2974 `form_reserv_sets_list'.
2975 (form_reserv_sets_list, check_presence_pattern_sets,
2976 check_absence_pattern_sets, output_pattern_set_el_list): New
2978 (unit_decl): Change types of members `presence_list' and
2980 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
2981 (decl): Change types of members `excl', `presence', and `absence'.
2982 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
2983 at the end of the vector.
2984 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2985 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
2986 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
2987 (gen_presence_set, gen_absence_set): Use new function
2988 `gen_presence_absence_set'.
2989 (add_presence_absence): Process `pattern_list' instead of
2991 (process_decls): USe new functions
2992 `process_presence_absence_names' and
2993 `process_presence_absence_patterns'.
2994 (reserv_sets_are_intersected): Use new function
2995 `check_presence_pattern_sets'.
2996 (presence_set, absence_set): Remove them.
2997 (unit_presence_set_table, unit_absence_set_table): New global
2999 (output_description): Use new function
3000 `output_pattern_set_el_list'.
3001 (generate): Use `initiate_presence_absence_pattern_sets'.
3003 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
3005 * genattr.c (main): Add output of prototype of new interface
3006 function `dfa_clean_insn_cache'.
3008 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
3009 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
3010 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
3012 (write_automata): Call the new function.
3014 Thu Jan 9 22:47:38 CET 2003 Jan Hubicka <jh@suse.cz>
3016 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
3019 2003-01-09 Paolo Carlini <pcarlini@unitus.it>
3021 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
3023 Thu Jan 9 17:26:40 2003 J"orn Rennecke <joern.rennecke@superh.com>
3025 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
3026 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
3027 (CONSTRAINT_LEN): Provide default definition.
3028 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
3029 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
3030 (EXTRA_CONSTRAINT_STR): Likewise.
3031 (REG_CLASS_FROM_CONSTRAINT): Define.
3032 * genoutput.c (check_constraint_len, constraint_len): New functions.
3033 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
3034 constraint / modifier.
3035 (gen_insn): Call check_constraint_len.
3036 * local-alloc.c (block_alloc): Update to use new macros / pass
3037 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
3038 * ra-build.c (handle_asm_insn): Likewise.
3039 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
3040 (constrain_operands, peep2_find_free_register): Likewise.
3041 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
3042 * regmove.c (find_matches): Likewise.
3043 * reload.c (push_secondary_reload, find_reloads): Likewise.
3044 (alternative_allows_memconst): Likewise.
3045 * reload1.c (maybe_fix_stack_asms): Likewise.
3046 (reload_cse_simplify_operands): Likewise.
3047 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
3048 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
3049 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
3050 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
3051 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
3052 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
3054 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
3056 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
3058 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
3060 (*extzv_1_r_h8300hs): Likewise.
3061 (*extzv_1_r_inv_h8300): Likewise.
3062 (*extzv_1_r_inv_h8300hs): Likewise.
3064 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
3066 * config/h8300/h8300.h (PREDICATE_CODES): New.
3068 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
3070 * config/h8300/h8300.md (*addsi3_upper): New.
3071 (*iorsi3_shift): Likewise.
3072 (two splitters): Likewise.
3073 (*addsi3_shift): Likewise.
3074 (two splitters): Likewise.
3076 2003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3078 * Makefile.in (optabs.o): Add dependency on basic-block.h.
3079 * basic-block.h (control_flow_insn_p): Fuction was exported.
3080 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
3081 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
3082 notes only when the region is contained in a single basic block.
3084 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
3087 * tree.h (expand_asm): New prototype.
3088 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
3090 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
3092 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
3093 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
3094 (volatile_refs_p) [ASM_INPUT]: Likewise.
3095 (side_effects_p) [ASM_INPUT]: Likewise.
3097 Thu Jan 9 12:00:36 CET 2003 Jan Hubicka <jh@suse.cz>
3099 * i386.md (*mul*): FIx constraints; remove confused comment; fix
3100 athlon_decode attributes
3101 (imul/k8 optimization peep2s): New.
3103 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
3104 * i386.md (type attribute): Add ssecomi.
3105 (unit, memory, prefix attributes): Handle ssecomi.
3106 (cvt?2? patterns): Fix athlon_decode attribute
3107 (comi patterns): Set attribute to ssecomi.
3110 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
3112 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
3114 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
3115 that match register_operands.
3116 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
3117 register_operand the default case.
3119 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
3122 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
3123 an empty element, do not advance the pointer to unfilled
3124 fields if there are pending initializers.
3126 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
3128 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
3129 (install-gcc-tooldir, install-cpp, installdirs,
3130 install-common, install-driver, install-info, install-man,
3131 install-headers, install-include-dir, install-headers-tar,
3132 install-headers-cpio, install-headers-cp, install-mkheaders,
3133 install-collect2, uninstall): Prepend $(DESTDIR) to
3134 destination paths in all (un)installation commands.
3135 (install-driver): Rewrite $(LN) commands to support DESTDIR
3136 with "ln" as well as with "ln -s".
3137 (installdirs): Simply use mkinstalldirs.
3138 (install-libgcc, install-multilib): Also pass DESTDIR.
3139 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
3140 installation destination variable ldir.
3141 * config/alpha/t-osf4, config/arm/t-netbsd,
3142 config/ia64/t-hpux, config/mips/t-iris5-6,
3143 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
3144 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
3145 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
3146 in the definition of SHLIB_INSTALL.
3147 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
3148 $(libsubdir) in the installation commands.
3150 2003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
3152 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
3153 non-optimizing compile.
3154 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
3157 2003-01-08 Douglas B Rupp <rupp@gnat.com>
3159 * config/i386/i386.c (ix86_attribute_table): Add new attributes
3160 ms_struct and gcc_struct.
3161 (ix86_handle_struct_attribute): New function.
3162 (ix86_ms_bitfield_layout_p): Update to take new attributes
3164 * doc/extend.texi: Document new attributes.
3165 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
3167 2003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
3169 PR optimization/8750
3170 * config/i386/i386.c (ix86_expand_prologue): Don't allow
3171 scheduling pass to move insns across __alloca call.
3173 2003-01-08 Dale Johannesen <dalej@apple.com>
3175 * config/rs6000/rs6000.md: Replace *store_multiple_string
3178 2003-01-08 Jeff Sturm <jsturm@one-point.com>
3181 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
3182 Set SYMBOL_REF_FLAG on local data sym_ref.
3184 2003-01-08 Dale Johannesen <dalej@apple.com>
3186 * function.c (assign_parms): Don't set pretend_args_size if
3187 REG_PARM_STACK_SPACE.
3188 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
3191 2003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
3195 Thu Jan 9 00:57:15 CET 2003 Jan Hubicka <jh@suse.cz>
3197 * i386.c (ix86_expand_int_addcc): Fix thinko.
3199 2003-01-08 David Edelsohn <edelsohn@gnu.org>
3201 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
3202 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
3203 as hook_bool_tree_hwi_hwi_tree_true.
3204 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
3205 (rs6000_emit_epilogue): Same.
3206 (rs6000_output_mi_thunk): Re-implement as RTL.
3207 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
3208 xcoffout_declare_function if any debugging enabled.
3210 2003-01-08 Chris Demetriou <cgd@broadcom.com>
3212 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
3213 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
3214 * config/mips/mips.h (enum processor_type): Rename
3215 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
3216 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
3218 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
3219 (ISA_MIPS32R2): New define.
3220 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
3221 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
3222 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
3223 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
3224 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
3225 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
3226 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
3227 compiling MIPS16 code.
3228 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
3230 (ISA_HAS_SEB_SEH): New define.
3231 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
3232 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
3233 processor_type value renaming. Add support for MIPS32R2.
3234 Clean up comments, and move "sb1" entry with other MIPS64 CPU
3236 (override_options): Reimplement -mipsN option handling so that
3237 it will work correctly for -mips32r2. Avoid branch-likely
3238 instructions on MIPS32R2.
3239 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
3240 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
3241 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
3242 (extendhisi2_hw, extendqisi2_hw): New.
3243 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
3244 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
3245 MIPS32R2, and MIPS64.
3246 (LINK_SPEC): Pass -mips32r2 to linker.
3247 * config/mips/t-isa3264: Built -mips32r2 multilibs.
3248 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
3249 for mips32r2 in the -march description. Alphabetically sort
3250 CPU names in the -march description. Add long-missed -mips32
3251 and -mips64 to MIPS option summary.
3253 * config.gcc: Update copyright years to include 2003.
3254 * config/mips/mips.c: Likewise.
3255 * config/mips/mips.h: Likewise.
3256 * config/mips/mips.md: Likewise.
3257 * config/mips/netbsd.h: Likewise.
3258 * doc/invoke.texi: Likewise.
3260 2003-01-08 Andreas Schwab <schwab@suse.de>
3262 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
3264 * configure: Regenerated.
3266 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
3268 * config/h8300/h8300.c (output_logical_op): Replace byte/word
3269 extraction of det with b0, b1, w0, w2, etc.
3270 (compute_logical_op_length): Likewise.
3271 (compute_logical_op_cc): Likewise.
3273 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
3275 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
3276 HIGH on all variants.
3278 Wed Jan 8 14:06:34 CET 2003 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3280 * Makefile.in (PARTITION_H): New.
3281 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
3282 * basic-block.h: Include hard-reg-set.h.
3284 2003-01-08 Richard Earnshaw <rearnsha@arm.com>
3286 * arm.h (ENABLE_XF_PATTERNS): Delete.
3287 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
3288 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
3289 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
3290 (cmpxf_trap): Delete.
3291 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
3293 Wed Jan 8 12:10:57 CET 2003 Jan Hubicka <jh@suse.cz>
3295 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
3296 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
3297 (add??cc): New expanders.
3298 * i386.c (expand_int_addcc): New function.
3299 * i386-protos.h (expand_int_addcc): Declare.
3301 * alias.c (memory_modified_1): New static function.
3302 (memory_modified): New static varaible.
3303 (memory_modified_in_insn_p): New global function.
3304 * rtl.h (memory_modified_in_insn_p): Declare.
3305 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
3308 * expr.h (emit_conditional_add): Declare.
3310 2003-01-07 Janis Johnson <janis187@us.ibm.com>
3313 * doc/invoke.texi (-malign-double): Explain that the option breaks
3314 binary compatibility.
3316 2003-01-08 Andreas Schwab <schwab@suse.de>
3318 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
3319 should come from the generic *-*-linux* entry.
3321 Tue Jan 7 22:29:56 CET 2003 Jan Hubicka <jh@suse.cz>
3323 * cselib.c (cselib_current_insn_in_libcall): New static variable.
3324 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
3325 we are inside libcall.
3326 * cselib.h (elt_loc_list): Add in_libcall.
3327 * gcse.c (do_local_cprop): Do not copy propagate using insns
3330 2003-01-07 David Edelsohn <edelsohn@gnu.org>
3332 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
3333 not normally affect to issue rate.
3335 Tue Jan 7 21:46:57 CET 2003 Jan Hubicka <jh@suse.cz>
3337 * genopinit.c (optabs): Add addc_optab.
3338 * ifcvt.c (noce_try_store_flag): Rename to ...
3339 (noce_try_addcc): ... this one; handle generic conditional increment.
3340 (noce_process_if_block): Update noce_try_addcc call.
3341 * optabs.c (emit_conditional_add): New.
3342 (init_obtabs): Initialize addc_optab.
3343 * optabs.h (optab_index): Add OTI_addcc.
3344 (addcc_optab): New macro.
3345 * md.texi: Document addMcc
3348 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
3349 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
3350 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
3352 * reload1.c (delete_output_reload): Avoid repeated attempts
3355 2003-01-07 Andreas Schwab <schwab@suse.de>
3357 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
3358 Move --enable-initfini-array check ...
3359 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
3360 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
3361 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
3362 * configure: Rebuild.
3364 2003-01-07 Richard Henderson <rth@redhat.com>
3366 * alias.c (find_base_value): Only use new_reg_base_value shortcut
3367 if the register is set once.
3369 2003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
3371 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
3372 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
3373 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
3375 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
3376 Sunil Davasam <sunil.k.davasam@intel.com>
3379 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
3380 DW_CFA_same_value, read next and ignore.
3382 2003-01-07 Richard Henderson <rth@redhat.com>
3384 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
3386 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
3388 * cfg.c: Include alloc-pool.h
3389 (edge_pool): New pool.
3390 (bb_pool): New pool.
3391 (first_deleted_edge): Remove.
3392 (first_deleted_block): Remove.
3393 (init_flow): Alloc/free the pools.
3394 (free_edge): Use pools.
3395 (alloc_block): Ditto.
3396 (expunge_block): Ditto.
3397 (cached_make_edge): Ditto.
3399 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
3401 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
3403 * et-forest.c: Include alloc-pool.h.
3404 (struct et_forest): Add node_pool and occur_pool.
3405 (et_forest_create): Create the new pools.
3406 (et_forest_delete): Delete them.
3407 (et_forest_add_node): Allocate and free using pools.
3408 (et_forest_add_edge): Ditto.
3409 (et_forest_remove_node): Ditto.
3410 (et_forest_remove_edge): Ditto.
3412 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
3414 2003-01-07 Kazu Hirata <kazu@cs.umass.edu>
3416 * config/h8300/h8300.c (output_logical_op): Simplify and
3417 optimize the handling of SImode.
3418 * config/h8300/h8300.c (compute_logical_op_length): Update
3420 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
3422 2003-01-07 Richard Sandiford <rsandifo@redhat.com>
3424 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
3425 big-endian correction to indirect arguments too.
3427 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
3429 Segher Boessenkool <segher@koffie.nl>
3431 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
3432 (alt_reg_names): Ditto, fix formatting.
3433 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
3435 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
3437 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
3438 (output_logical_op): Constify intval and det.
3439 (compute_logical_length): Likewise.
3440 (compute_logical_cc): Likewise.
3441 (output_a_shift): Constify mask.
3442 (h8300_encode_label): Constify len.
3444 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
3446 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
3447 (h8300_expand_epilogue): Likewise.
3449 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
3451 Segher Boessenkool <segher@koffie.nl>
3453 * config/rs6000/altivec.md: Remove spaces from assembler
3454 instruction argument lists.
3456 2003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3458 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
3459 c4x_assembler_function_p.
3460 (c4x_null_epilogue_p): Complement return value, all uses updated.
3461 (c4x_insert_attributes): Add naked.
3462 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
3463 * doc/extend.texi: Update C4x function attributes.
3465 2003-01-06 Richard Henderson <rth@redhat.com>
3467 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
3468 properly when changing "local-ness".
3469 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
3471 2003-01-06 Dale Johannesen <dalej@apple.com>
3473 * config/darwin-protos.h: Add prototypes for new section functions.
3475 2003-01-06 Chris Demetriou <cgd@broadcom.com>
3477 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
3480 2003-01-06 Zack Weinberg <zack@codesourcery.com>
3482 * hwint.h: If the current compiler has no 64-bit type at all,
3483 make HOST_WIDEST_INT 32 bits.
3485 2003-01-06 Eric Christopher <echristo@redhat.com>
3487 * config/mips/mips.md (movdf_internal2): Fix constraints.
3489 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
3491 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
3493 2003-01-06 Richard Sandiford <rsandifo@redhat.com>
3495 * config/mips/mips.md (leadi): Use dla rather than la.
3497 2003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
3499 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
3500 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
3502 2003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
3504 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
3507 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
3509 * config/h8300/h8300.md (*extzv_8_23): New.
3511 2003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3513 * pa64-hpux.h (JCR_SECTION_NAME): Define.
3514 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
3515 USE_EH_FRAME_REGISTRY when defining.
3517 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
3519 * config/h8300/h8300.c (output_a_shift): Do not output a
3521 * config/h8300/h8300.md (two splitters): New.
3523 2003-01-05 Richard Sandiford <rsandifo@redhat.com>
3525 * config/mips/mips.md: Disable the movstrsi define_split.
3527 2003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3529 * alloc-pool.c: Don't include "libiberty.h".
3530 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
3531 * convert.c (convert_to_real): Hide unused variable.
3533 2003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3535 * Makefile.in (gtyp-gen.h): Const-ify.
3536 * gcov-dump.c (tag_table): Likewise.
3538 2003-01-04 Bruce Korb <bkorb@gnu.org>
3540 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
3541 of *both* the file name and the fix name.
3543 2003-01-04 John David Anglin <dave.anglin@nrc.ca>
3545 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
3547 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
3548 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
3549 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
3550 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
3551 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
3552 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
3554 (EH_FRAME_IN_DATA_SECTION): Delete define.
3555 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
3556 (STARTFILE_SPEC): Use crtbegin.o.
3557 (ENDFILE_SPEC): Use crtend.o.
3558 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
3559 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
3560 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
3561 DTOR_LIST_BEGIN): Define.
3562 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
3563 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
3564 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
3566 2002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
3568 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
3569 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
3570 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
3571 Cleanup handling of replacement text.
3572 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
3574 2003-01-04 Bruce Korb <bkorb@gnu.org>
3576 * fixinc/tests/base/math.h: removed obsolete results
3577 * fixinc/tests/base/stdlib.h: ditto
3578 * fixinc/tests/base/sys/param.h: ditto
3579 * fixinc/tests/base/sys/stat.h: ditto
3580 * fixinc/tests/base/time.h: ditto
3581 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
3582 * fixinc/tests/base/sys/byteorder.h: ditto
3583 * fixinc/inclhack.def: Remove superfluous backslashes
3585 2003-01-04 Kazu Hirata <kazu@cs.umass.edu>
3587 * config/h8300/h8300-protos.h: Add prototypes for
3588 the new functions defined below.
3589 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
3591 (dosize): Emit RTL instead of assembly code.
3594 (h8300_output_function_prologue): Remove.
3595 (h8300_expand_prologue): New.
3596 (h8300_expand_epilogue): New.
3597 (h8300_output_function_epilogue): Do only the reset of
3599 * config/h8300/h8300.md (push_h8300): New.
3600 (push_h8300hs): Likewise.
3601 (pop_h8300): Likewise.
3602 (pop_h8300hs): Likewise.
3603 (*stm_h8300s_2): Change the name to stm_h8300s_2.
3604 (*stm_h8300s_3): Change the name to stm_h8300s_3.
3605 (*stm_h8300s_4): Change the name to stm_h8300s_4.
3606 (*ldm_h8300s_2): New.
3607 (*ldm_h8300s_3): Likewise.
3608 (*ldm_h8300s_4): Likewise.
3610 (*return_1): Likewise.
3611 (prologue): Likewise.
3612 (epilogue): Likewise.
3613 (monitor_prologue): Likewise.
3615 2003-01-03 Dale Johannesen <dalej@apple.com>
3617 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
3618 machopic_picsymbol_stub1.
3619 (EXTRA_SECTION_FUNCTIONS): Ditto.
3620 * rs6000/rs6000.c: Update copyright.
3621 (machopic_output_stub): Use them. Remove an insn from stub code.
3623 2003-01-02 Jason Merrill <jason@redhat.com>
3625 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
3627 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
3628 static/external decls.
3630 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
3632 * c-decl.c (c_make_fname_decl): Push the decls there, too.
3634 2003-01-03 Kazu Hirata <kazu@cs.umass.edu>
3636 * config/h8300/h8300-protos.h: Add a prototype for
3637 h8300_current_function_interrupt_function_p.
3638 * config/h8300/h8300.c (interrupt_handler): Remove.
3639 (os_task): Likewise.
3640 (monitor): Likewise.
3641 (pragma_interrupt): New.
3642 (WORD_REG_USED): Use
3643 h8300_current_function_interrupt_function_p.
3645 (h8300_output_function_prologue): Likewise.
3646 Do not set interrupt_handler, os_task, monitor.
3647 (h8300_output_function_prologue): Use
3648 h8300_current_function_interrupt_function_p.
3649 Do not set interrupt_handler, os_task, monitor.
3650 (h8300_current_function_interrupt_function_p): New.
3651 (h8300_pr_interrupt): Set pragma_interrupt.
3652 (h8300_insert_attributes): Reset pragma_interrupt.
3654 2003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3656 * doc/install.texi (Configuration): Fix markup for reference to
3659 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
3661 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
3662 (*iorhi3_two_qi): Likewise.
3663 (*iorsi3_zexthi): Likewise.
3664 (*xorhi3_zextqi): Likewise.
3665 (*xorsi3_zexthi): Likewise.
3666 (*xorsi3_zextqi): Likewise.
3668 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
3670 * config/h8300/h8300.c (stack_pointer_operand): New.
3671 (const_int_gt_2_operand): Likewise.
3672 (const_int_ge_8_operand): Likewise.
3673 * config/h8300/h8300.md (a splitter): Likewise.
3674 (a peephole2): Likewise.
3675 * config/h8300/h8300-protos.h: Add prototypes for the new
3678 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
3680 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
3681 objc/objc-act.h: Fix copyright years.
3683 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
3685 * doc/passes.texi: Fix documentation for -fssa-ccp
3687 2003-01-02 Neil Booth <neil@daikokuya.co.uk>
3689 * gccbug.in: Update for new categories.
3691 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
3693 * config/h8300/h8300.md: Reorder some patterns.
3695 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
3697 * config/h8300/h8300.c (output_logical_op): Fix a warning.
3699 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
3701 * config/darwin-protos.h, config/c4x/c4x-protos.h,
3702 config/cris/cris-protos.h, config/i370/i370-protos.h,
3703 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
3704 config/v850/v850-protos.h: Use struct, and don't conditionally
3705 compile on GCC_C_PRAGMA_H.
3707 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
3709 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
3710 * config/h8300/h8300-protos.h: Likewise.
3711 * config/sh/sh-protos.h: Likewise.
3713 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
3715 * config/arm/arm-protos.h: Use struct cpp_reader instead of
3717 * config/h8300/h8300-protos.h: Likewise.
3718 * config/sh/sh-protos.h: Likewise.
3720 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
3722 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
3723 arm_pr_long_calls_off): Use struct.
3724 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
3726 Don't include cpplib.h.
3727 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
3728 sh_pr_nosave_low_regs): Similarly.
3730 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
3732 * config/h8300/h8300.c: Include cpplib.h.
3734 2003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
3736 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
3737 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
3738 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
3739 "GCC" in the copyright header.
3741 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
3743 * c-pragma.c (c_register_pragma): New.
3744 (init_pragma): Use it.
3745 * c-pragma.h (cpp_register_pragma): Don't declare.
3746 (c_register_pragma): New.
3747 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
3748 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
3749 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
3750 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
3751 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
3752 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
3753 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
3754 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
3755 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
3756 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
3757 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
3758 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
3760 2002-12-31 Kazu Hirata <kazu@cs.umass.edu>
3762 * config/h8300/h8300-protos.h: Update the prototypes.
3763 * config/h8300/h8300.c (const_le_2_operand): Change to
3764 const_int_le_2_operand.
3765 (const_int_le_6_operand): Change to const_int_le_6_operand.
3766 * config/h8300/h8300.md (two peepholes): Update the function
3769 2002-12-31 Tom Tromey <tromey@redhat.com>
3771 * doc/install.texi (Testing): Fixed typo.
3773 2002-12-31 Kazu Hirata <kazu@cs.umass.edu>
3775 * config/h8300/h8300.h (TRAMPOLINE_TEMPLATE): Remove.
3776 (TRAMPOLINE_SIZE): Support the normal mode.
3777 (INITIALIZE_TRAMPOLINE): Emit the entire trampoline.
3779 2002-12-31 Mark Mitchell <mark@codesourcery.com>
3781 * c-common.h (pending_lang_change): Declare.
3783 2002-12-31 Jerry Quinn <jlquinn@optonline.net>
3785 * gcc/doc/invoke.texi (Optimization Options): Clean up -O flag
3788 2002-12-31 Jerry Quinn <jlquinn@optonline.net>
3790 * gcc/doc/invoke.texi (Optimization Options): List the options
3791 enabled by each -O flag.
3793 2002-12-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3795 * doc/install.texi (Configuration): Explicitly refer
3796 gcc/config.gcc for a list of cpu models.
3798 2002-12-31 Kazu Hirata <kazu@cs.umass.edu>
3800 * config/h8300/h8300.h: Fix comment typos.
3802 2002-12-30 David Edelsohn <edelsohn@gnu.org>
3804 * config/rs6000/rs6000.h (WIDEST_HARDWARE_FP_SIZE): Define.
3806 2002-12-30 Tom Tromey <tromey@redhat.com>
3808 * doc/install.texi (Testing): Mention Jacks.
3810 2002-12-30 Joseph S. Myers <jsm@polyomino.org.uk>
3812 * doc/gcc.texi, doc/gccint.texi: Update last modification dates.
3814 2002-12-30 Kazu Hirata <kazu@cs.umass.edu>
3816 * config/h8300/h8300.c (output_logical_op): Use extu.w in more
3818 (compute_logical_op_length): Update to reflect the change in
3820 (compute_logical_op_cc): Likewise.
3822 2002-12-30 Joseph S. Myers <jsm@polyomino.org.uk>
3824 * doc/service.texi: Uncomment and update FAQ link.
3826 2002-12-30 Andreas Jaeger <aj@suse.de>
3828 * unwind-dw2-fde.h (last_fde): Add unused attribute for obj.
3830 2002-12-30 Kazu Hirata <kazu@cs.umass.edu>
3832 * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): New.
3834 2002-12-30 Kazu Hirata <kazu@cs.umass.edu>
3836 * config/h8300/h8300.c (output_logical_op): Use extu.w if we
3837 are clearing the most significant byte.
3838 (compute_logical_op_length): Update to reflect the change in
3840 (compute_logical_op_cc): Likewise.
3842 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
3844 * config/h8300/h8300.md: Give internal names to anonymous
3847 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
3849 * config/h8300/h8300.md: Reorder some insns.
3851 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
3853 * config/h8300/h8300-protos.h: Add prototypes for
3854 const_int_qi_operand and const_int_hi_operand.
3855 * config/h8300/h8300.c (const_int_qi_operand): New.
3856 (const_int_hi_operand): Likewise.
3857 * config/h8300/h8300.md (three peepholes): New.
3859 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
3861 * doc/cpp.texi, doc/gcc.texi, doc/gccint.texi, doc/install.texi:
3864 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
3866 * configure.in: Increase makeinfo version requirement to 4.[2-9].
3867 * configure: Regenerate.
3868 * doc/install.texi: Update Texinfo version requirement.
3870 2002-12-28 Andreas Jaeger <aj@suse.de>
3872 * config/i386/i386.c (x86_function_profiler): Mark labelno as
3875 * c-parse.in (yyprint): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX for
3878 2002-12-27 Kazu Hirata <kazu@cs.umass.edu>
3880 * config/h8300/h8300.md (*iorhi_shift_8): Change the name to
3882 (*iorhi_lshiftrt_8): New.
3884 2002-12-27 Joseph S. Myers <jsm@polyomino.org.uk>
3886 * doc/include/texinfo.tex: Update to version 2002-12-26.16.
3888 2002-12-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3890 * doc/contrib.texi (Contributors): Add Abramo and Roberto Bagnara.
3892 2002-12-26 Kazu Hirata <kazu@cs.umass.edu>
3894 * config/h8300/h8300-protos.h: Fix comment typos.
3896 * config/h8300/h8300.c: Fix comment typos.
3898 2002-12-26 Kazu Hirata <kazu@cs.umass.edu>
3900 * config/h8300/h8300.h (IDENT_ASM_OP): End with a tab.
3902 2002-12-26 Kazu Hirata <kazu@cs.umass.edu>
3904 * config/i386/athlon.md: Fix comment typos.
3905 * config/i386/crtdll.h: Likewise.
3906 * config/i386/djgpp.h: Likewise.
3907 * config/i386/i386-interix.h: Likewise.
3908 * config/i386/i386.c: Likewise.
3909 * config/i386/i386.h: Likewise.
3910 * config/i386/i386.md: Likewise.
3911 * config/i386/k6.md: Likewise.
3912 * config/i386/mingw32.h: Likewise.
3913 * config/i386/pentium.md: Likewise.
3914 * config/i386/sco5.h: Likewise.
3915 * config/i386/winnt.c: Likewise.
3916 * config/i386/xmmintrin.h: Likewise.
3918 2002-12-26 Jose Renau <renau@cs.uiuc.edu>
3920 * ssa-dce.c (EXECUTE_IF_UNNECESSARY): Verify INSN is an
3921 INSN_P before checking to see if it is dead.
3922 (mark_all_insn_unnecessary): Similarly.
3923 (ssa_eliminate_dead_code): Similarly.
3924 * rtl.h (struct rtx_def): Update comments for in_struct usage
3925 in dead code elimination pass.
3926 (INSN_DEAD_CODE_P): Allow JUMP_INSN and CALL_INSN as well.
3928 2002-12-26 Andreas Schwab <schwab@suse.de>
3930 * config.gcc (powerpc*-*-*, rs6000-*-*): Fix assignment syntax.
3932 2002-12-25 David Edelsohn <edelsohn@gnu.org>
3934 * config/rs6000/rs6000.c (rs6000_override_options): Convert to
3935 tartet_flags_explicit.
3936 * config/rs6000/rs6000.h (MASK_MULTIPLE_SET, MASK_STRING_SET): Delete.
3937 Compact target_flags bits.
3938 (TARGET_MULTIPLE_SET, TARGET_STRING_SET): Delete.
3939 (TARGET_SWITCHES): Delete references to *_SET flags.
3941 Wed Dec 25 20:30:53 CET 2002 Jan Hubicka <jh@suse.cz>
3943 * i386.md (memory attribute): Fix setcc attribute.
3945 2002-12-25 Kazu Hirata <kazu@cs.umass.edu>
3947 * output.h: Fix comment typos.
3948 * predict.c: Likewise.
3949 * print-tree.c: Likewise.
3950 * profile.c: Likewise.
3951 * ra-build.c: Likewise.
3952 * ra-colorize.c: Likewise.
3953 * ra-debug.c: Likewise.
3954 * ra-rewrite.c: Likewise.
3958 * recog.c: Likewise.
3959 * reg-stack.c: Likewise.
3960 * regclass.c: Likewise.
3962 2002-12-25 Kazu Hirata <kazu@cs.umass.edu>
3964 * config/h8300/h8300.c (print_operand_address): Do not negate
3965 a negative number when printing one.
3967 2002-12-25 Kazu Hirata <kazu@cs.umass.edu>
3969 * config/h8300/h8300-protos.h: Add prototypes for
3970 output_plussi, compute_plussi_length, and compute_plussi_cc.
3971 * config/h8300/h8300.c (output_plussi): New.
3972 (compute_plussi_length): Likewise.
3973 (compute_plussi_cc): Likewise.
3974 * config/h8300/h8300.md (addsi_h8300h): Call
3975 output_plussi, compute_plussi_length, and compute_plussi_cc.
3977 2002-12-24 Kazu Hirata <kazu@cs.umass.edu>
3979 * config/h8300/h8300.md (two peepholes): Use match_dup instead
3980 of match_operand in the new patterns.
3982 2002-12-24 Joseph S. Myers <jsm@polyomino.org.uk>
3984 * doc/include/texinfo.tex: Update to version 2002-11-25.11.
3986 2002-12-24 Nathan Sidwell <nathan@codesourcery.com>
3988 * configure.in (enable-coverage): Add SELF_COVERAGE.
3989 * profile.c (end_branch_prob): Use SELF_COVERAGE.
3991 2002-12-24 Jim Wilson <wilson@redhat.com>
3993 * alias.c (record_set): Handle multi-reg hard registers.
3995 2002-12-24 Kazu Hirata <kazu@cs.umass.edu>
3997 * regmove.c: Fix comment typos.
3998 * reload.c: Likewise.
3999 * reload1.c: Likewise.
4000 * resource.c: Likewise.
4001 * rtl.def: Likewise.
4003 * rtlanal.c: Likewise.
4004 * sched-deps.c: Likewise.
4005 * sched-rgn.c: Likewise.
4006 * sibcall.c: Likewise.
4007 * simplify-rtx.c: Likewise.
4008 * ssa-ccp.c: Likewise.
4011 * stor-layout.c: Likewise.
4012 * system.h: Likewise.
4013 * tlink.c: Likewise.
4014 * toplev.c: Likewise.
4015 * tracer.c: Likewise.
4016 * tree-inline.c: Likewise.
4019 * unroll.c: Likewise.
4020 * varasm.c: Likewise.
4022 2002-12-23 Larin Hennessy <larin@science.oregonstate.edu>
4024 * doc/install.texi: Remove i386-*-isc, i860-*-bsd,
4025 m68k-altos-sysv, m68k-isi-bsd, m68k-sony-bsd entries.
4026 * doc/invoke.texi: Remove AMD 29K, ARM RISC/iX, Clipper, Convex,
4028 * doc/md.texi: Remove AMD 29K entries.
4029 * doc/trouble.texi: Remove Alliant, DG/UX, Iris 4.0.5F, GAS
4030 1.38.1, NewsOS, RT PC, WE32K entries.
4032 2002-12-23 Aldy Hernandez <aldyh@redhat.com>
4035 * config/rs6000/altivec.md (mulv4sf3): Rewrite to add -0.0 vector.
4036 (altivec_vspltisw_v4sf): Name pattern.
4037 (altivec_vslw_v4sf): New pattern.
4039 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
4041 * doc/include/gcc-common.texi: Define DEVELOPMENT.
4043 2002-12-23 Mark Mitchell <mark@codesourcery.com>
4045 * stor-layout.c (update_alignment_for_field): Correct handling of
4046 unnamed bitfields on PCC_BITFIELD_TYPE_MATTERS machines.
4047 * doc/tm.texi (PCC_BITFIELD_TYPE_MATTERS): Note that an unnamed
4048 bitfield does not affect alignment.
4050 2002-12-23 David Edelsohn <edelsohn@gnu.org>
4052 * expr.c (expand_assignment): Apply special treatment to
4055 2002-12-23 Kazu Hirata <kazu@cs.umass.edu>
4057 * config/h8300/h8300-protos.h: Update the prototype of
4059 * config/h8300/h8300.c (expand_a_shift): Change the return
4061 * config/h8300/h8300.md: Update all the uses of
4064 2002-12-22 Nathan Sidwell <nathan@codesourcery.com>
4066 * tree.c (save_expr): Allow either side of a dyadic operand to be
4069 * doc/portability.texi (portability): Update portability goals.
4071 2002-12-23 Kazu Hirata <kazu@cs.umass.edu>
4073 * config/h8300/h8300.c (output_a_shift): Remove unused code.
4075 2002-12-22 Mark Mitchell <mark@codesourcery.com>
4077 * stor-layout.c (update_alignment_for_field): Guard use of
4078 ADJUST_FIELD_ALIGN with #ifdef.
4080 * stor-layout.c (update_alignment_for_field): Use
4081 ADJUST_FIELD_ALIGN when computing the alignment for a zero-width
4082 bitfield when PCC_BITFIELD_TYPE_MATTERS.
4084 2002-12-22 Kazu Hirata <kazu@cs.umass.edu>