1 2002-03-11 Richard Henderson <rth@redhat.com>
3 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
4 if rebuild_label_notes_after_reload.
6 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
8 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
9 emit pic register load if "internal" visibility.
10 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
11 (cris_expand_builtin_va_arg): Do all computations on trees.
13 2002-03-11 Richard Henderson <rth@redhat.com>
15 * rtlanal.c: Include recog.h.
16 (keep_with_call_p): Fix thinko.
17 * Makefile.in (rtlanal.o): Update dependencies.
19 2002-03-11 Chris Meyer <cmeyer@gatan.com>
21 * genflags.c (gen_insn): Use IS_VSPACE.
22 * genoutput.c (output_insn_data): Likewise.
23 (process_template): Likewise.
25 2002-03-11 Richard Henderson <rth@redhat.com>
27 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
29 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
31 * Makefile.in: Update.
32 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
34 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
35 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
37 2002-03-11 Zack Weinberg <zack@codesourcery.com>
39 * Makefile.in: Give texi2pod its input file as a command line
40 argument, not on stdin.
42 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
43 Daniel Berlin <dan@dberlin.org>
45 C++ alias analysis improvement.
46 * alias.c (record_component_aliases): Record aliases for base
49 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
51 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
53 2002-03-11 Douglas B Rupp <rupp@gnat.com>
55 * toplev.c (vms_fopen): Remove, not needed.
57 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
59 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
61 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
62 for FP, already done later.
64 * toplev.c (debug_args): Add entry for VMS_DEBUG.
65 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
67 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
69 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
70 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
71 LARGEST_EXPONENT_IS_NORMAL for the given mode.
72 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
73 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
74 (ediv, emul, eldexp, esqrt): Likewise.
75 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
76 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
77 (saturate): New function.
78 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
79 (make_nan): Use a saturation value instead of a NaN if
80 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
81 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
82 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
83 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
84 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
85 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
87 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
88 (ROUND_TOWARDS_ZERO): Document.
90 2002-03-11 Andreas Jaeger <aj@suse.de>
92 * cfg.c (dump_flow_info): Remove unused variable.
94 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
96 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
97 computations on trees.
99 2002-03-10 Richard Henderson <rth@redhat.com>
102 * reload.c (copy_replacements_1): New.
103 (copy_replacements): Use it to recurse through the rtx.
105 2002-03-10 Richard Henderson <rth@redhat.com>
107 * loop.c (strength_reduce): Compute number of iterations as
108 unsigned HOST_WIDE_INT.
110 2002-03-10 Richard Henderson <rth@redhat.com>
112 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
113 to move away from the end of the block.
115 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
118 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
120 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
122 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
124 * attribs.c (decl_attributes): Fix signed/unsigned warning.
126 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
128 * config/mmix/mmix.c: Improve comments.
129 (mmix_target_asm_function_prologue): Drop variable
130 empty_stack_frame. Don't allocate unused slot above fp.
131 (mmix_target_asm_function_epilogue): Mirror prologue changes.
132 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
133 brace in first column.
134 (enum reg_class): Ditto.
135 (FIRST_PARM_OFFSET): Now 0.
136 (USER_LABEL_PREFIX): Remove #if 0:d definition.
138 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
140 * combine.c (make_extraction): Fix error in last change.
142 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
144 * c4x.c (c4x_fp_reglist): Const-ify.
145 * cris.c (cris_print_operand): Likewise.
146 * i386.c (ix86_va_arg): Likewise.
147 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
148 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
149 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
150 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
151 * mcore.h (regno_reg_class): Likewise.
152 * mips.c (gen_int_relational): Likewise.
153 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
154 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
155 * pdp11.c (move_costs): Likewise.
156 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
157 * s390.c (s390_branch_condition_mnemonic, regclass_map):
159 * s390.h (regclass_map): Likewise.
160 * sh.c (shift_amounts): Likewise.
161 * sh.md (rotlsi3): Likewise.
163 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
165 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
166 (ne0+5): Use new clobber to generate proper shift pattern.
167 Patch by Michael Matz <matz@kde.org>.
169 2002-03-09 Andreas Schwab <schwab@suse.de>
171 * gcc.c (validate_all_switches): Also handle `%W{...}'.
173 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
175 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
177 2002-03-09 Jakub Jelinek <jakub@redhat.com>
180 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
181 even for non-representable constants.
183 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
185 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
186 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
187 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
188 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
189 (pop_function_context): Compute MAY_SHARE parameter for
191 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
192 (gen_mem_addressof): Call fixup_var_refs with new parm.
194 * combine.c (make_extraction): Don't make extension of CONST_INT.
196 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
198 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
200 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
201 but getting fixed-size structs passed in registers regardless of
202 padding in o32 and o64 ABIs.
204 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
205 offset before loading address of argument passed by transparent
208 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
210 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
212 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
214 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
215 marker such that registers after it are saved.
217 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
219 * sparc.c (arith_4096_operand): Fix error in last change.
221 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
223 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
226 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
228 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
231 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
233 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
235 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
237 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
238 removed; fix return value.
239 * combine.c (combine_instructions): Dirtify blocks where we failed to
240 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
241 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
243 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
245 * gcse.c (insert_insn_end_bb): Fix typo in last change.
247 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
249 * recog.c (peephole2_optimize): Re-distribute EH edges.
251 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
253 * expr.c (expand_expr): Use unsave lang hook.
254 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
255 (LANG_HOOKS_INITIALIZER): Update.
256 * langhooks.h (struct lang_hooks): New hook unsave.
257 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
258 (unsave_expr_1): Remove unused lang_unsave_expr_now.
259 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
260 (unsave_expr_now): Remove.
261 * tree.h (unsave_expr_now, lang_unsave,
262 lang_unsave_expr_now): Remove.
265 2002-03-08 Andreas Jaeger <aj@suse.de>
267 * flow.c (propagate_block_delete_insn): Remove unused variable.
269 2002-03-08 Kazu Hirata <kazu@hxi.com>
271 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
272 insn length for memory load/store.
274 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
276 * doc/install.texi (--with-libiconv-prefix): Document.
278 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
280 * doc/sourcebuild.texi: Fix typo.
282 2002-03-08 Jakub Jelinek <jakub@redhat.com>
285 * builtins.c (std_expand_builtin_va_arg): Do all computations on
288 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
290 * rtl.c (copy_most_rtx): Move from here ...
291 * emit-rtl.c (copy_most_rtx): ... to here.
293 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
295 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
296 SUBTARGET_CPP_SIZE_SPEC.
297 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
299 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
301 2002-03-07 Matt Hiller <hiller@redhat.com>
303 * gensupport.c (first_dir_md_include): Renamed from include;
304 change all references.
305 (last_dir_md_include): Renamed from last_include; change all
307 (init_md_reader): Unconditionally initialize base_dir whether or
308 not filename is a relative path.
310 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
312 * config/fp-bit.c (_unord_f2): Compile it in even if
313 US_SOFTWARE_GOFAST is enabled.
315 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
316 NULL_RTX. Set all HFmode operations as NULL_RTX.
317 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
318 NULL_RTX, try reversing the comparison and the operands.
320 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
322 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
323 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
326 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
328 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
330 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
332 * basic-block.h (fixup_abnormal_edges): Declare.
333 * reload1.c (fixup_abnormal_edges): New function.
334 * reg-stack.c (convert_regs): Use it.
336 * gcse.c (insert_insn_end_bb): Handle trapping insns.
338 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
340 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
342 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
343 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
344 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
345 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
346 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
347 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
348 unless x and y could be infinite.
349 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
350 Check that the common type of both arguments is a real, even for
351 targets without unordered comparisons. Allow an integer argument
352 to be compared against a real.
353 (expand_tree_builtin): Use expand_unordered_cmp.
354 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
355 * cse.c (fold_rtx): Likewise. Fix indentation.
356 * fold-const.c (fold_real_zero_addition_p): New.
357 (fold): Use it, and the new HONOR_... macros.
358 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
359 * jump.c (reversed_comparison_code_parts): After searching for
360 the true comparison mode, use HONOR_NANS to decide whether it
361 can be safely reversed.
362 (reverse_condition_maybe_unordered): Remove IEEE check.
363 * simplify-rtx.c (simplify_binary_operation): Use the new macros
364 to decide which simplifications are valid. Allow the following
365 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
366 and (a - -b) to (a + b).
367 (simplify_relational_operation): Use HONOR_NANS.
368 * doc/tm.texi: Document the MODE_HAS_... macros.
370 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
372 * combine.c (simplify_comparison): If simplifying a logical shift
373 right and compare with constant, force the comparison to unsigned.
375 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
377 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
379 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
381 (alt_reg_names): Remove % for vrsave.
383 2002-03-06 Richard Henderson <rth@redhat.com>
386 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
387 if used indicates we've already emitted one copy of an operand.
388 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
389 (gen_split): Supply a non-null used.
391 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
393 * reload1.c (reload): Unshare all rtl after reload is done.
395 * simplify-rtx.c (simplify_plus_minus): Do not abort,
396 but simply fail if the expression is too complex to simplify.
397 (simplify_gen_binary): Handle simplify_plus_minus failures.
399 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
401 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
402 consistently call delete_trivially_dead_insns after CSE and GCSE;
403 fix DFI_life dumping; do jump threading after liveness; do crossjumping
404 after liveness2; update comment in last crossjumping.
405 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
407 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
409 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
410 after completing fast dead code elimination.
412 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
415 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
417 * version.c: Fix misplaced leading blanks on first line.
419 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
421 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
423 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
425 * cfgcleanup.c (mentions_nonequal_regs): New function.
426 (thread_jump): Use it.
427 * toplev.c (rest_of_compilation): Run jump threading after
430 2002-03-06 Jakub Jelinek <jakub@redhat.com>
432 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
435 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
437 * predict.c (estimate_bb_frequencies): Do not reload the
438 frequencies from notes.
440 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
442 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
443 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
445 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
446 delete_noop_moves): Return indeger.
447 * flow.c (ndead): New variable.
448 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
449 BB argument; update callers.
450 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
451 (life_analysis): Do not call purge_all_dead_edges.
452 (update_life_info): Return number of deleted insns; print statistics.
453 (update_life_info_in_dirty_blocks): likewise.
454 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
455 return number of insns deleted.
457 * cse.c: Include timevar.h
458 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
459 iterate until stabilizes; print statistics; return number of killed
461 * Makefile.in: (cse.o): Add timevar.h dependency
462 * rtl.h (delete_trivially_dead_insns): New.
463 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
464 * toplev.c (rest_of_compilation): Update callers.
466 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
467 (try_optimize_cfg): Do not update liveness.
468 (cleanup-cfg): Loop until try_optimize_cfg and dead code
469 removal stabilizes; use delete_trivially_dead_insns.
471 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
473 2002-03-05 Zack Weinberg <zack@codesourcery.com>
475 * cppmain.c (setup_callbacks): Disable #pragma and #ident
476 callbacks when processing assembly language.
478 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
480 * pa.h (ASM_FILE_END): Define.
481 * som.h (ASM_FILE_END): Delete.
483 * pa.c (function_arg): Don't pass floats in general registers in
484 indirect calls if TARGET_ELF32.
486 2002-03-05 Richard Henderson <rth@redhat.com>
488 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
490 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
492 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
494 2002-03-05 Jakub Jelinek <jakub@redhat.com>
496 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
497 -r command line. Don't hide any symbols if not building
500 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
502 * cfg.c (dump_flow_info): Warn about profile mismatches.
503 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
504 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
506 2002-03-05 Jakub Jelinek <jakub@redhat.com>
508 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
509 wide volatile memory by parts.
511 2002-03-05 Jakub Jelinek <jakub@redhat.com>
513 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
516 2002-03-05 Richard Henderson <rth@redhat.com>
518 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
520 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
522 * toplev.c (documented_lang_options): Document more
523 language-specific options.
524 * doc/invoke.texi (Warning Options): Correct documentation for
525 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
526 * c-decl.c (c_decode_option): Use a table to handle warning options.
528 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
530 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
531 parameter to mmix_encode_section_info.
532 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
533 relocatably. Always produce ELF, not mmo if linking relocatably.
534 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
535 first is non-zero, don't add symbol prefix.
536 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
537 prototype accordingly.
539 2002-03-04 Krister Walfridsson <cato@df.lth.se>
541 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
543 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
545 * configure.in: Increase required makeinfo version to 4.1.
546 * configure: Regenerate.
548 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
550 * .cvsignore: Remove *.info* and genrtl*; these files are generated
553 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
555 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
556 * doc/invoke.texi: Fix @math uses.
558 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
560 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
563 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
565 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
566 (powerpc-*-eabisimaltivec*): Same.
568 * config/rs6000/t-ppcendian: New.
570 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
572 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
573 nonimmediate_src_operand and nonimmediate_lsrc_operand to
574 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
576 2002-03-03 Richard Henderson <rth@redhat.com>
578 * toplev.c (rest_of_decl_compilation): Revert last two changes.
580 2002-03-03 Zack Weinberg <zack@codesourcery.com>
582 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
583 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
584 tree.c, config/m68k/m68k.c:
585 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
586 REAL_ARITHMETIC blocks unconditional. Delete some further
587 #ifdef blocks predicated on REAL_ARITHMETIC.
588 * flags.h, toplev.c: Delete remaining references to
591 * doc/invoke.texi: Remove documentation of -fpretend-float.
592 * doc/tm.texi: Describe the various REAL_* macros as provided by
593 real.h, not by the target configuration files.
595 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
596 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
597 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
598 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
599 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
600 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
601 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
602 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
603 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
604 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
605 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
606 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
607 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
608 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
609 config/xtensa/xtensa.h:
610 Do not define, undefine, or mention in comments any of
611 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
612 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
613 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
614 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
615 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
616 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
617 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
618 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
619 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
621 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
623 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
624 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
625 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
626 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
627 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
628 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
630 * defaults.h (BITS_PER_WORD): Define.
631 * doc/tm.texi (BITS_PER_WORD): Document default value.
633 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
634 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
635 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
637 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
639 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
640 lieu of explicit sizeof/sizeof.
641 * i386.c (override_options, ix86_init_mmx_sse_builtins,
642 ix86_expand_builtin): Likewise.
643 * mips.c (mips_add_gc_roots): Likewise.
644 * mmix.c (mmix_output_condition): Likewise.
645 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
646 altivec_init_builtins): Likewise.
647 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
648 * cppexp.c (Nsuff, parse_number): Likewise.
649 * cppinit.c (builtin_array_end): Likewise.
650 * gcc.c (n_default_compilers, process_command): Likewise.
651 * genpreds.c (output_predicate_decls): Likewise.
652 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
653 * lcm.c (N_ENTITIES): Likewise.
654 * stor-layout.c (set_sizetype): Likewise.
656 2002-03-03 Richard Henderson <rth@redhat.com>
658 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
661 2002-03-03 Richard Henderson <rth@redhat.com>
663 * c-decl.c (start_decl): Initialized variables are not common.
665 2002-03-02 Per Bothner <per@bothner.com>
667 * gcc.c (option_map): Suport new --bootclasspath option.
668 --CLASSPATH is now just an alias for --classpath.
670 2002-03-02 Richard Henderson <rth@redhat.com>
672 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
673 load if "internal" visibility.
674 * doc/extend.texi: Document visibility meanings.
676 2002-03-02 Richard Henderson <rth@redhat.com>
678 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
679 to functions as well.
681 2002-03-02 Richard Henderson <rth@redhat.com>
683 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
684 (handle_visibility_attribute): Don't call assemble_visibility.
685 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
686 without asmspec. Invoke assemble_alias when needed.
687 * varasm.c (maybe_assemble_visibility): New.
688 (assemble_start_function, assemble_variable, assemble_alias): Use it.
690 2002-03-02 Richard Henderson <rth@redhat.com>
692 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
693 invoke ENCODE_SECTION_INFO with first call flag.
695 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
696 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
697 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
698 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
699 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
700 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
701 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
702 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
703 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
704 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
705 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
706 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
707 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
708 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
709 config/mcore/mcore-protos.h, config/mcore/mcore.c,
710 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
711 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
712 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
713 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
714 config/sh/sh.h, config/sparc/sparc.h,
715 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
716 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
717 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
718 FIRST argument. As needed, examine it and do nothing.
720 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
721 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
722 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
724 * config/arm/t-pe (pe.o): Add dependencies.
726 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
728 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
729 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
730 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
731 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
732 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
733 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
734 * defaults.h (BITS_PER_UNIT): Define.
735 * doc/tm.texi (BITS_PER_UNIT): Document default value.
737 2002-03-02 Kazu Hirata <kazu@hxi.com>
739 * config/h8300/h8300-protos.h: Add a prototype for
740 compute_a_shift_length.
741 * config/h8300/h8300.c (h8300_asm_insn_count): New.
742 (compute_a_shift_length): Likewise.
743 (h8300_adjust_insn_length): Do not adjust insn length of shift
745 * config/h8300/h8300.md (anonymous shift patterns): Use
746 compute_a_shift_length.
748 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
750 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
753 * emit-rtl.c (offset_address): Call update_temp_slot_address.
755 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
757 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
758 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
759 * flags.h (flag_zero_initialized_in_bss): Declare.
760 * toplev.c (flag_zero_initialized_in_bss): New flag.
761 (lang_independent_options): Add flag_zero_initialized_in_bss.
762 * tree.c (initializer_zerop): New function.
763 * tree.h (initializer_zerop): Declare.
764 * varasm.c (assemble_variable): If we can emit bss, put zero
765 initializers in the bss section.
767 2002-03-02 Alan Modra <amodra@bigpond.net.au>
769 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
770 like more than one symbol per .weak directive.
772 2002-03-01 Richard Henderson <rth@redhat.com>
774 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
775 adjust argument_pointer by pretend_args_size.
776 (ia64_va_start): Adjust va_start address by -pretend_args_size.
778 2002-03-01 Kazu Hirata <kazu@hxi.com>
780 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
782 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
784 * toplev.c (rest_of_compilation): Delete dead jumptables before
786 * flow.c (delete_dead_jumptables): Make global.
787 * rtl.h (delete_dead_jumptables): Declare.
789 2002-03-01 David Edelsohn <edelsohn@gnu.org>
791 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
792 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
793 * config/rs6000/xcoff.h (COLLET_EXPORT_LIST): Delete.
795 2002-03-01 Kazu Hirata <kazu@hxi.com>
797 * config/h8300/h8300-protos.h: Fix formatting.
798 * config/h8300/h8300.c: Likewise.
799 * config/h8300/h8300.h: Likewise.
801 2002-03-01 Kazu Hirata <kazu@hxi.com>
803 * config/h8300/h8300.c (print_operand): Support 16-bit
805 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
807 2002-02-28 Richard Henderson <rth@redhat.com>
809 * expmed.c (store_bit_field): Prevent generation of CONCATs;
810 pun complex values as integers; use gen_lowpart instead of
812 (extract_bit_field): Likewise.
814 2002-03-01 Alan Modra <amodra@bigpond.net.au>
815 David Edelsohn <edelsohn@gnu.org>
817 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
818 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
819 (SUPPORTS_WEAK): Likewise.
820 * output.h (add_weak): Add tree param.
821 * varasm.c (add_weak): Likewise. Save decl.
822 (struct weak_syms): Add decl field.
823 (mark_weak_decls): New function.
824 (init_varasm_once): ggc_add_root mark_weak_decls.
825 (assemble_start_function): Use ASM_WEAKEN_DECL.
826 (assemble_variable): Likewise.
827 (assemble_alias): Likewise.
828 (declare_weak): Pass decl to add_weak.
829 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
830 (remove_from_pending_weak_list): Declare and define for
832 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
833 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
834 * defaults.h (SUPPORTS_WEAK): Likewise.
835 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
836 .weak for code sym. Do emit .size for descriptor sym.
837 (ASM_DECLARE_FUNCTION_SIZE): Define.
838 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
839 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
840 .lglobl unless TARGET_XCOFF. Formatting fixes.
841 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
843 (HANDLE_PRAGMA_WEAK): Remove.
844 (ASM_WEAKEN_LABEL): Remove.
845 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
847 2002-03-01 Jason Merrill <jason@redhat.com>
849 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
850 (TARGET_EXPR_CLEANUP): New macro.
852 2002-02-28 Steve Ellcey <sje@cup.hp.com>
854 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
855 to take ptr_extend into account as third type of extension.
856 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
857 fields used by SUBREG_PROMOTED_UNSIGNED_P.
858 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
859 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
860 * calls.c (precompute_arguments): Use new macro.
861 (expand_call): Ditto.
862 * combine.c (nonzero_bits): Ditto.
863 (record_promoted_value): Ditto.
864 * expr.c (store_expr): Ditto.
865 (expand_expr): Ditto.
866 * function.c (assign_parms): Ditto.
868 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
870 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
871 override -shared and -shared-libgcc.
873 2002-02-28 David O'Brien <obrien@FreeBSD.org>
875 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
877 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
880 2002-02-28 Richard Henderson <rth@redhat.com>
882 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
883 4 cycle latency from MM producers.
884 (ia64_internal_sched_reorder): Likewise with pipeline flush.
886 2002-02-28 Jakub Jelinek <jakub@redhat.com>
888 * mklibgcc.in: Don't use GNU make extension.
890 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
892 * c-parse.in (STATIC): New terminal.
893 (scspec): New non-terminal. Update productions accordingly.
894 (program): Remove bogus ifc / end ifc.
895 (array_declarator): Simplify production using STATIC.
897 2002-02-28 Jim Meyering <meyering@lucent.com>
899 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
900 \a still means TARGET_BELL.
902 2002-02-28 Richard Henderson <rth@redhat.com>
904 * haifa-sched.c (sched_emit_insn): New.
905 (schedule_block): Use last_scheduled_insn to track last insn.
906 * sched-int.h (sched_emit_insn): Prototype.
907 * config/ia64/ia64.c (last_issued): Remove.
908 (ia64_variable_issue): Don't set it.
909 (nop_cycles_until): Use sched_emit_insn.
911 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
913 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
916 2002-02-28 Kazu Hirata <kazu@hxi.com>
918 * config/h8300/h8300.c: Fix formatting.
919 * config/h8300/h8300.h: Likewise.
921 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
923 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
924 which may overwrite the high byte of the frame pointer.
926 2002-02-28 Bo Thorsen <bo@suse.de>
928 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
929 (STARTFILE_SPEC): Add 64 bit files.
930 (ENDFILE_SPEC): Likewise.
932 2002-02-28 Jason Merrill <jason@redhat.com>
934 * c-decl.c (finish_function): Only warn about missing return
935 statement with -Wreturn-type.
937 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
939 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
941 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
942 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
944 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
946 * basic-block.h (BB_REACHABLE): Renumber.
947 (BB_DIRTY, BB_NEW): New flags.
948 (clear_bb_flags): Declare.
949 (update_life_info_in_dirty_blocks): Declare.
950 * cfg.c (clear_bb_flags): New function.
951 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
952 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
953 reorder_insns, emit_insn_after): Mark block as dirty.
954 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
955 (update_life_info_in_dirty_blocks): New function.
956 * recog.c (apply_change_group): Dirtify block.
958 * cse.c (cse_insn): Reorder emitting of jump insn to keep
960 * gcse.c (delete_null_pointer_checks): Likewise.
962 * toplev.c (dump_file_index): Move cse2 after bp,
964 (dump_file_info): Similary.
965 (rest_of_compilation): Avoid most of CFG rebuilds;
966 do first if converision after null pointer checks, do cse2
967 after branch prediction; avoid full liveness rebuild after
968 initializing subregs.
969 * invoke.texi (-d options): Document -du, renumber.
971 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
972 (notice_new_block): Do not set BB_UPDATE_LIFE.
973 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
974 merge_blocks_move_successor_nojumps, merge_blocks,
975 try_crossjump_to_edge): Likewise.
976 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
977 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
978 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
979 (merge_of_block): Do not use life_data_ok.
980 (find_if_case_1): Do not use SET_UPDATE_LIFE.
981 (if_convert): Use BB_DIRTY mechanizm to update life.
982 * lcm.c (optimize_mode_switching): Update
983 update_life_info_in_dirty_blocks
985 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
987 * Makefile.in (integrate.o): Update.
988 * c-decl.c (copy_lang_decl): Rename.
989 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
990 * integrate.c: Include langhooks.h.
991 (copy_decl_for_inlining): Update to use langhook.
992 * langhooks-def.h (lhd_do_nothing_t,
993 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
994 (LANG_HOOKS_INITIALIZER): Update.
995 * langhooks.c (lhd_do_nothing_t): New.
996 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
997 * tree.h (copy_lang_decl): Remove.
999 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
1001 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
1003 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
1004 POST_DEC, and POST_MODIFY.
1006 2002-02-27 Zack Weinberg <zack@codesourcery.com>
1008 * c-typeck.c (digest_init): Remove unused parameter; all
1011 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
1013 * expmed.c (expand_shift): Correctly test for low part of a
1016 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
1018 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
1019 insn UIDs with insn addresses.
1021 2002-02-27 Zack Weinberg <zack@codesourcery.com>
1023 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
1024 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
1025 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
1026 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
1027 gcc.c, toplev.c: Delete code implementing -traditional mode.
1029 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
1030 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
1031 Document removal of -traditional mode for compilation, and
1032 remove documentation only relevant to that mode.
1034 * config/nextstep.h, config/ptx4.h, config/svr4.h,
1035 config/convex/convex.h, config/d30v/d30v.h,
1036 config/i386/dgux.h, config/i386/osf1elf.h,
1037 config/i386/osfelf.h, config/i386/osfrose.h,
1038 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
1039 config/m68k/hp310.h, config/m88k/dgux.h,
1040 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
1041 config/m88k/m88k.h, config/m88k/openbsd.h,
1042 config/mips/abi64.h, config/mips/osfrose.h,
1043 config/mips/svr4-5.h, config/mips/svr4-t.h,
1044 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1045 config/stormy16/stormy16.h: Remove all references to
1046 -traditional from target specs. Delete all mention of the
1047 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
1048 delete a couple of commented-out definitions of
1049 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
1052 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
1053 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
1055 2002-02-27 Zack Weinberg <zack@codesourcery.com>
1057 * mklibgcc.in: Don't use \n in a line subject to
1058 interpretation by echo.
1060 2002-02-27 Graham Stott <grahams@redhat.com>
1062 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
1065 * loop.c (prescan_loop): Handle PARALLEL.
1067 * unroll.c (loop_iterations): Return 0 if the add_val for
1070 * final.c (output_operand_lossage): Constify PFX_STR.
1072 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
1074 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
1076 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
1077 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
1079 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
1081 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
1083 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
1085 * cpplex.c (_cpp_lex_token): Handle directives in macro
1087 * cpplib.c (_cpp_handle_directive): Save and restore state
1088 if parsing macro args when entering a directive.
1089 * cppmacro.c (collect_args): No need to handle directives
1091 (enter_macro_context, replace_args): Use the original macro
1092 definition in case it was redefined whilst collecting arguments.
1096 2002-02-26 David Edelsohn <edelsohn@gnu.org>
1098 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
1099 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
1100 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
1102 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
1103 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
1104 (load_toc_v4_PIC_2): Same.
1106 2002-02-26 Alan Modra <amodra@bigpond.net.au>
1108 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
1110 2002-02-26 Richard Henderson <rth@redhat.com>
1112 * config/alpha/alpha.md (ashldi_se): Re-enable.
1114 2002-02-26 Richard Henderson <rth@redhat.com>
1116 * config/alpha/alpha.c (alpha_encode_section_info): Examine
1117 MODULE_LOCAL_P; improve commentary.
1119 2002-02-26 Zack Weinberg <zack@codesourcery.com>
1121 * doc/cpp.texi: Clarify documentation of relationship between
1124 2002-02-26 Kazu Hirata <kazu@hxi.com>
1126 * config/h8300/h8300-protos.h: Update the prototype for
1127 compute_logical_op_length. Add the prototype for
1128 compute_logical_op_cc.
1129 * config/h8300/h8300.c (compute_logical_op_length): Figure out
1131 (compute_logical_op_cc): New.
1132 * config/h8300/h8300.md: Combine all the logical op patterns
1133 in HImode and SImode. Use compute_logical_op_cc.
1135 2002-02-26 Kelley Cook <kelleycook@comcast.net>
1137 * config/i386/i386.c (print_operand): Don't append ATT-style
1138 length suffixs to x87 opcodes when in Intel mode.
1140 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
1142 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
1143 (init_emit_once): Update calls.
1144 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
1145 (init_syntax_once): Prototype.
1147 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1149 * pa-linux.h (LIB_SPEC): Update definition.
1150 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
1152 2002-02-26 Richard Henderson <rth@redhat.com>
1154 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
1155 if we emitted a stop bit.
1157 2002-02-26 Jakub Jelinek <jakub@redhat.com>
1159 * configure.in (libgcc_visibility): Substitute.
1160 * configure: Rebuilt.
1161 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
1162 defined symbols .hidden.
1164 2002-02-26 Jakub Jelinek <jakub@redhat.com>
1166 * attribs.c (c_common_attribute_table): Add visibility.
1167 (handle_visibility_attribute): New function.
1168 * varasm.c (assemble_visibility): New function.
1169 * output.h (assemble_visibility): Add prototype.
1170 * tree.h (MODULE_LOCAL_P): Define.
1171 * crtstuff.c (__dso_handle): Use visibility attribute.
1172 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
1173 for MODULE_LOCAL_P symbols too.
1174 * config/ia64/ia64.c (ia64_encode_section_info): Handle
1175 MODULE_LOCAL_P symbols the same way as local symbols.
1176 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
1177 into .sdata/.sbss by the user.
1178 * doc/extend.texi (Function Attributes): Document visibility
1181 2002-02-26 Jakub Jelinek <jakub@redhat.com>
1184 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
1185 STRING_CST initializer spanning the whole variable without
1187 If expand_expr returned MEM, don't use it.
1189 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
1191 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
1192 generate a die for the lexical block.
1194 2002-02-26 Kazu Hirata <kazu@hxi.com>
1196 * config/h8300/h8300-protos.h: Add a prototype for
1197 compute_logical_op_length.
1198 * config/h8300/h8300.c (compute_logical_op_length): New.
1199 * config/h8300/h8300.md (anonymous logical patterns): Use
1200 compute_logical_op_length for length.
1202 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
1204 * dwarf2out.c (modified_type_die): Do not call type_main_variant
1206 (gen_type_die): Same.
1208 * attribs.c (handle_vector_size_attribute): Set debug information.
1210 2002-02-26 Daniel Egger <degger@fhm.edu>
1212 * config/rs6000/rs6000.md: Swap define_insn attributes to
1213 fix incorrect generation of merge high instructions instead
1216 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
1218 * c-typeck.c (really_start_incremental_init): Use
1219 bitsize_zero_node for vectors.
1221 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
1223 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
1224 ("*set_vrsave_internal"): Same.
1226 2002-02-25 Richard Henderson <rth@redhat.com>
1228 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
1229 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
1231 2002-02-25 Jakub Jelinek <jakub@redhat.com>
1234 * config/i386/i386.c (ix86_return_pops_args): Only pop
1235 fake structure return argument if it was passed on the stack.
1237 2002-02-25 Jason Merrill <jason@redhat.com>
1239 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
1242 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
1244 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
1245 link with shared_name only.
1246 * doc/invoke.texi (Link Options): Document new behavior.
1248 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
1250 * c-typeck.c (push_init_level): Handle vectors.
1252 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
1254 * config/sparc/sparc.c (const64_high_operand): Zero-extend
1255 operands of SPARC_SETHI_P.
1256 (input_operand): Likewise.
1257 (sparc_emit_set_const32): Likewise.
1258 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
1259 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
1260 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
1261 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
1262 (movdi_insn_sp64_vis): Likewise.
1263 (movdi split, movdf split): Use SETHI32.
1264 * doc/md.texi: Document SPARC constraints L, M and N.
1266 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
1268 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
1269 ("*set_vrsave_internal"): use mfspr for Darwin.
1271 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
1272 gen_get_vrsave_internal.
1274 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1276 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
1278 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
1280 * cpplex.c (cpp_interpret_charconst): Get signedness or
1281 otherwise of wide character constants correct.
1282 * cppexp.c (lex): Get signedness of wide charconsts correct.
1284 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1286 * optabs.c (widen_operand): Only call convert_modes for
1287 promoted SUBREG if signedness matches.
1288 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
1290 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
1292 * cpplib.c (glue_header_name): Use local buffer to build up
1295 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
1297 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
1299 2002-02-23 Kazu Hirata <kazu@hxi.com>
1301 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
1302 H8/300[HS] separately.
1303 * config/h8300/h8300.md: Remove the early clobber constraint
1304 from bit field patterns.
1306 2002-02-23 Kazu Hirata <kazu@hxi.com>
1308 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
1310 (mulhisi3): Likewise.
1311 (umulqisi3): Likewise.
1312 (umulhisi3): Likewise.
1314 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
1316 * cppinit.c (output_deps): Correct test for stdout output.
1317 (init_dependency_output): Cure warning.
1319 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1321 * expr.c (store_expr): When converting expression to promoted
1322 equivalent type, allow using SUBREG_REG of TARGET as the target
1323 of the expansion of EXP.
1324 * loop.c (basic_induction_var, case SUBREG): Always look inside.
1325 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
1326 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
1327 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
1328 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
1330 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
1332 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
1333 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
1334 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
1336 2002-02-23 Jakub Jelinek <jakub@redhat.com>
1338 PR optimization/5747
1339 * loop.c (scan_loop): Update reg info if move_movables created new
1342 2002-02-23 David Edelsohn <edelsohn@gnu.org>
1344 * gcc.c (init_gcc_spec): Revert last change.
1346 2002-02-23 David Edelsohn <edelsohn@gnu.org>
1348 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
1349 gpc_reg_operand constraint.
1351 2002-02-23 Alan Modra <amodra@bigpond.net.au>
1353 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
1354 Simplify comparison of `low'.
1355 (add_operand): Fix formatting.
1356 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
1357 (mask_operand): Disallow mask to wrap in 64-bit mode.
1358 (rs6000_stack_info): Remove redundant test setting push_p.
1359 (output_toc): Fix formatting.
1360 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
1361 cc_reg_not_cr0_operand constraint.
1362 (booldi3, boolcdi3 splitters): Same.
1364 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
1366 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
1368 2002-02-22 David Edelsohn <edelsohn@gnu.org>
1370 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
1371 gcc invoked with -shared-libgcc.
1373 2002-02-22 Jakub Jelinek <jakub@redhat.com>
1376 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
1377 decl if any of elements was TREE_USED.
1379 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
1381 * config/sparc/sol2.h: Don't include sys/mman.h.
1382 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
1383 (arith_4096_operand): Don't throw high bits away.
1384 (const64_operand): Take sign extension of CONST_INTs into account.
1385 (const64_high_operand, sparc_emit_set_const32): Likewise.
1386 (GEN_HIGHINT64): Likewise.
1387 (sparc_emit_set_const64_quick1): Likewise.
1388 (const64_is_2insns): Likewise.
1389 (print_operand): Use trunc_int_for_mode for sign extension.
1390 * config/sparc/sparc.h (SMALL_INT32): Likewise.
1391 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
1392 chars. Assume CONST_INT is already properly sign-extended.
1393 (movdi split): Sign-extend each SImode part.
1394 (andsi3 split): Don't mask high bits off, so that result
1395 remains properly sign-extend.
1396 (iorsi3 split): Likewise.
1397 (xorsi3 split): Likewise.
1399 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
1401 * fold-const.c (fold): Fix typo in comments.
1403 2002-02-21 Diego Novillo <dnovillo@redhat.com>
1405 * Makefile.in (langhooks.o): Update dependencies.
1407 2002-02-21 Diego Novillo <dnovillo@redhat.com>
1409 * langhooks.c: Include flags.h.
1411 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
1413 * testsuite/gcc.dg/attr-alwaysinline.c: New.
1415 * c-common.c (c_common_post_options): Set inline trees by
1418 * doc/extend.texi (Function Attributes): Document always_inline
1420 Update documentation about inlining when not optimizing.
1422 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
1424 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
1425 unless DECL_ALWAYS_INLINE.
1427 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
1428 unless DECL_ALWAYS_INLINE.
1429 (c_disregard_inline_limits): Disregard if always_inline set.
1431 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
1432 Disregard if always_inline set.
1433 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
1434 unless DECL_ALWAYS_INLINE.
1436 * attribs.c (handle_always_inline_attribute): New.
1437 (c_common_attribute_table): Add always_inline.
1439 * config/rs6000/altivec.h: Add prototypes for builtins
1440 requiring the always_inline attribute.
1442 2002-02-21 Eric Christopher <echristo@redhat.com>
1444 * expmed.c (store_bit_field): Try to simplify the subreg
1445 before generating a new one when when the mode size of
1446 value is less than maxmode.
1448 2002-02-21 Richard Henderson <rth@redhat.com>
1450 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
1451 than gen_rtx_PLUS to form the sum.
1452 * explow.c (force_reg): Rearrange to not allocate new pseudo
1453 when force_operand returns a register.
1454 * expr.c (expand_assignment): Allow offset_rtx expansion to
1455 return a sum. Do not force addresses into registers.
1456 (expand_expr): Likewise.
1457 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
1458 to canonicalize arithmetic that didn't simpify.
1459 (simplify_plus_minus): New argument force; update
1460 all callers. Don't split CONST unless we can do something with it,
1461 and wouldn't lose the constness of the operands.
1463 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
1464 that we generated earlier.
1466 2002-02-21 Tom Tromey <tromey@redhat.com>
1468 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
1469 (output_line_info): Use constant `1', with a long explanatory
1471 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
1473 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
1475 * jump.c (redirect_jump): If old label has no UID, don't try to
1478 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
1480 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
1481 If input is constant, do shifts at compile time.
1483 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
1485 * doc/extend.texi: Fix some more overfull hboxes.
1487 2002-02-21 Jakub Jelinek <jakub@redhat.com>
1489 PR optimization/4994
1490 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
1493 2002-02-21 Jakub Jelinek <jakub@redhat.com>
1496 * expr.h (expand_and): Add mode argument.
1497 * expmed.c (expand_and): Add mode argument.
1498 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
1499 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
1500 * except.c (expand_builtin_extract_return_addr): Likewise.
1501 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
1502 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
1503 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
1504 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
1505 * config/c4x/c4x.md: Use GEN_INT (x) instead of
1506 gen_rtx (CONST_INT, VOIDmode, x).
1508 2002-02-21 Jakub Jelinek <jakub@redhat.com>
1511 * stmt.c (warn_if_unused_value): Move side effects test once more.
1513 2002-02-20 Torbjorn Granlund <tege@swox.com>
1515 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
1516 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
1518 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
1520 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
1521 SUBREG or ZERO_EXTEND.
1523 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
1525 * sh.h (current_function_anonymous_args): Remove.
1526 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
1527 of current_function_varargs and current_function_stdarg is set.
1528 * sh.c (sh_expand_prologue): Check current_function_varargs /
1529 current_function_stdarg / TARGET_SH5 instead of
1530 current_function_anonymous_args.
1532 * sh64.h (TARGET_VERSION): Define.
1534 2002-02-20 David Edelsohn <edelsohn@gnu.org>
1536 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
1537 VRSAVE_REGNO on TARGET_ALTIVEC.
1539 2002-02-20 Alan Modra <amodra@bigpond.net.au>
1541 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
1542 bits of SImode const_int.
1543 (includes_rshift_p): Likewise.
1544 (print_operand): Call mask_operand and mask64_operand with correct
1546 (rs6000_output_function_epilogue): Pad traceback table to word.
1547 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
1548 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
1549 mask64_operand with correct mode.
1550 (FUNCTION_ARG_REGNO_P): Correct parentheses.
1552 2002-02-20 Jakub Jelinek <jakub@redhat.com>
1555 * varasm.c (get_pool_constant_mark): New.
1556 * rtl.h (get_pool_constant_mark): Add prototype.
1557 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
1558 be represented if it has not been output.
1560 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
1562 * combine.c (do_SUBST): Sanity check substitutions of
1563 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
1564 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
1565 CONST_INT into its operand.
1566 (known_cond): Likewise, for ZERO_EXTEND.
1567 * simplify-rtx.c (simplify_unary_operation): Fix condition to
1568 allow for simplification of wide modes. Reject CONST_INTs in
1569 ZERO_EXTEND when their actual mode is not given.
1571 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
1573 * c-decl.c (pushdecl): If no global declaration is found for an
1574 extern declaration in block scope, try a limbo one.
1576 2002-02-20 Jakub Jelinek <jakub@redhat.com>
1579 * c-common.c (pointer_int_sum): Moved from...
1580 * c-typeck.c (pointer_int_sum): ...here.
1581 * c-common.h (pointer_int_sum): Add prototype.
1583 2002-02-20 Jakub Jelinek <jakub@redhat.com>
1586 * c-decl.c (duplicate_decls): Return 0 if issued error about
1589 2002-02-20 Roger Sayle <roger@eyesopen.com>
1590 Jakub Jelinek <jakub@redhat.com>
1593 * tree.c (host_integerp): Ensure that the constant integer is
1594 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
1595 when pos is zero or non-zero respectively. Clarify comment.
1596 * c-format.c (check_format_info_recurse): Fix host_integerp
1597 usage; the pos argument should be zero when assigning to a
1598 signed HOST_WIDE_INT.
1600 2002-02-20 Richard Henderson <rth@redhat.com>
1602 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
1603 of the operand, rather than assuming TImode.
1604 (ix86_expand_binop_builtin): Cope with commutative patterns
1605 using nonimmediate_operand for both operands.
1606 (ix86_expand_timode_binop_builtin): Likewise.
1607 (ix86_expand_store_builtin): Validate operand 1.
1608 (ix86_expand_unop1_builtin): Likewise.
1610 2002-02-20 Philip Blundell <philb@gnu.org>
1613 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
1615 2002-02-20 Richard Henderson <rth@redhat.com>
1618 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
1620 2002-02-20 Tom Tromey <tromey@redhat.com>
1622 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
1623 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
1624 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
1625 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
1626 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
1629 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
1631 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
1632 for (const_int 0) in X not just INTVAL.
1634 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
1636 * doc/extend.texi: Avoid or reduce overfull hboxes.
1638 2002-02-20 Diego Novillo <dnovillo@redhat.com>
1640 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
1641 operations if the field does not start at a mode boundary.
1643 2001-02-20 Joel Sherrill <joel@OARcorp.com>
1645 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
1646 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
1647 Also done for -Acpu and -Amachine.
1649 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
1651 * cppinit.c (init_dependency_output): Take deps output file
1652 from -o if none given with -MF. Suppress normal output.
1653 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
1654 * doc/cpp.texi, doc/invoke.texi: Update.
1656 2002-02-19 Zack Weinberg <zack@codesourcery.com>
1658 * toplev.c (output_quoted_string): Write unprintable
1659 characters with octal escapes.
1661 2002-02-19 David Edelsohn <edelsohn@gnu.org>
1663 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
1664 really_call_used[VRSAVE_REGNO] if not Altivec.
1666 2002-02-19 Alan Modra <amodra@bigpond.net.au>
1668 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
1670 (constant_pool_expr_1): Fix formatting.
1671 (rs6000_legitimize_reload_address): Likewise.
1673 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1675 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
1676 now that we have one.
1678 2002-02-19 Zack Weinberg <zack@codesourcery.com>
1680 * tree.h (struct tree_common): Remove aux. Add unused_0 at
1681 end of first block of bitfields (which was only seven bits);
1682 rename dummy to unused_1; remove comment which is no longer true.
1684 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
1686 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
1688 2002-02-19 Philip Blundell <pb@nexus.co.uk>
1691 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
1695 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
1696 arm_is_longcall_p rather than inspecting call-type cookie
1698 (call_value_insn) [TARGET_THUMB]: Likewise.
1700 2002-02-19 Graham Stott <grahams@redhat.com>
1702 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
1704 2002-02-19 David Edelsohn <edelsohn@gnu.org>
1706 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
1707 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
1708 (FP_SAVE_INLINE): Delete.
1710 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
1711 * config/rs6000/eabi.asm: Remove ABI save restore routines.
1712 * config/rs6000/t-ppccomm: Build crtsavres.o.
1713 * config/rs6000/crtsavres.asm: New file.
1715 2002-02-19 Philip Blundell <philb@gnu.org>
1717 * config/arm/arm.c (use_return_insn): Don't reject interrupt
1719 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
1720 (output_return_instruction): Allow interrupt functions to return with
1721 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
1722 (arm_expand_prologue): Subtract 4 before stacking LR in an
1725 2002-02-19 Philip Blundell <pb@nexus.co.uk>
1727 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
1728 decl, not just FUNCTION_DECL.
1729 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
1730 (arm_assemble_integer): Likewise.
1731 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
1734 2002-02-19 matthew green <mrg@eterna.com.au>
1736 * config.gcc (sparc-*-netbsdelf*): Enable target.
1737 (sparc64-*-netbsd*): New target.
1738 * config/sparc/netbsd-elf.h: New file.
1739 * config/sparc/t-netbsd64: New file.
1741 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
1743 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
1745 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
1747 * doc/invoke.texi: explicitly list the style guidelines that
1748 -Weffc++ checks for.
1750 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
1752 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
1754 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
1757 * gcc.c (cpp_unique_options): Treat -o as indicating object file
1758 only if not -E. If -E, pass -o through to the preprocessor.
1760 2002-02-19 Kazu Hirata <kazu@hxi.com>
1762 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
1763 register number with an appropriate macro.
1765 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1767 * doc/rtl.texi (Constants): Close @code tag.
1769 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
1771 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
1772 ("mmx_uavgv4hi3"): Same.
1773 ("pmulhrwv4hi3"): Same.
1775 * tree-inline.c (walk_tree): Handle vectors.
1777 * c-common.c (constant_expression_warning): Handle vectors.
1778 (overflow_warning): Same.
1780 * sched-deps.c (sched_analyze_2): Handle vectors.
1782 * rtlanal.c (rtx_unstable_p): Handle vectors.
1783 (rtx_varies_p): Same.
1784 (count_occurrences): Same.
1785 (regs_set_between_p): Same.
1786 (modified_between_p): Same.
1787 (modified_in_p): Same.
1788 (volatile_insn_p): Same.
1789 (volatile_refs_p): Same.
1790 (side_effects_p): Same.
1792 (inequality_comparisons_p): Same.
1793 (replace_regs): Same.
1794 (computed_jump_p_1): Same.
1796 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
1798 (inner_mode_array): New.
1799 (copy_rtx): Handle vectors.
1800 (copy_most_rtx): Same.
1801 (rtx_equal_p): Same.
1802 (get_mode_alignment): Adjust for vectors.
1804 * resource.c (mark_referenced_resources): Handle vectors.
1805 (mark_set_resources): Same.
1807 * reload1.c (eliminate_regs): Handle vectors.
1808 (elimination_effects): Same.
1809 (scan_paradoxical_subregs): Same.
1811 * reload.c (subst_reg_equivs): Handle vectors.
1813 * regrename.c (scan_rtx): Handle vectors.
1815 * regclass.c (reg_scan_mark_refs): Handle vectors.
1817 * recog.c (find_single_use_1): Handle vectors.
1819 * local-alloc.c (equiv_init_varies_p): Handle vectors.
1820 (contains_replace_regs): Same.
1821 (memref_referenced_p): Same.
1823 * integrate.c (copy_rtx_and_substitute): Handle vectors.
1824 (subst_constants): Same.
1826 * genattrtab.c (attr_copy_rtx): Handle vectors.
1827 (encode_units_mask): Same.
1828 (clear_struct_flag): Same.
1829 (count_sub_rtxs): Same.
1831 * gcse.c (want_to_gcse_p): Handle vectors.
1832 (oprs_unchanged_p): Same.
1833 (hash_expr_1): Same.
1834 (oprs_not_set_p): Same.
1835 (expr_killed_p): Same.
1836 (compute_transp): Same.
1837 (store_ops_ok): Same.
1839 * function.c (purge_addressof_1): Do not allow paradoxical subregs
1841 (fixup_var_refs_1): Same.
1842 (instantiate_virtual_regs_1): Same.
1844 * fold-const.c (operand_equal_p): Handle vectors.
1846 (rtl_expr_nonnegative_p): Same.
1848 * flow.c (mark_used_regs): Handle vectors.
1850 * df.c (df_uses_record): Handle vectors.
1852 * cselib.c (cselib_subst_to_values): Handle vectors.
1853 (cselib_mem_conflict_p): Same.
1856 * cse.c (canon_reg): Handle vectors.
1858 (cse_process_notes): Same.
1859 (count_reg_usage): Same.
1862 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
1864 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
1866 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
1867 (gen_rtx): Handle CONST_VECTOR.
1868 (gen_const_vector_0): New.
1869 (copy_rtx_if_shared): CONST_VECTORs can be shared.
1870 (reset_used_flags): Same.
1871 (copy_insn_1): Same.
1872 (initializer_constant_valid_p): Handle VECTOR_CST.
1874 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
1876 * doc/rtl.texi (Constants): Document const_vector.
1877 (CONST0_RTX): Update for vectors.
1878 (RTL sharing): Same.
1880 * print-tree.c (print_node): Add case for VECTOR_CST.
1882 * tree.h (TREE_VECTOR_CST_ELTS): New.
1883 (struct tree_vector): New.
1884 (union tree_node): Add vector node.
1885 (build_vector): Add prototype.
1887 * tree.def (VECTOR_CST): New.
1889 * tree.c (build_vector): New.
1891 * expmed.c (make_tree): Handle CONST_VECTOR.
1893 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
1894 (CONST_VECTOR_ELT): New.
1895 (CONST_VECTOR_NUNITS): New.
1897 * machmode.h (GET_MODE_INNER): New.
1898 (DEF_MACHMODE): Accept 8th arg.
1900 * machmode.def: Add 8th argument for vector inner mode.
1901 Add inner vector modes for vectors.
1903 * rtl.def (VEC_CONST): Remove.
1904 (CONST_VECTOR): New.
1906 * expr.c (clear_storage): Allow vectors.
1907 (is_zeros_p): Handle VECTOR_CST.
1909 * varasm.c (output_constant_pool): Handle vectors.
1910 (rtx_const): Add veclo and vechi fields.
1911 (kind): Add RTX_VECTOR.
1912 (decode_rtx_const): Add case for vector.
1914 * config/rs6000/rs6000-protos.h: Add zero_constant.
1916 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
1917 constants. Force easy vector constants into memory.
1918 (easy_vector_constant): New.
1919 (emit_easy_vector_constant): New.
1920 (rs6000_legitimize_reload_address): Do not generate bad reloads on
1923 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
1925 ("altivec_lvxl"): Same.
1926 (altivec_lvebx): Same.
1927 (altivec_lvehx): Same.
1928 (altivec_lvewx): Same.
1929 ("*movv4si_const0"): New.
1930 ("*movv4sf_const0"): New.
1931 ("*movv8hi_const0"): New.
1932 ("*movv16qi_const0"): New.
1934 2002-02-18 Kazu Hirata <kazu@hxi.com>
1936 * config/h8300/h8300.c (notice_update_cc): Use
1939 2002-02-18 Kazu Hirata <kazu@hxi.com>
1941 * config/h8300/h8300.md (divmod patterns): Change the
1942 constraints for operands[1] to register_operand.
1944 2002-02-18 Kazu Hirata <kazu@hxi.com>
1946 * config/h8300/h8300-protos.h: Remove the prototype for
1948 * config/h8300/h8300.c (p_operand): Remove.
1949 * config/h8300/h8300.md: Replace p_operand with
1952 2002-02-18 Philip Blundell <pb@nexus.co.uk>
1954 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
1956 (output_return_instruction): Allow use of LDR to unstack
1957 return addresss even for interrupt handlers or when
1958 interworking. If compiling for ARMv5, use interworking-safe
1959 return instructions by default. Remove duplicated code and
1960 lengthy "strcat" sequences.
1962 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1964 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
1965 (LINK_EH_SPEC): Define.
1966 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
1968 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
1970 * config/s390/s390.c (s390_emit_prologue): Do not set the
1971 frame_related flag for call-clobbered registers.
1973 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
1975 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
1976 (construct_container): Fix handling of SSE operands.
1977 (ix86_expand_builtin): Fix handling of 64bit pointers.
1978 (mmx_maskmovq_rex): New pattern.
1980 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
1982 * regrename.c (kill_set_value): Handle subregs properly.
1984 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
1986 * objc/objc-act.c (handle_impent): Remove leading '*'
1987 from objc_class_name.
1989 2002-02-17 Richard Henderson <rth@redhat.com>
1991 * config/alpha/alpha.c (some_small_symbolic_operand,
1992 some_small_symbolic_operand_1, split_small_symbolic_operand,
1993 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
1994 Handle small SYMBOL_REFs anywhere, not just inside memories.
1995 * config/alpha/alpha-protos.h: Update.
1996 * config/alpha/alpha.h (PREDICATE_CODES): Update.
1997 * config/alpha/alpha.md (small symbolic operand splitter): Update.
1999 2002-02-17 Roland McGrath <roland@frob.com>
2001 * config.gcc (powerpc-*-gnu-gnualtivec*,
2002 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
2003 * config/rs6000/gnu.h: New file.
2004 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
2005 Grok "gnu" in rs6000_abi_name.
2006 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
2007 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
2008 Grok -mcall-gnu analogous to -mcall-linux et al.
2009 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
2010 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
2011 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
2013 2002-02-17 Jakub Jelinek <jakub@redhat.com>
2016 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
2019 2002-02-17 Philipp Thomas <pthomas@suse.de>
2021 * config/cris/cris.h: Undefine STARTFILE_SPEC and
2022 ENDFILE_SPEC before (re)defining them.
2024 2002-02-17 Kazu Hirata <kazu@hxi.com>
2026 * config/h8300/h8300.c: Fix formatting.
2027 * config/h8300/h8300.h: Likewise.
2029 2002-02-17 Philipp Thomas <pthomas@suse.de>
2031 * doc/tm.texi: Explain why empty strings should not be
2032 marked for translation.
2034 2002-02-17 Philipp Thomas <pthomas@suse.de>
2036 * final.c (output_operand_lossage): Changed to accept
2037 printf style arguments. Change calls where necessary.
2038 * output.h (output_operand_lossage): Change declaration
2039 accordingly. Update copyright.
2040 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
2041 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
2042 Update copyright date where necessary.
2044 * config/i386/i386.c (print_operand): Likewise. Remove use of
2047 * config/cris/cris.c (cris_operand_lossage): Likewise.
2048 Rename parameter so that exgettext recognizes it as
2049 translatable message.
2050 (LOSE_AND_RETURN): Rename parameter to msgid.
2052 2002-02-17 Kazu Hirata <kazu@hxi.com>
2054 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
2055 hard coded register number with an appropriate macro.
2056 (HARD_REGNO_MODE_OK): Likewise.
2057 (ARG_POINTER_REGNUM): Likewise.
2058 (STATIC_CHAIN_REGNUM): Likewise.
2059 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
2060 * config/h8300/h8300.md (define_constants): Define more
2063 2002-02-17 Philipp Thomas <pthomas@suse.de>
2065 * config/i386/i386.h: Don't mark empty strings for translation.
2067 2002-02-16 H.J. Lu <hjl@gnu.org>
2069 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
2071 2002-02-16 Zack Weinberg <zack@codesourcery.com>
2073 * cppinit.c (merge_include_chains): Check for brack being
2074 NULL before attempting to merge it with qtail.
2076 2002-02-16 Andrew Cagney <ac131313@redhat.com>
2078 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
2081 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
2083 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
2085 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
2087 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
2088 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
2089 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
2091 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2093 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
2094 now only if !TARGET_FIX.
2095 (*movsi_nt_vms_fix): New pattern.
2097 2002-02-16 Douglas B Rupp <rupp@gnat.com>
2099 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
2100 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
2101 (alpha_sa_mask, alpha_sa_size): Reflect above change.
2102 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
2103 (alpha_start_function, alpha_expand_epilogue): Likewise.
2104 (unicosmk_gen_dsib): Likewise.
2106 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2108 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
2110 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
2112 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
2113 check_and_change_labels, s390_final_chunkify): Delete.
2114 (s390_split_branches, s390_chunkify_pool): New functions.
2115 (s390_function_prologue): Call them.
2117 * config/s390/s390.h (S390_REL_MAX): Delete.
2118 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
2120 * config/s390/s390.md (cjump, icjump, jump): Fix length
2121 attribute calculation.
2124 2002-02-15 David Edelsohn <edelsohn@gnu.org>
2126 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
2127 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
2129 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
2131 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
2132 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
2133 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
2135 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
2137 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
2139 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
2141 * reload.c (find_dummy_reload): Check that an output register
2142 is valid for its mode.
2144 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
2146 * combine.c (known_cond): After replacing the REG of a SUBREG, try
2149 * function.c (assign_parms): Demote promoted argument passed by
2150 transparent reference.
2152 2001-02-14 Joel Sherrill <joel@OARcorp.com>
2154 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
2155 -Acpu() and -Amachine() to eliminate warnings.
2157 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
2159 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
2161 2002-02-14 Kazu Hirata <kazu@hxi.com>
2163 * config/h8300/h8300-protos.h: Update the prototype for
2165 * config/h8300/h8300.c (const_costs): Treat SET as a little
2166 more expensive operation.
2167 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
2168 reference to const_costs.
2170 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
2172 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
2174 2002-02-14 Jakub Jelinek <jakub@redhat.com>
2177 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
2178 use arguments from newtype.
2180 2002-02-13 Eric Christopher <echristo@redhat.com>
2182 * config/mips/mips.c (override_options): Add check for march/mipsX
2183 on the same command line. Fix error message in cpu processing.
2184 Remove architecture and ISA checks.
2186 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
2188 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
2190 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
2192 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
2194 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
2196 ("*movv8hi_internal1"): Same.
2197 ("*movv16qi_internal1"): Same.
2198 ("*movv4sf_internal1"): Same.
2200 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
2201 not push_reload for altivec modes.
2203 2002-02-13 Joel Sherrill <joel@OARcorp.com>
2205 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
2206 all RTEMS targets including removal of #includes from config/*/rtems*.h
2207 file and adding them to tm_file setting. Added xm_defines=POSIX to
2209 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
2210 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
2211 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
2212 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
2213 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
2214 config/m68k/rtemself.h: Ditto.
2215 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
2216 config/mips/rtems64.h: Ditto.
2217 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
2218 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
2220 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
2221 config/sparc/rtemself.h: Ditto.
2222 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
2223 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
2224 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
2226 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
2227 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
2228 target made more similar to i386-elf.
2229 * config/i386/t-rtems-i386: Added soft float support and multilibs.
2230 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
2231 be similar to config/m68k/t-m68kelf.
2232 * gthr-rtems.h: Encapsulate with extern "C" for C++.
2234 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
2236 * regmove.c (kill_value): Handle subregs.
2238 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
2240 * i386.md (mul patterns): Allow memory operand to be first;
2241 add expanders where needed; fix constraints.
2242 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
2243 Allow memory operand to be the first.
2245 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
2248 2002-02-13 Jakub Jelinek <jakub@redhat.com>
2251 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
2254 2002-02-13 Jakub Jelinek <jakub@redhat.com>
2256 PR optimization/5547:
2257 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
2258 all valid IA-32 address modes involving non-scaled %ebx and
2259 GOT/GOTOFF as displacement.
2261 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
2263 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
2264 after emitting ltorg insns.
2266 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
2267 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
2268 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
2269 *abssf2): Fix "op_type" attribute.
2271 2002-02-13 Douglas B Rupp <rupp@gnat.com>
2273 * mkconfig.sh: Avoid using a subshell redirect.
2274 ($output.T): Change to $(output)T.
2275 (ENABLE_NLS): Remove unneeded undef.
2277 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
2278 * config/alpha/x-vms (libsubdir): Define.
2280 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
2281 register frame procedures. Optimize retrieving context.
2283 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
2284 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
2285 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
2287 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2289 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
2290 Make same change as for find_base_value.
2292 2002-02-13 Kazu Hirata <kazu@hxi.com>
2294 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
2295 of QImode and SImode.
2297 2002-02-13 Kazu Hirata <kazu@hxi.com>
2299 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
2300 length computation of movsi.
2301 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
2303 2002-02-13 Kazu Hirata <kazu@hxi.com>
2305 * config/h8300/h8300.md (subqi3): Tighten the predicate for
2306 operands[2] to register_operand.
2308 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
2310 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
2312 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
2314 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
2315 for altivec_lvx* and altivec_stvx*.
2316 ("*movv4si_internal"): Add constraint for loading from GPRs.
2317 ("*movv8hi_internal1"): Same.
2318 ("*movv16qi_internal1"): Same.
2319 ("*movv4sf_internal1"): Same.
2321 * config/rs6000/rs6000.c (altivec_register_operand): New.
2323 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
2324 altivec_register_operand.
2326 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
2328 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
2331 2002-02-13 Stan Shebs <shebs@apple.com>
2333 * c-typeck.c (digest_init): Handle vectors.
2334 (really_start_incremental_init): Same.
2335 (pop_init_level): Same.
2336 (process_init_element): Same.
2338 * varasm.c (output_constant): Same.
2340 * expr.c (clear_storage): Same.
2341 (store_constructor): Same.
2343 2002-02-12 Eric Christopher <echristo@redhat.com>
2345 * explow.c (hard_function_value): Add comment explaining
2346 signed/unsigned comparison.
2348 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2350 * jump.c (never_reached_warning): Add finish argument.
2351 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
2352 real insn after end.
2353 * rtl.h (never_reached_warning): Adjust prototype.
2354 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
2355 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
2356 never_reached_warning.
2358 2002-02-12 Graham Stott <grahams@redhat.com>
2360 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
2362 2002-02-12 Kazu Hirata <kazu@hxi.com>
2364 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
2365 logical shifts on H8/300.
2366 (shift_alg_si): Improve several shifts on H8/300.
2367 (get_shift_alg): Likewise.
2369 2002-02-12 Graham Stott <grahams@redhat.com>
2371 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
2373 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2375 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
2376 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
2378 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
2380 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
2381 non-CONST_INT through default_assemble_integer.
2382 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
2383 <case 8>: Abort for CONST_DOUBLE.
2385 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2387 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
2389 * config/pa/pa-linux.h (LIB_SPEC): Delete.
2390 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
2392 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
2394 * config/stormy16/stormy16.md (zero_extendqihi2): New.
2396 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
2398 * regrename.c (regrename_optimize): Don't accept a
2399 part-clobbered register if the replaced register is not part
2402 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
2403 take padding into account when computing the argument value.
2405 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
2407 * combine.c (try_combine): Apply substitutions in
2408 CALL_INSN_FUNCTION_USAGE too.
2410 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
2412 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
2413 __builtin_altivec_abs*.
2416 * config/rs6000/rs6000.h (rs6000_builtins): Add
2417 ALTIVEC_BUILTIN_ABS*.
2419 * config/rs6000/altivec.h: Use const char for builtins expecting
2421 (vec_abs): New versions for C and C++.
2424 2002-02-10 Kazu Hirata <kazu@hxi.com>
2426 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
2429 2002-02-10 Kazu Hirata <kazu@hxi.com>
2431 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
2432 constant definition from h8300.md.
2433 (FRAME_POINTER_REGNUM): Likewise.
2434 * config/h8300/h8300.md (define_constants): Add FP_REG.
2436 2002-02-10 Kazu Hirata <kazu@hxi.com>
2438 * config/h8300/h8300.c (print_operand): Remove redundant code.
2440 2002-02-10 Kazu Hirata <kazu@hxi.com>
2442 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
2443 * config/h8300/h8300.c (byte_reg): Make it static.
2445 2002-02-10 Richard Henderson <rth@redhat.com>
2448 * c-typeck.c (incomplete_type_error): Handle flexible array members.
2450 2002-02-10 Richard Henderson <rth@redhat.com>
2453 * tree.c (append_random_chars): Don't abort if main_input_filename
2456 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
2458 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
2460 2002-02-10 Kazu Hirata <kazu@hxi.com>
2462 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
2463 (pushhi1): Likewise.
2465 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
2467 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
2468 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
2470 2002-02-09 David O'Brien <obrien@FreeBSD.org>
2472 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
2474 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
2476 2002-02-09 Kazu Hirata <kazu@hxi.com>
2478 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
2479 a half of an SImode register on H8/300.
2481 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
2483 * i386.md (movdi_2): Add missing '!'.
2485 2002-02-09 Kazu Hirata <kazu@hxi.com>
2487 * config/h8300/h8300.h: Fix formatting. Remove commented-out
2490 2002-02-09 Kazu Hirata <kazu@hxi.com>
2492 * config/h8300/h8300.md (length): Correct the distance valid
2493 for the short branch.
2495 2002-02-09 Kazu Hirata <kazu@hxi.com>
2497 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
2499 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
2501 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
2502 registers in SImode.
2503 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
2506 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
2509 Contribute sh64-elf.
2510 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
2511 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
2512 (sh_cannot_modify_jumps_p): New function.
2513 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
2514 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
2515 (sh_ms_bitfield_layout_p): New function.
2516 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
2517 Zack Weinberg <zack@codesourcery.com>
2518 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
2519 expand_simple_binop instead of expand_binop.
2520 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
2521 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
2522 use of .quad and .uaquad.
2523 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
2524 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
2525 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2526 * config/sh/sh.md (movdi_const, movdi_const_32bit,
2527 movdi_const_16bit): Make sure all CONSTs have modes.
2528 (sym2PIC): Ditto, but by adjusting all callers.
2529 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
2530 if the prologue calls the SHmedia argument decoder or register
2532 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2533 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
2534 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
2535 (sh_expand_epilogue): Don't emit USE of return target register.
2536 (prepare_move_operands): Legitimize DImode PIC addresses.
2537 (sh_media_register_for_return): Skip tr0, used to initialize the
2539 (sh_expand_prologue): Remove explicit USE of return register.
2540 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
2541 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
2542 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
2543 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
2544 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
2546 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
2547 (MOVI_SHORI_BASE_OPERAND_P): New.
2548 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
2549 (EXTRA_CONSTRAINT_T): Define in terms of them.
2550 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
2551 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
2552 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
2553 alternatives supporting TARGET_REGS.
2554 (UNSPEC_GOTPLT): New constant.
2555 (movdi split): Move incrementing of LABEL_NUSES...
2556 (movdi_const, movdi_const_32bit): Here. Use
2557 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
2558 (movdi_const_16bit): New.
2559 (call, call_value) [flag_pic]: Use GOTPLT.
2560 (call_pop, call_value_pop): New expands.
2561 (call_pop_compact, call_pop_rettramp): New insns.
2562 (call_value_pop_compact, call_value_pop_rettramp): New insns.
2563 (sibcall) [flag_pic]: Use GOT.
2564 (builtint_setjmp_receiver): Remove bogus, unused expand.
2565 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
2566 (*pt, *ptb, ptrel): New insns.
2567 (sym2GOT): Handle DImode GOT.
2568 (sym2GOTPLT, symGOTPLT2reg): New expands.
2569 (sym2PIC): New expand.
2570 (shcompact_return_tramp): Use GOTPLT to return trampoline.
2571 (shcompact_return_tramp_i): Use return register explicitly.
2572 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
2573 disable flag_reorder_blocks.
2574 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
2575 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
2576 clobbers, for clarity.
2577 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
2578 restoring of r0 in macl as MAYBE_DEAD.
2579 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2580 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
2581 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
2582 alter_subreg all over.
2583 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
2584 reload, instead of emitting instructions that would require
2586 (casesi_load_media): Add missing modes.
2587 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
2588 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
2589 as used if the argument decoder is called.
2590 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
2591 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
2592 Pmode, then extend it to DImode if necessary.
2593 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
2594 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
2595 constants in FPU-enabled SHmedia, let them be loaded from memory.
2596 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
2597 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
2598 Adjust whitespace in assembly output templates.
2599 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
2600 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
2601 mode of if_then_else.
2602 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
2603 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
2605 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
2606 Joern Rennecke <amylaar@redhat.com>
2607 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
2608 (SUBTARGET_CPP_PTR_SPEC): New.
2609 (SUBTARGET_CPP_SPEC): Remove.
2610 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
2611 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
2612 Fix typo in previous checkin.
2613 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
2614 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
2615 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
2616 Alexandre Oliva <aoliva@redhat.com>
2617 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
2618 what single FP register can hold for SHmedia target.
2619 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
2620 Alexandre Oliva <aoliva@redhat.com>
2621 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
2622 Do not split into SUBREG.
2623 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
2624 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
2625 and added new functions as specified in SH5 ABI r9.
2626 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
2627 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
2629 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
2630 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
2631 gen_consttable_4 and gen_consttable_8. Emit multiple labels
2632 and consttable_window_ends.
2633 2001-06-03 Graham Stott <grahams@redhat,com>
2634 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
2635 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
2636 * config/sh/sh.c (print_operand): Handle floating-point pair,
2637 vector and matrix registers.
2638 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
2639 vector modes into account.
2640 * config/sh/sh.md (movv2sf): Split move between registers into
2642 (movv4sf, movv16sf): Introduce insns that get split only after
2644 * config/sh/shmedia.h: Fix Copyright dates.
2645 * config/sh/ushmedia.h: Likewise. Move loop counter
2646 declarations into conditionals that uses them.
2647 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
2649 * config/sh/sshmedia.h: Fix Copyright dates.
2650 (sh_media_PUTCFG): Fix constraints.
2651 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
2652 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
2653 ptrmemfunc_vbit_in_delta for SH5.
2654 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
2655 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
2656 * invoke.texi: Likewise.
2657 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2658 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
2659 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
2660 GCC_pop_shmedia_regs_nofpu): New global symbols.
2661 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
2662 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
2663 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
2664 compact function with nonlocal labels.
2665 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
2666 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
2667 (initial_elimination_offset): Account for their stack space.
2668 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
2669 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
2670 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
2671 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
2672 least one of the operands to be a register.
2673 (movv2sf): Likewise. Renamed to movv2sf_i.
2674 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
2675 prepare_move_operands() before emitting SHmedia insns.
2676 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
2677 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
2678 Don't save nor initialize r12. Don't mis-align the stack.
2679 Pad the code with a nop.
2680 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
2682 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
2683 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
2684 [__SHMEDIA__]: Implement.
2685 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
2686 * config/sh/sh.md: Set latency of `pt' closer to reality.
2687 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
2688 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
2689 Set move, load and store type attributes.
2690 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
2691 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
2693 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
2694 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
2695 * config/sh/sh.c (sh_media_register_for_return): New function.
2696 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
2697 branch-target register.
2698 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
2699 * config/sh/sh.md (return_media_i): Use any call-clobbered
2700 branch-target register.
2701 (return_media): If r18 wasn't copied in the prologue, copy it
2703 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
2704 Clear class FP0_REGS.
2705 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
2707 2001-03-08 DJ Delorie <dj@redhat.com>
2708 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
2709 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
2710 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
2711 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
2712 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
2713 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
2714 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
2715 return value correctly for call_cookie.
2716 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
2717 * config/sh/crt1.asm (start): Modified so as to call
2718 ___setup_argv_and_call_main.
2719 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
2720 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
2722 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
2723 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
2724 (STRIP_NAME_ENCODING): Use it.
2725 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
2726 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
2727 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
2728 prepare_scc_operands().
2729 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
2730 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
2731 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
2732 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
2733 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
2734 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
2735 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
2736 used in shcompact_incoming_args.
2737 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
2739 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
2741 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
2743 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
2744 Simplify. Adjust. Add sanity check.
2745 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
2747 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
2749 (udivsi3, divsi3): Use them.
2750 (force_mode_for_call): New insn.
2751 (call, call_value, sibcall_value): Emit it before SHcompact
2753 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
2754 * config/sh/sh.md (call, call_value, sibcall): Make sure the
2755 call cookie is non-NULL before taking its value.
2756 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
2757 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
2758 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
2759 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
2761 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
2762 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
2763 temporary for stack adjusts. Use MACL and MACH to pass
2764 arguments to shcompact_incoming_args.
2765 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
2767 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
2768 (nested_trampoline): Load static chain address into r1.
2769 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
2770 2001-01-07 Alexandre Oliva <aoliva@redhat.com
2771 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
2772 fp_arith_reg_operand().
2773 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
2774 * config/sh/sh.md (casesi): Sign-extend the first two operands,
2775 and use signed compares for them.
2776 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
2777 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
2778 ones properly aligned.
2779 (find_barrier): Account for extra alignment needed for 8-byte wide
2781 (machine_dependent_reorg): Require a label for the second 4-byte
2782 constant after an 8-byte one.
2783 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
2785 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
2786 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
2787 last_float when switching float modes.
2788 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
2789 auto-increment for general-purpose registers.
2790 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
2792 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
2794 * config/sh/sh.c (sh_builtin_saveregs): Support using all
2795 registers for varargs.
2796 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
2797 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
2798 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
2799 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
2800 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
2801 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
2802 call_cookie accordingly.
2803 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
2804 (SHCOMPACT_BYREF): Likewise.
2805 (SHCOMPACT_FORCE_ON_STACK): New macro.
2806 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
2807 (sh_builtin_saveregs): Likewise.
2808 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
2809 shcompact_incoming_args): Use new shift values. Support
2810 sequences of consecutive and non-consecutive pushes/pops.
2811 * config/sh/sh.md (return): Don't explicitly use PR_REG.
2812 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
2813 * config/sh/sh.h (TEXT_SECTION): Define.
2814 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
2815 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
2816 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
2817 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
2818 return values on FPU-enabled SHmedia.
2819 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
2820 FPU-enabled SHmedia.
2821 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
2822 value is returned in a non-FP reg and is not returned by
2824 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
2826 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
2827 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
2828 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
2829 quad-aligned to be passed by callee-copy reference.
2830 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
2831 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
2832 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
2833 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
2834 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
2835 copying low-numbered FP regs to r7 and r8.
2836 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
2837 FP regs to general-purpose regs only if the copy was passed on the
2839 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
2840 copying FP reg to r9.
2841 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
2842 copy FP regs to general-purpose regs only in outgoing calls.
2843 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
2844 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
2846 * config/sh/sh.h (struct sh_args): Document all fields.
2847 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
2848 passed partially on the stack should not consider making
2850 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
2851 stack_regs only for incoming calls. When passing FP args,
2852 make sure there are FP regs available before modifying
2854 (SHCOMPACT_BYREF): Pass double args in general-purpose
2855 registers by reference.
2856 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
2857 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
2858 attempt to generate sibcalls if the caller got any arguments
2860 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
2861 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
2862 to 8-byte boundaries.
2863 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
2864 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
2865 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
2866 stored in the stack.
2867 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
2868 for the offsets to have the ISA bit set.
2869 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
2870 invocation. Use beq instead of bgt to mark end of sequence of
2872 (shcompact_incoming_args): Fix store of r2. Use beq instead of
2873 bgt to mark end of sequence of stores.
2874 * config/sh/sh.c (arith_operand): Don't check whether
2875 CONST_OK_FOR_J for now.
2876 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
2877 instead of long for conversion.
2878 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
2879 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
2880 before passing it to fprintf.
2881 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
2882 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
2883 Call set_fpscr before reading/writing SR.
2884 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
2886 * config/sh/lib1funcs.asm: Add `.align 2' directives before
2888 (FMOVD_WORKS): Define on SH5 with FPU.
2889 (set_fpscr): Define on SH5. Remove separate _fpscr_values
2891 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
2893 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
2894 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
2896 (ia_main_table): Ditto.
2897 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
2898 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2899 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
2900 the definitions from sh.h.
2901 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
2903 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
2904 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
2905 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
2906 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
2907 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
2908 Increment LABEL_NUSES.
2910 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
2912 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
2914 * config/sh/elf.h (SIZE_TYPE): Likewise.
2915 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
2916 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
2917 shcompact_incoming_args): Load switch table addresses using
2919 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
2920 (NO_BUILTIN_SIZE_TYPE): Define.
2921 (SIZE_TYPE): Don't define.
2922 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
2923 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
2924 definition of __SH5__=32 for -m5-compact-nofpu.
2925 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
2927 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
2928 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
2929 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
2930 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
2931 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
2932 (INSN_LENGTH_ALIGNMENT): Likewise.
2933 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
2934 * config/sh/sh.md (call, call_value, sibcall): Simplify
2935 copying of non-branch-target register.
2936 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
2937 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
2938 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
2939 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
2940 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
2941 floating-point values as structs.
2942 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
2943 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
2944 general-purpose register.
2945 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
2946 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
2947 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
2948 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
2949 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
2950 (ENCODE_SECTION_INFO): Enclose variables and constants in
2952 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
2953 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
2954 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
2955 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
2956 only for LABEL_REFs. For SYMBOL_REFs, prepend
2957 SH_DATALABEL_ENCODING to the symbol name.
2958 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
2960 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
2961 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
2963 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
2964 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
2965 (DATALABEL_REF_P): Don't require CONST.
2966 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
2968 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
2969 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
2971 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
2972 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
2973 Use shallow_copy_rtx and PUT_MODE to change the mode of
2974 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
2975 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
2976 on SHmedia using GENERAL_REGs.
2977 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
2978 bltu_media_i): Fix reversion of conditions.
2979 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
2980 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
2981 * config/sh/sh.c (output_far_jump): Save r13 in macl.
2982 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
2983 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
2984 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
2985 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
2986 (GCC_nested_trampoline): Likewise.
2987 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
2988 * config/sh/sh.c (gen_datalabel_ref): Define.
2989 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
2990 (INITIALIZE_TRAMPOLINE): Likewise.
2991 (TRAMPOLINE_ADJUST_ADDRESS): Define.
2992 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
2993 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
2994 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
2995 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
2996 (ic_invalidate): Adjust for SH5.
2997 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
2998 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
3000 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
3001 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
3002 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
3003 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
3004 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
3005 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
3006 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
3007 * config/sh/sh.c (target_reg_operand): Match only target-branch
3008 registers and pseudos that aren't virtual registers.
3009 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
3010 Copy operands that don't match target_reg_operand to pseudos.
3011 (call_media, call_value_media, sibcall_media): Use
3012 target_reg_operand instead of target_operand.
3013 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
3014 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
3015 * config/sh/sh.c (target_reg_operand): Match hardware registers
3016 other than branch-target registers.
3017 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
3018 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
3019 (fpscr_values) [SH5 == 32]: Define.
3020 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
3021 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
3022 Handle function addresses coming in SUBREGs.
3023 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
3024 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
3025 shcompact_return_trampoline): Use datalabel where appropriate.
3026 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
3027 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
3028 general-purpose register to copy one branch-target register to
3030 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
3031 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
3032 SYMBOL_REFs with VOIDmode.
3033 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
3034 bltu_media_i): New insns.
3035 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
3036 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
3037 (INIT_CUMULATIVE_ARGS): Likewise.
3038 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
3039 * machmode.def (V16SFmode): New mode.
3040 * c-common.c (type_for_mode): Support V2SF and V16SF.
3041 * tree.c (build_common_tree_nodes_2): Likewise.
3042 * tree.h (tree_index): Likewise.
3043 * calls.c (emit_call_1): Take args_so_far. Adjust all
3044 callers. Introduce CALL_POPS_ARGS.
3045 * tm.texi (CALL_POPS_ARGS): Document.
3046 * config/sh/crt1.asm: Implement in SHmedia mode.
3047 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
3048 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
3049 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
3050 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
3051 Implement divsi and udivsi in SHmedia mode. Introduce
3052 SHcompact trampolines.
3053 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
3055 (regno_reg_class): Rewrite.
3056 (fp_reg_names): Remove.
3057 (sh_register_names, sh_additional_register_names): New.
3058 (print_operand): Added `u'. Support SUBREGs in addresses.
3059 Add parentheses around shifted CONSTs.
3060 (output_file_start): Output .mode and .abi directives.
3061 (shiftcosts, addsubcosts, multcosts): Adjust.
3062 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
3063 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
3064 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
3065 bytes, not registers. Take into account the need for the
3066 SHcompact incoming args trampoline. Adjust all callers.
3067 (sh_expand_prologue): Take stack_regs into account. Call
3068 incoming args trampoline. Keep stack aligned as per SH5 ABI.
3069 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
3070 stack aligned as per SH5 ABI.
3071 (sh_builtin_saveregs): Support SH5 ABI.
3072 (sh_build_va_list, sh_va_start): Likewise.
3073 (initial_elimination_offset): Take alignment into account.
3074 Compute location of PR according to the SH5 stack frame.
3075 (arith_reg_operand): Reject branch-target registers.
3076 (shmedia_6bit_operand): New.
3077 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
3078 (target_reg_operand): Match DImode only. Accept SUBREGs.
3079 (target_operand): New.
3080 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
3081 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
3082 SIBCALL_REGS for SHmedia.
3083 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
3084 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
3085 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
3086 (TARGET_SWITCHES): New SH5 flags.
3087 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
3088 VALID_REGISTER_P to disable unsupported registers.
3089 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
3090 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
3091 (FUNCTION_ARG_PADDING): Define.
3092 (FASTEST_ALIGNMENT): Adjust.
3093 (SH_REGISTER_NAMES_INITIALIZER): New.
3094 (sh_register_names): Declare.
3095 (DEBUG_REGISTER_NAMES): Define.
3096 (REGISTER_NAMES): Define based on sh_register_names.
3097 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
3098 (sh_additional_register_names): Declare.
3099 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
3100 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
3101 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
3102 (REGISTER_NATURAL_MODE): Define.
3103 (FIRST_PSEUDO_REGISTER): Adjust.
3104 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
3105 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
3106 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
3107 (VECTOR_MODE_SUPPORTED_P): Define.
3108 (REG_CLASS_CONTENTS): Adjust.
3109 (SMALL_REGISTER_CLASSES): Adjust.
3110 (REG_ALLOC_ORDER): Adjust.
3111 (INDEX_REG_CLASS): Adjust.
3112 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
3113 (CONST_OK_FOR_LETTER_P): Adjust.
3114 (PREFERRED_RELOAD_CLASS): Adjust.
3115 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
3116 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
3117 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
3118 (FIRST_FP_PARM_REG): Adjust.
3119 (CALL_POPS_ARGS): Define.
3120 (FUNCTION_ARG_REGNO_P): Adjust.
3121 (struct sh_args): New fields.
3122 (GET_SH_ARG_CLASS): Adjust.
3123 (INIT_CUMULATIVE_ARGS): Adjust.
3124 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
3125 (FUNCTION_ARG_ADVANCE): Adjust.
3126 (FUNCTION_ARG): Adjust.
3127 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
3128 (FUNCTION_ARG_CALLEE_COPIES): Define.
3129 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
3130 (STRICT_ARGUMENT_NAMING): Define.
3131 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
3132 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
3133 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
3134 (SETUP_INCOMING_VARARGS): Adjust.
3135 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
3136 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
3137 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
3138 (SUBREG_OK_FOR_INDEX_P): Adjust.
3139 (EXTRA_CONSTRAINT_S): Update.
3140 (EXTRA_CONSTRAINT_T): New.
3141 (EXTRA_CONSTRAINT): Adjust.
3142 (GO_IF_LEGITIMATE_INDEX): Adjust.
3143 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
3144 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
3146 (MAX_MOVE_MAX): Define.
3148 (CONST_COSTS): Adjust.
3149 (REGISTER_MOVE_COST): Adjust.
3150 (BRANCH_COST): Adjust.
3151 (TEXT_SECTION_ASM_OP): Adjust.
3152 (DBX_REGISTER_NUMBER): Adjust.
3153 (ASM_OUTPUT_DOUBLE_INT): New.
3154 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
3155 (PREDICATE_CODES): Adjust.
3156 (PROMOTE_MODE): Adjust.
3157 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
3158 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
3159 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
3160 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
3161 (DR0_REG, DR2_REG, DR4_REG): Renumber.
3162 (TR0_REG, TR1_REG, TR2_REG): New.
3163 (XD0_REG): Renumber.
3164 (UNSPEC_COMPACT_ARGS): New.
3165 (type): Added pt and ptabs.
3166 (length): Default to 4 on SHmedia. Default pt length to 12
3167 and 20 on SHmedia32 and SHmedia64, respectively.
3168 (pt): New function unit.
3169 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
3170 Add whitespace between operands of SHmedia instructions.
3172 (adddi3_media, addsi3_media): Adjust constraints.
3173 (subsi3) [SHmedia]: Force operand 1 into a register.
3174 (udivsi3_i1_media, udivsi3_i4_media): New.
3175 (udivsi3): Support SHmedia.
3176 (divsi3_i1_media, divsi3_i4_media): New.
3177 (divsi3): Support SHmedia.
3178 (anddi3, iordi3, xordi3): Adjust constraints.
3179 (zero_extendhidi2, zero_extendqidi2): New.
3180 (extendsidi2, extendhidi2, extendqidi2): New.
3181 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
3182 (pop_e, pop_fpul, pop_4): Likewise.
3183 (movsi_media): Support FP and BT registers.
3184 (movsi_media_nofpu): New. Adjust splits to DImode.
3185 (lduw, ldub): Renamed to zero_extend* above.
3186 (movqi_media): Fix typo.
3187 (movdi_media): Support FP and BT registers.
3188 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
3189 (movdi_const_32bit): New.
3190 (shori_media): Require immediate operand. Use `u' for output.
3191 (movdf_media, movsf_media): Simplified.
3192 (movdf_media_nofpu, movsf_media_nofpu): New.
3193 (movdf, movsf): Adjust
3194 (movv2sf, movv2sf, movv16sf): New.
3195 (beq_media, beq_media_i): Adjust constraints. Don't use
3196 scratch BT register.
3197 (bne_media, bne_media_i): Likewise.
3198 (bgt_media, bgt_media_i): Likewise.
3199 (bge_media, bge_media_i): Likewise.
3200 (bgtu_media, bgtu_media_i): Likewise.
3201 (bgeu_media, bgeu_media_i): Likewise.
3202 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
3203 bunordered): Emit jump insn. Force operands to registers when
3205 (jump_media, jump): Simplify.
3206 (call_compact, call_compact_rettramp): New.
3207 (call_value_compact, call_value_compact_rettramp): New.
3208 (call_media, call_value_media): Simplify.
3209 (sibcall_compact, sibcall_media): New.
3210 (call, call_value): Adjust for SHmedia and SHcompact.
3211 (sibcall, sibcall_value, untyped_call): Likewise.
3212 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
3213 (indirect_jump): Adjust for SHmedia.
3214 (casesi_jump_media): New.
3215 (nop): Re-enable for SHmedia.
3216 (call_site): Restrict to SH1.
3217 (casesi): Adjust for SHmedia.
3218 (casesi_shift_media, casesi_load_media): New.
3219 (return): Explicitly use PR register. Call return trampoline
3221 (return_i): Explicitly use PR register.
3222 (shcompact_return_tramp, shcompact_return_tramp_i): New.
3223 (return_media): Adjust.
3224 (shcompact_incoming_args): New.
3226 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
3227 (movstrsi): Disable on SH5.
3228 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
3229 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
3230 (subsf3, subsf3_media): Likewise.
3231 (mulsf3, mulsf3_media, mac_media): Likewise.
3232 (divsf3, divsf3_media): Likewise.
3233 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
3234 (floatsisf2, fux_truncsfsi2): Likewise.
3235 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
3237 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
3238 (cmpunsf_media, cmpsf): Likewise.
3239 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
3240 (abssf2, abssf2_media): Likewise.
3241 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
3242 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
3243 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
3244 (floatsidf2, fix_truncdfsi2): Likewise.
3245 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
3247 (cmpeqdf_media, cmpgtdf_media): Likewise.
3248 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
3249 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
3250 (absdf2, absdf2_media): Likewise.
3251 (extendsfdf2, extendsfdf2_media): Likewise.
3252 (truncsfdf2, truncsfdf2_media): Likewise.
3253 * config/sh/sh64.h: New file.
3254 * config/sh/t-sh64: New file.
3255 * config/sh/shmedia.h: New file.
3256 * config/sh/ushmedia.h: New file.
3257 * config/sh/sshmedia.h: New file.
3258 * configure.in: Added sh64-*-elf.
3259 * configure: Rebuilt.
3260 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
3261 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
3262 (reg_class_from_letter): Use `b' for TARGET_REGS.
3263 (print_operand): Support `%M', `%m', `AND' and
3264 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
3265 (andcosts): Adjust for SHmedia.
3266 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
3268 (target_reg_operand): New function.
3269 * config/sh/sh-protos.h (target_reg_operand): Declare.
3270 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
3271 FP registers on SH5.
3272 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
3274 (TARGET_REGISTER_P): New macro.
3275 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
3276 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
3277 (EXTRA_CONSTRAINT_S): New macro.
3278 (EXTRA_CONSTRAINT): Adjust.
3279 (FLOAT_TYPE_SIZE): Define to 32.
3280 (Pmode): DImode on SHmedia.
3281 (CONST_COSTS): Adjust for SHmedia literals.
3282 (PREDICATE_CODES): Added target_reg_operand.
3283 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
3284 * config/sh/sh.md: Remove all attrs from SHmedia insns.
3285 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
3286 (cmpdi): Accept SHmedia.
3287 (movdicc_false, movdicc_true): New insns.
3288 (movdicc): New expand.
3289 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
3291 (addsi3_media): Match `S' constraint.
3292 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
3293 (negdi2): Expand for SHmedia.
3294 (one_cmpldi2): New expand.
3295 (zero_extendsidi2): Change from expand to insn.
3296 (extendsidi2): Add constraints.
3297 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
3298 LD/ST address. Fix SI immediate loading split.
3299 (movhi_media, movqi_media, lduw, ldub): New insns.
3300 (movhi, movqi): Accept SHmedia.
3301 (shori_media, movdi_media): Relax input constraints. Split
3303 (movdf_media, movsf_media): New insn. New split to movdi.
3304 (movdf, movsf): Match on SHmedia.
3305 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
3306 bgeu_media): New insns and splits. New insns with `_i' suffix.
3307 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
3308 (bunordered): New expand.
3309 (jump_compact): Renamed from `jump'.
3310 (jump_media): New insn.
3312 (call_media, call_value_media): New insns.
3313 (call, call_value): Adjust.
3314 (indirect_jump_compact): Renamed from `indirect_jump'.
3315 (indirect_jump_media): New insn.
3316 (indirect_jump): New expand.
3317 (untyped_call, return): Accept SHmedia.
3318 (return_media): New insn.
3319 (prologue, epilogue, blockage): Accept SHmedia.
3320 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
3321 (sunordered): New expand.
3322 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
3323 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
3324 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
3325 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
3326 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
3327 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
3328 abssf2_media): New insns.
3329 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
3330 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
3331 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
3332 floatdidf2, floatsidf2_media, fix_truncdfdi2,
3333 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
3334 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
3335 absdf2_media): New insns.
3336 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
3337 (extendsfdf2_media, truncdfsf2_media): New insns.
3338 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3339 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
3340 * config/sh/sh.h (CONST_OK_FOR_J): Document.
3341 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
3342 * config/sh/sh.md (adddi3): New expand.
3343 (adddi3_media, adddi3z_media): New insns.
3344 (adddi3_compact): Renamed from adddi3.
3345 (addsi3_media): Use add.l r63 to add constant zero.
3346 (subdi3): New expand.
3347 (subdi3_media): New insn.
3348 (subdi3_compact): Renamed from subdi3.
3349 (mulsidi3): New expand.
3350 (mulsidi3_media): New insn.
3351 (mulsidi3_compact): Renamed from mulsidi3.
3352 (umulsidi3): New expand.
3353 (umulsidi3_media): New insn.
3354 (umulsidi3_compact): Renamed from umulsidi3.
3355 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
3356 (ashlsi3, ashrsi3, lshrsi3): Use them.
3357 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
3358 (ashldi3, ashrdi3, lshrdi3): Use them.
3359 (zero_extendsidi2): New expand.
3360 (extendsidi2): New insn.
3361 (movsi_media): New insn. Split to movdi to load constants.
3362 (movsi): Enable for shmedia.
3363 (movdi_media): New insn. Use shori_media to load wide constants.
3364 (short_media): New insn.
3365 (movdi): Enable for shmedia.
3366 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
3367 * config/sh/sh.h (CPP_SPEC): Added `m5'.
3368 (SUBTARGET_CPP_SPEC): Added `!m5'.
3369 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
3370 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
3371 to all other SH variants.
3372 (TARGET_DEFAULT): Set to SH1_BIT.
3373 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
3374 (BITS_PER_WORD): Raise to 64 on shmedia.
3375 (MAX_BITS_PER_WORD): Change to 64.
3376 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
3377 (INT_TYPE_SIZE): Keep as 32.
3378 (UNITS_PER_WORD): Raise to 8 on shmedia.
3379 (MIN_UNITS_PER_WORD): Keep as 4.
3380 (POINTER_SIZE): Raise to 64 on shmedia.
3381 (CONST_OK_FOR_J): New macro.
3382 (CONST_OK_FOR_LETTER_P): Use it.
3383 (processor_type): Add PROCESSOR_SH5.
3384 * config/sh/sh.md: Conditionalize all expands, insns and
3385 splits to TARGET_SH1.
3387 (addsi3_compact): Renamed from...
3388 (addsi3): Now an expand.
3389 (addsi3_media, subsi3_media): New insns.
3390 (subsi3): Don't negate constants with SHmedia.
3392 * hooks.c: New file.
3393 * hooks.h: New file.
3394 * Makefile.in (HOOKS_H): New.
3395 (TARGET_DEF_H): Added $(HOOKS_H).
3396 (OBJS): Added hooks.o.
3397 (cfgcleanup.o, bb-reorder.o): Added target.h.
3398 (hooks.o): Added dependencies.
3399 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
3400 (TARGET_INITIALIZER): this.
3401 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
3402 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
3403 * bb-reorder.c: Include target.h.
3404 (reorder_basic_blocks): Skip if cannot modify jumps.
3405 * cfgcleanup.c: Include target.h.
3406 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
3408 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3410 * config/mips/mips.md (casesi_internal, casesi_internal_di):
3411 Protect jump delay slot instructions with .set noreorder and
3414 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3416 * config/mips/mips.md (casesi_internal_di): Calculate
3417 the index into the target offset table correctly.
3419 2002-02-08 Richard Henderson <rth@redhat.com>
3421 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
3422 * final.c (output_addr_const): Accept and discard SUBREG.
3423 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
3424 mark them unknown instead.
3425 (simplify_subtraction): Handle RTX_UNKNOWN.
3426 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
3428 2002-02-08 David Edelsohn <edelsohn@gnu.org>
3430 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
3432 2002-02-08 Richard Henderson <rth@redhat.com>
3434 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
3436 2002-02-08 Andreas Jaeger <aj@suse.de>
3438 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
3439 * config/i386/t-linux64: New file.
3441 2002-02-08 Jakub Jelinek <jakub@redhat.com>
3443 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
3444 * c-parse.in (compstmt): Clear last_expr_type.
3446 2002-02-07 Richard Henderson <rth@redhat.com>
3448 * loop.c (strength_reduce): Sink final_value when not
3451 2002-02-07 David O'Brien <obrien@FreeBSD.org>
3453 * config/sparc/freebsd.h: Fix mismatched spec {.
3455 2002-02-07 Richard Henderson <rth@redhat.com>
3457 * cfgrtl.c: Include recog.h and insn-config.h.
3458 (keep_with_call_p): Fix general_operand invocation.
3459 * Makefile.in (cfgrtl.o): Update dependencies.
3461 2002-02-07 Kazu Hirata <kazu@hxi.com>
3463 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
3464 comment. Accept HImode only if TARGET_H8300.
3466 2002-02-07 Eric Christopher <echristo@redhat.com>
3468 * config/mips/crtn.asm: Cleanup #ifdefs.
3470 2002-02-07 Eric Christopher <echristo@redhat.com>
3472 * config/mips/crti.asm: Add changes for mips16. mips16 uses
3473 register 7 as RA instead of $31.
3474 * config/mips/crtn.asm: Ditto.
3475 * config/mips/mips.c (mips_move_2words): Add case for
3476 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
3477 (compute_frame_size): Fix typo.
3478 (save_restore_insns): Ditto. Make documentation about using
3479 register $7 as return register more precise.
3480 (mips_expand_epilogue): Fix comment. Add code to work around not
3481 being able to add to the stack pointer directly.
3482 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
3483 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
3486 2002-02-07 Tom Rix <trix@redhat.com>
3488 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
3489 immediates in ldu and stdu DS opcode field.
3490 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
3491 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
3492 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
3494 2002-02-07 Jeff Sturm <jsturm@one-point.com>
3496 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
3497 offset for stack bias.
3499 2002-02-07 H.J. Lu <hjl@gnu.org>
3501 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
3503 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
3505 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
3507 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
3509 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
3510 * i386.c (x86_order_regs_for_local_alloc): New global function.
3511 * i386.h (REG_ALLOC_ORDER): CLeanup.
3512 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
3514 2002-02-07 Richard Henderson <rth@redhat.com>
3516 PR optimization/2463
3517 * alias.c (find_base_value): Recall base values for fixed hard regs.
3518 * loop.c (loop_regs_update): Don't use single_set on non-insns.
3520 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
3522 * config/mips/mips.md (define_delay) [mips16]: Adjust required
3525 2002-02-06 Richard Henderson <rth@redhat.com>
3528 * stmt.c (resolve_operand_name_1): Take more care with mixed
3529 named and unnamed operands.
3531 2002-02-06 Janis Johnson <janis187@us.ibm.com>
3532 Jan Hubicka <jh@suse.cz>
3534 * loop.c (remove_constant_addition): Avoid clobbering a shared
3537 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
3539 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
3540 * config/s390/t-linux64: New file.
3541 * config/s390/libgcc-glibc.ver: New file.
3543 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
3545 * config/s390/linux64.h: Delete file.
3546 * config/s390/s390x.h: New file.
3547 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
3548 as target header file.
3549 * config/s390/linux.h (TARGET_VERSION): Define depending on
3550 DEFAULT_TARGET_64BIT.
3551 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
3552 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
3553 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
3554 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
3555 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
3556 (EXTRA_SPEC): New define.
3557 * config/s390/s390.h (TARGET_VERSION): Define depending on
3558 DEFAULT_TARGET_64BIT.
3559 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
3561 2002-02-06 Jason Merrill <jason@redhat.com>
3563 * c-decl.c (finish_function): Warn about a non-void function with
3564 no return statement and no abnormal exit.
3565 (current_function_returns_abnormally): New variable.
3566 (start_function): Clear it.
3567 (struct c_language_function): Add returns_abnormally.
3568 (push_c_function_context): Save it.
3569 (pop_c_function_context): Restore it.
3570 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
3571 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
3572 an explicit return type.
3573 * c-tree.h: Declare current_function_returns_abnormally.
3574 (C_FUNCTION_IMPLICIT_INT): New macro.
3575 * c-typeck.c (build_function_call): Set it.
3576 (c_expand_return): Set current_function_returns_value even if the
3579 2002-02-06 Jakub Jelinek <jakub@redhat.com>
3582 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
3583 unsafe for reevaluation.
3585 2002-02-06 Jakub Jelinek <jakub@redhat.com>
3588 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
3589 EXPR_STMT, but COMPOUND_STMT, recurse into it.
3591 2002-02-06 Richard Henderson <rth@redhat.com>
3593 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
3594 be a general_operand. Dest for function value must be a pseudo.
3596 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3598 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
3599 as SYMBOL_REFs from the constant pool.
3601 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
3603 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
3604 passed by invisible reference.
3606 2002-02-05 Richard Henderson <rth@redhat.com>
3608 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
3610 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
3612 Implement using "base addresses" in insn operands as default.
3613 * config/mmix/mmix.c (mmix_conditional_register_usage): if
3614 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
3615 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
3616 used to read the rtx value.
3617 (mmix_target_asm_function_epilogue): Fix spacing.
3618 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
3619 (mmix_legitimate_address): Ditto.
3620 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
3621 should be loaded with a GETA insn. Don't allocate needless extra
3622 char for nul termination and fix misleading comment.
3623 (mmix_print_operand_address): Handle constants if
3624 TARGET_BASE_ADDRESSES.
3625 (mmix_output_register_setting): Use base addressing if
3626 TARGET_BASE_ADDRESSES and the number of insns is 3.
3627 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
3628 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
3629 to use R as constraint, add LDA to match s.
3630 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
3631 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
3632 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
3633 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
3634 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
3635 order with other fixed registers.
3636 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
3637 other parameter/call-clobbered registers.
3638 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
3639 -mbase-addresses, -mno-base-addresses.
3640 (MMIX Options): Ditto.
3642 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3644 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
3646 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
3648 * config/rs6000/altivec.h: Change elem to _S_elem.
3650 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
3652 * config/netbsd.h (WCHAR_TYPE): Define.
3653 (WCHAR_TYPE_SIZE): Ditto.
3655 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
3656 (WCHAR_UNSIGNED): Ditto.
3657 (WCHAR_TYPE_SIZE): Ditto.
3659 * config/arm/netbsd.h: Likewise.
3660 * config/i386/netbsd-elf.h: Likewise.
3661 * config/i386/netbsd.h: Likewise.
3662 * config/m68k/netbsd-elf.h: Likewise.
3663 * config/m68k/netbsd.h: Likewise.
3664 * config/ns32k/netbsd.h: Likewise.
3665 * config/sparc/netbsd.h: Likewise.
3666 * config/vax/netbsd.: Likewise.
3668 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
3670 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
3671 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
3672 (TARGET_INITIALIZER): this.
3673 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
3674 (BITFIELD_NBYTES_LIMITED): Markup fix.
3675 * tree.h (default_ms_bitfield_layout_p): Declare.
3676 (record_layout_info): Added prev_field.
3677 * tree.c (default_ms_bitfield_layout_p): New fn.
3678 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
3679 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
3680 * stor-layout.c: Include target.h.
3681 (start_record_layout): Initialize prev_field.
3682 (place_field): Handle MS bit-field layout, and disregard
3683 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
3684 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
3685 * Makefile.in (stor-layout.o): Adjust dependencies.
3687 2002-02-05 Jason Merrill <jason@redhat.com>
3689 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
3691 2002-02-05 Andreas Jaeger <aj@suse.de>
3693 * crtstuff.c: Fix comments.
3695 2002-02-05 Richard Henderson <rth@redhat.com>
3698 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
3699 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
3702 * config/mips/mips.c (function_arg): Handle TImode.
3703 (function_arg_advance): Likewise.
3705 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
3707 * config/rs6000/altivec.h (vec_step_help): Rename to
3710 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
3712 * config/rs6000/altivec.h: Fix typos.
3714 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
3716 * config/arm/netbsd.h: Correct a comment.
3718 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
3720 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
3721 building void typed builtins.
3723 * config/rs6000/altivec.h (vec_ld*): Fix typos.
3724 (vec_step): Implement for C++.
3726 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3728 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
3730 2002-02-04 Richard Henderson <rth@redhat.com>
3732 * combine.c (nonzero_bits): Re-introduce special case for
3733 sp/fp/ap wrt REGNO_POINTER_ALIGN.
3735 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
3737 * doc/extend.texi: Warn about unsupported usage of altivec
3740 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
3741 (altivec_predicate_*): New.
3743 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
3744 Add C++ version of vec_*() functions.
3746 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
3747 (bdesc_2arg): Remove altivec predicates.
3748 (altivec_expand_builtin): Handle predicates.
3749 (altivec_init_builtins): Handle predicates.
3750 (altivec_expand_predicate_builtin): New.
3752 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
3754 * pa.c (DO_FRAME_NOTES): Move forward.
3755 (store_reg): Revise handling of frame notes.
3756 (load_reg): Likewise.
3757 (set_reg_plus_d): Likewise.
3758 (hppa_expand_prologue): Likewise.
3759 (hppa_expand_epilogue): Likewise.
3761 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
3763 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
3765 2002-02-04 Jakub Jelinek <jakub@redhat.com>
3767 PR c/4475, c++/3780:
3768 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
3769 * c-common.h (SWITCH_TYPE): Define.
3770 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
3771 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
3772 Rename spareness variable to sparseness.
3773 (expand_end_case_type): Renamed from expand_end_case, use orig_type
3774 if non-NULL instead of TREE_TYPE (orig_index).
3775 * tree.h (expand_end_case_type): Renamed from expand_end_case.
3776 (expand_end_case): Define using expand_end_case_type.
3777 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
3778 to expand_end_case_type.
3779 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
3781 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
3783 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
3784 (BIGGEST_ALIGNMENT): Change to 128.
3786 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
3788 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
3790 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
3792 * pa.md (call_internal_reg_64bit): Remove unused variable.
3794 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
3796 * config/arm/arm.h (machine_function): Add uses_anonymous_args
3798 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
3799 * config/arm/arm.c (current_function_anonymous_args): Delete,
3800 replace uses with cfun->machine->uses_anonymous_args.
3801 (arm_reorg): Do not reset uses_anonymous_args.
3803 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
3804 any geenral register.
3806 2001-02-04 Bernd Schmidt <bernds@redhat.com>
3808 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
3811 2002-02-04 Richard Henderson <rth@redhat.com>
3813 * combine.c (force_to_mode): Remove STACK_BIAS code.
3814 (nonzero_bits): Likewise. Replace sp/fp special case with
3815 REGNO_POINTER_ALIGN.
3817 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
3818 (HARD_FRAME_POINTER_REGNUM): New.
3819 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
3820 (FIXED_REGS, CALL_USED_REGS): Update.
3821 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
3822 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
3823 (HARD_REGNO_NREGS): Update for SFP.
3824 (STACK_POINTER_OFFSET): Include bias here ...
3825 (FIRST_PARM_OFFSET): ... not here.
3826 (STACK_BIAS): Remove.
3827 (INIT_EXPANDERS): New.
3828 (STARTING_FRAME_OFFSET): Do not include bias.
3829 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
3830 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
3831 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
3832 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
3833 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
3834 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
3835 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
3836 (MUST_SAVE_REGISTER): Likewise.
3837 (sparc_flat_function_prologue): Likewise.
3838 (sparc_flat_function_epilogue): Likewise.
3839 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
3840 (sparc_init_modes): SFP is GENERAL_REGS.
3841 (sparc_builtin_saveregs): SFP does not have bias applied.
3843 2002-02-04 Richard Henderson <rth@redhat.com>
3845 * config/alpha/alpha.c (current_function_is_thunk): Don't check
3846 current_function_is_thunk.
3847 (alpha_sa_mask): Distinguish between current_function_is_thunk
3848 called from ASM_OUTPUT_MI_THUNK and not.
3849 (alpha_does_function_need_gp): Thunks always need gp.
3850 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
3851 (alpha_output_mi_thunk_osf): New.
3852 * config/alpha/alpha-protos.h: Update.
3853 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
3855 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
3857 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
3858 function types, not when they're taken away.
3860 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
3862 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
3863 CODE_LABEL and jump table when replacing a table jump with a
3866 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3868 * config/s390/s390-protos.h (legitimize_la_operand,
3869 s390_secondary_input_reload_class, s390_plus_operand,
3870 s390_expand_plus_operand): Add prototypes.
3872 config/s390/s390.c (s390_secondary_input_reload_class,
3873 s390_plus_operand, s390_expand_plus_operand): New functions.
3875 (struct s390_address): New member 'pointer'.
3876 (s390_decompose_address): Compute it.
3877 (legitimate_la_operand_p): Use it.
3878 (legitimize_la_operand): New function.
3879 (movti, movdi, movdf splitters): Call it.
3881 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
3882 (PREDICATE_CODES): Add s390_plus_operand.
3884 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
3885 (la_ccclobber): Allow GENERAL_REGS as output operand.
3887 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
3888 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
3889 (*la_64, *la_31, reload_indi, reload_insi): ... these.
3891 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3893 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
3894 register names for regular asm () construct.
3896 2002-02-04 Jakub Jelinek <jakub@redhat.com>
3898 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
3901 2002-02-04 Jakub Jelinek <jakub@redhat.com>
3903 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
3906 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
3908 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
3909 constant pool to be identical by string address and index.
3911 2002-02-04 Anthony Green <green@redhat.com>
3913 * output.h (SECTION_OVERRIDE): Define.
3914 * varasm.c (named_section): Obey SECTION_OVERRIDE.
3916 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
3918 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
3919 by existing arm*-*-netbsd* (a.out) target.
3920 (ns32k-*-netbsdelf*): Likewise.
3921 (sparc-*-netbsdelf*): Likewise.
3922 (vax-*-netbsdelf*): Likewise.
3924 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
3926 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
3927 headers and libobjc headers.
3929 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
3931 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
3932 (_mingw.h): Remove duplicate include.
3934 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
3936 * config.gcc: Set cpu_type to m68k for 68010, as well.
3937 (m68010-*-netbsdelf*): New...
3938 (m68k*-*-netbsdelf*): ...targets.
3939 * config/m68k/netbsd-elf.h: New file.
3941 2002-02-02 Kazu Hirata <kazu@hxi.com>
3943 * config/h8300/h8300.c (hand_list): Move inside function_arg.
3945 2002-02-02 Kazu Hirata <kazu@hxi.com>
3947 * config/h8300/h8300.c (h8_push_ops): Move inside
3949 (h8_pop_ops): Likewise.
3950 (h8_move_ops): Likewise.
3952 2002-02-02 Kazu Hirata <kazu@hxi.com>
3954 * config/h8300/h8300.c (os_task): Make it static.
3955 (monitor): Likewise.
3956 (pragma_saveall): Likewise.
3958 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
3960 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
3961 constant is a valid sign-extension for Pmode.
3963 2002-02-02 Kazu Hirata <kazu@hxi.com>
3965 * config/h8300/h8300.c: Fix formatting.
3967 2002-02-02 Kazu Hirata <kazu@hxi.com>
3969 * config/h8300/h8300.md: Fix formatting.
3971 2002-02-02 Kazu Hirata <kazu@hxi.com>
3973 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
3974 predicates of operands[1]. Split the patterns for each
3977 2002-02-02 Kazu Hirata <kazu@hxi.com>
3979 * config/h8300/h8300.md (xor patterns): Tighten the predicates
3980 of operands[1] to register_operand.
3982 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
3984 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
3985 * cpphash.c (_cpp_init_hashtable): Similarly.
3986 * cppinit.c (cpp_create_reader): Default the signed_char flag.
3987 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
3988 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
3989 (cpp_handle_option): Handle the new options.
3990 * cpplex.c (cpp_interpret_charconst): Use new flag.
3991 * cpplib.h (struct cpp_options): New member signed_char.
3992 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
3993 (cpp_options): Handle -fsigned-char and -funsigned-char.
3994 (static_specs): Remove signed_char_spec.
3995 (do_spec1): Don't handle %c.
3996 * system.h: Poison SIGNED_CHAR_SPEC.
3997 * tradcif.y (yylex): Use flag_signed_char.
3998 * tradcpp.h (flag_signed_char): New.
3999 * tradcpp.c (flag_signed_char): New.
4000 (main): Handle new command-line options.
4001 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
4003 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
4004 * avr/avr.h: Remove old comments.
4005 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
4006 (CC1_SPEC): Pass -fsigned-char if -mic*.
4007 (SIGNED_CHAR_SPEC): Remove.
4009 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
4011 2002-02-01 Eric Christopher <echristo@redhat.com>
4013 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
4014 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
4015 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
4016 (ASM_OUTPUT_REG_POP): Ditto.
4018 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
4020 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
4023 2002-02-02 Jakub Jelinek <jakub@redhat.com>
4025 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
4027 2002-02-02 Jakub Jelinek <jakub@redhat.com>
4030 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
4033 2002-02-01 Janis Johnson <janis187@us.ibm.com>
4035 * cfganal.c: Include tm_p.h.
4036 (keep_with_call_p): Fix the test that determines if a register holds
4037 the return value of a call.
4039 2002-02-01 DJ Delorie <dj@redhat.com>
4041 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
4042 we are given conflicting registers, switch to the other one we
4043 had allocated for us.
4044 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
4045 as TImode so we know when the "other" register is available.
4047 2002-02-01 David O'Brien <obrien@FreeBSD.org>
4049 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
4052 2002-02-01 Janis Johnson <janis187@us.ibm.com>
4054 * cfganal.c (keep_with_call_p): New function.
4055 (flow_call_edges_add): Prevent splitting a block between a call and
4056 a single-set instruction that should be kept in the same block.
4058 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
4060 * doc/install.texi (avr): Update outdated URL.
4062 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
4064 * config/stormy16/stormy16.md (pushqi): New.
4068 (movhi): Remove stack operands.
4070 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
4071 nonimmediate_nonstack_operand.
4072 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
4074 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
4077 2002-01-31 Jason Merrill <jason@redhat.com>
4079 * Makefile.in (c-parse.c): Handle .output file.
4080 * objc/Make-lang.in (objc-parse.c): Likewise.
4082 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
4084 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
4085 the -me[lb] option is given. Don't output the default flag
4088 2002-01-31 Zack Weinberg <zack@codesourcery.com>
4090 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
4091 the primary source file; this has not been done yet.
4092 * c-decl.c (c_expand_body): Reset input_filename from
4093 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
4095 2002-01-31 Kazu Hirata <kazu@hxi.com>
4097 * rtlanal.c (subreg_regno_offset): Do not use
4098 SUBREG_REGNO_OFFSET.
4099 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
4100 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
4102 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
4104 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
4105 version rather than GNATS version in --version output.
4107 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
4109 * ifcvt.c (noce_process_if_block): Make a copy of the destination
4110 when copying back from a temporary.
4112 2002-01-30 Richard Henderson <rth@redhat.com>
4114 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
4115 and new_dest are the same.
4117 2002-01-30 Richard Henderson <rth@redhat.com>
4120 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
4121 * rtl.c (note_insn_name): Update.
4122 * emit-rtl.c (remove_unnecessary_notes): Kill it.
4123 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
4124 to perform loop rotation.
4125 (expand_exit_loop_top_cond): New.
4126 * tree.h (expand_exit_loop_top_cond): Declare it.
4127 * c-semantics.c (genrtl_while_stmt): Use it.
4128 (genrtl_for_stmt): Likewise.
4130 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
4132 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
4133 arguments to 64-bit boundaries on 64-bit ABIs.
4135 2002-01-30 Steve Ellcey <sje@cup.hp.com>
4137 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
4139 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
4141 * c-decl.c (grokdeclarator): Handle type being a typedef for an
4144 2002-01-30 David O'Brien <obrien@FreeBSD.org>
4146 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
4147 * config/sparc/sparc_bi.h: Remove file.
4148 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
4150 2002-01-30 Richard Henderson <rth@redhat.com>
4152 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
4154 2002-01-30 Zack Weinberg <zack@codesourcery.com>
4156 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
4158 2002-01-30 Jason Merrill <jason@redhat.com>
4160 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
4161 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
4162 (reg_save): Use DW_CFA_offset_extended_sf instead.
4164 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
4166 2002-01-29 Jakub Jelinek <jakub@redhat.com>
4168 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
4171 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
4173 * rs6000.md ("*call_value_local32"): Remove constraints.
4174 ("*call_value_local64"): Same.
4175 ("*call_value_indirect_nonlocal_aix32"): Same.
4176 ("*call_value_nonlocal_aix32"): Same.
4177 ("*call_value_indirect_nonlocal_aix64"): Same.
4178 ("*call_value_nonlocal_aix64"): Same.
4179 ("*call_value_nonlocal_sysv"): Same.
4181 2002-01-29 Richard Henderson <rth@redhat.com>
4183 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
4185 2002-01-29 Richard Henderson <rth@redhat.com>
4187 * expr.c (force_operand): Ignore flag_pic for detecting pic
4189 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
4190 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
4191 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
4192 instead of open-coded loop.
4193 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
4194 be fixed when in use.
4196 2002-01-29 Richard Henderson <rth@redhat.com>
4198 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
4199 * sched-rgn.c (propagate_deps): Update them.
4200 * sched-deps.c (sched_analyze_insn): Update them. Flush the
4201 clobbers list when either gets too long.
4203 2002-01-29 Jakub Jelinek <jakub@redhat.com>
4205 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
4206 and INDEX_REGS the same as GENERAL_REGS.
4207 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
4209 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
4211 * tree.c (build_nonstandard_integer_type): Correct prototype.
4213 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
4215 * config/s390/s390.md (movstrsico, movstrdix_64,
4216 movstrsix_31): Remove, replace by ...
4217 (movstrdi_short, movstrsi_short, movstrdi_long,
4218 movstrsi_long): ... these. New.
4219 (movstrdi, movstrsi): Adapt.
4221 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
4222 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
4223 Remove unnecessary CC clobber.
4224 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
4225 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
4227 (divmoddi4): Don't partially initialize TImode register.
4229 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
4231 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
4233 2002-01-29 Richard Henderson <rth@redhat.com>
4235 * flow.c (print_rtl_and_abort): Remove.
4236 (print_rtl_and_abort_fcn): Remove.
4237 (verify_local_live_at_start): Use dump_bb instead.
4238 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
4239 (verify_wide_reg_1): Return 2 on mode test failure.
4241 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
4243 PR c/3325, c/3326, c/2511, c/3347
4244 * c-decl.c (enum_decl_context): Remove BITFIELD.
4245 (grokdeclarator): Take bitfield width as an input.
4246 Ensure bitfields are given the correct type. Perform
4247 bitfield width validation with build_bitfield_integer_type
4248 rather than waiting for finish_struct.
4249 (grok_typename, grok_typename_in_parm_context, start_decl,
4250 push_parmdecl, grokfield, start_function): Update calls to
4252 (build_bitfield_integer_type): New function.
4253 (finish_struct): Move bitfield validation to grokdeclarator
4254 and build_bitfield_integer_type.
4255 * tree.c (build_nonstandard_integer_type): New function.
4256 * tree.h (build_nonstandard_integer_type): New prototype.
4258 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
4260 2002-01-29 Jakub Jelinek <jakub@redhat.com>
4263 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
4264 don't ignore unrecognized -W* options.
4265 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
4266 * cpplib.h (cpp_handle_option): Adjust prototype.
4267 * c-decl.c (c_decode_options): Pass 0 as last argument to
4271 * gcc.c (cpp_unique_options): Split from cpp_options.
4272 (cpp_options): Source cpp_unique_options.
4273 (default_compilers): Use cpp_unique_options instead of cpp_options
4274 when used together with cc1_options.
4275 (static_specs): Add cpp_unique_options.
4276 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
4277 when used together with cc1_options.
4279 2002-01-29 Kazu Hirata <kazu@hxi.com>
4281 * config/h8300/h8300-protos.h: Update the prototype of
4283 * config/h8300/h8300.c (output_a_shift): Remove an unused
4284 argument 'insn'. Remove redundant code.
4285 * config/h8300/h8300.md: Adust to the new prototype of
4288 2002-01-29 Kazu Hirata <kazu@hxi.com>
4290 * config/h8300/h8300-protos.h: Update the prototypes of
4291 emit_a_rotate and expand_a_rotate.
4292 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
4293 first argument to 'enum rtx_code'.
4294 (expand_a_rotate): Likewise.
4296 2002-01-28 Kazu Hirata <kazu@hxi.com>
4298 * config/h8300/h8300-protos.h: Update the prototype of
4300 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
4302 * config/h8300/h8300.md: Adjust to the new prototype.
4304 2002-01-28 Kazu Hirata <kazu@hxi.com>
4306 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
4309 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
4311 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
4312 is a fixed register before returning pic_offset_table_rtx.
4313 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
4314 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
4316 2002-01-28 Jason Merrill <jason@redhat.com>
4318 * dwarf2.h: Sync with src version.
4320 2002-01-28 Paul Koning <pkoning@equallogic.com>
4322 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
4324 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
4325 * doc/extend.texi (__builtin_prefetch): Update documentation:
4326 first argument is now const void ptr.
4328 2002-01-28 Kazu Hirata <kazu@hxi.com>
4330 * config/h8300/h8300-protos.h: Remove an unused prototype.
4332 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
4334 * toplev.c (lang_independent_init): Round up identifier size.
4336 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
4338 * config.gcc: Revert previous change.
4340 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
4342 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
4344 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
4346 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
4347 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
4348 other non-elf netbsd config frags.
4349 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
4350 collect2 will does that.
4351 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
4352 shared-lib frobbing will work.
4354 2002-01-28 Kazu Hirata <kazu@hxi.com>
4356 * config/h8300/h8300.h: Fix formatting.
4357 * config/h8300/h8300.md: Likewise.
4359 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
4361 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
4362 the old, removed AAA_standards fix.
4363 * fixinc/fixincl.x: Rebuilt.
4365 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
4367 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
4368 atexit call in crtbegin, hooked in after call to frame_dummy;
4369 register EH before registering __fini__start.
4371 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
4373 * config/rs6000/altivec.h: Remove spurious semicolons.
4375 2002-01-27 Kazu Hirata <kazu@hxi.com>
4377 * config/h8300/h8300.md: Replace dead bit extraction patterns
4378 with ones that work.
4380 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4382 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
4383 if not STRICT_ALIGNMENT.
4384 * rtl.h (MEM_ALIGN): Likewise.
4386 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
4388 * doc/invoke.texi (-fdump-translation-unit): Revert this
4389 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
4391 2002-01-27 Kazu Hirata <kazu@hxi.com>
4393 * config/h8300/h8300.md (define_constants): New.
4394 (anonymous patterns) Use defined constants appropriately.
4396 2002-01-27 Kazu Hirata <kazu@hxi.com>
4398 * config/h8300/h8300.c (function_arg): Remove redundant code.
4400 2002-01-26 Richard Henderson <rth@redhat.com>
4402 * sched-deps.c (reg_pending_uses_head): New.
4403 (reg_pending_barrier): Rename from reg_pending_sets_all.
4404 (find_insn_list): Don't mark inline.
4405 (find_insn_mem_list): Remove.
4406 (add_dependence_list, add_dependence_list_and_free): New.
4407 (flush_pending_lists): Replace only_write param with separate
4408 for_read and for_write parameters. Update all callers. Use
4409 add_dependence_list_and_free.
4410 (sched_analyze_1): Do not add reg dependencies here; just set
4411 the pending bits. Use add_dependence_list.
4412 (sched_analyze_2): Likewise.
4413 (sched_analyze_insn): Replace schedule_barrier_found with
4414 reg_pending_barrier. Add all dependencies for pending reg
4415 uses, sets, and clobbers.
4416 (sched_analyze): Don't add reg dependencies for calls, just
4417 set pending bits. Use regs_invalidated_by_call. Treat
4418 sched_before_next_call as a normal list, not a fake insn.
4419 (init_deps): No funny init for sched_before_next_call.
4420 (free_deps): Free pending mems lists. Don't zero reg_last.
4421 (init_deps_global): Init reg_pending_uses.
4422 (finish_deps_global): Free it.
4423 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
4424 (find_insn_mem_list): Remove.
4425 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
4426 (propagate_deps): Use them. Zero temp mem lists.
4428 2002-01-26 Richard Henderson <rth@redhat.com>
4430 * Makefile.in (CRTSTUFF_CFLAGS): New.
4431 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
4432 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
4433 crtstuff.c instead of alpha assembly version.
4434 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
4435 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
4436 not FORCE_{INIT,FINI}_SECTION_ALIGN.
4437 (__do_global_dtors_aux): Mark used.
4438 (frame_dummy, __do_global_ctors_aux): Mark used.
4439 (fini_dummy, init_dummy): Remove.
4441 * config/alpha/crtbegin.asm: Remove file.
4442 * config/alpha/crtend.asm: Remove file.
4443 * config/alpha/t-crtbe: Remove file.
4444 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
4445 (LINK_EH_SPEC): New.
4447 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
4448 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
4449 calling constructors.
4450 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
4452 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
4453 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
4454 CRT_END_INIT_DUMMY hack.
4455 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
4456 FORCE_{INIT,FINI}_SECTION_ALIGN.
4458 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
4459 FORCE_{INIT,FINI}_SECTION_ALIGN.
4461 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
4462 invocation sequence.
4463 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
4465 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
4466 (FORCE_CODE_SECTION_ALIGN): New.
4468 2002-01-26 Richard Henderson <rth@redhat.com>
4470 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
4472 2002-01-26 Richard Henderson <rth@redhat.com>
4474 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
4475 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
4477 2002-01-26 Kazu Hirata <kazu@hxi.com>
4479 * config/h8300/h8300.md: Remove bit extraction patterns that
4480 cannot be triggered.
4481 Restrict each bit extraction pattern to a variant on which the
4484 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
4486 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
4488 2002-01-26 Kazu Hirata <kazu@hxi.com>
4490 * config/h8300/h8300.md: Remove bit test patterns that cannot
4492 Restrict each bit test pattern to a variant on which the
4495 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4497 * builtins.c (expand_builtin_strncat): Remove redundant check for
4500 2002-01-25 David O'Brien <obrien@FreeBSD.org>
4502 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
4504 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
4507 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
4509 * dbxout.c (dbxout_init): Use assemble_name rather than just
4510 stripping off the first character.
4511 (dbxout_source_file): Likewise.
4513 2002-01-25 DJ Delorie <dj@redhat.com>
4515 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
4516 using rtx_equal_p, not by comparing pointers.
4518 2002-01-25 Steve Ellcey <sje@cup.hp.com>
4520 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
4521 for PIC_OFFSET_TABLE_REGNUM.
4522 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
4524 2002-01-25 David O'Brien <obrien@FreeBSD.org>
4526 * config.gcc (x86_64-*-freebsd*): New target.
4527 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
4529 (i[34567]86-*-freebsd*): Don't include svr4.h.
4530 * config/i386/freebsd64.h: New file.
4532 2002-01-25 Douglas B Rupp <rupp@gnat.com>
4534 * config/alpha/x-vms (version): Make static.
4536 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
4537 in previous checkin.
4539 * Makefile.in (install-headers-cp): New target.
4540 * config.gcc (alpha-dec-*vms*): Install headers with
4543 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
4545 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
4548 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4550 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
4551 of compare_tree_int.
4552 (expand_builtin_strncat): Likewise.
4553 * c-decl.c (finish_struct): Use tree_low_cst.
4554 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
4555 * tree.c (compare_tree_int): Likewise.
4557 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
4559 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
4560 adjustments even if they are implemented by more than two insns.
4562 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
4564 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
4565 * df.h (struct ref): Kill B.
4566 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
4568 * basic-block.h (PROP_EQUAL_NOTES): New flag.
4569 * flow.c (propagate_one_insn): Use it.
4570 (mark_used_regs): Handle NIL.
4572 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
4574 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
4577 2002-01-25 David Edelsohn <edelsohn@gnu.org>
4579 * rs6000.md (prefetch): Make address V4SI mode so that the address
4580 is restricted to legitimate form for instruction.
4582 2002-01-25 Bob Wilson <bob.wilson@acm.org>
4584 * doc/install.texi (xtensa-*-elf): New target.
4585 (xtensa-*-linux*): New target.
4586 * doc/contrib.texi: Add myself.
4588 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
4590 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
4591 purpose register to hold an SImode (or smaller) value.
4593 2002-01-25 Jakub Jelinek <jakub@redhat.com>
4595 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
4597 * crtstuff.c: Likewise.
4599 2002-01-25 Kazu Hirata <kazu@hxi.com>
4601 * config/h8300/h8300.md (negation patterns): Tighten
4602 predicates to register_operand.
4604 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
4606 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
4609 * builtins.c (expand_builtin_prefetch): Same.
4611 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4613 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
4616 2002-01-24 Kazu Hirata <kazu@hxi.com>
4618 * config/h8300/h8300.c (print_operand): Remove support for
4619 operand character 'A'.
4620 * config/h8300/h8300.md (three anonymous patterns): Replace
4621 operand character 'A' with either 'T' or 'S'.
4623 2002-01-24 Kazu Hirata <kazu@hxi.com>
4625 * config/h8300/h8300.c (print_operand): Remove support for
4626 operand character 'U'.
4628 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
4630 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
4632 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
4634 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
4635 values to be assigned to the stack pointer.
4637 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
4639 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
4640 to const_double needs to be done right for big-endian systems.
4642 2002-01-24 Jason Merrill <jason@redhat.com>
4645 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
4646 to can_throw_internal.
4648 2002-01-23 Richard Henderson <rth@redhat.com>
4650 * fold-const.c (fold): Change UINT_MAX test to check vs precision
4651 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
4653 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4655 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
4656 (symGOT2reg): Use them, then set as GOT value as unchanging.
4657 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
4658 as a temporary, if possible.
4659 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
4660 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
4662 2002-01-23 Kazu Hirata <kazu@hxi.com>
4664 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
4665 accept to accept 0x80 as operands[2].
4667 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4669 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
4671 2002-01-23 Richard Henderson <rth@redhat.com>
4673 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
4675 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
4677 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
4678 (parmlist_or_identifiers_1): Verify that only a parmlist follows
4681 2002-01-23 Richard Henderson <rth@redhat.com>
4683 * expr.c (move_by_pieces_1): Extend size before negation.
4685 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
4686 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
4687 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
4688 * config/m68k/t-m68kelf: Likewise.
4690 2002-01-23 Bob Wilson <bob.wilson@acm.org>
4692 * config/xtensa/elf.h: New file.
4693 * config/xtensa/lib1funcs.asm: New file.
4694 * config/xtensa/lib2funcs.S: New file.
4695 * config/xtensa/linux.h: New file.
4696 * config/xtensa/t-xtensa: New file.
4697 * config/xtensa/xtensa-config.h: New file.
4698 * config/xtensa/xtensa-protos.h: New file.
4699 * config/xtensa/xtensa.c: New file.
4700 * config/xtensa/xtensa.h: New file.
4701 * config/xtensa/xtensa.md: New file.
4702 * config.gcc (xtensa-*-elf*): New target.
4703 (xtensa-*-linux*): New target.
4704 * cse.c (canon_hash): Compare rtx pointers instead of register
4705 numbers. This is required for the Xtensa port.
4706 * integrate.c (copy_insn_list): Handle case where the static
4707 chain is in memory and the memory address has to be copied to
4709 * doc/invoke.texi (Option Summary): Add Xtensa options.
4710 (Xtensa Options): New node.
4711 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
4713 2002-01-23 Zack Weinberg <zack@codesourcery.com>
4715 * diagnostic.c (internal_error): Do ICE suppression only
4716 when ENABLE_CHECKING is not defined.
4718 * c-typeck.c (require_complete_type): Return error_mark_node
4719 if type is error_mark_node.
4721 2002-01-23 Janis Johnson <janis187@us.ibm.com>
4723 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
4724 -Os and issue a warning.
4726 2002-01-23 Zack Weinberg <zack@codesourcery.com>
4728 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
4729 current (lack of) need for host configuration by hand.
4731 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
4732 references. Documentation of some target macros moved from
4733 hostconfig.texi to tm.texi.
4735 2002-01-23 Will Cohen <wcohen@redhat.com>
4737 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
4740 2002-01-23 Kazu Hirata <kazu@hxi.com>
4742 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
4745 2002-01-23 Jason Merrill <jason@redhat.com>
4747 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
4749 * function.c (assign_parms): Don't put args of inline functions
4750 into registers when not optimizing.
4752 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
4754 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
4755 (prologue_use): New pattern.
4756 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
4757 preference to gen_rtx_USE.
4758 (thumb_expand_prologue): Use gen_prologue_use in preference to
4760 (thumb_expand_epilogue): Use gen_prologue_use in preference to
4763 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
4765 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
4767 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
4770 * doc/extend.texi: Correct documentation of __alignof__.
4772 2002-01-22 Zack Weinberg <zack@codesourcery.com>
4774 * params.h: Rename arguments of DEFPARAM so that it will be
4775 recognized as a translation keyword.
4777 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
4779 * extend.texi: Document altivec functions.
4780 Fix N-bit adjectives in X86 builtin documentation.
4782 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4784 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
4785 auto_inc_dec values.
4787 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
4789 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
4791 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
4793 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4795 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
4797 2002-01-22 Richard Henderson <rth@redhat.com>
4799 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
4800 copy_insn not copy_rtx.
4802 2002-01-23 Alan Modra <amodra@bigpond.net.au>
4804 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
4805 "nonzero" as that might add "1" bits. Ensure "constop" is
4806 properly sign extened.
4807 (force_to_mode): Tweak for sign extended constop.
4809 2002-01-22 Richard Henderson <rth@redhat.com>
4811 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
4812 for_each_rtx instead of assuming we're already looking at the MEM.
4813 (split_small_symbolic_mem_operand): Likewise.
4814 * config/alpha/alpha.h (PREDICATE_CODES): Update.
4815 * config/alpha/alpha.md (small symbolic memory splitters): Update.
4817 2002-01-22 Richard Henderson <rth@redhat.com>
4819 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
4820 sequence number for the literal.
4821 (divmoddi_internal_er): Likewise.
4823 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
4826 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
4827 in LIBICONV variable.
4828 * configure: Regenerated.
4830 2002-01-22 Krister Walfridsson <cato@df.lth.se>
4832 * dependence.c (build_def_use): Remove array_idx.
4834 * dwarfout.c (last_filename): Remove.
4835 (output_compile_unit_die): Remove last_filename.
4837 2002-01-22 Roger Sayle <roger@eyesopen.com>
4838 Richard Henderson <rth@redhat.com>
4841 * fold-const.c (fold): Optimize unsigned comparisons against
4842 UINT_MAX (and similar unsigned constants).
4844 2002-01-22 Janis Johnson <janis187@us.ibm.com>
4846 * Makefile.in (loop.o): Depend on OPTABS_H.
4847 * loop.c (emit_prefetch_instructions): Check the prefetch operand
4848 against the predicate.
4851 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
4852 for the address operand.
4854 2002-01-22 Richard Henderson <rth@redhat.com>
4856 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
4858 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
4861 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
4864 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
4866 * config.gcc (x86_64-*-netbsd*): New target.
4867 * config/i386/netbsd64.h: New file.
4869 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
4871 * regrename.c (kill_value): Fix typo.
4873 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
4875 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
4877 * config/rs6000/rs6000.h: Same.
4879 * function.c (instantiate_virtual_regs): Remove
4880 STARTING_FRAME_PHASE.
4881 (assign_stack_local_1): Same.
4882 Calculate frame phase.
4884 2002-01-22 Nick Clifton <nickc@redhat.com>
4886 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
4887 variable declaration to outer scope in order to simplify
4889 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
4890 arm_hard_regno_mode_ok.
4891 * config/arm/arm-protos.h: Add a prototype for
4892 arm_hard_regno_mode_ok.
4893 * config/arm/arm.c (soft_df_operand): Remove now redundant
4894 check for DImode values using IP_REGNUM.
4895 (nonimmediate_soft_df_operand): Remove now redundant check for
4896 DImode values using IP_REGNUM.
4897 (arm_hard_regno_mode_ok): New function. New check: make sure
4898 that DImode values are not stored in IP_REGNUM.
4900 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
4902 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
4904 2002-01-22 Jason Merrill <jason@redhat.com>
4906 * c-semantics.c (genrtl_compound_stmt): Only check nesting
4907 consistency if this COMPOUND_STMT is scoped.
4909 2002-01-22 Kazu Hirata <kazu@hxi.com>
4911 * predict.c: Fix formatting.
4912 * print-tree.c: Likewise.
4913 * protoize.c: Likewise.
4916 * sbitmap.h: Likewise.
4918 * sched-deps.c: Likewise.
4919 * sched-vis.c: Likewise.
4920 * sdbout.c: Likewise.
4921 * sibcall.c: Likewise.
4923 * ssa-ccp.c: Likewise.
4924 * ssa-dce.c: Likewise.
4926 * stor-layout.c: Likewise.
4927 * system.h: Likewise.
4929 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4931 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
4932 if fits in bounds of base type.
4934 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
4935 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
4936 (add_bound_info, default): If can't find a context, make a
4938 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
4940 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
4942 * c-typeck.c (parser_build_binary_op): If result from
4943 build_binary_op is ERROR_MARK just return error_mark_node without
4946 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4948 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
4949 Split a.out-specific bits into...
4950 * config/netbsd-aout.h: ...this.
4951 * config/netbsd-elf.h: New file.
4952 * config/alpha/netbsd-elf.h: Remove.
4953 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
4954 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
4955 (STARTFILE_SPEC): Remove redundant definition.
4956 (ENDFILE_SPEC): Likewise.
4957 (LINK_SPEC): Likewise.
4958 (CPP_SPEC): Likewise.
4959 (ASM_SPEC): Likewise.
4960 (LIB_SPEC): Likewise.
4961 (SWITCH_TAKES_ARG): Likewise.
4962 (TARGET_MEM_FUNCTIONS): Likewise.
4963 (CPP_PREDEFINES): Redefine.
4964 (ASM_FINAL_SPEC): Remove redefinition.
4965 (ASM_COMMENT_START): Redefine.
4966 (FUNCTION_PROFILER): Define.
4967 (TARGET_VERSION): Redefine.
4968 Comment and formatting cleanup.
4969 * config/i386/netbsd.h: Include <netbsd-aout.h>.
4970 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
4971 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
4972 big- or little-endian.
4973 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
4974 * config.gcc (*-*-netbsd*): Add definitions common to all
4976 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
4977 gnu_ld definitions. Add netbsd-elf.h to and remove
4978 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
4979 tmake_file, and don't lose previous tmake_file contents.
4980 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
4981 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
4982 gnu_ld definitions. Add netbsd-elf.h to tm_file.
4983 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
4984 (mipsel-*-netbsd*): Rename this to...
4985 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
4986 mips/little.h to tm_file for mips*el-*.
4987 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
4988 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
4989 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
4991 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
4993 * pa-protos.h (reg_before_reload_operand): New function prototype.
4994 * pa.c (reg_before_reload_operand): New function implementation.
4995 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
4998 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5000 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
5002 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
5004 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
5005 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
5006 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
5007 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
5008 (ENDFILE_SPEC): Undefine.
5009 (STARTFILE_SPEC): Redefine for PA.
5011 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5013 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
5015 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
5017 * config.gcc: Add entries to supported PowerPC --with-cpu
5020 2002-01-21 Jakub Jelinek <jakub@redhat.com>
5022 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
5023 true for 64-bit mode only SSE registers in 32-bit mode.
5025 2002-01-21 Kazu Hirata <kazu@hxi.com>
5027 * unwind-dw2.c: Fix formatting.
5028 * unwind-dw2-fde.c: Likewise.
5029 * unwind-dw2-fde.h: Likewise.
5030 * unwind-pe.h: Likewise.
5031 * varasm.c: Likewise.
5032 * varray.h: Likewise.
5034 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5036 Remove workaround for register stack overwrite bug in mmix.
5037 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
5038 support for TARGET_REG_STACK_FILL_BUG.
5039 * config/mmix/mmix.h: Remove member has_call_without_parameters.
5040 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
5042 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
5043 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
5044 -mno-reg-stack-fill-bug-workaround.
5045 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
5046 machine member has_call_without_parameters.
5047 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
5048 -mreg-stack-fill-bug-workaround and
5049 -mno-reg-stack-fill-bug-workaround.
5050 (MMIX Options): Ditto.
5052 2002-01-21 Kazu Hirata <kazu@hxi.com>
5054 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
5056 Remove redundant code.
5058 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
5060 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
5061 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
5062 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
5063 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
5064 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
5065 out target macro definitions and non-target-specific comments
5066 mostly taken from old versions of the manual.
5068 2002-01-20 Kazu Hirata <kazu@hxi.com>
5070 * config/h8300/h8300.h: Fix comment formatting.
5071 * config/ia64/aix.h: Likewise.
5072 * config/ia64/ia64-protos.h: Likewise.
5073 * config/ia64/ia64.c: Likewise.
5074 * config/ia64/ia64.h: Likewise.
5075 * config/ia64/ia64intrin.h: Likewise.
5076 * config/ia64/linux.h: Likewise.
5077 * config/ia64/unwind-aix.c: Likewise.
5078 * config/ia64/unwind-ia64.c: Likewise.
5080 2002-01-20 Kazu Hirata <kazu@hxi.com>
5082 * config/h8300/h8300.c: Revise comments about shift code.
5084 2002-01-20 Kazu Hirata <kazu@hxi.com>
5086 * config/h8300/h8300.c (function_arg): Update a comment.
5088 2002-01-20 Kazu Hirata <kazu@hxi.com>
5090 * config/h8300/h8300.md: Update the comments at the beginning
5093 2002-01-20 Kazu Hirata <kazu@hxi.com>
5095 * config/i370/i370.c: Fix comment formatting.
5096 * config/i370/i370.h: Likewise.
5097 * config/i370/i370.md: Likewise.
5098 * config/i370/linux.h: Likewise.
5100 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5102 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
5104 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
5105 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
5108 2002-01-20 Graham Stott <grahams@redhat.com>
5110 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
5112 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
5114 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
5116 2002-01-19 Tom Rix <trix@redhat.com>
5118 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
5120 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
5122 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
5124 * function.c (assign_stack_local_1): Adjust x_frame_offset with
5125 STARTING_FRAME_PHASE.
5126 (STARTING_FRAME_PHASE): New.
5127 (instantiate_virtual_regs): Check saneness of
5128 STARTING_FRAME_PHASE.
5130 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
5132 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
5134 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
5136 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
5138 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
5139 be used for bootstrapping GCC 3.0.
5141 2002-01-18 Kazu Hirata <kazu@hxi.com>
5143 * config/h8300/h8300.md: Fix an insn length.
5145 2002-01-18 Kazu Hirata <kazu@hxi.com>
5147 * bitmap.h: Fix comment formatting.
5148 * combine.c: Likewise.
5149 * cppfiles.c: Likewise.
5150 * c-pragma.h: Likewise.
5151 * c-typeck.c: Likewise.
5153 * dwarf2out.c: Likewise.
5154 * function.c: Likewise.
5156 * genattrtab.c: Likewise.
5157 * gthr-win32.h: Likewise.
5158 * haifa-sched.c: Likewise.
5159 * predict.c: Likewise.
5160 * rtlanal.c: Likewise.
5162 * unwind-dw2-fde.h: Likewise.
5163 * unwind-pe.h: Likewise.
5164 * vmsdbgout.c: Likewise.
5166 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5168 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
5169 if type_required and passed decl.
5171 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
5173 * config.gcc (cpu_type): Include altivec.h in powerpc
5177 * config/rs6000/altivec.h: New.
5179 2002-01-17 David Edelsohn <edelsohn@gnu.org>
5181 * doc/install.texi (*-ibm-aix*): Update assembler and exception
5182 handling information.
5183 * doc/trouble.texi (Interoperation): Add libstdc++ information
5185 (Misunderstandings): Add template instantiation and static template
5186 member information for AIX.
5188 2002-01-17 Jason Merrill <jason@redhat.com>
5190 * dbxout.c (dbxout_type): Support const and volatile.
5192 * except.c (add_partial_entry): Remove backwards compatibility code.
5193 (end_protect_partials): Likewise.
5195 2002-01-17 Jakub Jelinek <jakub@redhat.com>
5197 * config/ia64/ia64.md (prologue_use): New.
5198 * config/ia64/ia64.c (ia64_expand_prologue): Use
5199 gen_prologue_use instead of gen_rtx_USE.
5200 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
5201 as CODE_FOR_pred_rel_mutex.
5202 (ia64_sched_reorder2): Likewise.
5204 2002-01-16 Eric Christopher <echristo@redhat.com>
5206 * config/mips/r3900.h: Reformat.
5207 (SUBTARGET_CPP_SIZE_SPEC): Remove.
5208 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
5209 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
5210 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
5211 * config/mips/t-elf: Remove mips3 multilib.
5213 2002-01-16 H.J. Lu <hjl@gnu.org>
5215 * config/mips/linux.h: Include "mips/abi64.h".
5217 2002-01-16 H.J. Lu <hjl@gnu.org>
5219 * config/mips/t-linux: New.
5221 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
5223 * config/mips/linux.h: Don't include "gofast.h".
5224 (INIT_SUBTARGET_OPTABS): Removed.
5226 2002-01-16 Kazu Hirata <kazu@hxi.com>
5228 * config/h8300/h8300-protos.h: Replace emit_a_shift with
5230 * config/h8300/h8300.c: Likewise.
5231 * config/h8300/h8300.md: Likewise.
5233 2002-01-16 Kazu Hirata <kazu@hxi.com>
5235 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
5236 spaces after an opcode name.
5237 (pushqi1_h8300hs): Likewise.
5238 (pushhi1_h8300hs): Likewise.
5240 2002-01-16 Kazu Hirata <kazu@hxi.com>
5242 * doc/extend.texi: Replace "option" with "attribute"
5245 2002-01-16 Jakub Jelinek <jakub@redhat.com>
5247 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
5248 (and:DI () (const_int -8)).
5249 (split_small_symbolic_mem_operand): Split
5250 (mem (and:DI () (const_int -8)).
5252 2002-01-16 Jakub Jelinek <jakub@redhat.com>
5255 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
5256 same way as TYPE_IMUL.
5257 (ultrasparc_sched_reorder): Likewise.
5258 * config/sparc/sparc.md (type): Add comment to update
5259 ultrasparc_sched_reorder when making changes.
5261 2002-01-16 Kazu Hirata <kazu@hxi.com>
5263 * doc/invoke.texi: Change the dump file name of block
5264 reordering pass from 28.bbro to 29.bbro.
5267 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
5269 * i386.md (minsf splitter): Fix pasto.
5271 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
5273 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
5274 to frame pointer initialisation instruction.
5275 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
5276 initialisation instruction.
5277 (soft_df_operand): Do not accept the IP register.
5278 (nonimmediate_soft_df_operand): Do not accept the IP register.
5280 2002-01-16 Jakub Jelinek <jakub@redhat.com>
5283 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
5284 MASK_V8 being both set.
5286 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
5288 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
5289 insn for GOT register; add REG_MAYBE_DEAD notes instead.
5290 config/s390/s390.md (call, call_value): Add GOT register to
5291 CALL_INSN_FUNCTION_USAGE where needed.
5292 (call_exp, call_value_exp): New.
5294 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
5296 * config/arm/arm.c: General formatting tidy up.
5298 2002-01-16 Graham Stott <grahams@redhat.com>
5300 * calls.c (try_to_integrate): Use "(size_t)" intermediate
5301 cast and when casting an integer literal to "rtx" pointer.
5302 (expand_call): Likewise.
5303 * flow.c (try_pre_increment): Likewise.
5304 (find_use_as_address): Likewise.
5305 * integrate.c (expand_iline_function): Likewise.
5306 * regmove.c (try_auto_increment): Likewise.
5308 2002-01-16 Graham Stott <grahams@redhat.com>
5310 * sched-rgn.c (passed): Use sbitmap_free.
5313 (in_queue): Likewise.
5314 (in_stack): Likewise.
5316 2002-01-15 Eric Christopher <echristo@redhat.com>
5318 * flow.c (propagate_one_insn): Change to use fatal_insn.
5320 2002-01-15 Kazu Hirata <kazu@hxi.com>
5322 * expmed.c (extract_fixed_bit_field): Remove unused code.
5323 * system.h: Poison SLOW_ZERO_EXTEND.
5324 * doc/tm.texi: Remove.
5325 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
5326 * config/arm/arm.h: Likewise.
5327 * config/avr/avr.h: Likewise.
5328 * config/clipper/clipper.h: Likewise.
5329 * config/convex/convex.h: Likewise.
5330 * config/d30v/d30v.h: Likewise.
5331 * config/dsp16xx/dsp16xx.h: Likewise.
5332 * config/elxsi/elxsi.h: Likewise.
5333 * config/fr30/fr30.h: Likewise.
5334 * config/h8300/h8300.h: Likewise.
5335 * config/i370/i370.h: Likewise.
5336 * config/i386/i386.h: Likewise.
5337 * config/m68k/m68k.h: Likewise.
5338 * config/mips/mips.h: Likewise.
5339 * config/ns32k/ns32k.h: Likewise.
5340 * config/pdp11/pdp11.h: Likewise.
5341 * config/pj/pj.h: Likewise.
5342 * config/s390/s390.h: Likewise.
5343 * config/sh/sh.h: Likewise.
5344 * config/stormy16/stormy16.h: Likewise.
5345 * config/v850/v850.h: Likewise.
5346 * config/vax/vax.h: Likewise.
5347 * config/we32k/we32k.h: Likewise.
5349 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
5351 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
5352 (altivec_lvsl): Change constraint to b.
5353 (altivec_lvsr): Same.
5354 (altivec_lvebx): Same.
5355 (altivec_lvehx): Same.
5356 (altivec_lvewx): Same.
5357 (altivec_lvxl): Same.
5358 (altivec_lvx): Same.
5359 (altivec_stvx): Add parallel.
5360 (altivec_stvxl): Same.
5361 (altivec_stvehx): Same.
5362 (altivec_stvebx): Same.
5363 (altivec_stvebx): Same.
5365 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
5367 * config.gcc: Change altivec.h to altivec-defs.h.
5369 * config/rs6000/altivec.h: Delete.
5371 * config/rs6000/altivec-defs.h: Add.
5373 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
5375 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
5378 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
5379 less than or equal to eight bytes.
5381 * vax.md (andsi3): Remove constraints and change SET destination
5382 operand type to nonimmediate_operand.
5383 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
5384 when it is a CONST_INT.
5386 2002-01-15 Jason Merrill <jason@redhat.com>
5388 * c-common.def (FILE_STMT): New code.
5389 * c-common.c (statement_code_p): It's a statement.
5390 * c-common.h (stmt_tree_s): Add x_last_filename.
5391 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
5392 (last_expr_filename): New macro.
5393 * c-semantics.c (begin_stmt_tree): Initialize it.
5394 (add_stmt): If the filename changed, also insert a
5396 (expand_stmt): Handle seeing one.
5398 2002-01-15 Eric Christopher <echristo@redhat.com>
5400 * flow.c (propagate_one_insn): Add error message and print out
5403 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
5405 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
5406 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
5407 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
5408 TRAMPOLINE_ALIGNMENT.
5409 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
5411 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
5412 PCC_BITFIELD_TYPE_MATTERS.
5413 * config/interix.h (STDC_VALUE): Remove. Use
5414 STDC_0_IN_SYSTEM_HEADERS.
5415 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
5416 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
5417 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
5419 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
5421 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
5422 not work on this platform currently.
5424 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
5426 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
5427 readonly_warning in _().
5429 2002-01-15 Douglas B Rupp <rupp@gnat.com>
5431 * gcc.c (delete_if_ordinary): Backout previous change.
5433 2002-01-15 Kazu Hirata <kazu@hxi.com>
5435 * config/h8300/h8300.c (print_operand): Remove support for
5436 unused operand characters.
5438 * read-rtl.c: Fix formatting.
5440 * recog.c: Likewise.
5441 * regclass.c: Likewise.
5442 * regmove.c: Likewise.
5443 * reg-stack.c: Likewise.
5444 * reload1.c: Likewise.
5445 * rtlanal.c: Likewise.
5447 2002-01-15 Kazu Hirata <kazu@hxi.com>
5449 * config/i386/i386.c: Fix formatting.
5451 2002-01-15 Jakub Jelinek <jakub@redhat.com>
5453 * c-typeck.c (process_init_element): Don't save_expr
5454 COMPOUND_LITERAL_EXPR if just its initializer will be used.
5456 2002-01-15 David Edelsohn <edelsohn@gnu.org>
5458 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
5459 emit optional traceback table if optimize_size or TARGET_ELF.
5460 * config/rs6000/rs6000.md (prefetch): New.
5462 2002-01-15 Andreas Jaeger <aj@suse.de>
5464 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
5466 2002-01-15 Kazu Hirata <kazu@hxi.com>
5468 * mips-tfile.c: Fix formatting.
5470 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
5472 * unroll.c (final_reg_note_copy): Fix previous commit.
5474 2002-01-14 Kazu Hirata <kazu@hxi.com>
5476 * config/h8300/h8300-protos.h: Remove the prototype for
5478 * config/h8300/h8300.c (eq_operator): Remove.
5480 2002-01-14 Richard Henderson <rth@redhat.com>
5482 * config/i386/i386.md (prefetch): Tidy.
5483 (prefetch_3dnow): Fix locality operand.
5485 2002-01-14 Richard Henderson <rth@redhat.com>
5487 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
5488 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
5490 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
5492 * reload1.c (reload_combine): Pass reg_sum replacement through
5493 copy_rtx in loop performing multiple changes.
5495 2002-01-14 Jakub Jelinek <jakub@redhat.com>
5497 * except.c (remove_unreachable_regions): New.
5498 (free_eh_status): Clear exception_handler_labels.
5499 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
5500 (find_exception_handler_labels): Don't add the same label more than
5502 (remove_exception_handler_label): Don't die if
5503 find_exception_handler_labels hasn't been called for the current
5506 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
5508 * toplev.c (rest_of_compilation): Rebuild jump labels after
5511 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
5513 * doc/extend.texi: Move documentation of X86 built-in functions
5515 * doc/invoke.texi: From here.
5516 * doc/sourcebuild.texi: Document location of documentation for
5517 machine built-in functions.
5519 2002-01-13 Christopher Faylor <cgf@redhat.com>
5521 * cppfiles.c (TEST_THRESHOLD): New macro.
5522 (SHOULD_MMAP): Ditto.
5523 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
5526 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
5528 * unroll.c (final_reg_note_copy): Properly handle
5530 (unroll_loops): Fix LOOP_CONDITION heuristics.
5532 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
5534 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
5535 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
5537 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
5539 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
5542 2002-01-14 Tom Rix <trix@redhat.com>
5544 * config/rs6000/rs6000.md: Fix typo with sradi.
5546 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
5548 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
5549 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
5550 (clrstrdi, clrstrsi): Adapt callers.
5552 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
5554 (movti splitter): Never use register 0 as base register.
5556 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
5558 * combine.c (simplify_shift_const): Always generate new rtx
5559 for shift expression instead of reusing given expression.
5561 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5563 * config/alpha/alpha.c (alpha_expand_mov): Don't call
5564 alpha_legitimize_address unless mode is Pmode.
5566 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
5568 * doc/md.texi (Modifiers): Document the '*' constraint for the
5571 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
5572 * doc/extend.texi (Function Attributes): 'interrupt' is valid
5575 2002-01-13 Richard Henderson <rth@redhat.com>
5577 * reload.c (find_reloads): Use a hard reg destination as reload reg
5578 for an input reload of the source.
5580 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5582 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
5585 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
5587 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
5588 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
5590 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
5592 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5594 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
5596 2002-01-12 Tom Rix <trix@redhat.com>
5598 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
5601 2002-01-12 Richard Henderson <rth@redhat.com>
5603 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
5605 * doc/invoke.texi: Update Alpha options.
5607 * doc/invoke.texi: Update i386 built-in function lists.
5609 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
5611 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
5612 referencing outside.
5614 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5616 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
5617 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
5618 offsets, and change line folding.
5619 * optabs.c (expand_binop): Remove warnings.
5620 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
5622 2002-01-12 Graham Stott <grahams@redhat.com>
5624 * attribs.c (handle_deprecated_attribute): constify WHAT.
5625 * diagnostic.c (warn_deprecated_use): Add braces, fixes
5626 dangling else warning and constify WHAT.
5627 * except.h (struct function, struct inline_remap): Move
5628 struct tag forward defs before all prototypes.
5629 (duplicate_eh_regions): Whitespace.
5631 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
5633 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
5634 MODE_BASE_REG_CLASS.
5635 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
5637 2002-01-12 Richard Henderson <rth@redhat.com>
5639 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
5640 (ix86_expand_vector_move): New.
5641 (bdesc_2arg): Remove andps, andnps, orps, xorps.
5642 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
5643 Remove old prefetch builtins. Special case the logicals removed above.
5644 (ix86_expand_builtin): Likewise.
5645 (safe_vector_operand): Use V4SFmode, not TImode.
5646 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
5647 (ix86_expand_timode_binop_builtin): New.
5648 * config/i386/i386-protos.h: Update.
5649 * config/i386/i386.h (enum ix86_builtins): Update.
5650 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
5651 Use ix86_expand_vector_move in vector move expanders.
5652 (movti_internal, movti_rex64): Add xorps alternative.
5653 (sse_clrv4sf): Rename and adjust from sse_clrti.
5654 (prefetch): Don't work so hard.
5655 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
5656 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
5657 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
5659 2002-01-11 Richard Henderson <rth@redhat.com>
5661 * config/i386/mmintrin.h: New file.
5662 * config/i386/xmmintrin.h: New file.
5663 * config.gcc (i?86-*-*): Add extra_headers.
5664 * simplify-rtx.c (simplify_unary_operation): Handle saturating
5666 (simplify_binary_operation): Handle saturating arithmetic codes.
5667 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
5668 not the lowpart subreg.
5669 (ix86_expand_builtin): Return a TImode dummy register instead of 0
5671 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
5673 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5675 * conflict.c (conflict_graph_compute): Free regsets when finished.
5676 * ssa.c (compute_coalesced_reg_partition): Likewise.
5678 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5680 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
5681 every where we allocate a register.
5683 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5685 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
5686 * lcm.c (compute_earliest, compute_farthest): Likewise.
5688 2002-01-11 Janis Johnson <janis187@us.ibm.com>
5690 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
5692 2002-01-11 Janis Johnson <janis187@us.ibm.com>
5694 * doc/rtl.texi (Insns): Fix 2 typos.
5696 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
5698 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
5699 options. Use @table @gcctabopt for MMIX options. Add index
5700 entries for MMIX options. Start new paragraph with first
5701 heading of the machine-dependent options.
5703 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
5706 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
5707 * combine.c (force_to_mode): Same.
5708 * reload1.c (clear_reload_reg_in_use): Same.
5710 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
5712 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
5715 2002-01-11 Andreas Jaeger <aj@suse.de>,
5716 Brad Lucier <lucier@math.purdue.edu>
5718 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
5721 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
5723 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
5724 Protect with IN_LIBGCC.
5725 (LINK_EH_SPEC): Add required trailing space.
5727 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
5729 * c-tree.h: Move function declarations so that they are listed
5730 under the filename which contains them.
5731 (check_identifier, finish_decl_top_level,
5732 lookup_name_current_level_global, shadow_record_fields): Remove.
5734 2002-01-11 Andreas Jaeger <aj@suse.de>
5736 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
5739 2002-01-10 Richard Henderson <rth@redhat.com>
5741 * config/alpha/alpha.c (print_operand): Add 'J'.
5742 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
5743 new operand with the sequence number for the lituse. When splitting
5744 the insns, use gen_movdi_er_high_g and generate a sequence number.
5745 (gen_movdi_er_high_g): Print the sequence number if non-zero.
5747 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
5749 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
5750 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
5752 (altivec_expand_builtin): Same.
5753 (altivec_expand_stv_builtin): New.
5755 * config/rs6000/rs6000.h (rs6000_builtins): Same.
5757 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
5758 ("altivec_lvehx"): New.
5759 ("altivec_lvewx"): New.
5760 ("altivec_lvxl"): New.
5761 ("altivec_lvx"): New.
5762 ("altivec_stvx"): New.
5763 ("altivec_stvebx"): New.
5764 ("altivec_stvehx"): New.
5765 ("altivec_stvewx"): New.
5766 ("altivec_stvxl"): New.
5768 2002-01-10 Richard Henderson <rth@redhat.com>
5770 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
5771 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
5772 care not to delete instructions twice.
5774 2002-01-10 Zack Weinberg <zack@codesourcery.com>
5776 * toplev.c: Don't declare environ (it's not used anywhere).
5777 * configure.in: Don't check for declaration of environ.
5778 * config/i386/xm-mingw32.h: Don't #define environ.
5779 * config.in, configure: Regenerate.
5781 2002-01-10 Zack Weinberg <zack@codesourcery.com>
5783 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
5784 * configure: Regenerate.
5786 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
5787 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
5788 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
5790 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
5791 LIMITS_H_TEST here, not in m68k/x-next.
5792 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
5793 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
5795 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
5796 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
5797 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
5799 * config/i386/x-djgpp: Renamed i386/t-djgpp.
5800 * config/m88k/x-dolph: Renamed m88k/t-dolph.
5801 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
5802 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
5803 replacement of quadlib.asm with quadlib.c.
5805 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
5806 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
5807 config/rs6000/xm-beos.h: Delete file.
5809 * config.gcc: Update to match above changes.
5811 2002-01-10 Kazu Hirata <kazu@hxi.com>
5813 * config/h8300/h8300.h: Fix comment typos.
5814 * config/h8300/h8300.md: Likewise.
5815 * config/h8300/lib1funcs.asm: Likewise.
5817 2002-01-10 Dale Johannesen <dalej@apple.com>
5819 PR optimization/5269
5820 * unroll.c (precondition_loop_p): Make *increment be the correct
5821 sign when n_iterations known, to avoid confusing caller.
5823 2002-01-10 Kazu Hirata <kazu@hxi.com>
5825 * doc/extend.texi (deprecated): Fix a typo.
5827 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
5829 * basic-block.h (update_br_prob_note): Declare.
5830 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
5831 (try_forward_edges): Care negative frequencies and update note.
5832 (outgoing_edges_match): Tweek conditional merging heuristics.
5833 (try_crossjump_to_edge): use update_br_prob_note.
5834 * cfglayout.c (fixup_reorder_chain): Likewise.
5835 * cfrtl.c (update_br_prob_note): New.
5836 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
5838 * i386.c (ix86_decompose_address): Return -1 if address contains
5840 (legitimate_address_p): Require ix86_decompose_address to return 1.
5842 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
5843 (cprop_insn): Likewise.
5845 2002-01-10 Kazu Hirata <kazu@hxi.com>
5847 * toplev.c: Fix formatting.
5849 * tree-dump.c: Likewise.
5850 * unroll.c: Likewise.
5851 * unwind-dw2.c: Likewise.
5852 * unwind-dw2-fde.c: Likewise.
5853 * unwind-dw2-fde-glibc.c: Likewise.
5854 * unwind-sjlj.c: Likewise.
5856 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
5858 * doc/invoke.texi: Document PDP-11 options.
5860 2002-01-10 Kazu Hirata <kazu@hxi.com>
5862 * config/h8300/h8300.h: Fix formatting.
5864 2002-01-10 Ira Ruben <ira@apple.com>
5866 Add __attribute__ ((deprecated)).
5867 * extend.texi: Document __attribute__ ((deprecated)).
5868 * invoke.texi: Document -Wno-deprecated-declarations.
5869 * testsuite/g++.dg/other/deprecated.C: New C++ test.
5870 * testsuite/gcc.dg/deprecated.c: New C test.
5871 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
5872 (c_common_attribute_table): Add "deprecated" entry.
5873 (handle_deprecated_attribute): New function.
5874 * c-decl.c (deprecated_states): New enum.
5875 deprecated_state: State of "deprecated" handling.
5876 (start_decl): Set deprecated_state based on attributes.
5877 (grokdeclarator): Test for deprecated uses, propagate attribute.
5878 * c-typeck.c (build_component_ref): Test for deprecated fields.
5879 (build_external_ref): Test for deprecated primaries.
5880 * diagnostic.c (warn_deprecated_use) New function to issue
5881 warnings about __attribute__ ((depricated)) references.
5882 * flags.h (warn_deprecated_decl): Extern declared for
5883 -W[no-]deprecated-declarations option.
5884 * print-tree.c (print_node): Show deprecated flag status.
5885 * toplev.c (warn_deprecated_decl): Defined.
5886 (W_options): Added "deprecated-declaration".
5887 * toplev.h (warn_deprecated_use): Extern declared.
5888 * tree.h (struct tree_common): Define deprecated_flag.
5889 (TREE_DEPRECATED): New macro to access flag.
5890 * cp/call.c (build_call): Test for deprecated calls.
5891 * cp/class.c (add_implicitly_declared_members): Set global
5892 flag to tell grokdeclarator to not issue deprecated warnings.
5893 * cp/cp-tree.h: Add extern for adding_implicit_members.
5894 * cp/decl.c (deprecated_states): New enum.
5895 (start_decl): Set deprecated_state based on attributes.
5896 (grokdeclarator): Test for deprecated uses, propagate attribute.
5897 * cp/lex.c (do_identifier): Test for deprecated primaries.
5898 * cp/typeck.c (build_component_ref): Test for deprecated fields.
5900 2002-01-10 Ira Ruben <ira@apple.com>
5902 Fix to assign attributes to inline member functions.
5903 * cp/decl.c (start_method): Handle attrlist.
5905 2002-01-10 Kazu Hirata <kazu@hxi.com>
5907 * combine.c (expand_field_assignment): Use subreg_lsb().
5909 2002-01-10 David Edelsohn <edelsohn@gnu.org>
5911 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
5912 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
5913 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
5914 Recurse for any operand of AND as long as constant is non-zero.
5916 2002-01-10 Kazu Hirata <kazu@hxi.com>
5918 * config/h8300/h8300.md: Remove constraints from expanders.
5920 2002-01-10 Kazu Hirata <kazu@hxi.com>
5922 * varasm.c: Fix formatting.
5923 * varray.c: Likewise.
5924 * vmsdbgout.c: Likewise.
5925 * xcoffout.c: Likewise.
5927 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
5929 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
5930 update edge probabilities to match.
5932 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
5934 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
5936 * doc/languages.texi, doc/sourcebuild.texi: New files.
5937 * doc/configfiles.texi: Make a subsubsection. Update.
5938 * doc/configterms.texi: Add @node. Remove warning that this isn't
5939 instructions for building GCC.
5940 * doc/makefile.texi: Make a subsection.
5941 * doc/gccint.texi: Update.
5943 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
5945 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
5947 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
5949 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
5951 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
5953 * optabs.c (expand_fix): Look for wider integer modes first.
5955 * i386.md (mov?f): Avoid the fake const double trick for medium
5957 (min?f*/max?f*): Prohibit memory operands for i387 variant.
5958 (fop_df_4): Disable for SSE compilation.
5960 2002-01-10 Graham Stott <grahams@redhat.com>
5962 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
5963 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
5965 2002-01-10 Richard Henderson <rth@redhat.com>
5967 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
5969 2002-01-10 Richard Henderson <rth@redhat.com>
5971 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
5972 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
5974 2002-01-10 Kazu Hirata <kazu@hxi.com>
5976 * combine.c (can_combine_p): Fix a comment typo.
5978 2002-01-09 Zack Weinberg <zack@codesourcery.com>
5980 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
5981 empty list correctly. Change loop index $t to $f for
5982 consistency with rest of Makefile.
5984 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
5986 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
5987 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
5989 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
5990 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
5991 (altivec_init_builtins): Same.
5992 (altivec_expand_unop_builtin): Return NULL_RTX on error.
5993 (altivec_expand_binop_builtin): Same.
5994 (altivec_expand_ternop_builtin): Same.
5997 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
5998 ("altivec_vctuxs"): Fix typo.
5999 ("altivec_vnmsubfp"): Same.
6000 ("altivec_dssall"): New.
6001 ("altivec_mfvscr"): New.
6002 ("altivec_dss"): New.
6003 ("altivec_lvsl"): New.
6004 ("altivec_lvsr"): New.
6005 ("altivec_dstt"): New.
6006 ("altivec_dstst"): New.
6007 ("altivec_dststt"): New.
6008 ("altivec_dst"): New.
6010 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
6011 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
6013 2002-01-09 Richard Henderson <rth@redhat.com>
6015 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
6017 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
6019 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
6021 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
6023 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
6025 2002-01-09 Kazu Hirata <kazu@hxi.com>
6027 * read-rtl.c: Fix formatting.
6029 * regclass.c: Likewise.
6030 * regrename.c: Likewise.
6031 * reg-stack.c: Likewise.
6032 * reload1.c: Likewise.
6033 * reload.c: Likewise.
6036 2002-01-09 Kazu Hirata <kazu@hxi.com>
6038 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
6039 to extract items in the expr_list chain.
6041 2002-01-09 Richard Henderson <rth@redhat.com>
6043 * config/vax/vax.c (vax_rtx_cost): Never abort.
6045 * config/vax/vax.h (REAL_ARITHMETIC): Define.
6047 2002-01-09 Jan Hubicka <jh@suse.cz>
6049 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
6051 2002-01-09 Richard Henderson <rth@redhat.com>
6053 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
6054 Unify code from various alternatives.
6056 2002-01-09 Richard Henderson <rth@redhat.com>
6058 * regrename.c (copy_value): Ignore the copy if the source register
6059 is present in the value chain with a narrower mode.
6061 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6063 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
6064 for the c4x target. Also improve layout.
6066 2002-01-09 Richard Henderson <rth@redhat.com>
6068 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
6069 * config/m32r/m32r.md (and ior xor splitters): Swap operands
6070 to match insn patterns.
6072 2002-01-09 Richard Henderson <rth@redhat.com>
6074 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
6075 (copyprop_hardreg_forward_1): Likewise.
6077 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
6079 * pa.md (decrement_and_branch_until_zero): Change predicate for
6080 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
6082 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6084 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
6085 gets undefined. For Darwin.
6087 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6089 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
6091 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6093 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
6095 2002-01-08 Richard Henderson <rth@redhat.com>
6097 * regrename.c (copy_value): Ignore overlapping copies.
6099 2002-01-08 Richard Henderson <rth@redhat.com>
6101 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
6102 as needed to avoid shared structure.
6104 2002-01-08 Kazu Hirata <kazu@hxi.com>
6106 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
6109 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
6111 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
6112 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
6113 documentation of obsolete macros.
6114 * system.h: Poison these macros.
6115 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
6116 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
6117 config/c4x/c4x.h, config/clipper/clipper.h,
6118 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
6119 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
6120 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
6121 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
6122 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
6123 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
6124 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6125 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
6126 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
6127 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
6128 config/sparc/sparc.h, config/stormy16/stormy16.h,
6129 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
6130 definitions and commented out definitions of obsolete macros.
6131 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
6132 of MAX_INT_TYPE_SIZE.
6134 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
6136 * config/s390/s390.c (s390_preferred_reload_class): Never
6137 return ADDR_REGS if it isn't a subset of the given class.
6138 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
6139 FP_REGS, but all superclasses as well.
6141 * config/s390/s390.c (s390_function_profiler): Fix thinko.
6143 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
6144 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
6145 must not be a const_int.
6147 2002-01-08 Richard Henderson <rth@redhat.com>
6149 * Makefile.in (toplev.o): Depend on options.h.
6150 (gcc.o): Depend on specs.h.
6152 2002-01-08 Jakub Jelinek <jakub@redhat.com>
6154 * expr.c (store_expr): Convert VOIDmode constants back to target's
6157 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6159 * doc/invoke.texi: Markup gcc as @command. Refer to
6160 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
6161 of http://gcc.gnu.org/thanks.html.
6163 2002-01-08 Dale Johannesen <dalej@apple.com>
6165 * config/rs6000/rs6000.md: Add missing int register
6166 target case to movdf_low.
6168 2002-01-08 Zack Weinberg <zack@codesourcery.com>
6170 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
6171 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
6172 (cppinit.o): Depend on except.h.
6173 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
6174 s-specs): New rules.
6176 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
6177 Don't create specs.h/options.h/gencheck.h here. Remove
6178 unnecessary variable settings from last argument of AC_OUTPUT.
6179 * config.in, configure: Regenerate.
6180 * intl.c: Hardcode package name as "gcc".
6182 * cppinit.c: Include except.h.
6183 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
6185 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
6186 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
6187 (!)USING_SJLJ_EXCEPTIONS.
6188 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
6190 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
6192 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
6193 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
6194 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
6195 documentation of obsolete macros.
6196 * system.h: Poison these macros.
6197 * config/d30v/d30v.h, config/ns32k/encore.h,
6198 config/stormy16/stormy16.h: Remove definitions and commented out
6199 definitions of obsolete macros.
6201 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
6203 * objc/objc-act.c (handle_class_ref): Mark the declaration of
6204 %sobjc_class_ref_%s as used - to prevent unwanted compiler
6207 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
6209 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
6210 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
6211 to insn adjusting stack/frame pointer.
6212 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
6213 accept operands that cause the insn to be non-splittable.
6215 2002-01-08 Graham Stott <grahams@redhat.com>
6217 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
6218 (C_TYPE_FIELDS_VOLATILE): Likewise.
6219 (C_TYPE_BEING_DEFINED): Likewise.
6220 (C_IS_RESERVED_WORD): Likewise.
6221 (C_TYPE_VARIABLE_SIZE): Likewise.
6222 (C_DECL_VARIABLE_SIZE): Likewise.
6223 (C_MISSING_PROTOTYPE_WARNED): Likewise.
6224 (C_SET_EXP_ORIGINAL_CODE): Likewise.
6225 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
6227 (C_DECL_ANTICIPATED): Likewise.
6228 (c_build_type_variant): Add parenthesis.
6230 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
6232 * gcc.c (option_map): Remove --version.
6233 (process_command): Handle -fversion following the GNU Coding
6234 Standards. Partially addresses PR other/704.
6236 2002-01-08 Graham Stott <grahams@redhat.com>
6238 * combine.c (combine_instructions): Fix typo.
6240 2002-01-08 Graham Stott <grahams@redhat.com>
6242 * debug.h: Use "tree" and "rtx" throughout.
6244 * debug.c: Likewise.
6246 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
6248 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
6249 constant pool, use the pool's version of the symbol instead.
6251 2002-01-07 Richard Henderson <rth@redhat.com>
6253 * regrename.c (find_oldest_value_reg): Ignore the value chain if
6254 the original register was copied in a mode with a fewer number of
6255 hard registers than the desired mode.
6256 (copyprop_hardreg_forward_1): Likewise.
6257 (debug_value_data): Fix loop test.
6258 * toplev.c (parse_options_and_default_flags): Reenable
6259 -fcprop-registers at -O1.
6261 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
6263 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
6264 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
6266 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
6269 * config/rs6000/rs6000.md: Add altivec predicate patterns.
6271 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
6273 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
6274 (pa_output_function_prologue): Output local label at the beginning of
6275 the prologue when profiling.
6276 (hppa_profile_hook): Use the local label rather than the function label.
6277 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
6279 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
6281 * config/rs6000/rs6000.c (print_operand): Remove extra space.
6282 (altivec_expand_unop_builtin): Fix thinko.
6283 (altivec_expand_binop_builtin): Same.
6284 (altivec_expand_ternop_builtin): Same.
6285 (altivec_expand_builtin): Same.
6287 2002-01-07 Richard Henderson <rth@redhat.com>
6289 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
6291 2002-01-07 Jason Merrill <jason@redhat.com>
6293 * unwind-dw2.c (execute_cfa_program): Use < again.
6295 2002-01-07 Jakub Jelinek <jakub@redhat.com>
6297 * predict.c (combine_predictions_for_insn): Avoid division by zero.
6299 2002-01-07 Jakub Jelinek <jakub@redhat.com>
6301 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
6302 Don't allow -1 - x -> ~x simplifications in the first pass.
6304 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
6306 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
6308 (altivec_expand_binop_builtin): Same.
6309 (altivec_expand_unop_builtin): Same.
6310 (print_operand): Fix typo.
6311 (bdesc_1arg): Add vupk* variants.
6313 * rs6000.h (rs6000_builtins): Add vupk* enums.
6315 * rs6000.md: Add altivec_vupk* variants.
6317 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
6319 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
6320 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
6321 and last update dates.
6323 2002-01-07 Janis Johnson <janis187@us.ibm.com>
6325 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
6327 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
6329 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
6330 * config/avr/avr.h (CPP_SPEC): Likewise.
6331 (LINK_SPEC): Likewise.
6332 (CRT_BINUTILS_SPECS): Likewise.
6333 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6334 * doc/invoke.texi (AVR Options): Document them.
6336 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
6338 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
6341 2002-01-07 Graham Stott <grahams@redhat.com>
6343 * config/i386/i386.h: Update copyright date.
6344 (HALF_PIC_PTR): Add parenthesis.
6345 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
6346 (CONSTANT_ALIGNMENT): Add parenthesis.
6347 (DATA_ALIGNMENT): Likewise.
6348 (LOCAL_ALIGNMENT): Likewise.
6349 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
6350 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
6351 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
6352 (HARD_REGNO_NREGS): Add paranethesis.
6353 (VALID_SSE_REG_MODE): Whitespace.
6354 (VALID_MMX_REG_MODE): Whitespace.
6355 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
6356 (ix86_hard_regno_mode_ok): Add parenthesis.
6357 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
6358 (RETURN_IN_MEMORY): Whitespace.
6359 (N_REG_CLASSES): Add parenthesis.
6360 (INTEGER_CLASS_P): Add parenthesis and wrap.
6361 (FLOAT_CLASS_P): Likewise.
6362 (SSE_CLASS_P): Likewise.
6363 (MMX_CLASS_P): Likewise.
6364 (MAYBE_INTEGER_CLASS_P): Likewise.
6365 (MAYBE_FLOAT_CLASS_P): Likewise.
6366 (MAYBE_SSE_CLASS_P): Likewise.
6367 (MAYBE_MMX_CLASS_P): Likewise.
6368 (Q_CLASS_P): Likewise.
6369 (GENERAL_REGNO_P): Uppercase macro parameter.
6370 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
6371 (FP_REGNO_P): Likewise.
6372 (ANY_FP_REGNO_P): Uppercase macro parameter.
6373 (SSE_REGNO_P): Likewise.
6374 (SSE_REGNO): Likewise.
6375 (SSE_REG_P): Likewise.
6376 (SSE_FLOAT_MODE_P): Likewise.
6377 (MMX_REGNO_P): Likewise.
6378 (MMX_REG_P):Likewise.
6379 (STACK_REG_P): Likewise.
6380 (NON_STACK_REG_P): Likewise.
6381 (STACK_TOP_P): Likewise.
6382 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
6383 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
6384 (SECONDARY_MEMORY_NEEDED): Likewise.
6385 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
6386 (MD_ASM_CLOBBERS): Whitespace and wrap.
6387 (MUST_PASS_IN_STACK): Whitespace and wrap.
6388 (RETURN_POPS_ARGS): Add parenthesis.
6389 (INIT_CUMULATIVE_ARGS): Likewise.
6390 (FUNCTION_ARG): Likewise.
6391 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
6392 (SETUP_INCOMING_VARARGS): Likewise.
6393 (BUILD_VA_LIST_TYPE): Add parenthesis.
6394 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
6396 (EXPAND_BUILTIN_VA_ARG): Likewise.
6397 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
6398 (INITIALIZE_TRAMPOLINE): Add parenthesis.
6399 (INITIAL_ELIMINATION_OFFSET): Likewise.
6400 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
6401 (REGNO_OK_FOR_BASE_P): Likewise.
6402 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
6403 (REGNO_OK_FOR_DIREG_P): Likewise.
6404 (REG_OK_FOR_INDEX_P): Whitespace.
6405 (REG_OK_FOR_BASE_P): Whitespace.
6406 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
6408 (FIND_BASE_TERM): Fix typo.
6409 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
6410 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
6411 (SYMBOLIC_CONST; Whitespace.
6412 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
6413 (ENCODE_SECTION_INFO): Whitespace.
6414 (FINALIZE_PIC): Remove do { ... } while (0).
6415 (PROMOTE_MODE): Wrap in do { ... } while (0).
6416 (CONST_COSTS): Whitespace.
6417 (RTX_COSTS): Add paramethesis, whitespace and wrap.
6418 (REGISTER_MOVE_COST): Add parenthesis.
6419 (MEMORY_MOVE_COST): Likewise.
6420 (EXTRA_CC_MODES): Whitespace.
6421 (SELECT_CC_MODE): Add parenthesis and whitespace.
6422 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
6423 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
6424 (ASM_OUTPUT_LABEL): Add paramethesis.
6425 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
6426 (ASM_OUTPUT_REG_POP): Likewise.
6427 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
6428 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6430 * config/i386/i386.c: Update copyright.
6431 (CHECK_STACK_LIMIT): Add parenthesis.
6432 (AT_BP): Uppercase macro parameter.
6433 (x86_64_int_parameter_registers): Constify.
6434 (x86_64_int_return_registers): Likewise.
6435 (ix86_compare_op0): Use rtx.
6436 (construct_container): Constify INTREG parameter.
6437 (function_arg): Use rtx.
6439 * diagnostic.h: Update copyright date.
6440 (output_buffer_state): Add parenthesis.
6441 (output_buffer_format_args): Likewise.
6443 * combine.c (combine_instructions): Replace XEXP (links, 0)
6446 2002-01-06 H.J. Lu <hjl@gnu.org>
6448 * cfgcleanup.c (thread_jump): Fix 2 typos.
6450 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
6452 * config.gcc: Add support for --enable-altivec.
6454 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
6456 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
6458 2002-01-06 Jakub Jelinek <jakub@redhat.com>
6460 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
6461 __objc_class_name_*.
6463 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
6465 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
6467 2002-01-06 Richard Henderson <rth@redhat.com>
6469 * reorg.c (emit_delay_sequence): Remove death notes, not merely
6470 nop them out. Increment label reference count for REG_LABEL.
6471 (fill_slots_from_thread): Frob label reference count around
6472 delete_related_insns.
6474 2002-01-05 Richard Henderson <rth@redhat.com>
6476 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
6479 2002-01-05 Richard Henderson <rth@redhat.com>
6481 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
6482 * integrate.c (output_inline_function): Likewise.
6483 * toplev.c (rest_of_compilation): Do it here instead. Move call
6484 to remove_unnecessary_notes after emitting abstract instance.
6485 Force an emitted nested function to have its parent emited as well.
6486 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
6488 (rtl_for_decl_location): Do not look at reload data structures
6489 before reload has run.
6491 2002-01-05 Kazu Hirata <kazu@hxi.com>
6493 * cse.c: Fix formatting.
6494 * dwarf2asm.c: Likewise.
6495 * dwarf2out.c: Likewise.
6496 * explow.c: Likewise.
6497 * expmed.c: Likewise.
6498 * function.c: Likewise.
6500 * gencheck.c: Likewise.
6501 * genrecog.c: Likewise.
6502 * ggc-common.c: Likewise.
6503 * ggc-page.c: Likewise.
6504 * global.c: Likewise.
6506 2002-01-05 Kazu Hirata <kazu@hxi.com>
6508 * combine.c: Fix formatting.
6510 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
6513 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
6515 2002-01-05 David Edelsohn <edelsohn@gnu.org>
6517 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
6518 as 1 for __powerpc64__ as well.
6520 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
6522 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
6525 2002-01-05 Daniel Berlin <dan@dberlin.org>
6527 * lcm.c: Revert change, due to performance regression it causes on
6528 SPEC because it's slightly more conservative (sigh, I hate
6531 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
6533 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
6535 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
6537 * doc/cppinternals.texi: Update.
6539 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
6541 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
6542 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
6544 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
6545 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
6546 kludge for pre-october-14th mmix versions to handle new-found bug
6547 with PUSHJ/PUSHGO and the register stack.
6548 * config/mmix/mmix.h (struct machine_function): Rename member
6549 has_call_value_without_parameters to has_call_without_parameters.
6550 All referers changed.
6551 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
6552 TARGET_MASK_BRANCH_PREDICT): New macros.
6553 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
6554 -mno-reg-stack-fill-bug-workaround.
6555 * config/mmix/mmix.md ("call"): Set struct machine member
6556 has_call_without_parameters.
6558 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
6560 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
6562 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
6564 * cfgcleanup.c: Include tm_p.h
6565 (mark_effect): Fix handling of hard register; fix handling of SET
6567 2002-01-04 Kazu Hirata <kazu@hxi.com>
6569 * config/h8300/h8300.md (anonymous patterns): Check that
6570 operands are registers before using REGNO on them.
6572 2002-01-03 Roland McGrath <roland@frob.com>
6574 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
6576 2002-01-04 Jakub Jelinek <jakub@redhat.com>
6578 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
6579 * c-common.h (genrtl_expr_stmt_value): Likewise.
6580 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
6581 (expand_expr_stmt_value): Add maybe_last argument.
6582 Don't warn about statement with no effect if it is the last statement
6583 in expression statement.
6584 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
6585 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
6586 expand_expr_stmt_value.
6587 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
6588 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
6589 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
6590 as maybe_last to expand_expr_stmt_value.
6592 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
6594 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
6595 be passed in, do not build it.
6596 (c_begin_if_stmt): New function.
6597 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
6598 * c-common.h (c_expand_start_cond): Update prototype.
6599 (c_begin_if_stmt): Prototype new function.
6600 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
6601 * c-parse.in (if_prefix): Use c_begin_if_stmt,
6602 c_begin_while_stmt and c_finish_while_stmt_cond.
6604 2002-01-04 William Cohen <wcohen@redhat.com>
6606 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
6607 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
6608 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
6609 * config/pa/som.h (ASM_FILE_START): Likewise.
6611 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
6613 * lcm.c: Include df.h.
6614 Add available_transfer_function prototype.
6615 (compute_available): Rework to use iterative dataflow framework.
6616 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
6617 with bb_info in df.h
6618 (available_transfer_function): New function.
6620 * Makefile.in (lcm.o): add df.h to dependencies.
6622 2002-01-04 Richard Henderson <rth@redhat.com>
6624 * config/alpha/alpha.c (some_operand): Accept HIGH.
6625 (input_operand): Likewise; accept simple references to globals.
6626 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
6627 (alpha_const_double_ok_for_letter_p): Likewise.
6628 (alpha_extra_constraint): Likewise.
6629 (alpha_preferred_reload_class): Likewise. Do not force
6630 symbolic constants to memory.
6631 (alpha_legitimate_address_p): Accept simple references
6632 to small_symbolic_operand.
6633 (alpha_legitimize_address): New arg scratch. Be prepared to be
6634 called when no_new_pseudos. Emit simple symbolic references.
6635 Split integers into low, high, and rest.
6636 (alpha_expand_mov): Use alpha_legitimize_address.
6637 (some_small_symbolic_mem_operand): New.
6638 (split_small_symbolic_mem_operand): New.
6639 * config/alpha/alpha-protos.h: Update.
6640 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
6641 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
6642 (EXTRA_CONSTRAINT): Likewise.
6643 (PREFERRED_RELOAD_CLASS): Likewise.
6644 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
6645 (PREDICATE_CODES): Update.
6646 * config/alpha/alpha.md: New post-reload splitters to convert
6647 simplfied symbolic operands to the form that references $29.
6648 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
6649 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
6651 2002-01-03 Richard Henderson <rth@redhat.com>
6653 * local-alloc.c (function_invariant_p): Update commentary.
6655 2002-01-04 H.J. Lu <hjl@gnu.org>
6657 * toplev.c (rest_of_compilation): Fix a typo when calling
6660 2002-01-03 Kazu Hirata <kazu@hxi.com>
6662 * c-common.c: Fix formatting.
6663 * diagnostic.c: Likewise.
6664 * doloop.c: Likewise.
6665 * dwarf2out.c: Likewise.
6667 2002-01-03 Kazu Hirata <kazu@hxi.com>
6669 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
6670 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
6672 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
6674 * cpperror.c: Update comments and copyright.
6675 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
6676 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
6678 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
6680 * collect2.c (main): Use strcmp when testing for "-shared".
6682 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
6684 * cppmacro.c: Don't include intl.h. Update comments.
6685 (new_number_token): Allocate enough buffer for 64-bit unsigned
6686 integers; update prototype.
6687 * cppmain.c: Update comments.
6689 2002-01-03 William Cohen <wcohen@redhat.com>
6691 * function.h (struct function): Add profile.
6692 (current_function_profile): New.
6693 doc/extend.texi: Update documentation.
6694 * final.c (final_start_function): Use current_function_profile
6695 instead of profile_flag.
6696 (profile_after_prologue): Likewise.
6697 * function.c (expand_function_start): Likewise.
6698 (expand_function_start): Likewise.
6699 * config/alpha/alpha.c (direct_call_operand):
6700 (alpha_does_function_need_gp): Likewise.
6701 (alpha_expand_prologue): Likewise.
6702 * config/arm/arm.c (arm_expand_prologue): Likewise.
6703 thumb_expand_prologue: Likewise.
6704 * config/d30v/d30v.c (d30v_stack_info): Likewise.
6705 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
6706 (fr30_expand_prologue): Likewise.
6707 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
6708 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
6709 * config/i386/i386.h (FINALIZE_PIC): Likewise.
6710 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
6711 * config/i960/i960.c (i960_output_function_prologue): Likewise.
6712 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
6713 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
6714 (m32r_expand_prologue): Likewise.
6715 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
6716 (m88k_expand_prologue): Likewise.
6717 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
6718 * config/mips/mips.c (compute_frame_size): Likewise.
6719 (mips_expand_prologue): Likewise.
6720 (mips_can_use_return_insn): Likewise.
6721 * config/pa/elf.h (ASM_FILE_START): Likewise.
6722 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
6723 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
6724 * config/pa/som.h (ASM_FILE_START): Likewise.
6725 * config/romp/romp.c (romp_using_r14): Likewise.
6726 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
6727 (rs6000_stack_info): Likewise.
6728 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6729 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
6730 * config/v850/v850.c (compute_register_save_size): Likewise.
6732 2002-01-03 Jakub Jelinek <jakub@redhat.com>
6734 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
6735 gen_lowpart_common fails, use gen_lowpart_SUBREG.
6737 2002-01-03 Turly O'Connor <turly@apple.com>
6739 * darwin.c (machopic_output_possible_stub_label): Don't generate
6740 stub routines for pseudo-stubs which we've just defined.
6742 2002-01-03 Kazu Hirata <kazu@hxi.com>
6744 * builtins.c: Fix formatting.
6745 * c-typeck.c: Likewise.
6746 * combine.c: Likewise.
6750 2002-01-03 Andreas Schwab <schwab@suse.de>
6752 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
6753 and return true if _cpp_push_next_buffer pushed a new include
6755 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
6756 _cpp_pop_file_buffer did not push a new file.
6757 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
6759 2002-01-02 Eric Christopher <echristo@redhat.com>
6761 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
6762 FIND_REG_INC_NOTE call. Update copyright.
6763 * loop.c (canonicalize_condition): Ditto.
6764 * reorg.c (delete_scheduled_jump): Ditto.
6766 2002-01-03 Kazu Hirata <kazu@hxi.com>
6768 * gcse.c: Fix formatting.
6770 2002-01-03 Graham Stott <grahams@redhat.com>
6772 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
6773 forward defs for struct tags rtx_def, union_tree, rtvec_def
6774 also output corresponding typedefs for rtx, tree, and rtvec.
6776 * system.h: Move forward defs for struct tags rtx_def, union_tree,
6777 rtvec_def along with corresponding typedefs for rtx, tree, and
6778 rtvec to config.h, hconfig.h, tconfig.h.
6780 2002-01-03 Graham Stott <grahams@redhat.com>
6782 * tree.h: Update copyright date.
6783 (IS_EXPR_CODE_CLASS): Add parenthesis.
6784 (TREE_SET_CODE): Add whitespace.
6785 (TREE_CHECK): Add parenthesis.
6786 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
6787 (CST_OR_CONSTRUCTOR_CHECK):
6788 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
6789 (TREE_SYMBOL_REFERENCED): Whitespace.
6790 (INT_CST_LT): Likewise.
6791 (INT_CST_LT_UNSIGNED): Likewise.
6792 (tree_real_cst): Unwrap comment.
6793 (tree_string): Likewise.
6794 (tree_complex): Likewise.
6795 (IDENTIFIER_POINTER): correct cast.
6796 (SAVE_EXPR_CONTEXT): Whitespace.
6797 (EXPR_WFL_FILENAME_NODE): Likewise.
6798 (EXPR_WFL_FILENAME): Remove parenthesis.
6799 (DECL_ORIGIN): Add parenthesis.
6800 (DECL_FROM_INLINE): Use NULL_TREE.
6801 (build_int_2): Whitespace.
6802 (build_type_variant): Add parenthesis.
6804 * gcc/jcf-parse.c: Update copyright date.
6805 (yyparse): Constify resource_filename.
6807 2002-01-03 Graham Stott <grahams@redhat.com>
6809 * rtl.h: Update copyright date.
6810 (RTL_CHECK1): Wrap long line.
6811 (RTL_CHECK2): Likewise.
6812 (RTL_CHECKC1): Wrap long line and whitespace.
6813 (RTL_CHECKC2): Likewise.
6814 (XWINT): Whitespace.
6820 (XBITMAP): Likewise.
6831 (X0BITMAP): Likewise.
6833 (X0BBDEF): Likewise.
6834 (X0ADVFLAGS): Likewise.
6835 (X0CSELIB): Likewise.
6836 (X0MEMATTR): Likewise.
6844 (XCBITMAP): Likewise.
6846 (XCBBDEF): Likewise.
6847 (XCADVFLAGS): Likewise.
6848 (XCCSELIB): Likewise.
6850 (INSN_UID): Likewise.
6851 (PREV_INSN): Likewise.
6852 (PATTERN): Likewise.
6853 (INSN_CODE): Likewise.
6854 (PUT_REG_NOTE_KIND): Likewise.
6855 (CODE_LABEL_NUMBER): Likewise.
6856 (NOTE_SOURCE_FILE): Likewise.
6857 (NOTE_BLOCK): Likewise.
6858 (NOTE_EH_HANDLER): Likewise.
6859 (NOTE_RANGE_INFO): Likewise.
6860 (NOTE_LIVE_INFO): Likewise.
6861 (NOTE_BASIC_BLOCK): Likewise.
6862 (NOTE_EXPECTED_VALUE): Likewise.
6863 (NOTE_LINE_NUMBER): Likewise.
6864 (LABEL_NAME): Likewise.
6865 (LABEL_NUSES): Likewise.
6866 (LABEL_ALTERNATE_NAME): Likewise.
6867 (ADDRESSOF_DECL): Likewise.
6868 (JUMP_LABEL): Likewise.
6869 (LABEL_NEXTREF): Likewise.
6871 (ORIGINAL_REGNO: Likewise.
6872 (HARD_REGISTER_NUM_P): Add parenthesis.
6873 (SUBREG_REG): Whitespace.
6874 (SUBREG_BYTE): Likewise.
6875 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
6876 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
6877 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
6878 (ASM_OPERANDS_INPUT_VEC): Likewise.
6879 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
6880 (ASM_OPERANDS_INPUT): Likewise.
6881 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
6882 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
6883 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
6884 (ASM_OPERANDS_INPUT_MODE): Likewise.
6885 (ASM_OPERANDS_SOURCE_FILE): Likewise.
6886 (ASM_OPERANDS_SOURCE_LINE): Likewise.
6887 (MEM_SET_IN_STRUCT_P): Minor reformat.
6888 (TRAP_CONDITION): Whitespace.
6889 (TRAP_CODE): Likewise.
6890 (COND_EXEC_TEST): Likewise.
6891 (COND_EXEC_CODE): Likewise.
6892 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
6893 (PHI_NODE_P): Add parenthesis.
6894 (plus_constant): Whitespace and add parenthesis.
6896 2002-01-03 Kazu Hirata <kazu@hxi.com>
6898 * config/avr/avr.c: Fix comment typos.
6899 * config/c4x/c4x.md: Likewise.
6900 * config/dsp16xx/dsp16xx.h: Likewise.
6901 * config/dsp16xx/dsp16xx.md: Likewise.
6902 * config/i386/i386.md: Likewise.
6903 * config/ia64/ia64.c: Likewise.
6904 * config/m32r/m32r.h: Likewise.
6905 * config/m68hc11/m68hc11.md: Likewise.
6906 * config/mmix/mmix.c: Likewise.
6907 * config/mn10200/mn10200.c: Likewise.
6908 * config/romp/romp.c: Likewise.
6909 * config/sh/sh.c: Likewise.
6910 * config/stormy16/stormy16.c: Likewise.
6911 * config/stormy16/stormy16.h: Likewise.
6912 * config/stormy16/stormy16.md: Likewise.
6914 2002-01-03 Graham Stott <grahams@redhat.com>
6916 * loop.h: Update copyright date.
6917 (LOOP_MOVABLES): Fix typo.
6918 (LOOP_REGS): Likewise.
6919 (LOOP_IVS): Likewise.
6921 2002-01-03 Graham Stott <grahams@redhat.com>
6923 * cppinit.c: Update copyright date.
6924 Don't include output.h
6925 * Makefile.in: Update copyright date.
6928 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
6931 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
6932 (-pthread) Add to RS/6000 options.
6934 2002-01-02 Kazu Hirata <kazu@hxi.com>
6936 * except.c: Fix comment typos.
6938 * varasm.c: Likewise.
6939 * doc/tm.texi: Fix a typo.
6941 2002-01-02 Jakub Jelinek <jakub@redhat.com>
6943 * c-typeck.c (output_init_element): Allow initializing static storage
6944 duration objects with compound literals.
6946 2002-01-02 Richard Henderson <rth@redhat.com>
6948 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
6951 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6953 * gcc.c (default_compilers): Const-ify.
6954 * mips-tdump.c (stab_names): Likewise.
6955 * mips-tfile.c (map_coff_types, map_coff_storage,
6956 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
6957 pseudo_ops_t, pseudo_ops): Likewise.
6958 * protoize.c (default_include): Likewise
6960 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
6961 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
6962 Add array size in declaration.
6963 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
6964 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
6965 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
6966 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
6967 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
6968 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
6969 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
6970 emtens, make_nan): Const-ify.
6971 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
6972 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
6974 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
6976 * config.gcc (ia64-*-*): Set extra_headers.
6977 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
6978 * config/alpha/t-osf: Remove.
6979 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
6981 2002-01-02 David Edelsohn <edelsohn@gnu.org>
6983 * config/rs6000/t-aix43: Revert previous change.
6985 2002-01-02 Jason Merrill <jason@redhat.com>
6987 * c-decl.c (c_expand_body): Call outlining_inline_function when
6988 emitting an inline function out of line.
6990 2002-01-02 Richard Henderson <rth@redhat.com>
6992 * dwarf2out.c (limbo_die_node): Add created_for member.
6993 (new_die): New argument created_for. Update all callers.
6994 (mark_limbo_die_list): New.
6995 (dwarf2out_init): Register limbo_die_list as a root.
6996 (dwarf2out_finish): Force insert limbo dies into their function
6999 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
7002 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
7004 2002-01-02 Kazu Hirata <kazu@hxi.com>
7006 * config/h8300/fixunssfsi.c: Update copyright.
7009 * config/h8300/h8300.c: Update copyright.
7012 2002-01-02 Kazu Hirata <kazu@hxi.com>
7014 * config/romp/romp.c: Fix comment formatting.
7015 * config/romp/romp.h: Likewise.
7016 * config/romp/romp.md: Likewise.
7017 * config/s390/s390.c: Likewise.
7018 * config/stormy16/stormy16.c: Likewise.
7019 * config/stormy16/stormy16.h: Likewise.
7021 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
7023 * c-common.h (genrtl_expr_stmt_value): Declare.
7024 * c-semantics.c (genrtl_goto_stmt): Redirect to...
7025 (genrtl_goto_stmt_value): ... this new function. Pass new
7026 argument down to expand_expr_stmt_value, taking
7027 TREE_ADDRESSABLE into account.
7028 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
7029 STMT_EXPR as addressable, i.e., one whose result we want.
7030 * expr.c (expand_expr): Don't save expression statement value
7031 of labeled_blocks or loop_exprs.
7032 * stmt.c (expand_expr_stmt): Redirect to...
7033 (expand_expr_stmt_value): ... this new function. Use new
7034 argument to tell whether to save expression value.
7035 (expand_end_stmt_expr): Reset last_expr_type and
7036 last_expr_value if we don't have either.
7037 * tree-inline.c (declare_return_variable): Mark its use
7038 statement as addressable.
7039 * tree.h: Document new use of TREE_ADDRESSABLE.
7040 (expand_expr_stmt_value): Declare.
7042 2002-01-01 Tom Rix <trix@redhat.com>
7044 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
7045 rs6000_emit_allocate_stack.
7047 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
7049 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
7050 ${srcdir}/ginclude/ to every entry in extra_headers.
7051 * configure: Regenerate.
7052 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
7053 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
7054 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
7055 * ginclude/proto.h: Rename to config/convex/proto.h.
7057 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7059 * attribs.c (handle_vector_size_attribute): Use host_integerp
7060 and tree_int_cst; remove warnings.
7061 * caller-save.c (insert_restore): Add cast to get rid of warning.
7062 (insert_save): Likewise.
7063 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
7064 * regmove.c (find_matches): Add temporary var to kill a warning.
7066 2002-01-01 Douglas B Rupp <rupp@gnat.com>
7068 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
7069 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
7070 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
7071 (vms-dwarf2eh.o): Add Makefile rule.
7072 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
7073 * config/alpha/vms-dwarf2eh.asm: New file.
7075 * gcc.c (delete_if_ordinary): Delete all versions.
7077 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
7079 * config/mmix/mmix.md: Update FIXME to not mention
7081 (MMIX_rJ_REGNUM): New define_constants constant.
7082 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
7083 "*movdicc_real"): Adjust contraints formatting.
7084 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
7085 for branch prediction.
7086 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
7088 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
7089 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
7090 number. Delete related FIXMEs.
7091 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
7092 from number to MMIX_rJ_REGNUM.
7093 (TARGET_MASK_BRANCH_PREDICT): New.
7094 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
7095 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
7096 value. Add -mbranch-predict and -mno-branch-predict.
7097 (TARGET_VERSION): Drop date.
7098 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
7099 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
7100 for finding out global symbols.
7101 (mmix_asm_output_labelref): Revert condition for global symbol.
7102 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
7103 (mmix_print_operand_punct_valid_p): A '+' is valid.
7105 See ChangeLog.6 for earlier changes.