1 2002-04-24 David S. Miller <davem@redhat.com>
4 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5 32-bit Sparc and current_function_returns_struct is true.
7 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
9 * loop.c (canonicalize_condition): Use gen_int_mode.
11 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
13 * config/rs6000/altivec.h: Cleanup file. Add non individual
57 (vec_lde): Add vector float variant.
85 (vec_vmhraddshs): New.
118 (vec_vrsqrtefp): New.
170 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
173 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
174 added literals from substracted literals.
175 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
176 (fold) [associate]: Preserve MINUS_EXPR if needed.
178 2002-04-23 Zack Weinberg <zack@codesourcery.com>
180 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
183 2002-04-23 Tom Tromey <tromey@redhat.com>
185 * gcc.c: Added --resource. For PR java/6314.
187 2002-04-23 David O'Brien <obrien@FreeBSD.org>
189 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
190 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
193 2002-04-23 David O'Brien <obrien@FreeBSD.org>
195 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
197 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
199 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
201 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
202 (ix86_expand_clrstr): Fix typo.
203 * loop.c (gen_load_of_final_value): New.
204 (loop_givs_rescan, strength_reduce, check_dbra_loop):
207 2002-04-23 Roger Sayle <roger@eyesopen.com>
209 * builtins.c (builtin_memset_gen_str): New function.
210 (expand_builtin_memset): Optimize the case of constant length, but
213 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
215 * config/rs6000/altivec.h (vec_step): Remove extraneous
217 (vec_ctu): Cast return.
219 2002-04-23 Alan Modra <amodra@bigpond.net.au>
222 * function.h: (struct function): Add profile_label_no field.
223 (current_function_profile_label_no): Define.
224 * function.c: (profile_label_no): New static var.
225 (expand_function_start): Increment it, and copy to
226 current_function_profile_label_no.
227 * output.h (profile_label_no): Delete.
228 * final.c (profile_label_no): Delete.
229 (profile_function): Use current_function_profile_label_no.
230 (final_end_function): Don't increment profile_label_no here.
231 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
232 profile_label_no with current_function_profile_label_no.
233 * config/pa/pa.c (current_function_number): Delete.
234 (pa_output_function_prologue): Don't output profile label here.
235 (hppa_profile_hook): Use label_no param rather than
236 current_function_number.
237 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
238 * config/pa/pa.h: .. here.
239 (FUNCTION_PROFILER): Output profile label here.
241 2002-04-22 Eric Christopher <echristo@redhat.com>
243 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
244 patch of 2002-04-09 due to binutils issues.
245 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
247 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
249 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
250 constraint to 'o' for m=r and r=m alternatives.
251 ("*movv8hi_internal1"): Same.
252 ("*movv16qi_internal1"): Same.
253 ("*movv4sf_internal1"): Same.
255 2002-04-22 Janis Johnson <janis187@us.ibm.com>
257 * rtl.h (RTX_FLAG): New macro.
258 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
259 * final.c (alter_subreg): Use macro to access rtx flag.
260 * integrate.c (copy_rtx_and_substitute): Use new access macro.
261 * print-rtl.c (print_rtx): Use new access macro.
263 * cse.c (insert): Check rtx code before accessing flag.
265 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
266 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
267 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
268 convert_const_symbol_ref, make_canonical, make_alternative_compare,
269 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
270 simplify_test_exp, optimize_attrs, simplify_by_exploding,
271 find_and_mark_used_attributes, unmark_used_attributes,
272 add_values_to_cover, simplify_with_current_value,
273 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
274 copy_rtx_unchanging, main): Use new access macros.
276 2002-04-22 Tom Rix <trix@redhat.com>
278 * expmed.c (init_expmed): Generate shifted constant once.
280 2002-04-22 Zack Weinberg <zack@codesourcery.com>
282 * c-lex.c (lex_charconst): Call convert to get constant in
283 proper type; don't just smash the type field.
286 * config.gcc: Add list of obsolete configurations. Disallow
287 building these without --enable-obsolete.
288 * doc/install.texi: Document --enable-obsolete and obsoletion
289 policy. Mention obsoletion of individual targets in
292 2002-04-22 Richard Henderson <rth@redhat.com>
294 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
296 2002-04-22 Mark Mitchell <mark@codesourcery.com>
299 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
300 (walk_fixup_memory_subreg): Likewise.
301 (fixup_var_refs_insn): Adjust accordingly.
302 (fixup_var_refs_1): Likewise.
304 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
306 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
307 LIBPATH_ARCH64_SPEC): Define.
308 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
309 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
310 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
311 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
313 2002-04-22 Joel Sherrill <joel@OARcorp.com>
315 * gthr-rtems.h: Correct prototypes to remove warnings.
317 2002-04-22 Richard Henderson <rth@redhat.com>
320 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
322 * gcse.c (free_insn_expr_list_list): New.
323 (clear_modify_mem_tables): Use it. Fix bit set usage.
324 (canon_list_insert): Use EXPR_LISTs for expressions.
325 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
327 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
329 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
330 file change and include code to _cpp_pop_buffer.
331 * cpphash.h (struct pending_option): Predeclare.
332 (struct cpp_reader): New member next_include_file.
333 (_cpp_pop_file_buffer): Update.
334 (_cpp_push_next_buffer): Update, rename.
335 * cppinit.c (cpp_destroy): Free include chain and pending here.
336 (cpp_finish_options): Simplify.
337 (_cpp_push_next_buffer): Rename and clean up.
338 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
340 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
342 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
344 * config/rs6000/altivec.h (vec_xor): Add variant for both args
345 being vector signed int.
347 (vec_xor): Add variant for both args being vector signed char.
348 Remove redundant variant.
351 2002-04-21 David S. Miller <davem@redhat.com>
353 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
354 compare mode in output RTL.
356 2002-04-22 David Edelsohn <edelsohn@gnu.org>
358 * config/rs6000/rs6000.c (rs6000_override_options): Correct
359 style and formatting of previous patch.
361 2002-04-22 Alan Modra <amodra@bigpond.net.au>
363 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
364 flag_pic for ABI_AIX.
366 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
368 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
369 * cppfiles.c (read_include_file): Similarly.
370 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
371 uxstrdup ustrchr, ufputs): Similarly.
372 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
373 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
374 cpp_ideq, parse_identifier, parse_number): Similarly.
375 * cpplib.c (struct directive, dequote_string, D, run_directive,
376 cpp_push_buffer): Similarly.
377 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
378 _cpp_create_definition, check_trad_stringification,
379 cpp_macro_definition): Similarly.
381 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
383 * cppmacro.c (funlike_invocation_p): Don't step back
386 2002-04-21 David Edelsohn <edelsohn@gnu.org>
388 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
391 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
393 * doc/invoke.texi: Remove Chill references.
394 * doc/gcc.texi: Update last modified date.
396 2002-04-20 Kazu Hirata <kazu@hxi.com>
398 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
399 push and pop. Replace add.l with add.w.
401 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
403 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
404 multiply instructions for H8/300H case.
406 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
408 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
409 Bum three instructions from each routine.
411 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
413 * Makefile.in: Update.
414 * decl.c (push_c_function_context, pop_c_function_context,
415 mark_c_function_context): Rename for consistency.
416 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
417 * c-tree.h (push_c_function_context, pop_c_function_context,
418 mark_c_function_context): Rename for consistency.
419 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
420 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
421 * function.c (init_lang_status, save_lang_status,
422 restore_lang_status, mark_lang_status, free_lang_status):
424 (push_function_context_to, pop_function_context_from,
425 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
427 * function.h (init_lang_status, save_lang_status,
428 restore_lang_status, mark_lang_status, free_lang_status):
430 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
431 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
432 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
433 LANG_HOOKS_FUNCTION_INITIALIZER): New.
434 (LANG_HOOKS_INITIALIZER): Update.
435 (lhd_do_nothing_f): New.
436 * langhooks.h (struct lang_hooks_for_functions): New.
437 (struct lang_hooks): New hooks.
438 * langhooks.c (lhd_do_nothing_f): New.
440 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
441 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
443 2002-04-19 David S. Miller <davem@redhat.com>
445 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
446 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
448 2002-04-19 Jakub Jelinek <jakub@redhat.com>
451 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
452 x = ((int) y < 0) ? cst1 : cst2.
454 2002-04-19 Jakub Jelinek <jakub@redhat.com>
457 * function.c: Reapply patch for c/6358.
458 (expand_function_end): Copy decl_rtl's mode, not
459 current_function_return_rtx mode.
461 2002-04-19 Joel Sherrill <joel@OARcorp.com>
463 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
466 2002-04-19 Tom Tromey <tromey@redhat.com>
468 * doc/install.texi (Specific): Update status of Solaris 2.8.
471 2002-04-19 Andreas Schwab <schwab@suse.de>
473 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
474 (PUT_REAL): Restore old definition.
476 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
477 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
479 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
480 binutils 2.11.2 and higher generate smaller binaries than Sun's
483 2002-04-19 Mark Mitchell <mark@codesourcery.com>
486 * toplev.c (rest_of_compilation): Do not defer functions for which
487 TREE_SYMBOL_REFERENCED has already been set.
489 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
491 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
494 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
496 * builtins.c: Include langhooks.h.
497 (lang_type_promotes_to): Remove.
498 (expand_builtin_va_arg): Use new hook.
499 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
500 (simple_type_promotes_to): Move to c-typeck.c.
501 * c-common.h (simple_type_promotes_to): Remove.
502 * c-decl.c (duplicate_decls, grokdeclarator): Update.
503 * c-format.c: Include langhooks.h.
504 (check_format_types): Update.
505 * c-tree.h (c_type_promotes_to): New.
506 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
507 (type_lists_compatible_p): Update.
508 * langhooks-def.h (lhd_type_promotes_to): New.
509 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
510 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
511 * langhooks.c (lhd_type_promotes_to): New.
512 * langhooks.h (struct lang_hooks_for_types): New hook.
513 * tree.h (lang_type_promotes_to): Remove.
515 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
517 2002-04-18 Richard Henderson <rth@redhat.com>
519 * function.c: Revert patch for c/6358.
521 2002-04-18 Richard Henderson <rth@redhat.com>
523 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
524 blocks. Handle multiple references to the TRAP block. Handle
525 non-adjacent THEN and OTHER blocks.
527 2002-04-18 Richard Henderson <rth@redhat.com>
529 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
530 crash with no type for by-mode libcalls.
532 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
534 2002-04-18 Bob Wilson <bob.wilson@acm.org>
536 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
537 __xtensa_nonlocal_goto): Use a syscall instructions to flush
538 the register windows.
540 2002-04-18 Zack Weinberg <zack@codesourcery.com>
542 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
543 appropriate. Document need for extended precision even when
544 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
545 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
546 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
547 instead of relying on later syntax error when REAL_WIDTH > 5.
548 * real.c: Define NE based only on whether or not we have a
549 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
550 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
551 define GET_REAL and PUT_REAL as simple memcpy operations; no
552 need to byteswap or round.
553 Use #error instead of #ifdef-ing out the entire file, for
554 prompt error detection.
556 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
558 2002-04-18 David S. Miller <davem@redhat.com>
560 * config/sparc/sparc.h (BRANCH_COST): Define.
562 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
565 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
567 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
568 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
569 propagate_block calls after relaxation loop using new variable
570 stabilized_prop_flags.
572 2002-04-18 Richard Henderson <rth@redhat.com>
574 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
575 (ia64_va_arg): Expect variable sized types by reference.
576 * config/ia64/ia64-protos.h: Update.
577 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
578 ia64_function_arg_pass_by_reference.
580 2002-04-18 Richard Henderson <rth@redhat.com>
582 * ifcvt.c: Include except.h.
583 (block_has_only_trap): Break out from find_cond_trap.
584 (find_cond_trap): Use it. Always delete the trap block.
585 (merge_if_block): Allow then block null. Be less simplistic about
586 what insns can end a block.
587 * Makefile.in (ifcvt.o): Depend on except.h.
589 * config/ia64/ia64.md (trap, conditional_trap): New.
591 2002-04-18 Jakub Jelinek <jakub@redhat.com>
594 * function.c (assign_parms): Assign hard current_function_return_rtx
596 (expand_function_end): ...not here.
598 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
600 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
601 * c-tree.h (c_incomplete_type_error): New.
602 * c-typeck.c (require_complete_type, build_component_ref): Update.
603 (incomplete_type_error): Rename.
604 * langhooks-def.h (lhd_incomplete_type_error): New.
605 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
606 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
607 * langhooks.c (lhd_incomplete_type_error): New.
608 * langhooks.h (struct lang_hooks_for_types): New hook.
609 * tree.c (size_in_bytes): Use new hook.
610 * tree.h (incomplete_type_error): Remove.
612 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
614 2002-04-18 Zack Weinberg <zack@codesourcery.com>
616 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
617 TARGET_FLOAT_FORMAT blocks.
619 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
621 * doc/install.texi (Downloading the source): Do not mention Chill
622 any longer, but mention Ada.
623 (Configuration): Do not mention Chill any longer.
625 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
627 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
629 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
631 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
634 2002-04-18 Jakub Jelinek <jakub@redhat.com>
636 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
637 instead of unsigned_type.
639 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
641 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
642 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
645 2002-04-18 Bernd Schmidt <bernds@redhat.com>
647 * attribs.c (vector_type_node_list): New static variable.
648 (handle_vector_size_attribute): Use it to avoid generating a
649 new type node each time we are called.
651 * combine.c (subst): Avoid trying to make a vector mode subreg of
653 (gen_lowpart_for_combine): Likewise.
655 2002-04-18 Roger Sayle <roger@eyesopen.com>
656 Jakub Jelinek <jakub@redhat.com>
658 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
659 for integer constant c (if x has unsigned type or sign bit is not
660 set in c). This folds the zero/sign extension into the bit-wise and
663 2002-04-18 Jakub Jelinek <jakub@redhat.com>
666 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
669 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
671 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
673 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
675 * gcc.c (read_specs): Detect and fail if an attempt is made to
676 rename a spec string to an already existing string.
678 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
680 * config/s390/s390.c (legitimize_pic_address): Do not generate
681 illegal address constant without CONST.
683 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
685 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
686 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
688 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
691 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
692 to make sure previous reloads are taken into account. Generate
693 better code if one operand is an in-range immediate constant.
695 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
697 * doc/install.texi (Building): libgcj requires GNU make.
699 2002-04-17 Jakub Jelinek <jakub@redhat.com>
702 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
703 even if hard quad and register is not floating.
704 (movtf reg<-mem split): Disallow splitting if hard quad and
705 register is floating.
706 (movtf mem<-reg split): Likewise.
707 * config/sparc/sparc.c (fp_register_operand): New predicate.
708 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
710 2002-04-17 Zack Weinberg <zack@codesourcery.com>
712 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
713 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
714 (unprotoize.o): Ditto. Build from protoize.c. Define
715 UNPROTOIZE on command line.
716 * protoize.c: Include cppdefault.h. Delete include_defaults.
717 (in_system_include_dir): Use cpp_include_defaults (defined in
719 * unprotoize.c: Delete file.
721 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
723 * config/rs6000/altivec.h (vec_ld): Add array variants.
727 2002-04-17 Alan Matsuoka <alanm@redhat.com>
728 Aldy Hernandez <aldyh@redhat.com>
730 * config/rs6000/altivec.h: Define __ALTIVEC__.
737 Add parentheses to all macro arguments.
739 2002-04-16 Richard Henderson <rth@redhat.com>
742 * except.c (remove_eh_handler): Insert inner regions at beginning
743 of sibling chain. Refactor expressions.
745 2002-04-16 Richard Henderson <rth@redhat.com>
747 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
748 * config/sparc/sol2-gas-bi.h: New file.
749 * config.gcc (sparc*-solaris): Add it as needed.
750 * configure.in (AS_SPARC64_FLAG): Remove check.
751 * config.in, configure: Regenerate.
753 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
755 2002-04-16 Richard Henderson <rth@redhat.com>
757 * config/mips/mips.c (override_options): Don't override N32 for
761 * config/mips/mips.md (can_delay): Split out of existing define_delays.
762 (HILO_delay): Set can_delay false.
764 2002-04-16 Dale Johannesen <dalej@apple.com>
766 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
767 instruction addresses.
768 (rs6000_output_function_epilogue): Likewise.
770 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
772 * c-parse.in (poplevel, compstmt_start,
773 compstmt_primary_start): Add ending ';', in accordance
776 2002-04-16 Richard Henderson <rth@redhat.com>
778 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
779 Adjust tm_file order to get TARGET_DEFAULT set properly.
780 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
781 * doc/install.texi (sparc-solaris): Update.
783 2002-04-16 Dale Johannesen <dalej@apple.com>
785 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
786 comparison operands do not match each other or if modes of
787 conditions do not match result.
789 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
792 * config/s390/s390.md (mulsidi3): Set both subregs of the
795 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
797 * config/rs6000/altivec.h (vec_addc): Type check.
799 2002-04-16 Jakub Jelinek <jakub@redhat.com>
802 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
804 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
806 2002-04-15 Richard Henderson <rth@redhat.com>
808 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
809 call_really_used_regs too.
811 2002-04-15 Richard Henderson <rth@redhat.com>
813 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
815 2002-04-15 David S. Miller <davem@redhat.com>
817 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
820 2002-04-16 Jakub Jelinek <jakub@redhat.com>
823 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
824 CONST_VECTOR is { 0, ... 0 }.
826 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
828 * doc/install.texi (Installing GCC: Configuration): Clarify
829 the only supported ways to configure gcc.
831 2002-04-15 Roland McGrath <roland@frob.com>
833 * config.gcc (alpha*-*-gnu*): New target configuration.
834 * config/alpha/gnu.h: New file for it.
835 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
837 2002-04-16 Mark Mitchell <mark@codesourcery.com>
839 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
840 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
841 * tree.h (expand_start_stmt_expr): Update prototype.
842 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
843 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
844 on the STMT_EXPR created for the inline function.
846 2002-04-15 Richard Henderson <rth@redhat.com>
848 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
849 config/i386/linux-aout.h, config/i386/linux-oldld.h,
850 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
851 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
852 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
853 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
854 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
855 Define __gnu_linux__, not gnu_linux.
856 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
858 2002-04-15 Mark Mitchell <mark@codesourcery.com>
860 Remove Chill front end.
861 * gcc.c (default_compilers): Remove Chill entries.
862 * ch: Remove directory.
863 * doc/frontends.texi: Remove information about Chill.
864 * doc/sourcebuild.texi: Likewise.
865 * doc/standards.texi: Likewise.
867 2002-04-15 Douglas B Rupp <rupp@gnat.com>
869 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
870 (LONGLONG_STANDALONE): Define.
872 2002-04-15 David S. Miller <davem@redhat.com>
874 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
875 Call emit_library_call with LCT_NORMAL.
876 (sparc_initialize_trampoline): Use LCT_foo instead of
877 magic constant in emit_library_call invocations.
878 (sparc64_initialize_trampoline): Likewise.
879 (sparc_profile_hook): Likewise.
880 * config/sparc/sparc.md: Likewise.
882 * config/sparc/sparc.c (sparc_extra_constraint_check):
883 Fix type of argument 'c'.
884 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
887 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
889 * diagnostic.h (output_buffer_state): Redefine.
890 (output_format_decoder): New macro.
891 (output_prefixing_rule): Likewise.
892 (output_line_cutoff): Likewise.
893 (diagnostic_format_decoder): Adjust.
894 (diagnostic_prefixing_rule): Likewise.
895 (diagnostic_line_cutoff): Likewise.
896 (diagnostic_state): Likewise.
897 (diagnostic_kind_count): Likewise.
898 (diagnostic_buffer): Now a macro.
900 * diagnostic.c (diagnostic_buffer): Remove definition.
901 (output_is_line_wrapping): Adjust.
902 (set_real_maximum_length): Likewise.
903 (output_set_maximum_length): Likewise.
904 (init_output_buffer): Likewise.
905 (lhd_print_error_function): Likewise.
906 (output_do_verbatim): Likewise.
908 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
910 * cpperror.c (print_location): Don't print include chain
912 (cpp_begin_message): Update to use DL_ macros.
913 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
914 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
915 cpp_notice, cpp_notice_from_errno): Remove.
916 (cpp_error, cpp_error_with_line): Update to take a diagnostic
919 * cppexp.c (CPP_ICE): Remove.
920 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
921 lex, integer_overflow, _cpp_parse_expr): Update.
922 * cppfiles.c (read_include_file, find_include_file,
923 handle_missing_header, _cpp_read_file, remap_filename): Update.
924 * cpphash.h (enum error_type): Remove.
925 (_cpp_begin_message): Update.
926 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
927 cpp_handle_option, cpp_post_options): Update.
928 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
929 skip_whitespace, parse_identifier, parse_slow, parse_string,
930 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
931 cpp_interpret_charconst): Update.
932 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
933 lex_macro_node, do_undef, glue_header_name, parse_include,
934 do_include_common, read_flag, do_line, do_linemarker, do_ident,
935 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
936 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
937 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
938 _cpp_pop_buffer, do_diagnostic): Update.
939 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
940 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
941 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
942 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
943 cpp_notice, cpp_notice_from_errno): Remove.
944 (cpp_error, cpp_error_with_line): Update to take a diagnostic
947 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
948 collect_args, enter_macro_context, save_parameter, parse_params,
949 _cpp_create_definition, check_trad_stringification,
950 cpp_macro_definition): Update.
951 * cppmain.c (cpp_preprocess_file): Update.
952 * fix-header.c (read_scan_file): Update.
954 2002-04-14 Andreas Schwab <schwab@suse.de>
956 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
958 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
960 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
962 2002-04-13 Mark Mitchell <mark@codesourcery.com>
964 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
967 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
969 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
971 2002-04-13 Joel Sherrill <joel@OARcorp.com>
973 * config/sparc/t-elf: Enable v8 multilibs. Impacts
974 sparc-elf and sparc-rtems targets.
976 2002-04-13 Mark Mitchell <mark@codesourcery.com>
978 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
979 defined, and __gnu_hurd__ wherever __GNU__ is defined.
980 * arm/linux-elf.h: Likewise.
981 * cris/aout.h: Likewise.
982 * cris/linux.h: Likewise.
983 * i370/linux.h: Likewise.
984 * i386/gnu.h: Likewise.
985 * i386/linux-aout.h: Likewise.
986 * i386/linux-oldld.h: Likewise.
987 * i386/linux.h: Likewise.
988 * i386/linux64.h: Likewise.
989 * ia64/linux.h: Likewise.
990 * m68k/linux-aout.h: Likewise.
991 * m68k/linux.h: Likewise.
992 * mips/linux.h: Likewise.
993 * pa/pa-linux.h: Likewise.
994 * pj/linux.h: Likewise.
995 * rs6000/sysv4.h: Likewise.
996 * s390/linux.h: Likewise.
997 * sh/linux.h: Likewise.
998 * sparc/linux-aout.h: Likewise.
999 * sparc/linux.h: Likewise.
1000 * sparc/linux64.h: Likewise.
1001 * xtensa/linux.h: Likewise.
1003 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
1005 * stmt.c (check_unique_operand_names): Expect operand names to
1006 be strings rather than identifiers. Use simple_cst_equal to
1008 (resolve_operand_name_1): Make same identifier to string change here.
1009 * c-parse.in (asm_operand): Convert a named operand into a string.
1010 * cp/parse.y (asm_operand): Likewise.
1012 2002-04-13 Andreas Schwab <schwab@suse.de>
1014 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
1016 2002-04-12 Mark Mitchell <mark@codesourcery.com>
1018 Revert these changes:
1020 2002-04-06 Mark Mitchell <mark@codesourcery.com>
1023 * stor-layout.c (layout_decl): Reset the RTL for the decl.
1025 2002-04-12 Richard Henderson <rth@redhat.com>
1027 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
1028 (sparc*-*-solaris): Clean up header files.
1029 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
1030 and plan on generating 64-bit code.
1031 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
1032 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
1033 * config/sparc/sol2-sld-64.h: Rename ...
1034 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
1035 for AS_SPARC64_FLAG not defined.
1036 * config/sparc/sol2-gld-bi.h: New.
1037 * config/sparc/sol2-sld.h: Remove.
1038 * config/sparc/sol26-sld.h: New.
1039 * config/sparc/sol2.h: Tidy comments.
1040 * doc/install.texi: Document sparc-solaris configury changes.
1042 2002-04-12 Richard Henderson <rth@redhat.com>
1044 * recog.c (offsettable_address_p): Match the logic in adjust_address.
1046 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
1047 in 64-bit mode only. Use only for 32-bit or MEDLOW.
1049 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1051 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
1053 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
1055 * pa.c (pa_can_combine_p): Call extract_insn before calling
1058 2002-04-12 Douglas B Rupp <rupp@gnat.com>
1060 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
1061 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
1062 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
1063 (CPP_PREDEFINES): Handle __declspec.
1064 * config/i386/t-interix (USER_H): Remove.
1066 2002-04-12 DJ Delorie <dj@redhat.com>
1068 * integrate.c (compare_blocks): Make comparisons safe for when
1069 sizeof(int) < sizeof(char *).
1070 (find_block): Likewise.
1072 2002-04-12 Jan Hubicka <jh@suse.cz>
1073 David Edelsohn <edelsohn@gnu.org>
1075 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
1077 (symbol_ref_operand): New.
1078 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
1079 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
1081 2002-04-12 Andreas Schwab <schwab@suse.de>
1083 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
1084 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
1085 overrides the definition in config/svr4.h.
1087 2002-04-12 Eric Norum <eric.norum@usask.ca>
1089 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
1090 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
1091 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
1092 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
1093 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
1094 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
1095 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
1096 definitions to config/rtems.h and make the targets more similar.
1098 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1100 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
1101 POINTERS_EXTEND_UNSIGNED.
1102 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
1103 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
1105 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
1108 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
1110 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
1111 depends on TARGET_SHMEDIA, not TARGET_SH5.
1113 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
1115 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
1116 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
1118 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
1120 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
1123 2002-04-12 Andreas Schwab <schwab@suse.de>
1125 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
1127 2002-04-12 Richard Henderson <rth@redhat.com>
1130 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
1132 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
1133 modes spanning multiple hard regs.
1135 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
1137 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1139 * pa.c (pa_output_function_prologue): Don't accumulate the total
1140 number of code bytes when using TARGET_64BIT, or gas, SOM and not
1141 the portable runtime.
1142 (output_deferred_plabels): Handle 64bit plabels.
1143 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
1144 generating pic code using the GAS assembler for object formats that
1145 are not SOM (ie., ELF32 and ELF64).
1146 (output_millicode_call): Check attribute type if attribute length is 28.
1147 Likewise use $PIC_pcrel$0. Only call get_attr_length and
1148 dbr_sequence_length once.
1149 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
1150 dbr_sequence_length once.
1151 * pa.h (TARGET_SOM): Define if not defined.
1152 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
1153 with GAS and not SOM.
1154 (jump, call_internal_reg, call_value_internal_reg): Likewise.
1155 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
1157 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1159 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
1160 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
1161 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
1162 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
1163 elfos.h and dbxelf.h values are fine now.
1164 * config/i386/freebsd.h, config/alpha/freebsd.h
1165 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
1167 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1169 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
1170 or set Acpu or Amachine. Reformat.
1171 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1173 (LINK_SPEC): Do not need to undef.
1174 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
1175 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
1176 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1178 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
1179 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
1180 (LINK_SPEC): Do not need to undef.
1181 (DONT_USE_BUILTIN_SETJMP): Do not define.
1182 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
1183 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
1184 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
1185 Remove trailing spaces.
1186 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
1187 __ELF__, or set Acpu or Amachine. Reformat.
1188 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1191 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1193 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
1194 all other *-*-freebsd* targets.
1196 2002-04-11 Richard Henderson <rth@redhat.com>
1198 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
1200 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1202 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
1203 Include {cpu}/{cpu}.h thru tm_file.
1204 (alpha*-*-linux*ecoff): Remove target.
1205 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
1206 (LINK_SPEC): Remove, is not OS independent.
1207 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
1208 (LINK_SPEC): Do not need to #undef any longer.
1209 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
1211 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
1213 (LINK_SPEC): Moved here from alpha/elf.h.
1214 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
1216 * config/alpha/linux-ecoff.h: Remove.
1217 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
1218 (CPP_SPEC): Define _POSIX_SOURCE as needed.
1219 (CPP_SUBTARGET_SPEC): Do not define.
1220 (LINK_SPEC): Do not need to #undef any longer.
1221 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
1222 * config/alpha/vms.h: Likewise.
1224 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
1226 * doc/extend.texi: Remove old claim that typedefs cannot have
1227 an alignment attribute.
1229 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1231 PR optimization/6177
1232 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
1233 bitpos is 0 and bitsize CONCAT size.
1235 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1238 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
1240 2002-04-10 David O'Brien <obrien@FreeBSD.org>
1242 * config/alpha/freebsd.h: Minor reformatting.
1243 (CPP_SPEC): Define ELF and add cpp_subtarget.
1244 (ASM_SPEC): No longer needed.
1246 2002-04-11 Richard Henderson <rth@redhat.com>
1248 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
1249 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
1250 (dimode mem/zero splitter): New.
1252 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
1254 * config/cris/cris.c (cris_override_options): Tweak error message
1255 for PIC not implemented.
1257 * config/cris/cris.h: Tweak comments related to parameter-passing.
1259 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
1261 2002-04-10 Richard Henderson <rth@redhat.com>
1263 * except.c (add_ehl_entry): Allow duplicates after landing pad
1266 2002-04-10 David Edelsohn <edelsohn@gnu.org>
1268 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
1270 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
1272 * c-decl.c (c_init_decl_processing): Move generation of
1273 decls for g77_integer_type_node and friends from here ...
1274 * c-common.c (c_common_nodes_and_builtins): ... to here.
1276 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
1278 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
1279 is only used as frame pointer when frame_pointer_needed is true.
1281 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
1284 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
1285 for the fact that the pool entry uses two words.
1286 (movdf_hard_insn): Similarly. Also, ADR instruction can span
1288 (movdf_soft_insn): Similarly.
1289 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
1290 for the fact that the pool entry uses three words.
1292 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
1294 * config/mips/mips.c (mips_va_arg): When using the struct version
1295 of the EABI va_list, allow arguments in the register save area to
1296 take up less room than a stack argument.
1298 2002-04-10 Richard Henderson <rth@redhat.com>
1300 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
1301 if EXPAND_INITIALIZER.
1303 2002-04-09 Richard Henderson <rth@redhat.com>
1305 * config/alpha/alpha.md (movdi_er_maybe_g): New.
1306 * config/alpha/alpha.c (alpha_expand_mov): Use it.
1308 2002-04-10 Alan Modra <amodra@bigpond.net.au>
1310 PR optimization/6233
1311 * rtlanal.c (pure_call_p): New function.
1312 * rtl.h (pure_call_p): Declare.
1313 * loop.c (prescan_loop): Use it to set has_nonconst_call.
1314 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
1316 2002-04-09 Eric Christopher <echristo@redhat.com>
1318 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
1319 information to .comm directive.
1321 2002-04-09 Richard Henderson <rth@redhat.com>
1324 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
1326 2002-04-09 Richard Henderson <rth@redhat.com>
1328 * basic-block.h (flow_delete_block_noexpunge): Declare.
1329 (expunge_block_nocompact): Declare.
1330 * cfg.c (expunge_block_nocompact): Split out from ...
1331 (expunge_block): ... here.
1332 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
1333 (flow_delete_block_noexpunge): Split out from ...
1334 (flow_delete_block): ... here.
1335 * cfgcleanup.c (delete_unreachable_blocks): Compact while
1336 removing dead blocks.
1337 * except.c (exception_handler_labels): Remove.
1338 (exception_handler_label_map): New.
1339 (struct eh_region): Add aka member.
1340 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
1341 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
1342 (for_each_eh_label, for_each_eh_label_1): New.
1343 (init_eh): Register exception_handler_label_map.
1344 (free_eh_status): Use free_region.
1345 (find_exception_handler_labels): Use the map, not the list.
1346 (remove_exception_handler_label): Likewise.
1347 (maybe_remove_eh_handler): Likewise.
1348 (remove_eh_handler): Use the region aka bitmap.
1349 * except.h (exception_handler_labels): Remove.
1350 (for_each_eh_label): Declare.
1351 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
1352 * loop.c (invalidate_loops_containing_label): New.
1353 (find_and_verify_loops): Use it. Use for_each_eh_label.
1354 * sched-rgn.c (is_cfg_nonregular): Use
1355 current_function_has_exception_handlers.
1357 2002-04-09 Richard Henderson <rth@redhat.com>
1359 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
1360 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
1361 Do not return changed status.
1362 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
1363 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
1364 New functions that do return changed status.
1365 * sbitmap.h: Update decls.
1366 * gcse.c, lcm.c: Use _cg functions as needed.
1368 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1370 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
1371 (sh64-*-elf*, sh-*-rtemself*): Likewise.
1372 * config/sh/embed_bb.c: New file.
1373 * config/sh/embed-elf.h: New file.
1374 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
1375 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
1376 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1378 (SUBTARGET_CPP_PTR_SPEC): Don't define.
1379 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
1380 Add subtarget_asm_endian_spec.
1381 (ASM_SPEC): Use subtarget_asm_endian_spec.
1382 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
1383 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
1384 (WCHAR_UNSIGNED): Define.
1385 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
1386 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1387 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
1389 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
1390 (sh_adjust_cost): Likewise.
1391 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1393 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
1394 (WCHAR_TYPE_SIZE): Likewise.
1395 (ASM_SPEC): Use subtarget_asm_endian_spec.
1396 (SH_ELF_WCHAR_TYPE): #undef/ #define.
1397 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
1398 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
1399 (MAX_WCHAR_TYPE_SIZE): Don't #define .
1400 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
1401 (USER_LABEL_PREFIX): Don't #undef /#define .
1402 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1403 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
1404 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
1405 (ASM_SPEC): Likewise.
1406 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
1407 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
1408 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
1409 (LIB2FUNCS_EXTRA): Define.
1410 * t-sh64 (LIB2FUNCS_EXTRA): Define.
1411 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1412 (LIB1ASMFUNCS_CACHE): Define.
1413 (LIB2FUNCS_EXTRA): Redefine empty.
1415 2002-04-08 Richard Henderson <rth@redhat.com>
1417 * reorg.c (get_branch_condition): Use reversed_comparison_code.
1419 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1421 * config/m68hc11/larith.asm (__map_data_section): Fix condition
1422 and optimize for size.
1423 (__do_global_ctors): Fix pointer comparison.
1424 (__do_global_dtors): Likewise.
1426 2002-04-09 David S. Miller <davem@redhat.com>
1428 * config/sparc/sparc.c (sparc_extra_constraint_check): New
1429 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
1430 allow reloading pseudos.
1431 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1432 * config/sparc/sparc-protos.h: Declare it.
1434 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1435 unsigned comparison warning.
1436 (output_restore_regs): Mark leaf_function as unused.
1438 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1440 * expr.c (is_aligning_offset): New function.
1441 (expand_expr, case COMPONENT_EXPR): Call it.
1443 2002-04-08 David S. Miller <davem@redhat.com>
1446 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
1448 Make init_priority work on Sparc when using GNU ld.
1449 * config/sparc/linux.h, config/sparc/linux64.h,
1450 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
1451 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
1452 * config/sparc/sol2-gld.h: New file to do the same.
1453 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1454 sparc/sol2-gld.h to tm_file.
1456 PR optimization/4328
1457 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1458 * doc/md.texi: Document it.
1459 * config/sparc/sparc.md (movdi_insn_sp64_novis,
1460 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1461 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1462 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1463 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1465 2002-04-08 Andreas Jaeger <aj@suse.de>
1467 * stmt.c (expand_asm_operands): Revert last patch from Richard
1470 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1472 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1473 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
1475 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1477 * doc/contrib.texi (Contributors): Add David O'Brien.
1479 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1481 * configure.in (auto-build.h): Use target_alias and build_alias
1482 when running configure.
1483 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1484 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1485 * configure: Regenerate.
1487 2002-04-07 David S. Miller <davem@redhat.com>
1489 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1491 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
1494 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1495 generating 32-bit pic code.
1497 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
1499 * cppinit.c (cpp_create_reader): Initialize
1500 discard_comments_in_macro_exp.
1501 (COMMAND_LINE_OPTIONS): Add "-CC" option.
1502 (cpp_handle_option): Handle "-CC" option.
1503 * cpplex.c (save_comment): If saving a C++ comment in
1504 a directive, convert it to a C comment.
1505 (_cpp_lex_direct): Pass second comment start character to
1506 save_comment to indicate comment type.
1507 * cpplib.c (_cpp_handle_directive): If processing
1508 a "#define" directive and discard_comments_in_macro_exp
1509 is false, re-enable saving of comments.
1510 (lex_macro_node): If discard_comments_in_macro_exp is false,
1511 discard any comments before the macro identifier.
1512 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1514 * cppmacro.c (cpp_get_token): If expanding a macro while
1515 processing a directive, discard any comments we might encounter.
1516 (parse_params): If discard_comments_in_macro_exp is false,
1517 ignore comments in the macro parameter list.
1518 * gcc.c (cpp_unique_options): Add "-CC" option.
1519 (option_map): Map "--comments-in-macros" to "-CC".
1520 * doc/cppopts.texi: Document "-CC" option.
1521 * f/lang-specs.h: Add "-CC" option.
1522 * testsuite/gcc.dg/cpp/maccom1.c: New test.
1523 * testsuite/gcc.dg/cpp/maccom2.c: New test.
1524 * testsuite/gcc.dg/cpp/maccom3.c: New test.
1525 * testsuite/gcc.dg/cpp/maccom4.c: New test.
1526 * testsuite/gcc.dg/cpp/maccom5.c: New test.
1527 * testsuite/gcc.dg/cpp/maccom6.c: New test.
1529 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1532 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1534 2002-04-06 Mark Mitchell <mark@codesourcery.com>
1537 * stor-layout.c (layout_decl): Reset the RTL for the decl.
1540 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1541 RTX_UNCHANGING_P for the functions arguments when a tail call
1544 2002-04-06 Jason Merrill <jason@redhat.com>
1546 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1547 (parse_options_and_default_flags): Set them appropriately.
1548 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1550 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
1552 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1555 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1558 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1559 types come in by-reference. Fix typo in comment.
1561 2002-04-05 David S. Miller <davem@redhat.com>
1563 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1564 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1565 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1566 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1568 2002-04-05 David S. Miller <davem@redhat.com>
1570 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1571 are not going to emit return instructions, emit at least a nop
1572 for the sake of sane backtraces.
1574 2002-04-05 Richard Henderson <rth@redhat.com>
1576 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1578 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
1580 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1582 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
1584 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1585 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1586 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1588 2002-04-05 Andreas Schwab <schwab@suse.de>
1590 * c-convert.c: Include c-common.h.
1591 * Makefile.in (c-convert.o): Updated.
1593 2002-04-05 Jakub Jelinek <jakub@redhat.com>
1595 * mklibgcc.in: Use separate libgcc.map for each multilib.
1596 * Makefile.in (distclean): Don't remove libgcc.map here.
1598 2002-04-05 Jakub Jelinek <jakub@redhat.com>
1600 * Makefile.in (s-mlib): Handle --disable-multilib by separate
1601 genmultilib invocation.
1603 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
1605 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1606 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
1607 to num_gprs for symmetry.
1608 * config/mips/mips.c: Adjust accordingly.
1610 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
1612 * c-common.c (truthvalue_conversion): Rename, update.
1613 * c-common.h (c_common_truthvalue_conversion): New.
1614 * c-convert.c (convert): Update.
1615 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1616 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1617 * c-typeck.c (build_binary_op, build_unary_op,
1618 build_conditional_expr): Update.
1619 * fold-const.c (constant_boolean_node, fold): Use langhook.
1620 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1621 * langhooks.h (struct lang_hooks): New hook.
1622 * stmt.c (expand_decl_cleanup): Use langhook.
1623 * tree.h (truthvalue_conversion): Remove.
1625 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1627 2002-04-05 Alan Modra <amodra@bigpond.net.au>
1629 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1630 Add rules to make null object file.
1632 2002-04-04 Jim Blandy <jimb@redhat.com>
1634 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1635 macro formal parameter names.
1637 2002-04-04 David S. Miller <davem@redhat.com>
1639 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1641 2002-04-04 Richard Henderson <rth@redhat.com>
1644 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1645 Support copies into and out of memory. Don't accept allows_reg
1646 and allows_mem as gospel.
1648 2002-04-04 Richard Henderson <rth@redhat.com>
1651 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1652 (write_dependence_p): Likewise.
1654 2002-04-04 Richard Henderson <rth@redhat.com>
1656 * predict.c (estimate_bb_frequencies): Do frequency calculation
1657 with a volatile temporary.
1659 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
1661 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1663 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1666 * final.c (final_start_function): Don't bump profile_label_no here...
1667 (final_end_function): ...but here.
1669 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1671 * config/sparc/sparc.md (pic): New attribute.
1672 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1674 (split after do_builtin_setjmp_setup): New.
1676 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1679 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1682 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1684 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1685 UNITS_PER_WORD for zero sized aggregates.
1687 2002-04-03 David S. Miller <davem@redhat.com>
1689 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1690 one-character spec for this, just use %(link_gcc_c_sequence).
1692 2002-04-03 David S. Miller <davem@redhat.com>
1694 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1697 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
1699 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1700 (DWARF_FRAME_RETURN_COLUMN): Move.
1701 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1702 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1703 * pa.c (except.h, predict.h): Include.
1705 (store_reg_modify, set_reg_plus_d): Revise prototypes.
1706 (output_ascii): Add cast.
1707 (store_reg_modify): Revise to add frame notes.
1708 (set_reg_plus_d): Likewise.
1709 (compute_frame_size): Include space for eh data registers in frame if
1710 the current function calls eh_return.
1711 (hppa_expand_prologue): Ensure register %r2 is saved if the current
1712 function calls eh_return. Save eh data registers if the current
1713 function calls eh_return. Fix code to add frame notes. Emit
1714 blockage to prevent insns with frame notes being scheduled in the
1715 delay slot of calls.
1716 (hppa_expand_epilogue): Restore eh data registers and do final stack
1717 adjustment if the current function calls eh_return. Don't add frame
1719 (output_call): Revise for change in length of call insn. Don't do
1720 return pointer adjustment for an unconditional jump in the delay slot
1721 of a call when using frame notes.
1722 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1723 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1724 (ARG_POINTER_CFA_OFFSET): Define.
1725 * pa.md (return_external_pic): New pattern.
1726 (prologue): Correct formatting. Use return_external_pic if current
1727 function calls eh_return.
1728 (call_internal_symref, call_value_internal_symref,
1729 sibcall_internal_symref, sibcall_value_internal_symref): Change default
1730 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1732 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1734 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1735 list of targets to check using "nop" insn.
1736 * configure: Rebuilt.
1738 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1740 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1742 2002-04-03 David S. Miller <davem@redhat.com>
1744 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1745 library sequence passed to the linker.
1746 (LINK_COMMAND_SPEC): Use it.
1747 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1748 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1749 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1751 2002-04-03 Jason Merrill <jason@redhat.com>
1753 * except.c (struct eh_status): Remove protect_list.
1754 (begin_protect_partials, end_protect_partials): Remove.
1755 (add_partial_entry): Remove.
1756 * except.h: Remove prototypes.
1758 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1759 expand_decl_cleanup_eh.
1762 * tree.h (CLEANUP_EH_ONLY): New macro.
1763 * stmt.c (expand_decl_cleanup_eh): New fn.
1764 (expand_cleanups): Check CLEANUP_EH_ONLY.
1765 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1766 Use expand_decl_cleanup_eh.
1767 (expand_stmt): Adjust.
1768 * c-common.h: Adjust prototype.
1770 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
1772 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1773 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1774 (cris_target_asm_function_epilogue): Ditto.
1775 (cris_initial_frame_pointer_offset): Ditto.
1776 (cris_simple_epilogue): Ditto.
1777 (cris_expand_builtin_va_arg): Variable-size types come in
1780 2002-04-03 David S. Miller <davem@redhat.com>
1782 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1784 (set_fast_math): Correct 'fsr' type.
1786 2002-04-03 Richard Henderson <rth@redhat.com>
1789 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1790 * toplev.c (check_global_declarations): Use it.
1791 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1792 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1793 (LANG_HOOKS_DECLS): Add it.
1794 * langhooks.c (lhd_warn_unused_global_decl): New.
1795 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1796 * c-objc-common.c (c_warn_unused_global_decl): New.
1797 * c-tree.h (c_warn_unused_global_decl): Declare.
1798 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1800 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
1802 * langhooks-def.h (lhd_set_decl_assembler_name,
1803 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1804 (LANG_HOOKS_INITIALIZER): Update.
1805 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1806 * langhooks.h (struct lang_hooks): New hook.
1807 * tree.c (set_decl_assembler_name): Move to langhooks.c.
1808 (lang_set_decl_assembler_name): Remove.
1809 (init_obstacks): Don't set hook.
1810 (decl_assembler_name): New function.
1811 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1812 (decl_assembler_name): New.
1813 (lang_set_decl_assembler_name): Remove.
1815 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1817 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1818 works properly with .hidden symbols.
1819 * configure: Rebuilt.
1820 * config.in: Rebuilt.
1821 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1822 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1823 properly with .hidden symbols.
1825 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1828 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1831 2002-04-03 Richard Henderson <rth@redhat.com>
1834 * sched-rgn.c (sets_likely_spilled): New.
1835 (sets_likely_spilled_1): New.
1836 (add_branch_dependences): Use it.
1838 2002-04-02 Richard Henderson <rth@redhat.com>
1841 * loop.h (LOOP_FIRST_PASS): New.
1842 * loop.c (strength_reduce): Mind it when deciding to unroll.
1843 * toplev.c (rest_of_compilation): Set it.
1845 2002-04-02 David S. Miller <davem@redhat.com>
1847 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1848 mems_ok_for_ldd_peep when the order of the loads being examined
1850 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1851 existing comment to increase comprehension of this situation.
1853 2002-04-02 Zack Weinberg <zack@codesourcery.com>
1855 * config/sh/sh.md: Don't use union real_extract.
1857 2002-04-02 Richard Henderson <rth@redhat.com>
1859 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1861 2002-04-02 David O'Brien <obrien@FreeBSD.org>
1863 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1864 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1865 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1866 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1867 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1868 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1869 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1870 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1871 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1872 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1873 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1874 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1875 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1876 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1877 Include as many configury headers via tm_file as possible. This
1878 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1879 * config/openbsd-oldgas.h: New file.
1880 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1881 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1882 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1883 config/i386/i386-coff.h, config/i386/i386-interix.h,
1884 config/i386/iscdbx.h, config/i386/linux-aout.h,
1885 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1886 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1887 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1888 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1889 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1890 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1891 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1892 config/i386/vxi386.h: Do not directly include configury headers.
1893 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1894 Directly include configury headers that are no longer automatically
1895 included by the above headers.
1896 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1897 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1898 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1899 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1900 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1901 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1902 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1903 (TARGET_VERSION): Define.
1904 * config/i386/beos-elf.h, config/i386/freebsd.h,
1905 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1906 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1907 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1908 config/i386/sco5.h, config/i386/sysv4.h
1909 (TARGET_VERSION): Do not need to protect.
1910 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1911 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1912 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1913 config/i386/i386-interix.h, config/i386/linux-aout.h,
1914 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1915 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1916 (YES_UNDERSCORES): Do not define - not needed.
1917 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1918 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1919 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1920 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1921 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1922 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1923 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1924 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1926 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
1927 Richard Henderson <rth@redhat.com>
1930 * function.c (assign_temp): Accept either type or decl argument.
1931 Detect variables whose size is too large to fit into an integer.
1932 * stmt.c (expand_decl): Pass the decl, not the type.
1934 2002-04-02 David O'Brien <obrien@FreeBSD.org>
1936 * protoize.c: Match include directory usage with cppdefault.c.
1938 2002-04-03 Jeffrey A Law (law@redhat.com)
1939 Hans-Peter Nilsson <hp@bitrange.com>
1941 * combine.c (simplify_comparison): Avoid narrowing a comparison
1942 with a paradoxical subreg when doing so would drop signficant bits.
1944 2002-04-02 Steve Ellcey <sje@cup.hp.com>
1946 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1947 if POINTERS_EXTEND_UNSIGNED is defined.
1949 2002-04-02 Richard Henderson <rth@redhat.com>
1952 * local-alloc.c (contains_replace_regs): LO_SUM may contain
1955 2002-04-02 Richard Henderson <rth@redhat.com>
1957 * doc/standards.texi: Document required freestanding libc entry points.
1959 2002-04-02 Alan Modra <amodra@bigpond.net.au>
1961 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1962 associated splitter. Remove MQ constraint.
1963 (ctrdi_internal4): Correct CCmode clobber.
1965 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
1967 * milli64.S ($$dyncall): New function.
1968 * t-linux (LIB1ASMFUNCS): Revise module list.
1969 (LIB1ASMSRC): Use pa/milli64.S.
1971 2002-04-02 Richard Henderson <rth@redhat.com>
1973 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1974 rename solaris_sys_varargs_h.
1976 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1978 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1979 the same mode as its component.
1981 2002-04-02 Richard Henderson <rth@redhat.com>
1984 * final.c (this_is_asm_operands): Export.
1985 * output.h (this_is_asm_operands): Declare.
1986 * config/i386/i386.c (print_operand): Error odd asm operands.
1988 2002-04-02 Richard Henderson <rth@redhat.com>
1991 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1993 2002-04-01 Richard Henderson <rth@redhat.com>
1996 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1997 * fixinc/fixincl.x: Rebuild.
1999 2002-04-01 Richard Henderson <rth@redhat.com>
2001 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
2002 (atomic_alloc, atomic_free): New.
2003 (SIZE, MASK_FOR, PTR_IN): New.
2004 (emergency_reg_state, emergency_reg_state_free): New.
2005 (emergency_labeled_state, emergency_labeled_state_free): New.
2006 (reg_state_alloced, labeled_state_alloced): New.
2007 (alloc_reg_state, free_reg_state): New.
2008 (alloc_label_state, free_label_state, free_label_states): New.
2009 (push, pop, dup_state_stack, free_state_stack): Use them.
2010 (desc_label_state): Likewise.
2011 (uw_frame_state_for): Free label states and state stack.
2012 (uw_update_reg_address): Eliminate warnings.
2014 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
2016 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
2017 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
2019 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2021 * c-decl.c (grokdeclarator): Update.
2022 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2023 * c-tree.h (c_mark_addressable): New.
2024 * c-typeck.c (default_function_array_conversion, build_unary_op,
2025 build_array_ref, convert_for_assignment): Update.
2026 (mark_addressable): Rename.
2027 * calls.c (try_to_integrate, expand_call): Use langhook.
2028 * expr.c (expand_expr): Use langhook.
2029 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
2030 * langhooks.h (struct lang_hooks): New hook.
2031 * stmt.c (expand_asm_operands): Use langhook.
2032 * tree.h (mark_addressable): Remove.
2034 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2036 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2038 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
2041 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2043 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
2044 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
2046 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2048 * c-common.c (unsigned_conversion_warning, convert_and_check,
2049 unsigned_type, signed_type, shorten_compare,
2050 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
2051 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
2052 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
2054 * c-decl.c (grokdeclarator): Update.
2055 * c-format.c (check_format_types): Update.
2056 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2057 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2058 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
2059 * convert.c (convert_to_integer): Use new hooks.
2060 * expmed.c (make_tree): Use new hooks.
2061 * expr.c (store_expr): Use new hooks.
2062 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
2063 all_ones_mask_p, unextend, fold): Use new hooks.
2064 * langhooks.h (struct lang_hooks_for_types): New hooks.
2065 * tree.h (signed_or_unsigned_type, signed_type,
2066 unsigned_type): Remove.
2068 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2069 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2071 2002-03-31 Richard Henderson <rth@redhat.com>
2073 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
2074 (desc_frgr_mem): Fix reference to f16-f31.
2076 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2078 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
2079 RTVEC_ELT): Const-ify.
2080 * varray.h (VARRAY_CHECK): Const-ify.
2081 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
2082 ggc_mark_rtvec, ggc_mark): Const-ify.
2084 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2086 * diagnostic.c: Include langhooks-def.h.
2087 * Makefile.in (diagnostic.o): Update.
2089 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
2091 * c-common.c (c_unsafe_for_reeval): Rename.
2092 * c-common.h (c_unsafe_for_reeval): Rename.
2093 * c-decl.c (finish_incomplete_decl): Rename.
2094 (c_init_decl_processing): Don't set langhook.
2095 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2096 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2097 * c-objc-common.c (c_objc_common_init): Don't set langhook.
2098 * c-tree.h (finish_incomplete_decl): Rename.
2099 * langhooks-def.h (lhd_unsafe_for_reeval): New.
2100 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
2101 (LANG_HOOKS_INITIALIZER): Update.
2102 * langhooks.c (lhd_unsafe_For_reeval): New.
2103 * langhooks.h (struct langhooks): New hooks.
2104 * toplev.c (incomplete_decl_finalize_hook): Remove.
2105 (wrapup_global_declarations): Update.
2106 * tree.c (lang_unsafe_for_reeval): Remove.
2107 (unsafe_for_reeval): Update.
2108 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
2111 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2112 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2114 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
2116 * diagnostic.c (print_error_function): Remove.
2117 (default_print_error_function): Rename.
2118 (report_error_function): Update.
2119 * diagnostic.h (print_error_function): Remove.
2120 (default_print_error_function): Remove.
2121 * langhooks-def.h (struct diagnostic_context): Predeclare.
2122 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
2123 (LANG_HOOKS_INITIALIZER): Update.
2124 * langhooks.h (struct diagnostic context): Predeclare.
2125 (struct lang_hooks): New hook.
2127 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2129 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
2130 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
2132 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
2133 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
2134 of PIC_OFFSET_TABLE_REGNUM thruout.
2135 * config/rs6000/rs6000.md: Likewise.
2136 * config/rs6000/darwin.h: Likewise.
2138 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2140 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
2141 unsigned HOST_WIDE_INT, not unsigned int.
2143 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2145 PR middle-end/6096, middle-end/6098, middle-end/6099
2146 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
2148 (fill_slots_from_thread): Likewise.
2150 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2152 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
2153 floating fields in float regs.
2154 (function_arg_record_value_2): Likewise.
2156 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
2158 * config/mmix/mmix.md (define_constants): Remove misleading
2159 FIXME. Add MMIX_fp_rO_OFFSET.
2160 ("nonlocal_goto_receiver"): Don't have stack-frame address of
2161 saved rO as part of the pattern. Remove FIXME.
2162 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
2163 here, at output-time.
2165 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2168 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
2170 (output_v9branch): Likewise.
2172 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
2174 * gcc.c: Revert previous patch for now.
2175 * config/i386/djgpp.h: Likewise.
2177 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
2179 * config/mmix/crti.asm (_init): Register _fini with atexit.
2180 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
2182 2002-03-31 Richard Henderson <rth@redhat.com>
2185 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
2186 (ASM_OUTPUT_DEF_FROM_DECLS): New.
2188 2002-03-31 Richard Henderson <rth@redhat.com>
2190 * libgcc2.c (__bb_exit_func): Make static.
2192 * config/alpha/alpha.md (trap): New.
2194 2002-03-31 Richard Henderson <rth@redhat.com>
2196 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
2197 promoted argument types; build trap.
2198 (expand_builtin_trap): New.
2199 (expand_builtin): Use it.
2200 * stmt.c (expand_nl_goto_receivers): Likewise.
2201 * expr.h (expand_builtin_trap): Declare.
2202 * libfuncs.h (LTI_abort, abort_libfunc): New.
2203 * optabs.c (init_optabs): Init abort_libfunc.
2205 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
2207 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
2208 (LINK_COMMAND_SPEC): ... from here.
2209 (init_gcc_specs): Duplicate it here too, omitting
2210 shared_name in the second copy.
2211 (init_spec): Test for duplicate
2212 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
2214 2002-03-30 David S. Miller <davem@redhat.com>
2216 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2217 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
2219 2002-03-30 Roger Sayle <roger@eyesopen.com>
2220 Richard Henderson <rth@redhat.com>
2222 * regmove.c (combine_stack_adjustments_for_block): Avoid
2223 emitting a stack adjustment of zero bytes. Let delete_insn
2226 2002-03-30 Richard Henderson <rth@redhat.com>
2228 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
2229 (sparc_emitting_epilogue): New.
2230 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
2231 * config/sparc/sparc-protos.h: Update.
2232 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
2233 (TARGET_SWITCHES): Update.
2234 * config/sparc/sparc.md (return): Remove.
2235 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
2236 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
2237 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
2238 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
2239 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
2240 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
2241 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
2242 Remove MASK_EPILOGUE.
2243 * doc/invoke.texi: Update.
2245 2002-03-30 Daniel Berlin <dan@dberlin.org>
2247 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
2248 CPP will start the file for us.
2250 2002-03-30 Richard Henderson <rth@redhat.com>
2253 * config/ia64/ia64.c (group_barrier_needed_p): Special case
2254 prologue_allocate_stack.
2255 (ia64_single_set): Use insn codes for recognition of special
2256 cases, not rtl matching.
2257 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
2259 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
2261 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
2263 2002-03-30 Richard Henderson <rth@redhat.com>
2266 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
2267 or -fomit-frame-pointer with profiling.
2268 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2269 (FUNCTION_PROFILER): Do nothing.
2270 (PROFILE_HOOK): New.
2271 * config/sparc/sparc.c (sparc_override_options): Don't check
2272 code models for profiling.
2273 (sparc_function_profiler): Remove.
2274 (sparc_profile_hook): New.
2275 * config/sparc/sparc-protos.h: Update.
2277 2002-03-30 Jakub Jelinek <jakub@redhat.com>
2279 PR optimization/6086
2280 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
2281 of SUBREG of volatile MEM or because the MEM was mode dependent,
2282 return CLOBBER instead of unmodified SUBREG.
2284 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
2286 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
2287 when not optimizing.
2289 * toplev.c (rest_of_compilation): Cann mark_constant_function
2290 only when optimizing.
2292 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
2295 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
2296 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
2297 (try_optimize_cfg): clear all AUX fields.
2299 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
2300 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
2301 (ix86_address_cost): Be prepared for SUBREGed registers.
2302 (legitimate_address_p): Accept SUBREGed registers.
2304 2002-03-29 Richard Henderson <rth@redhat.com>
2307 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
2309 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2311 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
2312 for aggregate and TFmode types.
2314 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
2316 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
2318 2002-03-29 Richard Henderson <rth@redhat.com>
2321 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
2322 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
2324 2002-03-29 Richard Henderson <rth@redhat.com>
2327 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
2328 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
2329 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
2330 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
2332 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
2334 2002-03-29 Dale Johannesen <dalej@apple.com>
2336 * loop.c (combine_movables): Do allow combination of pseudos.
2338 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
2340 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
2341 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
2342 No functional change except ...
2343 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
2344 * doc/install.texi (*-*-freebsd*): Document port configuration.
2346 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
2348 * Makefile.in (convert.o, calls.o, expmed.o): Update.
2349 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
2351 * builtin-types.def (BT_PTRMODE): Update.
2352 * c-common.c (type_for_size): Rename c_common_type_for_size.
2353 (type_for_mode): Similarly.
2354 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
2356 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
2357 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
2358 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
2360 * c-typeck.c (common_type, comptypes, default_conversion):
2362 * calls.c: Include langhooks.h.
2363 (emit_library_call_value_1): Use new hooks. Avoid redundant
2365 * convert.c: Include langhooks.h
2366 (convert_to_pointer, convert_to_integer): Use new hooks.
2367 * except.c (init_eh): Similarly.
2368 * expmed.c: Include langhooks.h.
2369 (expand_mult_add): Use new hooks.
2370 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
2371 try_casesi): Similarly.
2372 * fold-const.c (optimize_bit_field_compare, make_range,
2373 decode_field_reference, fold_truthop, fold): Similarly.
2374 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
2375 put_var_into_stack): Similarly.
2376 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
2377 LANG_HOOKS_TYPE_FOR_SIZE): New.
2378 (LANG_HOOKS_TYPES_INITIALIZER): Update.
2379 * langhooks.h (lang_hooks_for_types): New hooks.
2380 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
2381 * tree.c (get_unwidened, get_narrower): Similarly.
2382 * tree.h (type_for_mode, type_for_size): Remove.
2383 * varasm.c (force_const_mem): Use new hooks.
2384 * utils2.c (nonbinary_modular_operation): Update.
2386 * objc-act.c (handle_impent): Update.
2387 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
2390 2002-03-29 Steve Ellcey <sje@cup.hp.com>
2392 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
2393 * config/ia64/ia64.c (basereg_operand): New.
2394 * config/ia64/ia64-protos.h (basereg_operand): Declare.
2395 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
2397 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
2399 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
2400 unwind information when frame_pointer_needed.
2401 (mmix_assemble_integer): Tweak wording in comment.
2403 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
2405 * Makefile.in (except.o): Update.
2406 * except.c: Include langhooks.h.
2407 (init_eh): Use langhook.
2408 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
2409 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2410 (LANG_HOOKS_INITIALIZER): Update.
2411 * langhooks.h (lang_hooks_for_types): New.
2412 (struct lang_hooks): Add it.
2413 * tree.c (make_lang_type_fn, make_lang_type): Remove.
2414 * tree.h (make_lang_type_fn, make_lang_type): Remove.
2416 * alpha/alpha.c: Include langhooks.h.
2417 (alpha_build_va_list): Use langhook.
2418 * d30v/d30v.c: Include langhooks.h.
2419 (d30v_build_va_list): Use langhook.
2420 * i386/i386.c: Include langhooks.h.
2421 (ix86_build_va_list): Use langhook.
2422 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2423 * s390/s390.c: Include langhooks.h.
2424 (s390_build_va_list): Use langhook.
2425 * stormy16/stormy16.c: Include langhooks.h.
2426 (stormy16_build_va_list): Use langhook.
2428 2002-03-29 Jakub Jelinek <jakub@redhat.com>
2431 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2433 (length): Compute variable length for branches/calls/jumps here.
2434 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2435 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2436 define branch_type attribute.
2437 (divsi3_sp32): Maximum length is 6 not 7.
2438 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2439 call_address_untyped_struct_value_sp32,
2440 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2441 * config/sparc/sparc.c (empty_delay_slot): New function.
2442 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2443 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
2445 2002-03-29 Jakub Jelinek <jakub@redhat.com>
2447 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
2448 nonzero_bits if not needed.
2449 (nonzero_bits) [XOR]: Likewise.
2450 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
2451 reg_last_set_mode and mode are both MODE_INT, but not equal.
2452 (record_value_for_reg): Compute reg_last_set_nonzero_bits
2453 in nonzero_bits_mode for MODE_INT modes.
2455 2002-03-28 Richard Henderson <rth@redhat.com>
2458 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2459 to GAS. Correct drift between alternatives.
2461 2002-03-28 Richard Henderson <rth@redhat.com>
2464 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2466 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
2468 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2469 emulation to the linker.
2471 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
2473 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2474 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2476 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
2478 * combine.c (simplify_and_const_int): Make sure to apply mask
2479 when force_to_mode returns a constant integer. PR3311.
2481 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2483 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2485 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2487 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2488 and Objective-C Dialect Options.
2490 2002-03-28 Richard Henderson <rth@redhat.com>
2492 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2493 comparison should be done vs !=0 not >0 return code. Tidy cases.
2495 2002-03-28 Richard Henderson <rth@redhat.com>
2497 * c-decl.c (finish_function): New arg can_defer_p. Pass it
2498 on to c_expand_body.
2499 * c-tree.h (finish_function): Update decl.
2500 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2502 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
2504 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2506 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
2508 * rtlanal.c: Include flags.h
2509 (may_trap_p): Do not mark FP operations if trapping
2510 if !flag_trapping_math
2511 * Makefile.in (rtlanal.o): Add dependency on flag.h
2512 * ifcvt.c (noce_operand_ok): Avoid the lameness.
2514 2002-03-27 Zack Weinberg <zack@codesourcery.com>
2516 * mips.md: Use dconst1, not 1.0, as first argument of
2517 REAL_VALUE_LDEXP. Don't use union real_extract.
2519 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2521 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2522 rather than $target. Heed program_prefix and
2523 program_transform_name. Search for gas in cross-compiler case too.
2524 "test -x" rather than "test -f".
2525 (gcc_cv_ld): Likewise.
2526 (gcc_cv_nm): Heed program_prefix and program_transform_name.
2527 (gcc_cv_objdump): Likewise.
2528 * configure: Regenerate.
2530 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2532 * Makefile.in (attribs.o): Update.
2533 * attribs.c: Include langhooks.h.
2534 (decl_attributes): Use langhook.
2535 * c-decl.c (insert_default_attributes): Rename.
2536 * c-tree.h (c_insert_default_attributes): New.
2537 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2538 (LANG_HOOKS_INITIALIZER): Update.
2539 * langhooks.h (struct lang_hooks): New hook.
2540 * tree.h (insert_default_attributes): Remove.
2542 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2544 2002-03-27 Andreas Schwab <schwab@suse.de>
2546 * config/i386/i386.c (classify_argument): Also check for
2549 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2551 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2554 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
2556 * i960.md (ret): Set PC.
2557 (nonlocal_goto): Fix expander.
2558 * builtins.c (epxand_builin_longjmp): Check that we've emitted
2561 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
2563 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2566 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2568 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2569 assigning to BLOCK_FOR_INSN directly.
2571 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
2573 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2575 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2577 * c-common.c (c_expand_expr): Fix prototype.
2578 * c-common.h (c_expand_expr): Always declare, update.
2579 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2580 * c-objc-common.c (c_objc_common_init): No global hook.
2581 * expr.c (expand_expr): Use langhook.
2582 * expr.h (enum expand_modifier): Conditionally declare.
2583 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2584 (LANG_HOOKS_INITIALIZER): Update.
2585 * langhooks.c (lhd_expand_expr): New.
2586 * langhooks.h (struct lang_hooks): New hook.
2587 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2588 (lang_independent_init): Don't default hook.
2590 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2592 2002-03-27 Richard Henderson <rth@redhat.com>
2595 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2596 TARGET_CONST_GP. Simplify conditions.
2598 2002-03-27 Richard Henderson <rth@redhat.com>
2600 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2601 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2602 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2604 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
2606 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2607 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2608 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2609 Remove unnecessary masks.
2610 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2611 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2612 -mwindows, -mdll switches and their negations.
2614 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2616 * gcc-common.c (lang_mark_false_label_stack): Remove.
2617 * ggc.h (lang_mark_false_label_stack): Similarly.
2619 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
2621 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2623 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2624 or __rtems_ is defined.
2626 2002-03-26 Richard Henderson <rth@redhat.com>
2628 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2629 if a non-trivial load was emitted.
2630 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
2631 in high+extra+low case.
2633 2002-03-26 Richard Henderson <rth@redhat.com>
2635 * config.gcc (sparc*-solaris): Use float_format=sparc.
2637 2002-03-26 Richard Henderson <rth@redhat.com>
2639 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2640 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2641 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2642 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2643 (WINT_TYPE_SIZE): Fix at 32.
2645 2002-03-26 Richard Henderson <rth@redhat.com>
2647 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2648 until after eh landing pad generation.
2649 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2650 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2652 2002-03-26 Richard Henderson <rth@redhat.com>
2654 * expr.h (ADD_PARM_SIZE): One more convert for INC.
2656 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
2658 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
2659 and warning switches.
2660 (cc1_options): Likewise.
2662 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
2664 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2665 Restore more of the signal context. Set no_reg_stack_frame.
2666 * config/ia64/unwind-ia64.c (unw_state_record):
2667 Add no_reg_stack_frame, comments.
2668 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2669 (uw_update_context): Adjust bsp when unwinding from leaf,
2670 but not signal frame.
2672 2002-03-26 David Edelsohn <edelsohn@gnu.org>
2674 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2676 2002-03-26 Bob Wilson <bob.wilson@acm.org>
2678 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2680 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
2683 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2684 "Add a pool_range attribute", which was lost during the ARM/Thumb
2687 2002-03-26 Bob Wilson <bob.wilson@acm.org>
2689 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2690 a register into the MAC16 accumulator.
2692 2002-03-26 Andrew Cagney <ac131313@redhat.com>
2694 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2695 (Warning Options): Document -Wswitch-enum.
2696 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
2698 (warn_switch_enum): Define variables.
2699 * flags.h (warn_switch_enum): Declare variables.
2700 * stmt.c (expand_end_case_type): When warn_switch_enum /
2701 -Wswitch-enum, perform switch checks.
2704 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
2706 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2707 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2708 (reload_muladdsi_compare0_scratch): Delete.
2710 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
2712 * doc/install.texi (*-*-freebsd*): Update.
2714 2002-03-26 Richard Henderson <rth@redhat.com>
2716 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2717 (SUB_PARM_SIZE): Cast DEC to ssizetype.
2719 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2720 types from the normal argument frame.
2722 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2723 variable sized objects by reference.
2724 (sparc_va_arg): Receive them by reference too.
2726 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
2728 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2729 code to not restoring global registers.
2731 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
2733 * Makefile.in (ggc-common.o): Update.
2734 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2735 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2736 * c-tree.h (c_mark_tree): New.
2737 * ggc-common.c: Include langhooks.h.
2738 (gcc_mark_trees): Use new langhook.
2739 * ggc-callbacks.c: Delete file.
2740 * ggc.h (lang_mark_tree): Remove.
2741 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2742 (LANG_HOOKS_INITIALIZER): Update.
2743 * langhooks.h (struct lang_hooks): New hook.
2745 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2747 2002-03-25 Zack Weinberg <zack@codesourcery.com>
2749 * doc/cpp.texi: Exclude entire Top node from printed manual.
2750 Move option index after directive index. Insert page breaks
2751 before GFDL and concept index. Index environment variables
2752 with command line options.
2753 * doc/cppenv.texi: Use @vtable for environment variable list.
2754 Add paragraph explaining semantics of empty elements in path
2755 variables. Exclude a cross-reference to Fishkill from the
2756 manpage. Remove an unnecessary cross-reference of the entry
2757 right above the referer. Don't use @anchor in text that goes
2759 * doc/cppopts.texi: Cross-reference the environment variables
2760 section, not the specific environment variable, for consistency.
2762 2002-03-25 Richard Henderson <rth@redhat.com>
2764 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2765 anywhere in the block. Don't refer to insns that have been
2766 removed from the chain. Iterate backward through the new insns.
2767 Don't refer to edges that have been removed.
2769 2002-03-26 Alan Modra <amodra@bigpond.net.au>
2771 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2772 test for overflow of constant.
2774 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
2777 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2778 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2779 these patterns on arm_archv4.
2781 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
2783 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2786 2002-03-25 Zack Weinberg <zack@codesourcery.com>
2788 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
2789 float_handled, float_handler, float_signal, set_float_handler,
2790 and do_float_handler. Set handler for SIGFPE to crash_signal.
2791 * toplev.h: Don't prototype do_float_handler.
2793 * c-lex.c: Fold parse_float into lex_number. Make warning
2794 about portability of hex float constants more informative, and
2795 don't issue it on top of a syntax error.
2796 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2798 * real.h: Define REAL_VALUE_ABS here...
2799 * simplify-rtx.c: ... not here. Fold check_fold_consts,
2800 simplify_unary_real, simplify_binary_real, and
2801 simplify_binary_is2orm1 into their callers.
2802 * tree.c: Fold build_real_from_int_cst_1 into caller.
2804 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2806 * tsystem.h: Include float.h here...
2807 * libgcc2.c: ... not here.
2809 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
2811 Fixes for: PR bootstrap/3591, target/5676
2812 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2813 defined. Do not disable exceptions or rtti.
2814 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2815 mcore.h. Disable exceptions and rtti, since they are not
2818 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
2820 * c-decl.c (maybe_build_cleanup): Remove.
2821 * expr.c (expand_expr): Use langhook.
2822 * langhooks-def.h (lhd_return_null_tree,
2823 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2824 (LANGHOOKS_INITIALIZER): Update.
2825 * langhooks.c (lhd_return_null_tree): New.
2826 * langhooks.h (struct lang_hooks): New hook.
2827 * tree-inline.c (initialize_inlined_parameters): Use langhook.
2828 * tree.h (maybe_build_cleanup): Remove.
2830 2002-03-25 Jakub Jelinek <jakub@redhat.com>
2832 * regrename.c (build_def_use): Move recog_memoized
2833 before extract_insn.
2835 2002-03-25 Jakub Jelinek <jakub@redhat.com>
2838 * expr.c (emit_group_store): Handle storing into CONCAT.
2840 2002-03-25 Jakub Jelinek <jakub@redhat.com>
2842 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2843 corresponding MATCH_DUP.
2845 2002-03-24 Richard Henderson <rth@redhat.com>
2847 * unroll.c (unroll_loop): Zero label_map.
2849 * gcse.c: Include except.h.
2850 * Makefile.in (gcse.o): Update.
2852 2002-03-24 Richard Henderson <rth@redhat.com>
2854 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2855 Do resolve_unique_section before shared data clause.
2857 2002-03-24 Richard Henderson <rth@redhat.com>
2859 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2861 2002-03-24 Richard Henderson <rth@redhat.com>
2863 * recog.c (peephole2_optimize): Split blocks when EH insns are
2864 generated in the middle of a block. Do global life update if
2867 2002-03-24 Richard Henderson <rth@redhat.com>
2869 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2871 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
2874 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2875 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2876 (init_dependency_output): Don't make no_output decision here.
2878 2002-03-24 Andrew Cagney <ac131313@redhat.com>
2880 * stmt.c (check_for_full_enumeration_handling): Remove tests of
2881 warn_switch. Update description.
2882 (expand_end_case_type): Call check_for_full_enumeration_handling
2885 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2887 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2888 (m68hc11_split_move): Call it to see if the source and destination
2889 operands use the same direction auto inc/dec mode, otherwise make the
2890 source an offsetable memory operand and generate an add.
2892 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2894 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2895 register for operand 2.
2896 ("*subsi3_zero_extendqi"): Likewise.
2897 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2898 bits so that it is compatible with a pop.
2899 ("*andhi3_gen"): Likewise.
2900 ("xorhi3"): Likewise.
2902 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
2904 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2906 (cpp_post_options): ... not here.
2908 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
2909 Aldy Hernandez <aldyh@redhat.com>
2911 Removal of separate preprocessor cpp0.
2913 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2914 cpp0, install-common): Update.
2915 * c-common.c (flag_preprocess_only): New.
2916 (c_common_init): Preprocess for -E.
2917 * c-common.h (flag_preprocess_only): New.
2918 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2919 * c-objc-common.c (c_init_decl_processing): Exit quickly
2920 for NULL return from c_common_init.
2921 * cpplib.h (cpp_preprocess_file): New.
2922 * cppmain.c (main, general_init, pfile, progname): Remove.
2923 (do_preprocessing): Rename cpp_preprocess_file, don't call
2924 cpp_finish. Don't close stdout here.
2925 (setup_callbacks): Update prototype.
2926 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2928 * tradcpp.c (main): Ignore -quiet.
2930 * lang-specs.h (default_compilers): Preprocess with cc1obj.
2932 2002-03-24 Richard Henderson <rth@redhat.com>
2934 PR optimization/5742
2935 * machmode.def: Add inner mode field to complex modes.
2936 * config/mips/mips.c (mips_function_value): Always define. Add
2937 new argument to handle libcalls.
2938 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2939 (FUNCTION_VALUE): Likewise.
2940 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2941 * config/mips/mips-protos.h: Update.
2943 2002-03-23 Richard Henderson <rth@redhat.com>
2945 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2946 * config/sparc/sparc-protos.h: Update.
2947 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2949 2002-03-23 Richard Henderson <rth@redhat.com>
2951 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2952 _start or _init begins the text segment.
2954 2002-03-23 David Edelsohn <edelsohn@gnu.org>
2956 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
2957 not HOST_WIDEST_INT.
2958 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2960 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
2963 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2964 operand argument to output_return_instruction.
2965 * arm.c (arm_print_operand, case 'd'): If the operand is
2966 const_true_rtx then just return.
2967 (arm_print_operand, case 'D'): If the operand is const_true_rtx
2970 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2972 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2973 (Warning Options): Document -Wswitch-default.
2974 * toplev.c (W_options): Add -Wswitch-default. Update comment on
2976 (warn_switch_default): Define variable.
2977 (warn_switch): Update comment.
2978 * flags.h (warn_switch_default): Declare variable.
2979 (warn_switch): Update comment.
2980 * stmt.c (expand_end_case): Check for and, when
2981 warn_switch_no_default, warn of a missing default case.
2983 2002-03-23 Alan Modra <amodra@bigpond.net.au>
2985 * real.h (N): Special case 128 bit doubles.
2987 * combine.c (simplify_comparison): When widening modes, ignore
2988 sign extension on CONST_INTs.
2990 2002-03-22 Bob Wilson <bob.wilson@acm.org>
2992 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2993 passed to adjust_address. Fix comment formatting.
2996 2002-03-22 Zack Weinberg <zack@codesourcery.com>
2998 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2999 Always make REAL_VALUE_TYPE a struct containing an array of
3000 HOST_WIDE_INT, not a double. Tidy up the code deciding how
3001 big it is. Don't declare or use union real_extract.
3003 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
3004 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
3005 (print_operand), config/arm/arm.c (output_move_double),
3006 config/arm/arm.md (consttable_4, consttable_8),
3007 config/romp/romp.c (output_fpops), config/s390/s390.h
3008 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
3009 (xtensa_output_literal): Don't use union real_extract.
3011 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
3012 (sfmode_constant_to_ulong), config/ns32k/merlin.h
3013 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
3014 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
3015 (PRINT_OPERAND): Don't use local version of union
3018 * config/convex/convex.c (check_float_value), config/vax/vax.c
3019 (vax_float_literal), config/m88k/m88k.md (divdf3),
3020 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
3021 config/pdp11/pdp11.c (output_move_quad): Don't do host
3022 arithmetic on target floating point quantities.
3024 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
3025 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
3027 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
3028 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
3030 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
3031 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
3033 * print-rtl.c (print_rtx): Disable code which needs
3034 floating-point emulator.
3035 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
3036 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
3037 depending on HOST_FLOAT_FORMAT to be defined properly.
3039 * config/1750a/1750a.c (get_double, float_label): Delete.
3040 (print_operand): Delete huge commented-out chunk. Use
3041 REAL_VALUE_TO_DECIMAL.
3042 * config/1750a/1750a-protos.h: Delete prototypes of deleted
3044 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
3046 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
3047 Use REAL_VALUE_TO_DECIMAL as ELF version does.
3048 * config/m88k/m88k.c (real_power_of_2_operand,
3049 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
3050 real_extract out of the union; run the input through
3051 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
3052 from that into the union.
3053 * config/pdp11/pdp11.c (output_move_double): Rearrange
3054 parentheses to make automatic indenter happy.
3056 * doc/tm.texi (Cross-compilation): Rename node to "Floating
3057 Point" and rewrite to describe current situation. Also adjust
3058 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
3060 * doc/rtl.texi: Adjust cross reference.
3062 2002-03-22 Bob Wilson <bob.wilson@acm.org>
3064 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
3065 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
3066 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
3067 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
3068 prevent use of sp as a reload register.
3069 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
3070 non_acc_reg_operand.
3071 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
3072 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
3073 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
3074 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
3076 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
3078 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
3079 * cpplex.c (unterminated): Delete.
3080 (parse_string): No string literal may extend over multiple
3081 lines. Suppress the error when preprocessing assembly.
3082 * cppmain.c (scan_translation_unit): Strings are single-line.
3084 * doc/cpp.texi: Update to match.
3086 2002-03-22 Jakub Jelinek <jakub@redhat.com>
3088 PR optimization/5854
3089 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
3091 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
3092 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
3093 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
3094 const0 if scratch register was not allocated.
3095 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
3096 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
3098 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
3099 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
3100 with GEN_INT (...) everywhere. Remove constraints in define_split
3102 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
3103 require scratch register for setting 0 into regs/non-pushable memory.
3105 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
3107 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
3108 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
3110 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
3112 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
3113 * cppinit.c (cpp_create_reader): On by default.
3114 (cpp_handle_option): Handle -W[no-]endif-labels.
3115 (cpp_post_options): Also enable if -pedantic.
3116 * cpplib.c (do_else): Use it.
3117 (do_endif): Likewise.
3118 * doc/cppopts.texi: Document new option.
3119 * doc/invoke.texi: Document new option.
3121 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
3123 * config/i386/i386.c, config/i386/i386.md: Change all occurences
3124 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
3126 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
3128 * flow.c (calculate_global_regs_live): Clear aux fields of
3131 2002-03-22 Jakub Jelinek <jakub@redhat.com>
3133 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
3134 REG or MEM subregs, pass rtx * instead of rtx to it.
3135 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
3136 rtx * instead of rtx to alter_subreg.
3137 * config/m32r/m32r.c (gen_split_move_double): Likewise.
3138 * config/pj/pj.c (pj_output_rval): Likewise.
3140 2002-03-22 Richard Henderson <rth@redhat.com>
3143 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
3144 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
3145 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
3146 (ia64_expand_prologue): Look at int_regs, not words, for number
3147 of incomming int regs.
3149 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
3151 * expr.c (expand_expr): A RESULT_DECL is part of a call.
3153 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
3155 * toplev.c (flag_loop_optimize, flag_crossjumping):
3156 New static variables.
3157 (rest_of_compilation): Conditionalize crossjumping and
3159 (parse_options_and_default_flags): Default loop_optimize and
3161 (lang_independent_options): Add -fcrossjumping and -floop-optimize
3162 * invoke.texi (crossjumping, loop-optimize): Document.
3164 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3166 * real.c (eiisneg): Move outside #ifdef NANS.
3168 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
3170 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
3171 frequencies match; avoid match on different loop depths.
3172 (try_crossjump_to_bb): Kill tests that no longer brings time
3174 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
3176 (split_edge): Likewise.
3178 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
3181 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
3182 * cfgrtl.c: Include insn-config.h
3183 (split_block) Dirtify block in presence of conditional execution
3185 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3187 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
3188 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
3189 (function_arg): Constify CUMULATIVE_ARGS.
3190 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
3191 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
3192 (UNITS_PER_DOUBLE): New macro.
3193 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
3194 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
3195 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
3196 fp_regs and stack_words.
3197 (EABI_FLOAT_VARARGS_P): New macro.
3198 * config/mips/mips.c (struct mips_arg_info): New.
3199 (mips_arg_info): New function.
3200 (function_arg_advance): Use it. Add adjustment instructions here
3201 rather than in function_arg.
3202 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
3203 for VOIDmode at the beginning of the function.
3204 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
3205 (function_arg_pass_by_reference): Likewise.
3206 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
3207 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
3208 (mips_va_start): Likewise. Use the new stack_words field of
3209 CUMULATIVE_ARGS to set up overflow area. Reformat.
3210 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
3211 doubles and other types, aligning the overflow pointer for non-doubles
3212 too. Remove some code duplication. Replace hard-coded constants.
3214 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3216 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
3217 (CLASS_UNITS): Undefine.
3218 (CLASS_MAX_NREGS): Use FP_INC.
3219 * config/mips/mips.c (compute_frame_size): Likewise.
3220 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
3222 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
3224 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
3225 prototype, and handle lexing numbers and identifiers.
3226 (parse_identifier): Update to new form of parse_slow.
3227 (parse_number): Fast path only, use parse_slow otherwise.
3228 (_cpp_lex_direct): Update calls to parse_number.
3230 2002-03-21 DJ Delorie <dj@redhat.com>
3232 * bb-reorder.c (make_reorder_chain_1): Protect against
3233 when redundant edges are omitted.
3234 * predict.c (dump_prediction): Likewise.
3236 2002-03-21 Richard Henderson <rth@redhat.com>
3239 * fixinc/inclhack.def (solaris_stdio_tag): New.
3240 * fixinc/fixincl.x: Regenerate.
3242 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
3245 * c-typeck.c (process_init_element): Flag non-static
3246 initialization of a flexible array member as illegal.
3248 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3250 * config/rs6000/t-linux64: New.
3251 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
3252 t-ppccomm. Use t-rs6000 and t-linux64.
3253 (powerpc64-*-gnu* <tmake_file>): Likewise.
3254 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
3255 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
3256 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
3258 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
3260 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
3261 flag_really_no_inline instead of optimize == 0.
3263 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
3265 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
3267 * flags.h (flag_really_no_inline): New.
3269 * c-common.c (c_common_post_options): Initialize
3270 flag_really_no_inline.
3272 * toplev.c (flag_really_no_inline): New.
3274 2002-03-21 Jakub Jelinek <jakub@redhat.com>
3276 * config/avr/avr.md (length): Fix length computation for
3277 conditional branches.
3279 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
3281 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
3282 sdbout.o, profile.o): Update.
3283 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
3285 * c-common.h (gettags): Move here from tree.h.
3286 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
3287 insert_block, getdecls, kept_level_p, global_bindings_p): New.
3288 * dbxout.c (dbxout_init): Use getdecls langhook.
3289 * expr.c (expand_expr): Use insert_block langhook.
3290 * fold-const.c: Include langhooks.h.
3291 (fold_range_test, fold_binary_op_with_conditional_arg,
3292 fold): Use global_bindings_p langhook.
3293 * integrate.c (expand_inline_function): Use insert_block langhook.
3294 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
3295 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
3296 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
3297 LANG_HOOKS_GETDECLS): New.
3298 (LANG_HOOKS_INITIALIZER): Update.
3299 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
3301 * langhooks.h (struct lang_hooks_for_decls): New.
3302 (struct lang_hooks): Update.
3303 * profile.c: Include langhooks.h.
3304 (output_func_start_profiler): Use new langhooks.
3305 * sdbout.c: Include langhooks.h.
3306 (sdbout_init, sdbout_finish): Use getdecls langhook.
3307 * stmt.c: Include langhooks.h.
3308 (expand_fixup, fixup_gotos): Use new langhooks.
3309 * stor-layout.c: Include langhooks.h.
3310 (variable_size): Use global_bindings_p langhook.
3311 * toplev.c (compile_file): Use getdecls langhook.
3312 * tree-inline.c (remap_block): Use insert_block langhook.
3313 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
3314 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
3316 2002-03-21 Richard Henderson <rth@redhat.com>
3318 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
3319 constants in .data when -fpic.
3321 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3323 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
3326 2002-03-21 Tom Tromey <tromey@redhat.com>
3328 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
3330 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3332 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
3334 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
3336 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
3337 Richard Henderson <rth@redhat.com>
3340 * c-common.c (c_expand_expr): Preserve result of a statement
3341 expression if needed.
3343 2002-03-21 Jakub Jelinek <jakub@redhat.com>
3346 * genrecog.c (maybe_both_true_mode): Remove.
3347 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
3348 * machmode.def (Pmode): Likewise.
3350 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
3352 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
3353 (nonlocal_mentioned_p_1): New function.
3354 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
3355 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
3356 (mark_constant_function): Recognize pure functions.
3357 * rtl.h (global_reg_mentioned_p): New prototype.
3358 * rtlanal.c (global_reg_mentioned_p,
3359 global_reg_mentioned_p_1): New function.
3361 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3363 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
3365 * fixinc/fixincl.x: Regenerate.
3367 2002-03-20 Jason Merrill <jason@redhat.com>
3369 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
3371 2002-03-20 Michael Meissner <meissner@redhat.com>
3373 * doc/invoke.texi (Optimize Options): Document that -O2 sets
3376 2002-03-20 Bob Wilson <bob.wilson@acm.org>
3378 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
3379 ".literal_position" directive before the constant pool.
3381 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3383 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
3384 Add Craig Rodrigues.
3385 Add Brad Lucier to testers.
3387 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3390 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
3392 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
3393 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
3394 instead of insn_extract.
3396 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3399 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
3401 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
3402 stmt if some case has been output.
3404 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3407 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
3408 movsfcc_1, movdfcc_1): Add %O2.
3409 * config/i386/i386.c (print_operand): Handle %ON.
3410 Print . before float condition codes in Sun as cmov syntax.
3411 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3412 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3415 2002-03-20 Philip Blundell <pb@nexus.co.uk>
3417 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3418 return instruction if PC was popped.
3420 2002-03-20 Bob Wilson <bob.wilson@acm.org>
3422 * config/xtensa/xtensa.md: Remove unused type attributes.
3423 (adddi_carry, subddi_carry): Change type attribute to "multi".
3425 2002-03-19 Dale Johannesen <dalej@apple.com>
3427 PR optimization/5999, middle-end/5731
3428 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3429 multiplications by reciprocals.
3431 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
3433 * Makefile.in: Update.
3434 * c-common.c: Include langhooks.h.
3435 (inline_forbidden_p): Use new hook.
3436 * diagnostic.c: Include langhooks.h.
3437 (format_with_decl, announce_function,
3438 default_print_error_function): Use new hook.
3439 * dwarf2out.c (dwarf2_name): Use new hook.
3440 * function.c: Include langhooks.h.
3441 (init_function_start): Use new hook.
3442 * langhooks-def.h (lhd_decl_printable_name): New.
3443 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
3444 (LANGHOOKS_INITIALIZER): Update.
3445 * langhooks.c (lhd_decl_printable_name): New.
3446 * langhooks.h (struct lang_hooks): New hook.
3447 * toplev.c (decl_name, decl_printable_name): Remove.
3448 (open_dump_file): Use new hook.
3449 (process_options): Remove old hook.
3450 * tree.h (decl_printable_name): Remove.
3452 * objc-act.c (objc_init): Remove old hook.
3453 (objc_printable_name): Export.
3454 * objc-act.h (objc_printable_name): New.
3455 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3457 2002-03-19 Jim Blandy <jimb@redhat.com>
3459 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3460 the start_source_file debug hook, not the current line number.
3462 2002-03-19 Richard Henderson <rth@redhat.com>
3464 * flow.c (EH_USES): Provide default.
3465 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3466 * doc/tm.texi (EH_USES): New.
3468 * config/ia64/ia64.c (ia64_eh_uses): New.
3469 * config/ia64/ia64-protos.h: Update.
3470 * config/ia64/ia64.h (EH_USES): New.
3472 2002-03-19 Richard Henderson <rth@redhat.com>
3474 * varasm.c (output_constant_def): Fix stupid typo.
3476 2002-03-19 Richard Henderson <rth@redhat.com>
3479 * except.c (current_function_has_exception_handlers): New.
3480 * except.h: Declare it.
3481 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3482 Combine tests that disable all sibcalls for the function.
3484 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
3486 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3489 2002-03-19 Richard Henderson <rth@redhat.com>
3492 * config/ia64/ia64.c: Revert 2002-03-01 patch.
3493 * config/ia64/ia64.h (INIT_EXPANDERS): New.
3495 2002-03-19 Jim Blandy <jimb@redhat.com>
3497 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3498 name, even if the replacement list contains no tokens, as required
3501 2002-03-19 Jason Merrill <jason@redhat.com>
3503 * varasm.c (globalize_decl): Get the name from the RTL, not
3504 DECL_ASSEMBLER_NAME.
3506 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3508 2002-03-19 Bob Wilson <bob.wilson@acm.org>
3510 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3511 subdi_carry): Define.
3513 2002-03-19 David Edelsohn <edelsohn@gnu.org>
3515 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3516 about -fpic/-fPIC if extra_warnings set.
3518 2002-03-19 David Edelsohn <edelsohn@gnu.org>
3520 * expr.c (expand_expr): Sign-extend CONST_INT generated from
3521 TREE_STRING_POINTER.
3522 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3524 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3526 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3527 in favor of SP if FRAME_POINTER_REQUIRED is false.
3529 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
3531 * emit-rtl.c (gen_int_mode): New function.
3532 * rtl.h: Prototype for it.
3533 * combine.c (make_extraction, simplify_comparison), expmed.c
3534 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3535 (convert_modes, store_field), optabs.c (expand_fix),
3536 simplify-rtx.c (neg_const_int, simplify_unary_real),
3538 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3539 Use it instead of GEN_INT (trunc_int_for_mode (...)).
3541 2002-03-19 Jakub Jelinek <jakub@redhat.com>
3544 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3545 convert_parm_for_inlining.
3546 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3548 * langhooks-def.h: Likewise.
3549 * objc/objc-lang.c: Likewise.
3550 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3552 * tree-inline.c (initialize_inlined_parameters):
3553 Call convert_parm_for_inlining lang hook if needed.
3554 * c-typeck.c (c_convert_parm_for_inlining): New function.
3555 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3557 2002-03-18 Mark Mitchell <mark@codesourcery.com>
3559 * calls.c (precompute_arguments): Do not assume that temporaries
3560 can be destroyed after expanding the argument.
3561 (expand_call): Likewise.
3563 2002-03-15 Eric Christopher <echristo@redhat.com>
3565 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3566 Fix register preference on last change.
3567 * config/mips/mips.c (mips_return_in_memory): New function.
3568 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3569 * config/mips/mips-protos.h: Declare.
3570 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3571 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3573 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3575 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3577 (anddi3, iorsi3): Likewise.
3579 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3580 use %gprel for symbols that are going to be placed in linkonce
3583 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3584 RETURN_ADDRESS_POINTER_REGNUM to $ra.
3585 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3586 not needed. Disregard leaf_function_p().
3587 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3588 mips16 frame pointer.
3589 * config/mips/mips.md (store ra): Only to small SP offsets.
3590 2001-08-22 Graham Stott <grahams@redhat.com>
3591 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3592 return a REG rtx for the return address register.
3594 2002-03-18 Bob Wilson <bob.wilson@acm.org>
3596 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3597 constant-pool addresses as "mode-dependent".
3598 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3600 2002-03-18 Jakub Jelinek <jakub@redhat.com>
3603 * expr.c (emit_group_load): Use extract_bit_field if
3604 needed for CONCAT arguments.
3606 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
3609 * arm.md (tablejump): Make this a define_expand. For PIC add the
3610 offset to the base of the table.
3611 (thumb_tablejump): Matcher for Thumb tablejump insn.
3612 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3613 as the difference of two labels.
3614 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3615 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3617 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3618 * arm.c (get_jump_table_size): If the table is not in the text
3619 section, return zero.
3621 2002-03-18 Bernd Schmidt <bernds@redhat.com>
3623 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3625 (arm_reload_out_hi): Use gen_lowpart instead of
3626 gen_rtx_SUBREG to access QImode components.
3627 * config/arm/arm.md: Disable zero_extend split for QImode
3628 subregs in BIG_ENDIAN mode.
3629 (storehi_bigend): Match use of least significant byte.
3630 (storeinthi): Remove extraneous SUBREG.
3631 Add missing construction of operands[2].
3632 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3633 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3634 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3636 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
3638 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3641 2002-03-17 Richard Henderson <rth@redhat.com>
3643 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3646 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
3648 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3649 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3651 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3653 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3655 * predict.c (estimate_bb_frequencies): Delete unused variables.
3657 2002-03-17 Richard Henderson <rth@redhat.com>
3659 * config/ia64/ia64.c (ia64_attribute_table): Move before
3660 targetm definition. Make static.
3662 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
3664 * c-common.h (yyparse, c_common_parse_file): New.
3665 * c-lang.c: Include c-common.h.
3666 (LANG_HOOKS_PARSE_FILE): Redefine.
3667 * c-lex.c: Include c-common.h.
3668 (yyparse): Rename c_common_parse_file. Call yyparse.
3669 * c-parse.in (yyparse): Remove macro.
3670 * c-tree.h (yyparse_1): Remove.
3671 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3672 (LANG_HOOKS_INITIALIZER): Update.
3673 * langhooks.h (struct lang_hoooks): New hook parse_file.
3674 * toplev.c (compile_file): Use parse_file hook.
3675 * tree.h (yyparse): Remove.
3676 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3678 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
3680 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3681 float_truncate, not fix.
3682 ("*truncdfsf2_real"): Ditto.
3683 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3685 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3687 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
3689 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3690 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
3691 where appropriate. Make the second reference to
3692 leaf_function_p a function call, as intended. Reindented.
3694 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3695 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3697 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3698 add register to non-constant into sp.
3700 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3701 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3702 (mips16_gp_pseudo_rtx): Lose.
3703 (INIT_EXPANDERS): Deleted.
3704 * config/mips/mips.c (mips_init_machine_status): New.
3705 (mips_free_machine_status): New.
3706 (mips_mark_machine_status): New.
3707 (override_options): Set them.
3708 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3709 (struct machine_function): ... new. Replaced all references.
3710 (mips_add_gc_roots): Don't mark them.
3711 (embedded_pic_fnaddr_reg): New, extracted from...
3712 (embedded_pic_offset): ... here.
3713 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3716 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
3718 * cppinit.c: Revert -MD removal.
3720 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3722 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3723 soft registers by default for 68HC12.
3724 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3725 when compiling with -fomit-frame-pointer.
3726 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3727 (expand_epilogue): Likewise.
3728 (m68hc11_gen_rotate): Use exg when rotating by 8.
3730 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3732 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3733 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3734 (splits): Remove unused add splits.
3735 ("*addhi3_68hc12"): Tune constraints.
3736 ("addhi_sp"): Try to use X instead of Y in all cases and if the
3737 constant fits in 8-bits and D is dead use abx/aby instructions.
3738 ("*addhi3"): Remove extern declaration of ix_reg.
3739 ("*subsi3"): Optimize and provide new split.
3740 ("subhi3"): Cleanup.
3741 ("*subhi3_sp"): Avoid saving X if we know it is dead.
3742 (arith splits): For 68hc12 save the address register on the stack
3743 and do the arithmetic operation with a pop.
3745 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3747 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3748 allocating QImode in address registers.
3749 ("*movqi_m68hc11"): Likewise.
3751 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
3753 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3755 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
3757 * cppinit.c (print_help): Display -MD and -MMD.
3758 Don't display usage string. Update assertion syntax and
3760 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3761 (cpp_handle_option): Update.
3763 2002-03-15 Chris Demetriou <cgd@broadcom.com>
3765 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3766 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3767 and define it so that regardless of target CPU size,
3768 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3769 of "int" rather than "long."
3771 2002-03-15 Richard Henderson <rth@redhat.com>
3773 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3776 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3778 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3779 ("tstqi" split): Avoid using memory for tstqi on address register.
3780 (splits): Remove constraints.
3781 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3782 ("cmpdf", "cmpsf"): Remove since not used.
3783 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3784 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3786 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3788 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3789 ("neghi2"): Tighten constraints.
3790 ("one_cmplsi2"): Optimize and simplify split.
3791 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3793 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3795 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3796 and split of AND operation to clear the upper bits.
3797 ("*logicalsi3_zextqi"): Likewise.
3798 ("*logicallhi3_zexthi_ashift8"): Likewise.
3799 ("*logicalsi3_silshr16"): Likewise.
3800 ("logicalsi3_silshl16"): Likewise.
3801 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3803 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3805 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3806 (m68hc11_indirect_p): New function.
3807 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3808 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3810 (asm_print_register): Likewise.
3811 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3812 (m68hc11_indirect_p): Declare.
3813 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3814 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3815 (TARGET_SWITCHES): New option -mrelax.
3816 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3818 ("iorsi3", "xorsi3"): Likewise.
3819 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3820 ("*andhi3_mem"): New to handle destination in memory with bclr
3821 and a scratch register.
3822 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3823 ("*andhi3_const"): New when operand2 is constant.
3824 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3825 ("*andhi3_gen"): Cleanup of the old "andhi3".
3826 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3827 ("xorqi3"): Update constraints.
3829 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3831 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3832 for reg_equiv_memory_loc when the operand is a register that does
3833 not get a hard register (stack location).
3834 (tst_operand): After reload, accept all memory operand.
3835 (symbolic_memory_operand): Fix detection of symbolic references.
3836 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3837 accept symbols and any constant.
3839 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3841 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3842 note on the insn that sets the soft frame register.
3843 (must_parenthesize): ix and iy are also reserved names.
3844 (print_operand_address): One more place where parenthesis are required
3845 to avoid confusion with register names.
3846 (m68hc11_gen_movhi): Allow push of stack pointer.
3847 (m68hc11_check_z_replacement): Fix handling of parallel with a
3849 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3850 the replacement register is.
3851 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3852 and D8_REGS classes.
3853 (MODES_TIEABLE_P): All modes are tieable except QImode.
3855 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3857 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3858 (___subdi3): Likewise.
3859 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3860 (__map_data_section): Optimize 68hc11 case.
3862 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3864 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3865 than a shift to avoid adding a register with itself.
3866 (m68hc11_memory_move_cost): Take into account NO_REGS.
3867 (m68hc11_register_move_cost): Update and use memory move cost
3869 (m68hc11_address_cost): Make cost of valid offset not 0 so that
3870 it gives more opportunities to cse to optimize.
3871 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3872 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3874 2002-03-15 Mark Mitchell <mark@codesourcery.com>
3876 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3877 * c-common.def (CLEANUP_STMT): New tree node.
3878 * c-common.h (CLEANUP_DECL): New macro.
3879 (CLEANUP_EXPR): Likewise.
3880 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3881 * expr.c (expand_expr): Tidy.
3882 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3883 * tree-inline.c (initialize_inlined_parameters): Clean up
3884 new local variables.
3886 2002-03-15 Jakub Jelinek <jakub@redhat.com>
3889 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3890 before movrXX only, use reg_overlap_mentioned_p.
3891 Only special case NE if just one insn can be generated.
3893 2002-03-15 Jason Merrill <jason@redhat.com>
3895 * varasm.c (assemble_variable): Call resolve_unique_section before
3896 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
3899 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
3902 * arm.md (split pattern for thumb shiftable immediates): Add comment
3903 explaining non-obvious test.
3905 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
3908 * arm.md (movaddr, movaddr_insn): Delete.
3910 2002-03-15 Jason Merrill <jason@redhat.com>
3912 * toplev.c (wrapup_global_declarations): Clarify variable handling.
3913 -fkeep-static-consts doesn't apply to comdats.
3915 2002-03-14 Richard Henderson <rth@redhat.com>
3917 * c-decl.c: Include c-pragma.h.
3918 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3919 (finish_function): Tidy.
3920 * c-pragma.c: Include c-common.h.
3921 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3922 (handle_pragma_weak): Use them.
3923 (init_pragma): Register pending_weaks.
3924 * c-pragma.h (maybe_apply_pragma_weak): Declare.
3925 * print-tree.c (print_node): Print DECL_WEAK.
3926 * varasm.c (mark_weak_decls): Remove.
3927 (remove_from_pending_weak_list): Remove.
3929 (asm_emit_uninitialised): Call globalize_decl for weak commons.
3930 (weak_decls): Make a tree_list.
3931 (declare_weak): Cons weak_decls directly.
3932 (globalize_decl): Remove weak_decls elements directly.
3933 (weak_finish): Simplify weak_decls walk. Don't weaken unused
3934 symbols. Don't pretend to handle aliases.
3935 (init_varasm_once): Update weak_decls registry.
3936 * Makefile.in: Update dependencies.
3938 2002-03-14 Richard Henderson <rth@redhat.com>
3941 * config/ia64/ia64.c: Include tm_p.h last.
3942 (gen_nop_type): Remove duplicate definition.
3943 (cycle_end_fill_slots): Set sched_data for second L slot.
3944 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3945 (nop_cycles_until): Fix typos.
3947 2002-03-15 Jakub Jelinek <jakub@redhat.com>
3949 PR optimization/5891
3950 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3952 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3954 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3955 descriptors correctly.
3957 2002-03-14 Michael Meissner <meissner@redhat.com>
3959 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3960 100, allowing MAX_UNROLLED_INSNS to be overridden.
3962 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3965 * unroll.c (params.h): Include.
3966 (MAX_UNROLLED_INSNS): Delete, now in params.h.
3968 * doc/invoke.texi (--param max-unroll-insns): Document.
3970 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3972 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
3974 * arm.md: Fix warnings about constraints in peepholes and splits.
3976 2002-03-14 Zack Weinberg <zack@codesourcery.com>
3978 * cpphash.h (struct lexer_state): Remove line_extension member.
3979 * cpplib.c (dequote_string, do_linemarker): New functions.
3980 (linemarker_dir): New data object.
3981 (DIRECTIVE_TABLE): No longer need to interpret #line in
3982 preprocessed source. Delete obsolete comment about return
3984 (end_directive, directive_diagnostics, _cpp_handle_directive):
3985 Don't muck with line_extension.
3986 (directive_diagnostics): No need to issue warnings for
3988 (_cpp_handle_directive): Issue warnings for linemarkers here,
3989 when appropriate. Dispatch linemarkers to do_linemarker, not
3991 (do_line): Code to handle linemarkers split out to do_linemarker.
3992 Convert escape sequences in filename argument, both places.
3994 * cppmacro.c (quote_string): Rename cpp_quote_string and
3995 export. All callers changed.
3996 * cpplib.h (cpp_quote_string): Prototype.
3997 * cppmain.c (print_line): Call cpp_quote_string on to_file
4000 * doc/cpp.texi: Document that escapes are now interpreted in
4001 #line and in linemarkers, and that non-printing characters are
4002 converted to octal escapes when linemarkers are generated.
4004 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
4006 * emit-rtl.c (try_split): Use delete_insns.
4007 * recog.c (split_all_insns): Fix terminating condition.
4009 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
4010 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4013 * arm.c (arm_output_epilogue): Fix floating-point register save
4014 adjustment when using a frame pointer.
4016 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
4018 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
4019 * config/mips/mips.c (compute_frame_size): Retrofit them here.
4020 (save_restore_insns, mips_expand_epilogue): And here.
4021 (build_mips16_call_stub): And here.
4022 (mips_function_value): Use the new macros to decide whether a single
4023 or complex float can be returned in floating-point registers. Return
4024 a parallel rtx in the complex case.
4026 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
4028 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
4029 call after liveness analysis.
4031 * recog.c (split_insn): Use delete_insn_and_edges.
4033 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
4034 instructions to have branch prediction notes.
4035 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
4037 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
4039 * configure.in: Don't pass -Wno-long-long to a ADA compiler
4040 that doesn't support it.
4041 * configure: Regenerate.
4043 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4046 * config/sparc/sparc.md (normal_branch, inverted_branch,
4047 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
4048 inverted_fp_branch): Adjust calls to output_cbranch.
4049 Set length attribute.
4050 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
4051 output_v9branch. Set length attribute.
4052 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
4054 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
4055 (output_cbranch): Likewise. Handle far branches.
4056 (output_v9branch): Handle far branches.
4057 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
4059 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
4060 noov_compare64_op predicates.
4062 2002-03-13 Jason Merrill <jason@redhat.com>
4064 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
4065 into the function and constify it.
4066 * gthr-dce.h, gthr-solaris.h: Likewise.
4068 2002-03-13 David Edelsohn <edelsohn@gnu.org>
4070 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
4071 * config/rs6000/rs6000.c (rs6000_va_arg): Use
4072 std_expand_builtin_va_arg if not ABI_V4.
4074 2002-03-13 Jason Merrill <jason@redhat.com>
4076 * varasm.c (globalize_decl): New fn.
4077 (assemble_start_function): Use it.
4078 (asm_emit_uninitialized): Use it.
4079 (assemble_alias): Use it.
4080 (assemble_variable): Use it.
4082 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
4084 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
4085 2002-03-12 internal visibility change.
4086 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
4087 visibility into SYMBOL_REF_FLAG.
4089 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
4091 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
4092 VOIDmode operand. Add compile-time optimization for constant results.
4094 2002-03-12 Jason Merrill <jason@redhat.com>
4096 * c-typeck.c (convert_for_assignment): Don't allow conversions
4097 between pointers and references. Only allow lvalues to convert to
4100 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
4102 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
4103 before prologue, to avoid scheduling problems.
4105 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4107 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4108 (ELIMINABLE_REGS): Add sfp->sp.
4109 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
4111 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4113 PR optimization/5892
4114 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
4116 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4118 * loop.c (basic_induction_var): Don't call convert_modes if mode
4119 classes are different.
4121 2002-03-12 Richard Henderson <rth@redhat.com>
4123 PR optimization/5901
4124 * function.c (reposition_prologue_and_epilogue_notes): Position
4125 the markers after/before the last/first insn not deleted.
4127 2002-03-12 Richard Henderson <rth@redhat.com>
4129 PR optimization/5878
4130 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
4131 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
4132 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
4134 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
4135 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
4136 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
4138 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
4139 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
4140 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
4141 also. Don't set it if not flag_pic.
4142 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
4143 to be INVALID_REGNUM when not used.
4145 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
4147 * expmed.c (store_bit_field): Reset alias set for memory.
4148 (extract_bit_field): Same.
4150 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4152 * c-common.c (c_tree_code_type, c_tree_code_length,
4153 c_tree_code_name, add_c_tree_codes): Delete.
4154 * c-common.h (add_c_tree_codes): Delete.
4155 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
4157 * c-objc-common.c (c_objc_common_init): Don't call
4158 add_c_tree_codes, instead set lang_unsafe_for_reeval.
4159 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
4160 objc_tree_code_name, add_objc_tree_codes): Delete.
4161 (objc_init): Don't call add_objc_tree_codes.
4162 * objc/objc-lang.c (tree_code_type, tree_code_length,
4163 tree_code_name): Define.
4164 * toplev.c (lang_independent_init): Don't set
4165 tree_code_length[IDENTIFIER_NODE].
4166 * tree.c (tree_code_type, tree_code_length, tree_code_name):
4167 Delete definitions, moved to language front-ends.
4168 * tree.def (IDENTIFIER_NODE): Hardwire the length.
4169 * tree.h (tree_code_type, tree_code_length, tree_code_name):
4171 (tree_code_length): Change type to unsigned char.
4173 2002-03-12 Richard Henderson <rth@redhat.com>
4175 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
4176 internal visibility change.
4178 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4180 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
4181 validize_mem() instead of change_address to avoid clobbering
4184 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
4186 * c-lex.h (position_after_whitespace): Remove.
4188 2002-03-12 Jakub Jelinek <jakub@redhat.com>
4190 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
4191 (lex_string): Use unsigned char pointers.
4193 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
4195 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
4196 is not a valid memory_operand.
4198 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4200 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
4201 * config/xtensa/lib1funcs.asm: Fix copyright to include
4202 special case for libgcc files.
4203 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
4204 (__divsi3): Likewise.
4205 (__umodsi3): Likewise.
4206 (__modsi3): Likewise.
4207 * config/xtensa/lib2funcs.S: Fix copyright to include
4208 special case for libgcc files.
4210 2002-03-12 Tom Rix <trix@redhat.com>
4212 * collect2.c (resolve_lib_name): Move outside of
4213 OBJECT_FORMAT_COFF ifdef.
4214 (ignore_library): Same.
4216 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4218 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
4220 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4222 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
4223 to function_section before writing out the constant pool.
4225 2002-03-12 David Edelsohn <edelsohn@gnu.org>
4227 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
4229 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
4231 2002-03-12 Alan Modra <amodra@bigpond.net.au>
4233 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
4237 (cmpsi splitter): Likewise.
4238 (modsi3): Fail if <= 0.
4239 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
4240 redundant test when HOST_BITS_PER_WIDE_INT != 32.
4241 (reg_or_sub_cint64_operand): Likewise.
4242 (num_insns_constant_wide): Optimize sign extension.
4243 (rs6000_legitimize_address): Likewise.
4245 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
4247 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4248 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4250 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
4252 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
4253 address calculation.
4255 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
4257 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
4258 scratch register to DImode / TImode.
4259 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
4260 register used does not overlap the target.
4262 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4264 * Makefile.in (debug.o): Depend on debug.h.
4265 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
4266 * debug.c (do_nothing_debug_hooks): Likewise.
4267 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
4268 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
4269 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
4270 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
4271 * dwarfout.c (dwarf_debug_hooks): Likewise.
4272 * integrate.c (output_inline_function): Likewise.
4273 * objc/objc-act.c (synth_module_prologue): Likewise.
4274 * sdbout.c (sdb_debug_hooks): Likewise.
4275 * toplev.c (debug_hooks): Likewise.
4276 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4278 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4280 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
4281 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
4282 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
4283 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
4284 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
4285 * defaults.h (POINTER_SIZE): Define.
4286 * doc/tm.texi (POINTER_SIZE): Document default.
4288 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4290 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
4292 2002-03-11 Richard Henderson <rth@redhat.com>
4294 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
4295 if rebuild_label_notes_after_reload.
4297 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
4299 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
4300 emit pic register load if "internal" visibility.
4301 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
4302 (cris_expand_builtin_va_arg): Do all computations on trees.
4304 2002-03-11 Richard Henderson <rth@redhat.com>
4306 * rtlanal.c: Include recog.h.
4307 (keep_with_call_p): Fix thinko.
4308 * Makefile.in (rtlanal.o): Update dependencies.
4310 2002-03-11 Chris Meyer <cmeyer@gatan.com>
4312 * genflags.c (gen_insn): Use IS_VSPACE.
4313 * genoutput.c (output_insn_data): Likewise.
4314 (process_template): Likewise.
4316 2002-03-11 Richard Henderson <rth@redhat.com>
4318 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
4320 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
4322 * Makefile.in: Update.
4323 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
4324 Update documentation.
4325 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
4326 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
4328 2002-03-11 Zack Weinberg <zack@codesourcery.com>
4330 * Makefile.in: Give texi2pod its input file as a command line
4331 argument, not on stdin.
4333 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
4334 Daniel Berlin <dan@dberlin.org>
4336 C++ alias analysis improvement.
4337 * alias.c (record_component_aliases): Record aliases for base
4340 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
4342 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
4344 2002-03-11 Douglas B Rupp <rupp@gnat.com>
4346 * toplev.c (vms_fopen): Remove, not needed.
4348 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
4350 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
4352 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
4353 for FP, already done later.
4355 * toplev.c (debug_args): Add entry for VMS_DEBUG.
4356 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
4358 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
4360 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
4361 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
4362 LARGEST_EXPONENT_IS_NORMAL for the given mode.
4363 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
4364 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
4365 (ediv, emul, eldexp, esqrt): Likewise.
4366 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
4367 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
4368 (saturate): New function.
4369 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
4370 (make_nan): Use a saturation value instead of a NaN if
4371 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
4372 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
4373 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
4374 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
4375 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
4376 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
4377 !ROUND_TOWARDS_ZERO.
4378 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
4379 (ROUND_TOWARDS_ZERO): Document.
4381 2002-03-11 Andreas Jaeger <aj@suse.de>
4383 * cfg.c (dump_flow_info): Remove unused variable.
4385 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
4387 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
4388 computations on trees.
4390 2002-03-10 Richard Henderson <rth@redhat.com>
4393 * reload.c (copy_replacements_1): New.
4394 (copy_replacements): Use it to recurse through the rtx.
4396 2002-03-10 Richard Henderson <rth@redhat.com>
4398 * loop.c (strength_reduce): Compute number of iterations as
4399 unsigned HOST_WIDE_INT.
4401 2002-03-10 Richard Henderson <rth@redhat.com>
4403 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
4404 to move away from the end of the block.
4406 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
4408 PR preprocessor/5899
4409 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4411 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4413 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4415 * attribs.c (decl_attributes): Fix signed/unsigned warning.
4417 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
4419 * config/mmix/mmix.c: Improve comments.
4420 (mmix_target_asm_function_prologue): Drop variable
4421 empty_stack_frame. Don't allocate unused slot above fp.
4422 (mmix_target_asm_function_epilogue): Mirror prologue changes.
4423 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4424 brace in first column.
4425 (enum reg_class): Ditto.
4426 (FIRST_PARM_OFFSET): Now 0.
4427 (USER_LABEL_PREFIX): Remove #if 0:d definition.
4429 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4431 * combine.c (make_extraction): Fix error in last change.
4433 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4435 * c4x.c (c4x_fp_reglist): Const-ify.
4436 * cris.c (cris_print_operand): Likewise.
4437 * i386.c (ix86_va_arg): Likewise.
4438 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4439 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4440 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4441 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4442 * mcore.h (regno_reg_class): Likewise.
4443 * mips.c (gen_int_relational): Likewise.
4444 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
4445 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
4446 * pdp11.c (move_costs): Likewise.
4447 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
4448 * s390.c (s390_branch_condition_mnemonic, regclass_map):
4450 * s390.h (regclass_map): Likewise.
4451 * sh.c (shift_amounts): Likewise.
4452 * sh.md (rotlsi3): Likewise.
4454 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
4456 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4457 (ne0+5): Use new clobber to generate proper shift pattern.
4458 Patch by Michael Matz <matz@kde.org>.
4460 2002-03-09 Andreas Schwab <schwab@suse.de>
4462 * gcc.c (validate_all_switches): Also handle `%W{...}'.
4464 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
4466 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4468 2002-03-09 Jakub Jelinek <jakub@redhat.com>
4471 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4472 even for non-representable constants.
4474 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4476 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4477 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4478 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4479 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4480 (pop_function_context): Compute MAY_SHARE parameter for
4482 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4483 (gen_mem_addressof): Call fixup_var_refs with new parm.
4485 * combine.c (make_extraction): Don't make extension of CONST_INT.
4487 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
4489 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4490 in o32 and o64 ABIs.
4491 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4492 but getting fixed-size structs passed in registers regardless of
4493 padding in o32 and o64 ABIs.
4495 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4496 offset before loading address of argument passed by transparent
4499 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
4501 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4503 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
4505 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4506 marker such that registers after it are saved.
4508 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4510 * sparc.c (arith_4096_operand): Fix error in last change.
4512 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
4514 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4517 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
4519 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4522 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
4524 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4526 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
4528 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4529 removed; fix return value.
4530 * combine.c (combine_instructions): Dirtify blocks where we failed to
4531 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4532 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4534 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4536 * gcse.c (insert_insn_end_bb): Fix typo in last change.
4538 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
4540 * recog.c (peephole2_optimize): Re-distribute EH edges.
4542 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
4544 * expr.c (expand_expr): Use unsave lang hook.
4545 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4546 (LANG_HOOKS_INITIALIZER): Update.
4547 * langhooks.h (struct lang_hooks): New hook unsave.
4548 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4549 (unsave_expr_1): Remove unused lang_unsave_expr_now.
4550 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
4551 (unsave_expr_now): Remove.
4552 * tree.h (unsave_expr_now, lang_unsave,
4553 lang_unsave_expr_now): Remove.
4556 2002-03-08 Andreas Jaeger <aj@suse.de>
4558 * flow.c (propagate_block_delete_insn): Remove unused variable.
4560 2002-03-08 Kazu Hirata <kazu@hxi.com>
4562 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4563 insn length for memory load/store.
4565 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
4567 * doc/install.texi (--with-libiconv-prefix): Document.
4569 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
4571 * doc/sourcebuild.texi: Fix typo.
4573 2002-03-08 Jakub Jelinek <jakub@redhat.com>
4576 * builtins.c (std_expand_builtin_va_arg): Do all computations on
4579 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4581 * rtl.c (copy_most_rtx): Move from here ...
4582 * emit-rtl.c (copy_most_rtx): ... to here.
4584 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
4586 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4587 SUBTARGET_CPP_SIZE_SPEC.
4588 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4590 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4592 2002-03-07 Matt Hiller <hiller@redhat.com>
4594 * gensupport.c (first_dir_md_include): Renamed from include;
4595 change all references.
4596 (last_dir_md_include): Renamed from last_include; change all
4598 (init_md_reader): Unconditionally initialize base_dir whether or
4599 not filename is a relative path.
4601 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
4603 * config/fp-bit.c (_unord_f2): Compile it in even if
4604 US_SOFTWARE_GOFAST is enabled.
4606 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4607 NULL_RTX. Set all HFmode operations as NULL_RTX.
4608 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4609 NULL_RTX, try reversing the comparison and the operands.
4611 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
4613 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4614 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4617 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
4619 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4621 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
4623 * basic-block.h (fixup_abnormal_edges): Declare.
4624 * reload1.c (fixup_abnormal_edges): New function.
4625 * reg-stack.c (convert_regs): Use it.
4627 * gcse.c (insert_insn_end_bb): Handle trapping insns.
4629 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4631 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
4633 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4634 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4635 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4636 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4637 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4638 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4639 unless x and y could be infinite.
4640 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4641 Check that the common type of both arguments is a real, even for
4642 targets without unordered comparisons. Allow an integer argument
4643 to be compared against a real.
4644 (expand_tree_builtin): Use expand_unordered_cmp.
4645 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4646 * cse.c (fold_rtx): Likewise. Fix indentation.
4647 * fold-const.c (fold_real_zero_addition_p): New.
4648 (fold): Use it, and the new HONOR_... macros.
4649 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4650 * jump.c (reversed_comparison_code_parts): After searching for
4651 the true comparison mode, use HONOR_NANS to decide whether it
4652 can be safely reversed.
4653 (reverse_condition_maybe_unordered): Remove IEEE check.
4654 * simplify-rtx.c (simplify_binary_operation): Use the new macros
4655 to decide which simplifications are valid. Allow the following
4656 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4657 and (a - -b) to (a + b).
4658 (simplify_relational_operation): Use HONOR_NANS.
4659 * doc/tm.texi: Document the MODE_HAS_... macros.
4661 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
4663 * combine.c (simplify_comparison): If simplifying a logical shift
4664 right and compare with constant, force the comparison to unsigned.
4666 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
4668 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4670 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4672 (alt_reg_names): Remove % for vrsave.
4674 2002-03-06 Richard Henderson <rth@redhat.com>
4676 PR optimization/5844
4677 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
4678 if used indicates we've already emitted one copy of an operand.
4679 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4680 (gen_split): Supply a non-null used.
4682 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
4684 * reload1.c (reload): Unshare all rtl after reload is done.
4686 * simplify-rtx.c (simplify_plus_minus): Do not abort,
4687 but simply fail if the expression is too complex to simplify.
4688 (simplify_gen_binary): Handle simplify_plus_minus failures.
4690 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
4692 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4693 consistently call delete_trivially_dead_insns after CSE and GCSE;
4694 fix DFI_life dumping; do jump threading after liveness; do crossjumping
4695 after liveness2; update comment in last crossjumping.
4696 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4698 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
4700 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4701 after completing fast dead code elimination.
4703 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4706 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
4708 * version.c: Fix misplaced leading blanks on first line.
4710 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
4712 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4714 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
4716 * cfgcleanup.c (mentions_nonequal_regs): New function.
4717 (thread_jump): Use it.
4718 * toplev.c (rest_of_compilation): Run jump threading after
4721 2002-03-06 Jakub Jelinek <jakub@redhat.com>
4723 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4726 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
4728 * predict.c (estimate_bb_frequencies): Do not reload the
4729 frequencies from notes.
4731 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
4733 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4734 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4736 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4737 delete_noop_moves): Return indeger.
4738 * flow.c (ndead): New variable.
4739 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4740 BB argument; update callers.
4741 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4742 (life_analysis): Do not call purge_all_dead_edges.
4743 (update_life_info): Return number of deleted insns; print statistics.
4744 (update_life_info_in_dirty_blocks): likewise.
4745 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4746 return number of insns deleted.
4748 * cse.c: Include timevar.h
4749 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4750 iterate until stabilizes; print statistics; return number of killed
4752 * Makefile.in: (cse.o): Add timevar.h dependency
4753 * rtl.h (delete_trivially_dead_insns): New.
4754 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4755 * toplev.c (rest_of_compilation): Update callers.
4757 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4758 (try_optimize_cfg): Do not update liveness.
4759 (cleanup-cfg): Loop until try_optimize_cfg and dead code
4760 removal stabilizes; use delete_trivially_dead_insns.
4762 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4764 2002-03-05 Zack Weinberg <zack@codesourcery.com>
4766 * cppmain.c (setup_callbacks): Disable #pragma and #ident
4767 callbacks when processing assembly language.
4769 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4771 * pa.h (ASM_FILE_END): Define.
4772 * som.h (ASM_FILE_END): Delete.
4774 * pa.c (function_arg): Don't pass floats in general registers in
4775 indirect calls if TARGET_ELF32.
4777 2002-03-05 Richard Henderson <rth@redhat.com>
4779 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4781 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
4783 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4785 2002-03-05 Jakub Jelinek <jakub@redhat.com>
4787 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4788 -r command line. Don't hide any symbols if not building
4791 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
4793 * cfg.c (dump_flow_info): Warn about profile mismatches.
4794 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4795 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4797 2002-03-05 Jakub Jelinek <jakub@redhat.com>
4799 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4800 wide volatile memory by parts.
4802 2002-03-05 Jakub Jelinek <jakub@redhat.com>
4804 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4807 2002-03-05 Richard Henderson <rth@redhat.com>
4809 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4811 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
4813 * toplev.c (documented_lang_options): Document more
4814 language-specific options.
4815 * doc/invoke.texi (Warning Options): Correct documentation for
4816 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4817 * c-decl.c (c_decode_option): Use a table to handle warning options.
4819 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
4821 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4822 parameter to mmix_encode_section_info.
4823 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4824 relocatably. Always produce ELF, not mmo if linking relocatably.
4825 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4826 first is non-zero, don't add symbol prefix.
4827 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4828 prototype accordingly.
4830 2002-03-04 Krister Walfridsson <cato@df.lth.se>
4832 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4834 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
4836 * configure.in: Increase required makeinfo version to 4.1.
4837 * configure: Regenerate.
4839 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
4841 * .cvsignore: Remove *.info* and genrtl*; these files are generated
4844 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
4846 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4847 * doc/invoke.texi: Fix @math uses.
4849 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
4851 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4854 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
4856 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4857 (powerpc-*-eabisimaltivec*): Same.
4859 * config/rs6000/t-ppcendian: New.
4861 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4863 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4864 nonimmediate_src_operand and nonimmediate_lsrc_operand to
4865 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4867 2002-03-03 Richard Henderson <rth@redhat.com>
4869 * toplev.c (rest_of_decl_compilation): Revert last two changes.
4871 2002-03-03 Zack Weinberg <zack@codesourcery.com>
4873 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4874 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4875 tree.c, config/m68k/m68k.c:
4876 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4877 REAL_ARITHMETIC blocks unconditional. Delete some further
4878 #ifdef blocks predicated on REAL_ARITHMETIC.
4879 * flags.h, toplev.c: Delete remaining references to
4882 * doc/invoke.texi: Remove documentation of -fpretend-float.
4883 * doc/tm.texi: Describe the various REAL_* macros as provided by
4884 real.h, not by the target configuration files.
4886 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4887 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4888 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4889 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4890 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4891 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4892 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4893 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4894 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4895 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4896 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4897 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4898 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4899 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4900 config/xtensa/xtensa.h:
4901 Do not define, undefine, or mention in comments any of
4902 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4903 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4904 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4905 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4906 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4907 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4908 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4909 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4910 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4912 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4914 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4915 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4916 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4917 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4918 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4919 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4921 * defaults.h (BITS_PER_WORD): Define.
4922 * doc/tm.texi (BITS_PER_WORD): Document default value.
4924 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4925 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4926 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4928 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4930 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4931 lieu of explicit sizeof/sizeof.
4932 * i386.c (override_options, ix86_init_mmx_sse_builtins,
4933 ix86_expand_builtin): Likewise.
4934 * mips.c (mips_add_gc_roots): Likewise.
4935 * mmix.c (mmix_output_condition): Likewise.
4936 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4937 altivec_init_builtins): Likewise.
4938 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4939 * cppexp.c (Nsuff, parse_number): Likewise.
4940 * cppinit.c (builtin_array_end): Likewise.
4941 * gcc.c (n_default_compilers, process_command): Likewise.
4942 * genpreds.c (output_predicate_decls): Likewise.
4943 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4944 * lcm.c (N_ENTITIES): Likewise.
4945 * stor-layout.c (set_sizetype): Likewise.
4947 2002-03-03 Richard Henderson <rth@redhat.com>
4949 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4950 for types or labels.
4952 2002-03-03 Richard Henderson <rth@redhat.com>
4954 * c-decl.c (start_decl): Initialized variables are not common.
4956 2002-03-02 Per Bothner <per@bothner.com>
4958 * gcc.c (option_map): Suport new --bootclasspath option.
4959 --CLASSPATH is now just an alias for --classpath.
4961 2002-03-02 Richard Henderson <rth@redhat.com>
4963 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4964 load if "internal" visibility.
4965 * doc/extend.texi: Document visibility meanings.
4967 2002-03-02 Richard Henderson <rth@redhat.com>
4969 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4970 to functions as well.
4972 2002-03-02 Richard Henderson <rth@redhat.com>
4974 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4975 (handle_visibility_attribute): Don't call assemble_visibility.
4976 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4977 without asmspec. Invoke assemble_alias when needed.
4978 * varasm.c (maybe_assemble_visibility): New.
4979 (assemble_start_function, assemble_variable, assemble_alias): Use it.
4981 2002-03-02 Richard Henderson <rth@redhat.com>
4983 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4984 invoke ENCODE_SECTION_INFO with first call flag.
4986 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4987 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4988 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4989 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4990 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4991 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4992 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4993 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4994 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4995 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4996 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4997 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4998 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4999 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
5000 config/mcore/mcore-protos.h, config/mcore/mcore.c,
5001 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
5002 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
5003 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
5004 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
5005 config/sh/sh.h, config/sparc/sparc.h,
5006 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
5007 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
5008 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
5009 FIRST argument. As needed, examine it and do nothing.
5011 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
5012 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
5013 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
5015 * config/arm/t-pe (pe.o): Add dependencies.
5017 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5019 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
5020 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
5021 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
5022 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
5023 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
5024 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
5025 * defaults.h (BITS_PER_UNIT): Define.
5026 * doc/tm.texi (BITS_PER_UNIT): Document default value.
5028 2002-03-02 Kazu Hirata <kazu@hxi.com>
5030 * config/h8300/h8300-protos.h: Add a prototype for
5031 compute_a_shift_length.
5032 * config/h8300/h8300.c (h8300_asm_insn_count): New.
5033 (compute_a_shift_length): Likewise.
5034 (h8300_adjust_insn_length): Do not adjust insn length of shift
5036 * config/h8300/h8300.md (anonymous shift patterns): Use
5037 compute_a_shift_length.
5039 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5041 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
5044 * emit-rtl.c (offset_address): Call update_temp_slot_address.
5046 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5048 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
5049 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
5050 * flags.h (flag_zero_initialized_in_bss): Declare.
5051 * toplev.c (flag_zero_initialized_in_bss): New flag.
5052 (lang_independent_options): Add flag_zero_initialized_in_bss.
5053 * tree.c (initializer_zerop): New function.
5054 * tree.h (initializer_zerop): Declare.
5055 * varasm.c (assemble_variable): If we can emit bss, put zero
5056 initializers in the bss section.
5058 2002-03-02 Alan Modra <amodra@bigpond.net.au>
5060 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
5061 like more than one symbol per .weak directive.
5063 2002-03-01 Richard Henderson <rth@redhat.com>
5065 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
5066 adjust argument_pointer by pretend_args_size.
5067 (ia64_va_start): Adjust va_start address by -pretend_args_size.
5069 2002-03-01 Kazu Hirata <kazu@hxi.com>
5071 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
5073 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
5075 * toplev.c (rest_of_compilation): Delete dead jumptables before
5077 * flow.c (delete_dead_jumptables): Make global.
5078 * rtl.h (delete_dead_jumptables): Declare.
5080 2002-03-01 David Edelsohn <edelsohn@gnu.org>
5082 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
5083 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
5084 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
5086 2002-03-01 Kazu Hirata <kazu@hxi.com>
5088 * config/h8300/h8300-protos.h: Fix formatting.
5089 * config/h8300/h8300.c: Likewise.
5090 * config/h8300/h8300.h: Likewise.
5092 2002-03-01 Kazu Hirata <kazu@hxi.com>
5094 * config/h8300/h8300.c (print_operand): Support 16-bit
5096 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
5098 2002-02-28 Richard Henderson <rth@redhat.com>
5100 * expmed.c (store_bit_field): Prevent generation of CONCATs;
5101 pun complex values as integers; use gen_lowpart instead of
5103 (extract_bit_field): Likewise.
5105 2002-03-01 Alan Modra <amodra@bigpond.net.au>
5106 David Edelsohn <edelsohn@gnu.org>
5108 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
5109 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
5110 (SUPPORTS_WEAK): Likewise.
5111 * output.h (add_weak): Add tree param.
5112 * varasm.c (add_weak): Likewise. Save decl.
5113 (struct weak_syms): Add decl field.
5114 (mark_weak_decls): New function.
5115 (init_varasm_once): ggc_add_root mark_weak_decls.
5116 (assemble_start_function): Use ASM_WEAKEN_DECL.
5117 (assemble_variable): Likewise.
5118 (assemble_alias): Likewise.
5119 (declare_weak): Pass decl to add_weak.
5120 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
5121 (remove_from_pending_weak_list): Declare and define for
5123 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
5124 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
5125 * defaults.h (SUPPORTS_WEAK): Likewise.
5126 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5127 .weak for code sym. Do emit .size for descriptor sym.
5128 (ASM_DECLARE_FUNCTION_SIZE): Define.
5129 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
5130 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
5131 .lglobl unless TARGET_XCOFF. Formatting fixes.
5132 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5134 (HANDLE_PRAGMA_WEAK): Remove.
5135 (ASM_WEAKEN_LABEL): Remove.
5136 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
5138 2002-03-01 Jason Merrill <jason@redhat.com>
5140 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
5141 (TARGET_EXPR_CLEANUP): New macro.
5143 2002-02-28 Steve Ellcey <sje@cup.hp.com>
5145 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
5146 to take ptr_extend into account as third type of extension.
5147 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
5148 fields used by SUBREG_PROMOTED_UNSIGNED_P.
5149 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
5150 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
5151 * calls.c (precompute_arguments): Use new macro.
5152 (expand_call): Ditto.
5153 * combine.c (nonzero_bits): Ditto.
5154 (record_promoted_value): Ditto.
5155 * expr.c (store_expr): Ditto.
5156 (expand_expr): Ditto.
5157 * function.c (assign_parms): Ditto.
5159 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
5161 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
5162 override -shared and -shared-libgcc.
5164 2002-02-28 David O'Brien <obrien@FreeBSD.org>
5166 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
5168 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
5171 2002-02-28 Richard Henderson <rth@redhat.com>
5173 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
5174 4 cycle latency from MM producers.
5175 (ia64_internal_sched_reorder): Likewise with pipeline flush.
5177 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5179 * mklibgcc.in: Don't use GNU make extension.
5181 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
5183 * c-parse.in (STATIC): New terminal.
5184 (scspec): New non-terminal. Update productions accordingly.
5185 (program): Remove bogus ifc / end ifc.
5186 (array_declarator): Simplify production using STATIC.
5188 2002-02-28 Jim Meyering <meyering@lucent.com>
5190 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
5191 \a still means TARGET_BELL.
5193 2002-02-28 Richard Henderson <rth@redhat.com>
5195 * haifa-sched.c (sched_emit_insn): New.
5196 (schedule_block): Use last_scheduled_insn to track last insn.
5197 * sched-int.h (sched_emit_insn): Prototype.
5198 * config/ia64/ia64.c (last_issued): Remove.
5199 (ia64_variable_issue): Don't set it.
5200 (nop_cycles_until): Use sched_emit_insn.
5202 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
5204 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
5207 2002-02-28 Kazu Hirata <kazu@hxi.com>
5209 * config/h8300/h8300.c: Fix formatting.
5210 * config/h8300/h8300.h: Likewise.
5212 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
5214 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
5215 which may overwrite the high byte of the frame pointer.
5217 2002-02-28 Bo Thorsen <bo@suse.de>
5219 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
5220 (STARTFILE_SPEC): Add 64 bit files.
5221 (ENDFILE_SPEC): Likewise.
5223 2002-02-28 Jason Merrill <jason@redhat.com>
5225 * c-decl.c (finish_function): Only warn about missing return
5226 statement with -Wreturn-type.
5228 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
5230 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
5232 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
5233 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
5235 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
5237 * basic-block.h (BB_REACHABLE): Renumber.
5238 (BB_DIRTY, BB_NEW): New flags.
5239 (clear_bb_flags): Declare.
5240 (update_life_info_in_dirty_blocks): Declare.
5241 * cfg.c (clear_bb_flags): New function.
5242 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
5243 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
5244 reorder_insns, emit_insn_after): Mark block as dirty.
5245 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
5246 (update_life_info_in_dirty_blocks): New function.
5247 * recog.c (apply_change_group): Dirtify block.
5249 * cse.c (cse_insn): Reorder emitting of jump insn to keep
5251 * gcse.c (delete_null_pointer_checks): Likewise.
5253 * toplev.c (dump_file_index): Move cse2 after bp,
5255 (dump_file_info): Similary.
5256 (rest_of_compilation): Avoid most of CFG rebuilds;
5257 do first if converision after null pointer checks, do cse2
5258 after branch prediction; avoid full liveness rebuild after
5259 initializing subregs.
5260 * invoke.texi (-d options): Document -du, renumber.
5262 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
5263 (notice_new_block): Do not set BB_UPDATE_LIFE.
5264 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
5265 merge_blocks_move_successor_nojumps, merge_blocks,
5266 try_crossjump_to_edge): Likewise.
5267 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
5268 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
5269 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
5270 (merge_of_block): Do not use life_data_ok.
5271 (find_if_case_1): Do not use SET_UPDATE_LIFE.
5272 (if_convert): Use BB_DIRTY mechanizm to update life.
5273 * lcm.c (optimize_mode_switching): Update
5274 update_life_info_in_dirty_blocks
5276 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
5278 * Makefile.in (integrate.o): Update.
5279 * c-decl.c (copy_lang_decl): Rename.
5280 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5281 * integrate.c: Include langhooks.h.
5282 (copy_decl_for_inlining): Update to use langhook.
5283 * langhooks-def.h (lhd_do_nothing_t,
5284 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
5285 (LANG_HOOKS_INITIALIZER): Update.
5286 * langhooks.c (lhd_do_nothing_t): New.
5287 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
5288 * tree.h (copy_lang_decl): Remove.
5290 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5292 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
5294 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
5295 POST_DEC, and POST_MODIFY.
5297 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5299 * c-typeck.c (digest_init): Remove unused parameter; all
5302 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
5304 * expmed.c (expand_shift): Correctly test for low part of a
5307 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
5309 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
5310 insn UIDs with insn addresses.
5312 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5314 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
5315 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
5316 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
5317 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
5318 gcc.c, toplev.c: Delete code implementing -traditional mode.
5320 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
5321 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
5322 Document removal of -traditional mode for compilation, and
5323 remove documentation only relevant to that mode.
5325 * config/nextstep.h, config/ptx4.h, config/svr4.h,
5326 config/convex/convex.h, config/d30v/d30v.h,
5327 config/i386/dgux.h, config/i386/osf1elf.h,
5328 config/i386/osfelf.h, config/i386/osfrose.h,
5329 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
5330 config/m68k/hp310.h, config/m88k/dgux.h,
5331 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
5332 config/m88k/m88k.h, config/m88k/openbsd.h,
5333 config/mips/abi64.h, config/mips/osfrose.h,
5334 config/mips/svr4-5.h, config/mips/svr4-t.h,
5335 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5336 config/stormy16/stormy16.h: Remove all references to
5337 -traditional from target specs. Delete all mention of the
5338 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
5339 delete a couple of commented-out definitions of
5340 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
5343 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
5344 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
5346 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5348 * mklibgcc.in: Don't use \n in a line subject to
5349 interpretation by echo.
5351 2002-02-27 Graham Stott <grahams@redhat.com>
5353 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
5356 * loop.c (prescan_loop): Handle PARALLEL.
5358 * unroll.c (loop_iterations): Return 0 if the add_val for
5361 * final.c (output_operand_lossage): Constify PFX_STR.
5363 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
5365 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
5367 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
5368 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
5370 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
5372 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5374 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
5376 * cpplex.c (_cpp_lex_token): Handle directives in macro
5378 * cpplib.c (_cpp_handle_directive): Save and restore state
5379 if parsing macro args when entering a directive.
5380 * cppmacro.c (collect_args): No need to handle directives
5382 (enter_macro_context, replace_args): Use the original macro
5383 definition in case it was redefined whilst collecting arguments.
5387 2002-02-26 David Edelsohn <edelsohn@gnu.org>
5389 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
5390 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
5391 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
5393 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
5394 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
5395 (load_toc_v4_PIC_2): Same.
5397 2002-02-26 Alan Modra <amodra@bigpond.net.au>
5399 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
5401 2002-02-26 Richard Henderson <rth@redhat.com>
5403 * config/alpha/alpha.md (ashldi_se): Re-enable.
5405 2002-02-26 Richard Henderson <rth@redhat.com>
5407 * config/alpha/alpha.c (alpha_encode_section_info): Examine
5408 MODULE_LOCAL_P; improve commentary.
5410 2002-02-26 Zack Weinberg <zack@codesourcery.com>
5412 * doc/cpp.texi: Clarify documentation of relationship between
5415 2002-02-26 Kazu Hirata <kazu@hxi.com>
5417 * config/h8300/h8300-protos.h: Update the prototype for
5418 compute_logical_op_length. Add the prototype for
5419 compute_logical_op_cc.
5420 * config/h8300/h8300.c (compute_logical_op_length): Figure out
5422 (compute_logical_op_cc): New.
5423 * config/h8300/h8300.md: Combine all the logical op patterns
5424 in HImode and SImode. Use compute_logical_op_cc.
5426 2002-02-26 Kelley Cook <kelleycook@comcast.net>
5428 * config/i386/i386.c (print_operand): Don't append ATT-style
5429 length suffixs to x87 opcodes when in Intel mode.
5431 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
5433 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5434 (init_emit_once): Update calls.
5435 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5436 (init_syntax_once): Prototype.
5438 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5440 * pa-linux.h (LIB_SPEC): Update definition.
5441 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5443 2002-02-26 Richard Henderson <rth@redhat.com>
5445 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5446 if we emitted a stop bit.
5448 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5450 * configure.in (libgcc_visibility): Substitute.
5451 * configure: Rebuilt.
5452 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5453 defined symbols .hidden.
5455 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5457 * attribs.c (c_common_attribute_table): Add visibility.
5458 (handle_visibility_attribute): New function.
5459 * varasm.c (assemble_visibility): New function.
5460 * output.h (assemble_visibility): Add prototype.
5461 * tree.h (MODULE_LOCAL_P): Define.
5462 * crtstuff.c (__dso_handle): Use visibility attribute.
5463 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5464 for MODULE_LOCAL_P symbols too.
5465 * config/ia64/ia64.c (ia64_encode_section_info): Handle
5466 MODULE_LOCAL_P symbols the same way as local symbols.
5467 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5468 into .sdata/.sbss by the user.
5469 * doc/extend.texi (Function Attributes): Document visibility
5472 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5475 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5476 STRING_CST initializer spanning the whole variable without
5478 If expand_expr returned MEM, don't use it.
5480 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
5482 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5483 generate a die for the lexical block.
5485 2002-02-26 Kazu Hirata <kazu@hxi.com>
5487 * config/h8300/h8300-protos.h: Add a prototype for
5488 compute_logical_op_length.
5489 * config/h8300/h8300.c (compute_logical_op_length): New.
5490 * config/h8300/h8300.md (anonymous logical patterns): Use
5491 compute_logical_op_length for length.
5493 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5495 * dwarf2out.c (modified_type_die): Do not call type_main_variant
5497 (gen_type_die): Same.
5499 * attribs.c (handle_vector_size_attribute): Set debug information.
5501 2002-02-26 Daniel Egger <degger@fhm.edu>
5503 * config/rs6000/rs6000.md: Swap define_insn attributes to
5504 fix incorrect generation of merge high instructions instead
5507 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5509 * c-typeck.c (really_start_incremental_init): Use
5510 bitsize_zero_node for vectors.
5512 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5514 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5515 ("*set_vrsave_internal"): Same.
5517 2002-02-25 Richard Henderson <rth@redhat.com>
5519 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5520 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
5522 2002-02-25 Jakub Jelinek <jakub@redhat.com>
5525 * config/i386/i386.c (ix86_return_pops_args): Only pop
5526 fake structure return argument if it was passed on the stack.
5528 2002-02-25 Jason Merrill <jason@redhat.com>
5530 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5533 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
5535 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5536 link with shared_name only.
5537 * doc/invoke.texi (Link Options): Document new behavior.
5539 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
5541 * c-typeck.c (push_init_level): Handle vectors.
5543 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
5545 * config/sparc/sparc.c (const64_high_operand): Zero-extend
5546 operands of SPARC_SETHI_P.
5547 (input_operand): Likewise.
5548 (sparc_emit_set_const32): Likewise.
5549 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5550 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5551 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
5552 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5553 (movdi_insn_sp64_vis): Likewise.
5554 (movdi split, movdf split): Use SETHI32.
5555 * doc/md.texi: Document SPARC constraints L, M and N.
5557 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
5559 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5560 ("*set_vrsave_internal"): use mfspr for Darwin.
5562 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5563 gen_get_vrsave_internal.
5565 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5567 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5569 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
5571 * cpplex.c (cpp_interpret_charconst): Get signedness or
5572 otherwise of wide character constants correct.
5573 * cppexp.c (lex): Get signedness of wide charconsts correct.
5575 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5577 * optabs.c (widen_operand): Only call convert_modes for
5578 promoted SUBREG if signedness matches.
5579 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5581 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5583 * cpplib.c (glue_header_name): Use local buffer to build up
5586 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5588 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5590 2002-02-23 Kazu Hirata <kazu@hxi.com>
5592 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5593 H8/300[HS] separately.
5594 * config/h8300/h8300.md: Remove the early clobber constraint
5595 from bit field patterns.
5597 2002-02-23 Kazu Hirata <kazu@hxi.com>
5599 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5601 (mulhisi3): Likewise.
5602 (umulqisi3): Likewise.
5603 (umulhisi3): Likewise.
5605 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5607 * cppinit.c (output_deps): Correct test for stdout output.
5608 (init_dependency_output): Cure warning.
5610 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5612 * expr.c (store_expr): When converting expression to promoted
5613 equivalent type, allow using SUBREG_REG of TARGET as the target
5614 of the expansion of EXP.
5615 * loop.c (basic_induction_var, case SUBREG): Always look inside.
5616 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5617 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5618 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5619 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5621 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
5623 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5624 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5625 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5627 2002-02-23 Jakub Jelinek <jakub@redhat.com>
5629 PR optimization/5747
5630 * loop.c (scan_loop): Update reg info if move_movables created new
5633 2002-02-23 David Edelsohn <edelsohn@gnu.org>
5635 * gcc.c (init_gcc_spec): Revert last change.
5637 2002-02-23 David Edelsohn <edelsohn@gnu.org>
5639 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5640 gpc_reg_operand constraint.
5642 2002-02-23 Alan Modra <amodra@bigpond.net.au>
5644 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5645 Simplify comparison of `low'.
5646 (add_operand): Fix formatting.
5647 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5648 (mask_operand): Disallow mask to wrap in 64-bit mode.
5649 (rs6000_stack_info): Remove redundant test setting push_p.
5650 (output_toc): Fix formatting.
5651 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5652 cc_reg_not_cr0_operand constraint.
5653 (booldi3, boolcdi3 splitters): Same.
5655 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
5657 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5659 2002-02-22 David Edelsohn <edelsohn@gnu.org>
5661 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5662 gcc invoked with -shared-libgcc.
5664 2002-02-22 Jakub Jelinek <jakub@redhat.com>
5667 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5668 decl if any of elements was TREE_USED.
5670 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
5672 * config/sparc/sol2.h: Don't include sys/mman.h.
5673 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5674 (arith_4096_operand): Don't throw high bits away.
5675 (const64_operand): Take sign extension of CONST_INTs into account.
5676 (const64_high_operand, sparc_emit_set_const32): Likewise.
5677 (GEN_HIGHINT64): Likewise.
5678 (sparc_emit_set_const64_quick1): Likewise.
5679 (const64_is_2insns): Likewise.
5680 (print_operand): Use trunc_int_for_mode for sign extension.
5681 * config/sparc/sparc.h (SMALL_INT32): Likewise.
5682 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5683 chars. Assume CONST_INT is already properly sign-extended.
5684 (movdi split): Sign-extend each SImode part.
5685 (andsi3 split): Don't mask high bits off, so that result
5686 remains properly sign-extend.
5687 (iorsi3 split): Likewise.
5688 (xorsi3 split): Likewise.
5690 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
5692 * fold-const.c (fold): Fix typo in comments.
5694 2002-02-21 Diego Novillo <dnovillo@redhat.com>
5696 * Makefile.in (langhooks.o): Update dependencies.
5698 2002-02-21 Diego Novillo <dnovillo@redhat.com>
5700 * langhooks.c: Include flags.h.
5702 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
5704 * testsuite/gcc.dg/attr-alwaysinline.c: New.
5706 * c-common.c (c_common_post_options): Set inline trees by
5709 * doc/extend.texi (Function Attributes): Document always_inline
5711 Update documentation about inlining when not optimizing.
5713 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5715 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5716 unless DECL_ALWAYS_INLINE.
5718 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5719 unless DECL_ALWAYS_INLINE.
5720 (c_disregard_inline_limits): Disregard if always_inline set.
5722 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5723 Disregard if always_inline set.
5724 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5725 unless DECL_ALWAYS_INLINE.
5727 * attribs.c (handle_always_inline_attribute): New.
5728 (c_common_attribute_table): Add always_inline.
5730 * config/rs6000/altivec.h: Add prototypes for builtins
5731 requiring the always_inline attribute.
5733 2002-02-21 Eric Christopher <echristo@redhat.com>
5735 * expmed.c (store_bit_field): Try to simplify the subreg
5736 before generating a new one when when the mode size of
5737 value is less than maxmode.
5739 2002-02-21 Richard Henderson <rth@redhat.com>
5741 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5742 than gen_rtx_PLUS to form the sum.
5743 * explow.c (force_reg): Rearrange to not allocate new pseudo
5744 when force_operand returns a register.
5745 * expr.c (expand_assignment): Allow offset_rtx expansion to
5746 return a sum. Do not force addresses into registers.
5747 (expand_expr): Likewise.
5748 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5749 to canonicalize arithmetic that didn't simpify.
5750 (simplify_plus_minus): New argument force; update
5751 all callers. Don't split CONST unless we can do something with it,
5752 and wouldn't lose the constness of the operands.
5754 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5755 that we generated earlier.
5757 2002-02-21 Tom Tromey <tromey@redhat.com>
5759 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5760 (output_line_info): Use constant `1', with a long explanatory
5762 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5764 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
5766 * jump.c (redirect_jump): If old label has no UID, don't try to
5769 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
5771 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5772 If input is constant, do shifts at compile time.
5774 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
5776 * doc/extend.texi: Fix some more overfull hboxes.
5778 2002-02-21 Jakub Jelinek <jakub@redhat.com>
5780 PR optimization/4994
5781 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5784 2002-02-21 Jakub Jelinek <jakub@redhat.com>
5787 * expr.h (expand_and): Add mode argument.
5788 * expmed.c (expand_and): Add mode argument.
5789 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5790 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5791 * except.c (expand_builtin_extract_return_addr): Likewise.
5792 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5793 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5794 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5795 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5796 * config/c4x/c4x.md: Use GEN_INT (x) instead of
5797 gen_rtx (CONST_INT, VOIDmode, x).
5799 2002-02-21 Jakub Jelinek <jakub@redhat.com>
5802 * stmt.c (warn_if_unused_value): Move side effects test once more.
5804 2002-02-20 Torbjorn Granlund <tege@swox.com>
5806 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5807 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5809 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
5811 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5812 SUBREG or ZERO_EXTEND.
5814 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
5816 * sh.h (current_function_anonymous_args): Remove.
5817 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5818 of current_function_varargs and current_function_stdarg is set.
5819 * sh.c (sh_expand_prologue): Check current_function_varargs /
5820 current_function_stdarg / TARGET_SH5 instead of
5821 current_function_anonymous_args.
5823 * sh64.h (TARGET_VERSION): Define.
5825 2002-02-20 David Edelsohn <edelsohn@gnu.org>
5827 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5828 VRSAVE_REGNO on TARGET_ALTIVEC.
5830 2002-02-20 Alan Modra <amodra@bigpond.net.au>
5832 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5833 bits of SImode const_int.
5834 (includes_rshift_p): Likewise.
5835 (print_operand): Call mask_operand and mask64_operand with correct
5837 (rs6000_output_function_epilogue): Pad traceback table to word.
5838 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5839 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5840 mask64_operand with correct mode.
5841 (FUNCTION_ARG_REGNO_P): Correct parentheses.
5843 2002-02-20 Jakub Jelinek <jakub@redhat.com>
5846 * varasm.c (get_pool_constant_mark): New.
5847 * rtl.h (get_pool_constant_mark): Add prototype.
5848 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5849 be represented if it has not been output.
5851 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
5853 * combine.c (do_SUBST): Sanity check substitutions of
5854 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5855 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5856 CONST_INT into its operand.
5857 (known_cond): Likewise, for ZERO_EXTEND.
5858 * simplify-rtx.c (simplify_unary_operation): Fix condition to
5859 allow for simplification of wide modes. Reject CONST_INTs in
5860 ZERO_EXTEND when their actual mode is not given.
5862 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
5864 * c-decl.c (pushdecl): If no global declaration is found for an
5865 extern declaration in block scope, try a limbo one.
5867 2002-02-20 Jakub Jelinek <jakub@redhat.com>
5870 * c-common.c (pointer_int_sum): Moved from...
5871 * c-typeck.c (pointer_int_sum): ...here.
5872 * c-common.h (pointer_int_sum): Add prototype.
5874 2002-02-20 Jakub Jelinek <jakub@redhat.com>
5877 * c-decl.c (duplicate_decls): Return 0 if issued error about
5880 2002-02-20 Roger Sayle <roger@eyesopen.com>
5881 Jakub Jelinek <jakub@redhat.com>
5884 * tree.c (host_integerp): Ensure that the constant integer is
5885 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5886 when pos is zero or non-zero respectively. Clarify comment.
5887 * c-format.c (check_format_info_recurse): Fix host_integerp
5888 usage; the pos argument should be zero when assigning to a
5889 signed HOST_WIDE_INT.
5891 2002-02-20 Richard Henderson <rth@redhat.com>
5893 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5894 of the operand, rather than assuming TImode.
5895 (ix86_expand_binop_builtin): Cope with commutative patterns
5896 using nonimmediate_operand for both operands.
5897 (ix86_expand_timode_binop_builtin): Likewise.
5898 (ix86_expand_store_builtin): Validate operand 1.
5899 (ix86_expand_unop1_builtin): Likewise.
5901 2002-02-20 Philip Blundell <philb@gnu.org>
5904 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5906 2002-02-20 Richard Henderson <rth@redhat.com>
5909 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5911 2002-02-20 Tom Tromey <tromey@redhat.com>
5913 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5914 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5915 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5916 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5917 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5920 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5922 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5923 for (const_int 0) in X not just INTVAL.
5925 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
5927 * doc/extend.texi: Avoid or reduce overfull hboxes.
5929 2002-02-20 Diego Novillo <dnovillo@redhat.com>
5931 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5932 operations if the field does not start at a mode boundary.
5934 2001-02-20 Joel Sherrill <joel@OARcorp.com>
5936 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5937 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5938 Also done for -Acpu and -Amachine.
5940 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
5942 * cppinit.c (init_dependency_output): Take deps output file
5943 from -o if none given with -MF. Suppress normal output.
5944 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5945 * doc/cpp.texi, doc/invoke.texi: Update.
5947 2002-02-19 Zack Weinberg <zack@codesourcery.com>
5949 * toplev.c (output_quoted_string): Write unprintable
5950 characters with octal escapes.
5952 2002-02-19 David Edelsohn <edelsohn@gnu.org>
5954 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5955 really_call_used[VRSAVE_REGNO] if not Altivec.
5957 2002-02-19 Alan Modra <amodra@bigpond.net.au>
5959 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5961 (constant_pool_expr_1): Fix formatting.
5962 (rs6000_legitimize_reload_address): Likewise.
5964 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5966 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5967 now that we have one.
5969 2002-02-19 Zack Weinberg <zack@codesourcery.com>
5971 * tree.h (struct tree_common): Remove aux. Add unused_0 at
5972 end of first block of bitfields (which was only seven bits);
5973 rename dummy to unused_1; remove comment which is no longer true.
5975 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
5977 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5979 2002-02-19 Philip Blundell <pb@nexus.co.uk>
5982 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5986 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5987 arm_is_longcall_p rather than inspecting call-type cookie
5989 (call_value_insn) [TARGET_THUMB]: Likewise.
5991 2002-02-19 Graham Stott <grahams@redhat.com>
5993 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5995 2002-02-19 David Edelsohn <edelsohn@gnu.org>
5997 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5998 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5999 (FP_SAVE_INLINE): Delete.
6001 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
6002 * config/rs6000/eabi.asm: Remove ABI save restore routines.
6003 * config/rs6000/t-ppccomm: Build crtsavres.o.
6004 * config/rs6000/crtsavres.asm: New file.
6006 2002-02-19 Philip Blundell <philb@gnu.org>
6008 * config/arm/arm.c (use_return_insn): Don't reject interrupt
6010 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
6011 (output_return_instruction): Allow interrupt functions to return with
6012 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
6013 (arm_expand_prologue): Subtract 4 before stacking LR in an
6016 2002-02-19 Philip Blundell <pb@nexus.co.uk>
6018 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
6019 decl, not just FUNCTION_DECL.
6020 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
6021 (arm_assemble_integer): Likewise.
6022 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
6025 2002-02-19 matthew green <mrg@eterna.com.au>
6027 * config.gcc (sparc-*-netbsdelf*): Enable target.
6028 (sparc64-*-netbsd*): New target.
6029 * config/sparc/netbsd-elf.h: New file.
6030 * config/sparc/t-netbsd64: New file.
6032 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
6034 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
6036 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
6038 * doc/invoke.texi: explicitly list the style guidelines that
6039 -Weffc++ checks for.
6041 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
6043 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
6045 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
6048 * gcc.c (cpp_unique_options): Treat -o as indicating object file
6049 only if not -E. If -E, pass -o through to the preprocessor.
6051 2002-02-19 Kazu Hirata <kazu@hxi.com>
6053 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
6054 register number with an appropriate macro.
6056 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6058 * doc/rtl.texi (Constants): Close @code tag.
6060 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
6062 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
6063 ("mmx_uavgv4hi3"): Same.
6064 ("pmulhrwv4hi3"): Same.
6066 * tree-inline.c (walk_tree): Handle vectors.
6068 * c-common.c (constant_expression_warning): Handle vectors.
6069 (overflow_warning): Same.
6071 * sched-deps.c (sched_analyze_2): Handle vectors.
6073 * rtlanal.c (rtx_unstable_p): Handle vectors.
6074 (rtx_varies_p): Same.
6075 (count_occurrences): Same.
6076 (regs_set_between_p): Same.
6077 (modified_between_p): Same.
6078 (modified_in_p): Same.
6079 (volatile_insn_p): Same.
6080 (volatile_refs_p): Same.
6081 (side_effects_p): Same.
6083 (inequality_comparisons_p): Same.
6084 (replace_regs): Same.
6085 (computed_jump_p_1): Same.
6087 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
6089 (inner_mode_array): New.
6090 (copy_rtx): Handle vectors.
6091 (copy_most_rtx): Same.
6092 (rtx_equal_p): Same.
6093 (get_mode_alignment): Adjust for vectors.
6095 * resource.c (mark_referenced_resources): Handle vectors.
6096 (mark_set_resources): Same.
6098 * reload1.c (eliminate_regs): Handle vectors.
6099 (elimination_effects): Same.
6100 (scan_paradoxical_subregs): Same.
6102 * reload.c (subst_reg_equivs): Handle vectors.
6104 * regrename.c (scan_rtx): Handle vectors.
6106 * regclass.c (reg_scan_mark_refs): Handle vectors.
6108 * recog.c (find_single_use_1): Handle vectors.
6110 * local-alloc.c (equiv_init_varies_p): Handle vectors.
6111 (contains_replace_regs): Same.
6112 (memref_referenced_p): Same.
6114 * integrate.c (copy_rtx_and_substitute): Handle vectors.
6115 (subst_constants): Same.
6117 * genattrtab.c (attr_copy_rtx): Handle vectors.
6118 (encode_units_mask): Same.
6119 (clear_struct_flag): Same.
6120 (count_sub_rtxs): Same.
6122 * gcse.c (want_to_gcse_p): Handle vectors.
6123 (oprs_unchanged_p): Same.
6124 (hash_expr_1): Same.
6125 (oprs_not_set_p): Same.
6126 (expr_killed_p): Same.
6127 (compute_transp): Same.
6128 (store_ops_ok): Same.
6130 * function.c (purge_addressof_1): Do not allow paradoxical subregs
6132 (fixup_var_refs_1): Same.
6133 (instantiate_virtual_regs_1): Same.
6135 * fold-const.c (operand_equal_p): Handle vectors.
6137 (rtl_expr_nonnegative_p): Same.
6139 * flow.c (mark_used_regs): Handle vectors.
6141 * df.c (df_uses_record): Handle vectors.
6143 * cselib.c (cselib_subst_to_values): Handle vectors.
6144 (cselib_mem_conflict_p): Same.
6147 * cse.c (canon_reg): Handle vectors.
6149 (cse_process_notes): Same.
6150 (count_reg_usage): Same.
6153 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
6155 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
6157 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
6158 (gen_rtx): Handle CONST_VECTOR.
6159 (gen_const_vector_0): New.
6160 (copy_rtx_if_shared): CONST_VECTORs can be shared.
6161 (reset_used_flags): Same.
6162 (copy_insn_1): Same.
6163 (initializer_constant_valid_p): Handle VECTOR_CST.
6165 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
6167 * doc/rtl.texi (Constants): Document const_vector.
6168 (CONST0_RTX): Update for vectors.
6169 (RTL sharing): Same.
6171 * print-tree.c (print_node): Add case for VECTOR_CST.
6173 * tree.h (TREE_VECTOR_CST_ELTS): New.
6174 (struct tree_vector): New.
6175 (union tree_node): Add vector node.
6176 (build_vector): Add prototype.
6178 * tree.def (VECTOR_CST): New.
6180 * tree.c (build_vector): New.
6182 * expmed.c (make_tree): Handle CONST_VECTOR.
6184 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
6185 (CONST_VECTOR_ELT): New.
6186 (CONST_VECTOR_NUNITS): New.
6188 * machmode.h (GET_MODE_INNER): New.
6189 (DEF_MACHMODE): Accept 8th arg.
6191 * machmode.def: Add 8th argument for vector inner mode.
6192 Add inner vector modes for vectors.
6194 * rtl.def (VEC_CONST): Remove.
6195 (CONST_VECTOR): New.
6197 * expr.c (clear_storage): Allow vectors.
6198 (is_zeros_p): Handle VECTOR_CST.
6200 * varasm.c (output_constant_pool): Handle vectors.
6201 (rtx_const): Add veclo and vechi fields.
6202 (kind): Add RTX_VECTOR.
6203 (decode_rtx_const): Add case for vector.
6205 * config/rs6000/rs6000-protos.h: Add zero_constant.
6207 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
6208 constants. Force easy vector constants into memory.
6209 (easy_vector_constant): New.
6210 (emit_easy_vector_constant): New.
6211 (rs6000_legitimize_reload_address): Do not generate bad reloads on
6214 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
6216 ("altivec_lvxl"): Same.
6217 (altivec_lvebx): Same.
6218 (altivec_lvehx): Same.
6219 (altivec_lvewx): Same.
6220 ("*movv4si_const0"): New.
6221 ("*movv4sf_const0"): New.
6222 ("*movv8hi_const0"): New.
6223 ("*movv16qi_const0"): New.
6225 2002-02-18 Kazu Hirata <kazu@hxi.com>
6227 * config/h8300/h8300.c (notice_update_cc): Use
6230 2002-02-18 Kazu Hirata <kazu@hxi.com>
6232 * config/h8300/h8300.md (divmod patterns): Change the
6233 constraints for operands[1] to register_operand.
6235 2002-02-18 Kazu Hirata <kazu@hxi.com>
6237 * config/h8300/h8300-protos.h: Remove the prototype for
6239 * config/h8300/h8300.c (p_operand): Remove.
6240 * config/h8300/h8300.md: Replace p_operand with
6243 2002-02-18 Philip Blundell <pb@nexus.co.uk>
6245 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
6247 (output_return_instruction): Allow use of LDR to unstack
6248 return addresss even for interrupt handlers or when
6249 interworking. If compiling for ARMv5, use interworking-safe
6250 return instructions by default. Remove duplicated code and
6251 lengthy "strcat" sequences.
6253 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6255 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
6256 (LINK_EH_SPEC): Define.
6257 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
6259 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
6261 * config/s390/s390.c (s390_emit_prologue): Do not set the
6262 frame_related flag for call-clobbered registers.
6264 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
6266 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
6267 (construct_container): Fix handling of SSE operands.
6268 (ix86_expand_builtin): Fix handling of 64bit pointers.
6269 (mmx_maskmovq_rex): New pattern.
6271 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
6273 * regrename.c (kill_set_value): Handle subregs properly.
6275 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
6277 * objc/objc-act.c (handle_impent): Remove leading '*'
6278 from objc_class_name.
6280 2002-02-17 Richard Henderson <rth@redhat.com>
6282 * config/alpha/alpha.c (some_small_symbolic_operand,
6283 some_small_symbolic_operand_1, split_small_symbolic_operand,
6284 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
6285 Handle small SYMBOL_REFs anywhere, not just inside memories.
6286 * config/alpha/alpha-protos.h: Update.
6287 * config/alpha/alpha.h (PREDICATE_CODES): Update.
6288 * config/alpha/alpha.md (small symbolic operand splitter): Update.
6290 2002-02-17 Roland McGrath <roland@frob.com>
6292 * config.gcc (powerpc-*-gnu-gnualtivec*,
6293 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
6294 * config/rs6000/gnu.h: New file.
6295 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
6296 Grok "gnu" in rs6000_abi_name.
6297 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
6298 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
6299 Grok -mcall-gnu analogous to -mcall-linux et al.
6300 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6301 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
6302 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
6304 2002-02-17 Jakub Jelinek <jakub@redhat.com>
6307 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
6310 2002-02-17 Philipp Thomas <pthomas@suse.de>
6312 * config/cris/cris.h: Undefine STARTFILE_SPEC and
6313 ENDFILE_SPEC before (re)defining them.
6315 2002-02-17 Kazu Hirata <kazu@hxi.com>
6317 * config/h8300/h8300.c: Fix formatting.
6318 * config/h8300/h8300.h: Likewise.
6320 2002-02-17 Philipp Thomas <pthomas@suse.de>
6322 * doc/tm.texi: Explain why empty strings should not be
6323 marked for translation.
6325 2002-02-17 Philipp Thomas <pthomas@suse.de>
6327 * final.c (output_operand_lossage): Changed to accept
6328 printf style arguments. Change calls where necessary.
6329 * output.h (output_operand_lossage): Change declaration
6330 accordingly. Update copyright.
6331 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
6332 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
6333 Update copyright date where necessary.
6335 * config/i386/i386.c (print_operand): Likewise. Remove use of
6338 * config/cris/cris.c (cris_operand_lossage): Likewise.
6339 Rename parameter so that exgettext recognizes it as
6340 translatable message.
6341 (LOSE_AND_RETURN): Rename parameter to msgid.
6343 2002-02-17 Kazu Hirata <kazu@hxi.com>
6345 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
6346 hard coded register number with an appropriate macro.
6347 (HARD_REGNO_MODE_OK): Likewise.
6348 (ARG_POINTER_REGNUM): Likewise.
6349 (STATIC_CHAIN_REGNUM): Likewise.
6350 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6351 * config/h8300/h8300.md (define_constants): Define more
6354 2002-02-17 Philipp Thomas <pthomas@suse.de>
6356 * config/i386/i386.h: Don't mark empty strings for translation.
6358 2002-02-16 H.J. Lu <hjl@gnu.org>
6360 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
6362 2002-02-16 Zack Weinberg <zack@codesourcery.com>
6364 * cppinit.c (merge_include_chains): Check for brack being
6365 NULL before attempting to merge it with qtail.
6367 2002-02-16 Andrew Cagney <ac131313@redhat.com>
6369 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
6372 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
6374 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
6376 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
6378 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
6379 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
6380 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
6382 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6384 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
6385 now only if !TARGET_FIX.
6386 (*movsi_nt_vms_fix): New pattern.
6388 2002-02-16 Douglas B Rupp <rupp@gnat.com>
6390 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
6391 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
6392 (alpha_sa_mask, alpha_sa_size): Reflect above change.
6393 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
6394 (alpha_start_function, alpha_expand_epilogue): Likewise.
6395 (unicosmk_gen_dsib): Likewise.
6397 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6399 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
6401 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
6403 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
6404 check_and_change_labels, s390_final_chunkify): Delete.
6405 (s390_split_branches, s390_chunkify_pool): New functions.
6406 (s390_function_prologue): Call them.
6408 * config/s390/s390.h (S390_REL_MAX): Delete.
6409 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6411 * config/s390/s390.md (cjump, icjump, jump): Fix length
6412 attribute calculation.
6415 2002-02-15 David Edelsohn <edelsohn@gnu.org>
6417 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6418 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6420 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
6422 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6423 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6424 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6426 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
6428 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6430 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
6432 * reload.c (find_dummy_reload): Check that an output register
6433 is valid for its mode.
6435 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
6437 * combine.c (known_cond): After replacing the REG of a SUBREG, try
6440 * function.c (assign_parms): Demote promoted argument passed by
6441 transparent reference.
6443 2001-02-14 Joel Sherrill <joel@OARcorp.com>
6445 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6446 -Acpu() and -Amachine() to eliminate warnings.
6448 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
6450 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6452 2002-02-14 Kazu Hirata <kazu@hxi.com>
6454 * config/h8300/h8300-protos.h: Update the prototype for
6456 * config/h8300/h8300.c (const_costs): Treat SET as a little
6457 more expensive operation.
6458 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6459 reference to const_costs.
6461 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
6463 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6465 2002-02-14 Jakub Jelinek <jakub@redhat.com>
6468 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6469 use arguments from newtype.
6471 2002-02-13 Eric Christopher <echristo@redhat.com>
6473 * config/mips/mips.c (override_options): Add check for march/mipsX
6474 on the same command line. Fix error message in cpu processing.
6475 Remove architecture and ISA checks.
6477 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
6479 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6481 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6483 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
6485 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6487 ("*movv8hi_internal1"): Same.
6488 ("*movv16qi_internal1"): Same.
6489 ("*movv4sf_internal1"): Same.
6491 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6492 not push_reload for altivec modes.
6494 2002-02-13 Joel Sherrill <joel@OARcorp.com>
6496 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6497 all RTEMS targets including removal of #includes from config/*/rtems*.h
6498 file and adding them to tm_file setting. Added xm_defines=POSIX to
6500 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6501 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6502 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6503 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6504 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6505 config/m68k/rtemself.h: Ditto.
6506 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6507 config/mips/rtems64.h: Ditto.
6508 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6509 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6511 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6512 config/sparc/rtemself.h: Ditto.
6513 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6514 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6515 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6517 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6518 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6519 target made more similar to i386-elf.
6520 * config/i386/t-rtems-i386: Added soft float support and multilibs.
6521 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6522 be similar to config/m68k/t-m68kelf.
6523 * gthr-rtems.h: Encapsulate with extern "C" for C++.
6525 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
6527 * regmove.c (kill_value): Handle subregs.
6529 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
6531 * i386.md (mul patterns): Allow memory operand to be first;
6532 add expanders where needed; fix constraints.
6533 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6534 Allow memory operand to be the first.
6536 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6539 2002-02-13 Jakub Jelinek <jakub@redhat.com>
6542 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6545 2002-02-13 Jakub Jelinek <jakub@redhat.com>
6547 PR optimization/5547:
6548 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6549 all valid IA-32 address modes involving non-scaled %ebx and
6550 GOT/GOTOFF as displacement.
6552 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
6554 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6555 after emitting ltorg insns.
6557 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6558 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6559 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6560 *abssf2): Fix "op_type" attribute.
6562 2002-02-13 Douglas B Rupp <rupp@gnat.com>
6564 * mkconfig.sh: Avoid using a subshell redirect.
6565 ($output.T): Change to $(output)T.
6566 (ENABLE_NLS): Remove unneeded undef.
6568 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6569 * config/alpha/x-vms (libsubdir): Define.
6571 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6572 register frame procedures. Optimize retrieving context.
6574 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6575 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6576 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6578 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6580 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6581 Make same change as for find_base_value.
6583 2002-02-13 Kazu Hirata <kazu@hxi.com>
6585 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6586 of QImode and SImode.
6588 2002-02-13 Kazu Hirata <kazu@hxi.com>
6590 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6591 length computation of movsi.
6592 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6594 2002-02-13 Kazu Hirata <kazu@hxi.com>
6596 * config/h8300/h8300.md (subqi3): Tighten the predicate for
6597 operands[2] to register_operand.
6599 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
6601 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6603 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
6605 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6606 for altivec_lvx* and altivec_stvx*.
6607 ("*movv4si_internal"): Add constraint for loading from GPRs.
6608 ("*movv8hi_internal1"): Same.
6609 ("*movv16qi_internal1"): Same.
6610 ("*movv4sf_internal1"): Same.
6612 * config/rs6000/rs6000.c (altivec_register_operand): New.
6614 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6615 altivec_register_operand.
6617 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
6619 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6622 2002-02-13 Stan Shebs <shebs@apple.com>
6624 * c-typeck.c (digest_init): Handle vectors.
6625 (really_start_incremental_init): Same.
6626 (pop_init_level): Same.
6627 (process_init_element): Same.
6629 * varasm.c (output_constant): Same.
6631 * expr.c (clear_storage): Same.
6632 (store_constructor): Same.
6634 2002-02-12 Eric Christopher <echristo@redhat.com>
6636 * explow.c (hard_function_value): Add comment explaining
6637 signed/unsigned comparison.
6639 2002-02-12 Jakub Jelinek <jakub@redhat.com>
6641 * jump.c (never_reached_warning): Add finish argument.
6642 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6643 real insn after end.
6644 * rtl.h (never_reached_warning): Adjust prototype.
6645 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6646 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6647 never_reached_warning.
6649 2002-02-12 Graham Stott <grahams@redhat.com>
6651 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6653 2002-02-12 Kazu Hirata <kazu@hxi.com>
6655 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6656 logical shifts on H8/300.
6657 (shift_alg_si): Improve several shifts on H8/300.
6658 (get_shift_alg): Likewise.
6660 2002-02-12 Graham Stott <grahams@redhat.com>
6662 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6664 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6666 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6667 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6669 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
6671 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6672 non-CONST_INT through default_assemble_integer.
6673 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6674 <case 8>: Abort for CONST_DOUBLE.
6676 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6678 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6680 * config/pa/pa-linux.h (LIB_SPEC): Delete.
6681 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6683 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
6685 * config/stormy16/stormy16.md (zero_extendqihi2): New.
6687 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
6689 * regrename.c (regrename_optimize): Don't accept a
6690 part-clobbered register if the replaced register is not part
6693 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6694 take padding into account when computing the argument value.
6696 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6698 * combine.c (try_combine): Apply substitutions in
6699 CALL_INSN_FUNCTION_USAGE too.
6701 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
6703 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6704 __builtin_altivec_abs*.
6707 * config/rs6000/rs6000.h (rs6000_builtins): Add
6708 ALTIVEC_BUILTIN_ABS*.
6710 * config/rs6000/altivec.h: Use const char for builtins expecting
6712 (vec_abs): New versions for C and C++.
6715 2002-02-10 Kazu Hirata <kazu@hxi.com>
6717 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6720 2002-02-10 Kazu Hirata <kazu@hxi.com>
6722 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6723 constant definition from h8300.md.
6724 (FRAME_POINTER_REGNUM): Likewise.
6725 * config/h8300/h8300.md (define_constants): Add FP_REG.
6727 2002-02-10 Kazu Hirata <kazu@hxi.com>
6729 * config/h8300/h8300.c (print_operand): Remove redundant code.
6731 2002-02-10 Kazu Hirata <kazu@hxi.com>
6733 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6734 * config/h8300/h8300.c (byte_reg): Make it static.
6736 2002-02-10 Richard Henderson <rth@redhat.com>
6739 * c-typeck.c (incomplete_type_error): Handle flexible array members.
6741 2002-02-10 Richard Henderson <rth@redhat.com>
6744 * tree.c (append_random_chars): Don't abort if main_input_filename
6747 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
6749 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6751 2002-02-10 Kazu Hirata <kazu@hxi.com>
6753 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6754 (pushhi1): Likewise.
6756 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
6758 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6759 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6761 2002-02-09 David O'Brien <obrien@FreeBSD.org>
6763 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6765 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
6767 2002-02-09 Kazu Hirata <kazu@hxi.com>
6769 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6770 a half of an SImode register on H8/300.
6772 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
6774 * i386.md (movdi_2): Add missing '!'.
6776 2002-02-09 Kazu Hirata <kazu@hxi.com>
6778 * config/h8300/h8300.h: Fix formatting. Remove commented-out
6781 2002-02-09 Kazu Hirata <kazu@hxi.com>
6783 * config/h8300/h8300.md (length): Correct the distance valid
6784 for the short branch.
6786 2002-02-09 Kazu Hirata <kazu@hxi.com>
6788 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6790 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
6792 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6793 registers in SImode.
6794 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6797 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6800 Contribute sh64-elf.
6801 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
6802 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6803 (sh_cannot_modify_jumps_p): New function.
6804 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
6805 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6806 (sh_ms_bitfield_layout_p): New function.
6807 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
6808 Zack Weinberg <zack@codesourcery.com>
6809 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6810 expand_simple_binop instead of expand_binop.
6811 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
6812 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6813 use of .quad and .uaquad.
6814 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6815 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6816 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6817 * config/sh/sh.md (movdi_const, movdi_const_32bit,
6818 movdi_const_16bit): Make sure all CONSTs have modes.
6819 (sym2PIC): Ditto, but by adjusting all callers.
6820 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6821 if the prologue calls the SHmedia argument decoder or register
6823 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6824 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6825 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6826 (sh_expand_epilogue): Don't emit USE of return target register.
6827 (prepare_move_operands): Legitimize DImode PIC addresses.
6828 (sh_media_register_for_return): Skip tr0, used to initialize the
6830 (sh_expand_prologue): Remove explicit USE of return register.
6831 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
6832 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
6833 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6834 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6835 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6837 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6838 (MOVI_SHORI_BASE_OPERAND_P): New.
6839 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6840 (EXTRA_CONSTRAINT_T): Define in terms of them.
6841 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6842 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6843 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6844 alternatives supporting TARGET_REGS.
6845 (UNSPEC_GOTPLT): New constant.
6846 (movdi split): Move incrementing of LABEL_NUSES...
6847 (movdi_const, movdi_const_32bit): Here. Use
6848 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6849 (movdi_const_16bit): New.
6850 (call, call_value) [flag_pic]: Use GOTPLT.
6851 (call_pop, call_value_pop): New expands.
6852 (call_pop_compact, call_pop_rettramp): New insns.
6853 (call_value_pop_compact, call_value_pop_rettramp): New insns.
6854 (sibcall) [flag_pic]: Use GOT.
6855 (builtint_setjmp_receiver): Remove bogus, unused expand.
6856 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6857 (*pt, *ptb, ptrel): New insns.
6858 (sym2GOT): Handle DImode GOT.
6859 (sym2GOTPLT, symGOTPLT2reg): New expands.
6860 (sym2PIC): New expand.
6861 (shcompact_return_tramp): Use GOTPLT to return trampoline.
6862 (shcompact_return_tramp_i): Use return register explicitly.
6863 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6864 disable flag_reorder_blocks.
6865 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
6866 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6867 clobbers, for clarity.
6868 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6869 restoring of r0 in macl as MAYBE_DEAD.
6870 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
6871 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6872 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6873 alter_subreg all over.
6874 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6875 reload, instead of emitting instructions that would require
6877 (casesi_load_media): Add missing modes.
6878 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
6879 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6880 as used if the argument decoder is called.
6881 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
6882 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6883 Pmode, then extend it to DImode if necessary.
6884 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
6885 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6886 constants in FPU-enabled SHmedia, let them be loaded from memory.
6887 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
6888 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6889 Adjust whitespace in assembly output templates.
6890 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
6891 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6892 mode of if_then_else.
6893 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
6894 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6896 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
6897 Joern Rennecke <amylaar@redhat.com>
6898 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6899 (SUBTARGET_CPP_PTR_SPEC): New.
6900 (SUBTARGET_CPP_SPEC): Remove.
6901 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
6902 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6903 Fix typo in previous checkin.
6904 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
6905 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6906 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
6907 Alexandre Oliva <aoliva@redhat.com>
6908 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6909 what single FP register can hold for SHmedia target.
6910 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
6911 Alexandre Oliva <aoliva@redhat.com>
6912 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6913 Do not split into SUBREG.
6914 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
6915 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6916 and added new functions as specified in SH5 ABI r9.
6917 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
6918 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6920 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
6921 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6922 gen_consttable_4 and gen_consttable_8. Emit multiple labels
6923 and consttable_window_ends.
6924 2001-06-03 Graham Stott <grahams@redhat,com>
6925 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6926 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
6927 * config/sh/sh.c (print_operand): Handle floating-point pair,
6928 vector and matrix registers.
6929 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6930 vector modes into account.
6931 * config/sh/sh.md (movv2sf): Split move between registers into
6933 (movv4sf, movv16sf): Introduce insns that get split only after
6935 * config/sh/shmedia.h: Fix Copyright dates.
6936 * config/sh/ushmedia.h: Likewise. Move loop counter
6937 declarations into conditionals that uses them.
6938 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6940 * config/sh/sshmedia.h: Fix Copyright dates.
6941 (sh_media_PUTCFG): Fix constraints.
6942 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
6943 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6944 ptrmemfunc_vbit_in_delta for SH5.
6945 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
6946 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6947 * invoke.texi: Likewise.
6948 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
6949 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6950 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6951 GCC_pop_shmedia_regs_nofpu): New global symbols.
6952 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6953 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6954 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6955 compact function with nonlocal labels.
6956 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6957 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6958 (initial_elimination_offset): Account for their stack space.
6959 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6960 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6961 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6962 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6963 least one of the operands to be a register.
6964 (movv2sf): Likewise. Renamed to movv2sf_i.
6965 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6966 prepare_move_operands() before emitting SHmedia insns.
6967 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
6968 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6969 Don't save nor initialize r12. Don't mis-align the stack.
6970 Pad the code with a nop.
6971 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
6973 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
6974 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6975 [__SHMEDIA__]: Implement.
6976 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
6977 * config/sh/sh.md: Set latency of `pt' closer to reality.
6978 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6979 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6980 Set move, load and store type attributes.
6981 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6982 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6984 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6985 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6986 * config/sh/sh.c (sh_media_register_for_return): New function.
6987 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6988 branch-target register.
6989 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6990 * config/sh/sh.md (return_media_i): Use any call-clobbered
6991 branch-target register.
6992 (return_media): If r18 wasn't copied in the prologue, copy it
6994 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6995 Clear class FP0_REGS.
6996 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6998 2001-03-08 DJ Delorie <dj@redhat.com>
6999 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
7000 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
7001 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
7002 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
7003 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
7004 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
7005 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
7006 return value correctly for call_cookie.
7007 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
7008 * config/sh/crt1.asm (start): Modified so as to call
7009 ___setup_argv_and_call_main.
7010 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
7011 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
7013 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
7014 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
7015 (STRIP_NAME_ENCODING): Use it.
7016 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
7017 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
7018 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
7019 prepare_scc_operands().
7020 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
7021 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
7022 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
7023 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
7024 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
7025 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
7026 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
7027 used in shcompact_incoming_args.
7028 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
7030 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
7032 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
7034 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
7035 Simplify. Adjust. Add sanity check.
7036 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
7038 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
7040 (udivsi3, divsi3): Use them.
7041 (force_mode_for_call): New insn.
7042 (call, call_value, sibcall_value): Emit it before SHcompact
7044 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
7045 * config/sh/sh.md (call, call_value, sibcall): Make sure the
7046 call cookie is non-NULL before taking its value.
7047 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
7048 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
7049 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
7050 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
7052 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
7053 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
7054 temporary for stack adjusts. Use MACL and MACH to pass
7055 arguments to shcompact_incoming_args.
7056 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
7058 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
7059 (nested_trampoline): Load static chain address into r1.
7060 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
7061 2001-01-07 Alexandre Oliva <aoliva@redhat.com
7062 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
7063 fp_arith_reg_operand().
7064 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
7065 * config/sh/sh.md (casesi): Sign-extend the first two operands,
7066 and use signed compares for them.
7067 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
7068 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
7069 ones properly aligned.
7070 (find_barrier): Account for extra alignment needed for 8-byte wide
7072 (machine_dependent_reorg): Require a label for the second 4-byte
7073 constant after an 8-byte one.
7074 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
7076 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
7077 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
7078 last_float when switching float modes.
7079 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
7080 auto-increment for general-purpose registers.
7081 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
7083 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
7085 * config/sh/sh.c (sh_builtin_saveregs): Support using all
7086 registers for varargs.
7087 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
7088 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
7089 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
7090 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
7091 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
7092 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
7093 call_cookie accordingly.
7094 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
7095 (SHCOMPACT_BYREF): Likewise.
7096 (SHCOMPACT_FORCE_ON_STACK): New macro.
7097 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
7098 (sh_builtin_saveregs): Likewise.
7099 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7100 shcompact_incoming_args): Use new shift values. Support
7101 sequences of consecutive and non-consecutive pushes/pops.
7102 * config/sh/sh.md (return): Don't explicitly use PR_REG.
7103 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
7104 * config/sh/sh.h (TEXT_SECTION): Define.
7105 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
7106 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
7107 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
7108 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
7109 return values on FPU-enabled SHmedia.
7110 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
7111 FPU-enabled SHmedia.
7112 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
7113 value is returned in a non-FP reg and is not returned by
7115 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
7117 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
7118 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
7119 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
7120 quad-aligned to be passed by callee-copy reference.
7121 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
7122 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
7123 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
7124 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
7125 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
7126 copying low-numbered FP regs to r7 and r8.
7127 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
7128 FP regs to general-purpose regs only if the copy was passed on the
7130 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
7131 copying FP reg to r9.
7132 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
7133 copy FP regs to general-purpose regs only in outgoing calls.
7134 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
7135 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
7137 * config/sh/sh.h (struct sh_args): Document all fields.
7138 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
7139 passed partially on the stack should not consider making
7141 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
7142 stack_regs only for incoming calls. When passing FP args,
7143 make sure there are FP regs available before modifying
7145 (SHCOMPACT_BYREF): Pass double args in general-purpose
7146 registers by reference.
7147 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
7148 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
7149 attempt to generate sibcalls if the caller got any arguments
7151 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
7152 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
7153 to 8-byte boundaries.
7154 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
7155 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
7156 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
7157 stored in the stack.
7158 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
7159 for the offsets to have the ISA bit set.
7160 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
7161 invocation. Use beq instead of bgt to mark end of sequence of
7163 (shcompact_incoming_args): Fix store of r2. Use beq instead of
7164 bgt to mark end of sequence of stores.
7165 * config/sh/sh.c (arith_operand): Don't check whether
7166 CONST_OK_FOR_J for now.
7167 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
7168 instead of long for conversion.
7169 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
7170 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
7171 before passing it to fprintf.
7172 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
7173 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
7174 Call set_fpscr before reading/writing SR.
7175 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
7177 * config/sh/lib1funcs.asm: Add `.align 2' directives before
7179 (FMOVD_WORKS): Define on SH5 with FPU.
7180 (set_fpscr): Define on SH5. Remove separate _fpscr_values
7182 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
7184 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
7185 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
7187 (ia_main_table): Ditto.
7188 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
7189 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7190 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
7191 the definitions from sh.h.
7192 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
7194 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
7195 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
7196 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7197 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
7198 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
7199 Increment LABEL_NUSES.
7201 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
7203 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
7205 * config/sh/elf.h (SIZE_TYPE): Likewise.
7206 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7207 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7208 shcompact_incoming_args): Load switch table addresses using
7210 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7211 (NO_BUILTIN_SIZE_TYPE): Define.
7212 (SIZE_TYPE): Don't define.
7213 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7214 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
7215 definition of __SH5__=32 for -m5-compact-nofpu.
7216 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
7218 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
7219 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
7220 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
7221 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
7222 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
7223 (INSN_LENGTH_ALIGNMENT): Likewise.
7224 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7225 * config/sh/sh.md (call, call_value, sibcall): Simplify
7226 copying of non-branch-target register.
7227 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7228 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
7229 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
7230 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7231 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
7232 floating-point values as structs.
7233 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
7234 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
7235 general-purpose register.
7236 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
7237 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
7238 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
7239 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
7240 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
7241 (ENCODE_SECTION_INFO): Enclose variables and constants in
7243 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
7244 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
7245 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
7246 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
7247 only for LABEL_REFs. For SYMBOL_REFs, prepend
7248 SH_DATALABEL_ENCODING to the symbol name.
7249 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
7251 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
7252 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
7254 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
7255 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
7256 (DATALABEL_REF_P): Don't require CONST.
7257 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
7259 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
7260 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
7262 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
7263 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
7264 Use shallow_copy_rtx and PUT_MODE to change the mode of
7265 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
7266 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
7267 on SHmedia using GENERAL_REGs.
7268 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7269 bltu_media_i): Fix reversion of conditions.
7270 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
7271 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
7272 * config/sh/sh.c (output_far_jump): Save r13 in macl.
7273 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
7274 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
7275 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
7276 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
7277 (GCC_nested_trampoline): Likewise.
7278 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
7279 * config/sh/sh.c (gen_datalabel_ref): Define.
7280 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
7281 (INITIALIZE_TRAMPOLINE): Likewise.
7282 (TRAMPOLINE_ADJUST_ADDRESS): Define.
7283 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
7284 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
7285 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
7286 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
7287 (ic_invalidate): Adjust for SH5.
7288 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
7289 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
7291 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
7292 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
7293 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
7294 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
7295 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
7296 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
7297 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
7298 * config/sh/sh.c (target_reg_operand): Match only target-branch
7299 registers and pseudos that aren't virtual registers.
7300 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7301 Copy operands that don't match target_reg_operand to pseudos.
7302 (call_media, call_value_media, sibcall_media): Use
7303 target_reg_operand instead of target_operand.
7304 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
7305 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
7306 * config/sh/sh.c (target_reg_operand): Match hardware registers
7307 other than branch-target registers.
7308 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
7309 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
7310 (fpscr_values) [SH5 == 32]: Define.
7311 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
7312 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7313 Handle function addresses coming in SUBREGs.
7314 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
7315 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7316 shcompact_return_trampoline): Use datalabel where appropriate.
7317 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
7318 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
7319 general-purpose register to copy one branch-target register to
7321 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
7322 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
7323 SYMBOL_REFs with VOIDmode.
7324 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7325 bltu_media_i): New insns.
7326 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
7327 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
7328 (INIT_CUMULATIVE_ARGS): Likewise.
7329 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
7330 * machmode.def (V16SFmode): New mode.
7331 * c-common.c (type_for_mode): Support V2SF and V16SF.
7332 * tree.c (build_common_tree_nodes_2): Likewise.
7333 * tree.h (tree_index): Likewise.
7334 * calls.c (emit_call_1): Take args_so_far. Adjust all
7335 callers. Introduce CALL_POPS_ARGS.
7336 * tm.texi (CALL_POPS_ARGS): Document.
7337 * config/sh/crt1.asm: Implement in SHmedia mode.
7338 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
7339 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
7340 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
7341 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
7342 Implement divsi and udivsi in SHmedia mode. Introduce
7343 SHcompact trampolines.
7344 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
7346 (regno_reg_class): Rewrite.
7347 (fp_reg_names): Remove.
7348 (sh_register_names, sh_additional_register_names): New.
7349 (print_operand): Added `u'. Support SUBREGs in addresses.
7350 Add parentheses around shifted CONSTs.
7351 (output_file_start): Output .mode and .abi directives.
7352 (shiftcosts, addsubcosts, multcosts): Adjust.
7353 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
7354 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
7355 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
7356 bytes, not registers. Take into account the need for the
7357 SHcompact incoming args trampoline. Adjust all callers.
7358 (sh_expand_prologue): Take stack_regs into account. Call
7359 incoming args trampoline. Keep stack aligned as per SH5 ABI.
7360 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
7361 stack aligned as per SH5 ABI.
7362 (sh_builtin_saveregs): Support SH5 ABI.
7363 (sh_build_va_list, sh_va_start): Likewise.
7364 (initial_elimination_offset): Take alignment into account.
7365 Compute location of PR according to the SH5 stack frame.
7366 (arith_reg_operand): Reject branch-target registers.
7367 (shmedia_6bit_operand): New.
7368 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
7369 (target_reg_operand): Match DImode only. Accept SUBREGs.
7370 (target_operand): New.
7371 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
7372 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
7373 SIBCALL_REGS for SHmedia.
7374 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
7375 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
7376 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
7377 (TARGET_SWITCHES): New SH5 flags.
7378 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
7379 VALID_REGISTER_P to disable unsupported registers.
7380 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
7381 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
7382 (FUNCTION_ARG_PADDING): Define.
7383 (FASTEST_ALIGNMENT): Adjust.
7384 (SH_REGISTER_NAMES_INITIALIZER): New.
7385 (sh_register_names): Declare.
7386 (DEBUG_REGISTER_NAMES): Define.
7387 (REGISTER_NAMES): Define based on sh_register_names.
7388 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
7389 (sh_additional_register_names): Declare.
7390 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
7391 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
7392 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
7393 (REGISTER_NATURAL_MODE): Define.
7394 (FIRST_PSEUDO_REGISTER): Adjust.
7395 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
7396 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
7397 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
7398 (VECTOR_MODE_SUPPORTED_P): Define.
7399 (REG_CLASS_CONTENTS): Adjust.
7400 (SMALL_REGISTER_CLASSES): Adjust.
7401 (REG_ALLOC_ORDER): Adjust.
7402 (INDEX_REG_CLASS): Adjust.
7403 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
7404 (CONST_OK_FOR_LETTER_P): Adjust.
7405 (PREFERRED_RELOAD_CLASS): Adjust.
7406 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7407 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7408 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7409 (FIRST_FP_PARM_REG): Adjust.
7410 (CALL_POPS_ARGS): Define.
7411 (FUNCTION_ARG_REGNO_P): Adjust.
7412 (struct sh_args): New fields.
7413 (GET_SH_ARG_CLASS): Adjust.
7414 (INIT_CUMULATIVE_ARGS): Adjust.
7415 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7416 (FUNCTION_ARG_ADVANCE): Adjust.
7417 (FUNCTION_ARG): Adjust.
7418 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7419 (FUNCTION_ARG_CALLEE_COPIES): Define.
7420 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7421 (STRICT_ARGUMENT_NAMING): Define.
7422 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7423 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7424 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7425 (SETUP_INCOMING_VARARGS): Adjust.
7426 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7427 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7428 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7429 (SUBREG_OK_FOR_INDEX_P): Adjust.
7430 (EXTRA_CONSTRAINT_S): Update.
7431 (EXTRA_CONSTRAINT_T): New.
7432 (EXTRA_CONSTRAINT): Adjust.
7433 (GO_IF_LEGITIMATE_INDEX): Adjust.
7434 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7435 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7437 (MAX_MOVE_MAX): Define.
7439 (CONST_COSTS): Adjust.
7440 (REGISTER_MOVE_COST): Adjust.
7441 (BRANCH_COST): Adjust.
7442 (TEXT_SECTION_ASM_OP): Adjust.
7443 (DBX_REGISTER_NUMBER): Adjust.
7444 (ASM_OUTPUT_DOUBLE_INT): New.
7445 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7446 (PREDICATE_CODES): Adjust.
7447 (PROMOTE_MODE): Adjust.
7448 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7449 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7450 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7451 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7452 (DR0_REG, DR2_REG, DR4_REG): Renumber.
7453 (TR0_REG, TR1_REG, TR2_REG): New.
7454 (XD0_REG): Renumber.
7455 (UNSPEC_COMPACT_ARGS): New.
7456 (type): Added pt and ptabs.
7457 (length): Default to 4 on SHmedia. Default pt length to 12
7458 and 20 on SHmedia32 and SHmedia64, respectively.
7459 (pt): New function unit.
7460 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
7461 Add whitespace between operands of SHmedia instructions.
7463 (adddi3_media, addsi3_media): Adjust constraints.
7464 (subsi3) [SHmedia]: Force operand 1 into a register.
7465 (udivsi3_i1_media, udivsi3_i4_media): New.
7466 (udivsi3): Support SHmedia.
7467 (divsi3_i1_media, divsi3_i4_media): New.
7468 (divsi3): Support SHmedia.
7469 (anddi3, iordi3, xordi3): Adjust constraints.
7470 (zero_extendhidi2, zero_extendqidi2): New.
7471 (extendsidi2, extendhidi2, extendqidi2): New.
7472 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7473 (pop_e, pop_fpul, pop_4): Likewise.
7474 (movsi_media): Support FP and BT registers.
7475 (movsi_media_nofpu): New. Adjust splits to DImode.
7476 (lduw, ldub): Renamed to zero_extend* above.
7477 (movqi_media): Fix typo.
7478 (movdi_media): Support FP and BT registers.
7479 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
7480 (movdi_const_32bit): New.
7481 (shori_media): Require immediate operand. Use `u' for output.
7482 (movdf_media, movsf_media): Simplified.
7483 (movdf_media_nofpu, movsf_media_nofpu): New.
7484 (movdf, movsf): Adjust
7485 (movv2sf, movv2sf, movv16sf): New.
7486 (beq_media, beq_media_i): Adjust constraints. Don't use
7487 scratch BT register.
7488 (bne_media, bne_media_i): Likewise.
7489 (bgt_media, bgt_media_i): Likewise.
7490 (bge_media, bge_media_i): Likewise.
7491 (bgtu_media, bgtu_media_i): Likewise.
7492 (bgeu_media, bgeu_media_i): Likewise.
7493 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7494 bunordered): Emit jump insn. Force operands to registers when
7496 (jump_media, jump): Simplify.
7497 (call_compact, call_compact_rettramp): New.
7498 (call_value_compact, call_value_compact_rettramp): New.
7499 (call_media, call_value_media): Simplify.
7500 (sibcall_compact, sibcall_media): New.
7501 (call, call_value): Adjust for SHmedia and SHcompact.
7502 (sibcall, sibcall_value, untyped_call): Likewise.
7503 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7504 (indirect_jump): Adjust for SHmedia.
7505 (casesi_jump_media): New.
7506 (nop): Re-enable for SHmedia.
7507 (call_site): Restrict to SH1.
7508 (casesi): Adjust for SHmedia.
7509 (casesi_shift_media, casesi_load_media): New.
7510 (return): Explicitly use PR register. Call return trampoline
7512 (return_i): Explicitly use PR register.
7513 (shcompact_return_tramp, shcompact_return_tramp_i): New.
7514 (return_media): Adjust.
7515 (shcompact_incoming_args): New.
7517 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7518 (movstrsi): Disable on SH5.
7519 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7520 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7521 (subsf3, subsf3_media): Likewise.
7522 (mulsf3, mulsf3_media, mac_media): Likewise.
7523 (divsf3, divsf3_media): Likewise.
7524 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
7525 (floatsisf2, fux_truncsfsi2): Likewise.
7526 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
7528 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7529 (cmpunsf_media, cmpsf): Likewise.
7530 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7531 (abssf2, abssf2_media): Likewise.
7532 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7533 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7534 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
7535 (floatsidf2, fix_truncdfsi2): Likewise.
7536 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
7538 (cmpeqdf_media, cmpgtdf_media): Likewise.
7539 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7540 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7541 (absdf2, absdf2_media): Likewise.
7542 (extendsfdf2, extendsfdf2_media): Likewise.
7543 (truncsfdf2, truncsfdf2_media): Likewise.
7544 * config/sh/sh64.h: New file.
7545 * config/sh/t-sh64: New file.
7546 * config/sh/shmedia.h: New file.
7547 * config/sh/ushmedia.h: New file.
7548 * config/sh/sshmedia.h: New file.
7549 * configure.in: Added sh64-*-elf.
7550 * configure: Rebuilt.
7551 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
7552 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7553 (reg_class_from_letter): Use `b' for TARGET_REGS.
7554 (print_operand): Support `%M', `%m', `AND' and
7555 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
7556 (andcosts): Adjust for SHmedia.
7557 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7559 (target_reg_operand): New function.
7560 * config/sh/sh-protos.h (target_reg_operand): Declare.
7561 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7562 FP registers on SH5.
7563 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7565 (TARGET_REGISTER_P): New macro.
7566 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7567 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7568 (EXTRA_CONSTRAINT_S): New macro.
7569 (EXTRA_CONSTRAINT): Adjust.
7570 (FLOAT_TYPE_SIZE): Define to 32.
7571 (Pmode): DImode on SHmedia.
7572 (CONST_COSTS): Adjust for SHmedia literals.
7573 (PREDICATE_CODES): Added target_reg_operand.
7574 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7575 * config/sh/sh.md: Remove all attrs from SHmedia insns.
7576 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7577 (cmpdi): Accept SHmedia.
7578 (movdicc_false, movdicc_true): New insns.
7579 (movdicc): New expand.
7580 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7582 (addsi3_media): Match `S' constraint.
7583 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7584 (negdi2): Expand for SHmedia.
7585 (one_cmpldi2): New expand.
7586 (zero_extendsidi2): Change from expand to insn.
7587 (extendsidi2): Add constraints.
7588 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
7589 LD/ST address. Fix SI immediate loading split.
7590 (movhi_media, movqi_media, lduw, ldub): New insns.
7591 (movhi, movqi): Accept SHmedia.
7592 (shori_media, movdi_media): Relax input constraints. Split
7594 (movdf_media, movsf_media): New insn. New split to movdi.
7595 (movdf, movsf): Match on SHmedia.
7596 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7597 bgeu_media): New insns and splits. New insns with `_i' suffix.
7598 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7599 (bunordered): New expand.
7600 (jump_compact): Renamed from `jump'.
7601 (jump_media): New insn.
7603 (call_media, call_value_media): New insns.
7604 (call, call_value): Adjust.
7605 (indirect_jump_compact): Renamed from `indirect_jump'.
7606 (indirect_jump_media): New insn.
7607 (indirect_jump): New expand.
7608 (untyped_call, return): Accept SHmedia.
7609 (return_media): New insn.
7610 (prologue, epilogue, blockage): Accept SHmedia.
7611 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7612 (sunordered): New expand.
7613 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7614 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7615 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7616 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7617 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7618 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7619 abssf2_media): New insns.
7620 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7621 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7622 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7623 floatdidf2, floatsidf2_media, fix_truncdfdi2,
7624 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7625 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7626 absdf2_media): New insns.
7627 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7628 (extendsfdf2_media, truncdfsf2_media): New insns.
7629 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
7630 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7631 * config/sh/sh.h (CONST_OK_FOR_J): Document.
7632 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7633 * config/sh/sh.md (adddi3): New expand.
7634 (adddi3_media, adddi3z_media): New insns.
7635 (adddi3_compact): Renamed from adddi3.
7636 (addsi3_media): Use add.l r63 to add constant zero.
7637 (subdi3): New expand.
7638 (subdi3_media): New insn.
7639 (subdi3_compact): Renamed from subdi3.
7640 (mulsidi3): New expand.
7641 (mulsidi3_media): New insn.
7642 (mulsidi3_compact): Renamed from mulsidi3.
7643 (umulsidi3): New expand.
7644 (umulsidi3_media): New insn.
7645 (umulsidi3_compact): Renamed from umulsidi3.
7646 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7647 (ashlsi3, ashrsi3, lshrsi3): Use them.
7648 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7649 (ashldi3, ashrdi3, lshrdi3): Use them.
7650 (zero_extendsidi2): New expand.
7651 (extendsidi2): New insn.
7652 (movsi_media): New insn. Split to movdi to load constants.
7653 (movsi): Enable for shmedia.
7654 (movdi_media): New insn. Use shori_media to load wide constants.
7655 (short_media): New insn.
7656 (movdi): Enable for shmedia.
7657 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
7658 * config/sh/sh.h (CPP_SPEC): Added `m5'.
7659 (SUBTARGET_CPP_SPEC): Added `!m5'.
7660 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7661 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
7662 to all other SH variants.
7663 (TARGET_DEFAULT): Set to SH1_BIT.
7664 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7665 (BITS_PER_WORD): Raise to 64 on shmedia.
7666 (MAX_BITS_PER_WORD): Change to 64.
7667 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7668 (INT_TYPE_SIZE): Keep as 32.
7669 (UNITS_PER_WORD): Raise to 8 on shmedia.
7670 (MIN_UNITS_PER_WORD): Keep as 4.
7671 (POINTER_SIZE): Raise to 64 on shmedia.
7672 (CONST_OK_FOR_J): New macro.
7673 (CONST_OK_FOR_LETTER_P): Use it.
7674 (processor_type): Add PROCESSOR_SH5.
7675 * config/sh/sh.md: Conditionalize all expands, insns and
7676 splits to TARGET_SH1.
7678 (addsi3_compact): Renamed from...
7679 (addsi3): Now an expand.
7680 (addsi3_media, subsi3_media): New insns.
7681 (subsi3): Don't negate constants with SHmedia.
7683 * hooks.c: New file.
7684 * hooks.h: New file.
7685 * Makefile.in (HOOKS_H): New.
7686 (TARGET_DEF_H): Added $(HOOKS_H).
7687 (OBJS): Added hooks.o.
7688 (cfgcleanup.o, bb-reorder.o): Added target.h.
7689 (hooks.o): Added dependencies.
7690 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7691 (TARGET_INITIALIZER): this.
7692 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7693 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7694 * bb-reorder.c: Include target.h.
7695 (reorder_basic_blocks): Skip if cannot modify jumps.
7696 * cfgcleanup.c: Include target.h.
7697 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7699 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7701 * config/mips/mips.md (casesi_internal, casesi_internal_di):
7702 Protect jump delay slot instructions with .set noreorder and
7705 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7707 * config/mips/mips.md (casesi_internal_di): Calculate
7708 the index into the target offset table correctly.
7710 2002-02-08 Richard Henderson <rth@redhat.com>
7712 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7713 * final.c (output_addr_const): Accept and discard SUBREG.
7714 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7715 mark them unknown instead.
7716 (simplify_subtraction): Handle RTX_UNKNOWN.
7717 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7719 2002-02-08 David Edelsohn <edelsohn@gnu.org>
7721 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7723 2002-02-08 Richard Henderson <rth@redhat.com>
7725 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7727 2002-02-08 Andreas Jaeger <aj@suse.de>
7729 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7730 * config/i386/t-linux64: New file.
7732 2002-02-08 Jakub Jelinek <jakub@redhat.com>
7734 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7735 * c-parse.in (compstmt): Clear last_expr_type.
7737 2002-02-07 Richard Henderson <rth@redhat.com>
7739 * loop.c (strength_reduce): Sink final_value when not
7742 2002-02-07 David O'Brien <obrien@FreeBSD.org>
7744 * config/sparc/freebsd.h: Fix mismatched spec {.
7746 2002-02-07 Richard Henderson <rth@redhat.com>
7748 * cfgrtl.c: Include recog.h and insn-config.h.
7749 (keep_with_call_p): Fix general_operand invocation.
7750 * Makefile.in (cfgrtl.o): Update dependencies.
7752 2002-02-07 Kazu Hirata <kazu@hxi.com>
7754 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7755 comment. Accept HImode only if TARGET_H8300.
7757 2002-02-07 Eric Christopher <echristo@redhat.com>
7759 * config/mips/crtn.asm: Cleanup #ifdefs.
7761 2002-02-07 Eric Christopher <echristo@redhat.com>
7763 * config/mips/crti.asm: Add changes for mips16. mips16 uses
7764 register 7 as RA instead of $31.
7765 * config/mips/crtn.asm: Ditto.
7766 * config/mips/mips.c (mips_move_2words): Add case for
7767 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7768 (compute_frame_size): Fix typo.
7769 (save_restore_insns): Ditto. Make documentation about using
7770 register $7 as return register more precise.
7771 (mips_expand_epilogue): Fix comment. Add code to work around not
7772 being able to add to the stack pointer directly.
7773 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7774 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7777 2002-02-07 Tom Rix <trix@redhat.com>
7779 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7780 immediates in ldu and stdu DS opcode field.
7781 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7782 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7783 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7785 2002-02-07 Jeff Sturm <jsturm@one-point.com>
7787 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7788 offset for stack bias.
7790 2002-02-07 H.J. Lu <hjl@gnu.org>
7792 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7794 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
7796 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7798 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
7800 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7801 * i386.c (x86_order_regs_for_local_alloc): New global function.
7802 * i386.h (REG_ALLOC_ORDER): CLeanup.
7803 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7805 2002-02-07 Richard Henderson <rth@redhat.com>
7807 PR optimization/2463
7808 * alias.c (find_base_value): Recall base values for fixed hard regs.
7809 * loop.c (loop_regs_update): Don't use single_set on non-insns.
7811 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
7813 * config/mips/mips.md (define_delay) [mips16]: Adjust required
7816 2002-02-06 Richard Henderson <rth@redhat.com>
7819 * stmt.c (resolve_operand_name_1): Take more care with mixed
7820 named and unnamed operands.
7822 2002-02-06 Janis Johnson <janis187@us.ibm.com>
7823 Jan Hubicka <jh@suse.cz>
7825 * loop.c (remove_constant_addition): Avoid clobbering a shared
7828 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
7830 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7831 * config/s390/t-linux64: New file.
7832 * config/s390/libgcc-glibc.ver: New file.
7834 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
7836 * config/s390/linux64.h: Delete file.
7837 * config/s390/s390x.h: New file.
7838 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7839 as target header file.
7840 * config/s390/linux.h (TARGET_VERSION): Define depending on
7841 DEFAULT_TARGET_64BIT.
7842 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7843 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7844 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7845 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7846 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7847 (EXTRA_SPEC): New define.
7848 * config/s390/s390.h (TARGET_VERSION): Define depending on
7849 DEFAULT_TARGET_64BIT.
7850 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7852 2002-02-06 Jason Merrill <jason@redhat.com>
7854 * c-decl.c (finish_function): Warn about a non-void function with
7855 no return statement and no abnormal exit.
7856 (current_function_returns_abnormally): New variable.
7857 (start_function): Clear it.
7858 (struct c_language_function): Add returns_abnormally.
7859 (push_c_function_context): Save it.
7860 (pop_c_function_context): Restore it.
7861 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7862 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7863 an explicit return type.
7864 * c-tree.h: Declare current_function_returns_abnormally.
7865 (C_FUNCTION_IMPLICIT_INT): New macro.
7866 * c-typeck.c (build_function_call): Set it.
7867 (c_expand_return): Set current_function_returns_value even if the
7870 2002-02-06 Jakub Jelinek <jakub@redhat.com>
7873 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7874 unsafe for reevaluation.
7876 2002-02-06 Jakub Jelinek <jakub@redhat.com>
7879 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7880 EXPR_STMT, but COMPOUND_STMT, recurse into it.
7882 2002-02-06 Richard Henderson <rth@redhat.com>
7884 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7885 be a general_operand. Dest for function value must be a pseudo.
7887 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
7889 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7890 as SYMBOL_REFs from the constant pool.
7892 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
7894 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7895 passed by invisible reference.
7897 2002-02-05 Richard Henderson <rth@redhat.com>
7899 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7901 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
7903 Implement using "base addresses" in insn operands as default.
7904 * config/mmix/mmix.c (mmix_conditional_register_usage): if
7905 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7906 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7907 used to read the rtx value.
7908 (mmix_target_asm_function_epilogue): Fix spacing.
7909 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7910 (mmix_legitimate_address): Ditto.
7911 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7912 should be loaded with a GETA insn. Don't allocate needless extra
7913 char for nul termination and fix misleading comment.
7914 (mmix_print_operand_address): Handle constants if
7915 TARGET_BASE_ADDRESSES.
7916 (mmix_output_register_setting): Use base addressing if
7917 TARGET_BASE_ADDRESSES and the number of insns is 3.
7918 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7919 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7920 to use R as constraint, add LDA to match s.
7921 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7922 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7923 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7924 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7925 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7926 order with other fixed registers.
7927 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7928 other parameter/call-clobbered registers.
7929 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7930 -mbase-addresses, -mno-base-addresses.
7931 (MMIX Options): Ditto.
7933 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
7935 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7937 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
7939 * config/rs6000/altivec.h: Change elem to _S_elem.
7941 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
7943 * config/netbsd.h (WCHAR_TYPE): Define.
7944 (WCHAR_TYPE_SIZE): Ditto.
7946 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7947 (WCHAR_UNSIGNED): Ditto.
7948 (WCHAR_TYPE_SIZE): Ditto.
7950 * config/arm/netbsd.h: Likewise.
7951 * config/i386/netbsd-elf.h: Likewise.
7952 * config/i386/netbsd.h: Likewise.
7953 * config/m68k/netbsd-elf.h: Likewise.
7954 * config/m68k/netbsd.h: Likewise.
7955 * config/ns32k/netbsd.h: Likewise.
7956 * config/sparc/netbsd.h: Likewise.
7957 * config/vax/netbsd.: Likewise.
7959 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
7961 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7962 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
7963 (TARGET_INITIALIZER): this.
7964 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7965 (BITFIELD_NBYTES_LIMITED): Markup fix.
7966 * tree.h (default_ms_bitfield_layout_p): Declare.
7967 (record_layout_info): Added prev_field.
7968 * tree.c (default_ms_bitfield_layout_p): New fn.
7969 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7970 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7971 * stor-layout.c: Include target.h.
7972 (start_record_layout): Initialize prev_field.
7973 (place_field): Handle MS bit-field layout, and disregard
7974 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7975 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
7976 * Makefile.in (stor-layout.o): Adjust dependencies.
7978 2002-02-05 Jason Merrill <jason@redhat.com>
7980 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7982 2002-02-05 Andreas Jaeger <aj@suse.de>
7984 * crtstuff.c: Fix comments.
7986 2002-02-05 Richard Henderson <rth@redhat.com>
7989 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7990 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7993 * config/mips/mips.c (function_arg): Handle TImode.
7994 (function_arg_advance): Likewise.
7996 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
7998 * config/rs6000/altivec.h (vec_step_help): Rename to
8001 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8003 * config/rs6000/altivec.h: Fix typos.
8005 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
8007 * config/arm/netbsd.h: Correct a comment.
8009 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8011 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
8012 building void typed builtins.
8014 * config/rs6000/altivec.h (vec_ld*): Fix typos.
8015 (vec_step): Implement for C++.
8017 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8019 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
8021 2002-02-04 Richard Henderson <rth@redhat.com>
8023 * combine.c (nonzero_bits): Re-introduce special case for
8024 sp/fp/ap wrt REGNO_POINTER_ALIGN.
8026 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8028 * doc/extend.texi: Warn about unsupported usage of altivec
8031 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
8032 (altivec_predicate_*): New.
8034 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
8035 Add C++ version of vec_*() functions.
8037 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
8038 (bdesc_2arg): Remove altivec predicates.
8039 (altivec_expand_builtin): Handle predicates.
8040 (altivec_init_builtins): Handle predicates.
8041 (altivec_expand_predicate_builtin): New.
8043 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8045 * pa.c (DO_FRAME_NOTES): Move forward.
8046 (store_reg): Revise handling of frame notes.
8047 (load_reg): Likewise.
8048 (set_reg_plus_d): Likewise.
8049 (hppa_expand_prologue): Likewise.
8050 (hppa_expand_epilogue): Likewise.
8052 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8054 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
8056 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8058 PR c/4475, c++/3780:
8059 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
8060 * c-common.h (SWITCH_TYPE): Define.
8061 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
8062 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
8063 Rename spareness variable to sparseness.
8064 (expand_end_case_type): Renamed from expand_end_case, use orig_type
8065 if non-NULL instead of TREE_TYPE (orig_index).
8066 * tree.h (expand_end_case_type): Renamed from expand_end_case.
8067 (expand_end_case): Define using expand_end_case_type.
8068 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
8069 to expand_end_case_type.
8070 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
8072 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8074 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
8075 (BIGGEST_ALIGNMENT): Change to 128.
8077 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8079 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
8081 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8083 * pa.md (call_internal_reg_64bit): Remove unused variable.
8085 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
8087 * config/arm/arm.h (machine_function): Add uses_anonymous_args
8089 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
8090 * config/arm/arm.c (current_function_anonymous_args): Delete,
8091 replace uses with cfun->machine->uses_anonymous_args.
8092 (arm_reorg): Do not reset uses_anonymous_args.
8094 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
8095 any geenral register.
8097 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
8099 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
8102 2002-02-04 Richard Henderson <rth@redhat.com>
8104 * combine.c (force_to_mode): Remove STACK_BIAS code.
8105 (nonzero_bits): Likewise. Replace sp/fp special case with
8106 REGNO_POINTER_ALIGN.
8108 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
8109 (HARD_FRAME_POINTER_REGNUM): New.
8110 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
8111 (FIXED_REGS, CALL_USED_REGS): Update.
8112 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
8113 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
8114 (HARD_REGNO_NREGS): Update for SFP.
8115 (STACK_POINTER_OFFSET): Include bias here ...
8116 (FIRST_PARM_OFFSET): ... not here.
8117 (STACK_BIAS): Remove.
8118 (INIT_EXPANDERS): New.
8119 (STARTING_FRAME_OFFSET): Do not include bias.
8120 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
8121 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
8122 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
8123 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
8124 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
8125 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
8126 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
8127 (MUST_SAVE_REGISTER): Likewise.
8128 (sparc_flat_function_prologue): Likewise.
8129 (sparc_flat_function_epilogue): Likewise.
8130 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
8131 (sparc_init_modes): SFP is GENERAL_REGS.
8132 (sparc_builtin_saveregs): SFP does not have bias applied.
8134 2002-02-04 Richard Henderson <rth@redhat.com>
8136 * config/alpha/alpha.c (current_function_is_thunk): Don't check
8137 current_function_is_thunk.
8138 (alpha_sa_mask): Distinguish between current_function_is_thunk
8139 called from ASM_OUTPUT_MI_THUNK and not.
8140 (alpha_does_function_need_gp): Thunks always need gp.
8141 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8142 (alpha_output_mi_thunk_osf): New.
8143 * config/alpha/alpha-protos.h: Update.
8144 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
8146 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
8148 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
8149 function types, not when they're taken away.
8151 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
8153 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
8154 CODE_LABEL and jump table when replacing a table jump with a
8157 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8159 * config/s390/s390-protos.h (legitimize_la_operand,
8160 s390_secondary_input_reload_class, s390_plus_operand,
8161 s390_expand_plus_operand): Add prototypes.
8163 config/s390/s390.c (s390_secondary_input_reload_class,
8164 s390_plus_operand, s390_expand_plus_operand): New functions.
8166 (struct s390_address): New member 'pointer'.
8167 (s390_decompose_address): Compute it.
8168 (legitimate_la_operand_p): Use it.
8169 (legitimize_la_operand): New function.
8170 (movti, movdi, movdf splitters): Call it.
8172 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
8173 (PREDICATE_CODES): Add s390_plus_operand.
8175 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
8176 (la_ccclobber): Allow GENERAL_REGS as output operand.
8178 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
8179 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
8180 (*la_64, *la_31, reload_indi, reload_insi): ... these.
8182 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8184 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
8185 register names for regular asm () construct.
8187 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8189 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
8192 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8194 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
8197 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
8199 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
8200 constant pool to be identical by string address and index.
8202 2002-02-04 Anthony Green <green@redhat.com>
8204 * output.h (SECTION_OVERRIDE): Define.
8205 * varasm.c (named_section): Obey SECTION_OVERRIDE.
8207 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
8209 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
8210 by existing arm*-*-netbsd* (a.out) target.
8211 (ns32k-*-netbsdelf*): Likewise.
8212 (sparc-*-netbsdelf*): Likewise.
8213 (vax-*-netbsdelf*): Likewise.
8215 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
8217 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
8218 headers and libobjc headers.
8220 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
8222 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
8223 (_mingw.h): Remove duplicate include.
8225 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
8227 * config.gcc: Set cpu_type to m68k for 68010, as well.
8228 (m68010-*-netbsdelf*): New...
8229 (m68k*-*-netbsdelf*): ...targets.
8230 * config/m68k/netbsd-elf.h: New file.
8232 2002-02-02 Kazu Hirata <kazu@hxi.com>
8234 * config/h8300/h8300.c (hand_list): Move inside function_arg.
8236 2002-02-02 Kazu Hirata <kazu@hxi.com>
8238 * config/h8300/h8300.c (h8_push_ops): Move inside
8240 (h8_pop_ops): Likewise.
8241 (h8_move_ops): Likewise.
8243 2002-02-02 Kazu Hirata <kazu@hxi.com>
8245 * config/h8300/h8300.c (os_task): Make it static.
8246 (monitor): Likewise.
8247 (pragma_saveall): Likewise.
8249 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
8251 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
8252 constant is a valid sign-extension for Pmode.
8254 2002-02-02 Kazu Hirata <kazu@hxi.com>
8256 * config/h8300/h8300.c: Fix formatting.
8258 2002-02-02 Kazu Hirata <kazu@hxi.com>
8260 * config/h8300/h8300.md: Fix formatting.
8262 2002-02-02 Kazu Hirata <kazu@hxi.com>
8264 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
8265 predicates of operands[1]. Split the patterns for each
8268 2002-02-02 Kazu Hirata <kazu@hxi.com>
8270 * config/h8300/h8300.md (xor patterns): Tighten the predicates
8271 of operands[1] to register_operand.
8273 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
8275 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
8276 * cpphash.c (_cpp_init_hashtable): Similarly.
8277 * cppinit.c (cpp_create_reader): Default the signed_char flag.
8278 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
8279 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
8280 (cpp_handle_option): Handle the new options.
8281 * cpplex.c (cpp_interpret_charconst): Use new flag.
8282 * cpplib.h (struct cpp_options): New member signed_char.
8283 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
8284 (cpp_options): Handle -fsigned-char and -funsigned-char.
8285 (static_specs): Remove signed_char_spec.
8286 (do_spec1): Don't handle %c.
8287 * system.h: Poison SIGNED_CHAR_SPEC.
8288 * tradcif.y (yylex): Use flag_signed_char.
8289 * tradcpp.h (flag_signed_char): New.
8290 * tradcpp.c (flag_signed_char): New.
8291 (main): Handle new command-line options.
8292 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
8294 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
8295 * avr/avr.h: Remove old comments.
8296 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
8297 (CC1_SPEC): Pass -fsigned-char if -mic*.
8298 (SIGNED_CHAR_SPEC): Remove.
8300 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
8302 2002-02-01 Eric Christopher <echristo@redhat.com>
8304 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
8305 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
8306 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
8307 (ASM_OUTPUT_REG_POP): Ditto.
8309 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
8311 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
8314 2002-02-02 Jakub Jelinek <jakub@redhat.com>
8316 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
8318 2002-02-02 Jakub Jelinek <jakub@redhat.com>
8321 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
8324 2002-02-01 Janis Johnson <janis187@us.ibm.com>
8326 * cfganal.c: Include tm_p.h.
8327 (keep_with_call_p): Fix the test that determines if a register holds
8328 the return value of a call.
8330 2002-02-01 DJ Delorie <dj@redhat.com>
8332 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
8333 we are given conflicting registers, switch to the other one we
8334 had allocated for us.
8335 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
8336 as TImode so we know when the "other" register is available.
8338 2002-02-01 David O'Brien <obrien@FreeBSD.org>
8340 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
8343 2002-02-01 Janis Johnson <janis187@us.ibm.com>
8345 * cfganal.c (keep_with_call_p): New function.
8346 (flow_call_edges_add): Prevent splitting a block between a call and
8347 a single-set instruction that should be kept in the same block.
8349 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
8351 * doc/install.texi (avr): Update outdated URL.
8353 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
8355 * config/stormy16/stormy16.md (pushqi): New.
8359 (movhi): Remove stack operands.
8361 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
8362 nonimmediate_nonstack_operand.
8363 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
8365 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
8368 2002-01-31 Jason Merrill <jason@redhat.com>
8370 * Makefile.in (c-parse.c): Handle .output file.
8371 * objc/Make-lang.in (objc-parse.c): Likewise.
8373 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
8375 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
8376 the -me[lb] option is given. Don't output the default flag
8379 2002-01-31 Zack Weinberg <zack@codesourcery.com>
8381 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
8382 the primary source file; this has not been done yet.
8383 * c-decl.c (c_expand_body): Reset input_filename from
8384 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
8386 2002-01-31 Kazu Hirata <kazu@hxi.com>
8388 * rtlanal.c (subreg_regno_offset): Do not use
8389 SUBREG_REGNO_OFFSET.
8390 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
8391 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
8393 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
8395 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
8396 version rather than GNATS version in --version output.
8398 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
8400 * ifcvt.c (noce_process_if_block): Make a copy of the destination
8401 when copying back from a temporary.
8403 2002-01-30 Richard Henderson <rth@redhat.com>
8405 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8406 and new_dest are the same.
8408 2002-01-30 Richard Henderson <rth@redhat.com>
8411 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8412 * rtl.c (note_insn_name): Update.
8413 * emit-rtl.c (remove_unnecessary_notes): Kill it.
8414 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
8415 to perform loop rotation.
8416 (expand_exit_loop_top_cond): New.
8417 * tree.h (expand_exit_loop_top_cond): Declare it.
8418 * c-semantics.c (genrtl_while_stmt): Use it.
8419 (genrtl_for_stmt): Likewise.
8421 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
8423 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8424 arguments to 64-bit boundaries on 64-bit ABIs.
8426 2002-01-30 Steve Ellcey <sje@cup.hp.com>
8428 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8430 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
8432 * c-decl.c (grokdeclarator): Handle type being a typedef for an
8435 2002-01-30 David O'Brien <obrien@FreeBSD.org>
8437 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8438 * config/sparc/sparc_bi.h: Remove file.
8439 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8441 2002-01-30 Richard Henderson <rth@redhat.com>
8443 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8445 2002-01-30 Zack Weinberg <zack@codesourcery.com>
8447 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8449 2002-01-30 Jason Merrill <jason@redhat.com>
8451 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8452 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8453 (reg_save): Use DW_CFA_offset_extended_sf instead.
8455 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8457 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8459 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8462 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
8464 * rs6000.md ("*call_value_local32"): Remove constraints.
8465 ("*call_value_local64"): Same.
8466 ("*call_value_indirect_nonlocal_aix32"): Same.
8467 ("*call_value_nonlocal_aix32"): Same.
8468 ("*call_value_indirect_nonlocal_aix64"): Same.
8469 ("*call_value_nonlocal_aix64"): Same.
8470 ("*call_value_nonlocal_sysv"): Same.
8472 2002-01-29 Richard Henderson <rth@redhat.com>
8474 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8476 2002-01-29 Richard Henderson <rth@redhat.com>
8478 * expr.c (force_operand): Ignore flag_pic for detecting pic
8480 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8481 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8482 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8483 instead of open-coded loop.
8484 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8485 be fixed when in use.
8487 2002-01-29 Richard Henderson <rth@redhat.com>
8489 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8490 * sched-rgn.c (propagate_deps): Update them.
8491 * sched-deps.c (sched_analyze_insn): Update them. Flush the
8492 clobbers list when either gets too long.
8494 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8496 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8497 and INDEX_REGS the same as GENERAL_REGS.
8498 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8500 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
8502 * tree.c (build_nonstandard_integer_type): Correct prototype.
8504 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
8506 * config/s390/s390.md (movstrsico, movstrdix_64,
8507 movstrsix_31): Remove, replace by ...
8508 (movstrdi_short, movstrsi_short, movstrdi_long,
8509 movstrsi_long): ... these. New.
8510 (movstrdi, movstrsi): Adapt.
8512 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8513 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8514 Remove unnecessary CC clobber.
8515 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8516 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8518 (divmoddi4): Don't partially initialize TImode register.
8520 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
8522 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8524 2002-01-29 Richard Henderson <rth@redhat.com>
8526 * flow.c (print_rtl_and_abort): Remove.
8527 (print_rtl_and_abort_fcn): Remove.
8528 (verify_local_live_at_start): Use dump_bb instead.
8529 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8530 (verify_wide_reg_1): Return 2 on mode test failure.
8532 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
8534 PR c/3325, c/3326, c/2511, c/3347
8535 * c-decl.c (enum_decl_context): Remove BITFIELD.
8536 (grokdeclarator): Take bitfield width as an input.
8537 Ensure bitfields are given the correct type. Perform
8538 bitfield width validation with build_bitfield_integer_type
8539 rather than waiting for finish_struct.
8540 (grok_typename, grok_typename_in_parm_context, start_decl,
8541 push_parmdecl, grokfield, start_function): Update calls to
8543 (build_bitfield_integer_type): New function.
8544 (finish_struct): Move bitfield validation to grokdeclarator
8545 and build_bitfield_integer_type.
8546 * tree.c (build_nonstandard_integer_type): New function.
8547 * tree.h (build_nonstandard_integer_type): New prototype.
8549 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8551 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8554 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8555 don't ignore unrecognized -W* options.
8556 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8557 * cpplib.h (cpp_handle_option): Adjust prototype.
8558 * c-decl.c (c_decode_options): Pass 0 as last argument to
8562 * gcc.c (cpp_unique_options): Split from cpp_options.
8563 (cpp_options): Source cpp_unique_options.
8564 (default_compilers): Use cpp_unique_options instead of cpp_options
8565 when used together with cc1_options.
8566 (static_specs): Add cpp_unique_options.
8567 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8568 when used together with cc1_options.
8570 2002-01-29 Kazu Hirata <kazu@hxi.com>
8572 * config/h8300/h8300-protos.h: Update the prototype of
8574 * config/h8300/h8300.c (output_a_shift): Remove an unused
8575 argument 'insn'. Remove redundant code.
8576 * config/h8300/h8300.md: Adust to the new prototype of
8579 2002-01-29 Kazu Hirata <kazu@hxi.com>
8581 * config/h8300/h8300-protos.h: Update the prototypes of
8582 emit_a_rotate and expand_a_rotate.
8583 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8584 first argument to 'enum rtx_code'.
8585 (expand_a_rotate): Likewise.
8587 2002-01-28 Kazu Hirata <kazu@hxi.com>
8589 * config/h8300/h8300-protos.h: Update the prototype of
8591 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8593 * config/h8300/h8300.md: Adjust to the new prototype.
8595 2002-01-28 Kazu Hirata <kazu@hxi.com>
8597 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8600 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
8602 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8603 is a fixed register before returning pic_offset_table_rtx.
8604 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8605 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8607 2002-01-28 Jason Merrill <jason@redhat.com>
8609 * dwarf2.h: Sync with src version.
8611 2002-01-28 Paul Koning <pkoning@equallogic.com>
8613 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8615 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8616 * doc/extend.texi (__builtin_prefetch): Update documentation:
8617 first argument is now const void ptr.
8619 2002-01-28 Kazu Hirata <kazu@hxi.com>
8621 * config/h8300/h8300-protos.h: Remove an unused prototype.
8623 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
8625 * toplev.c (lang_independent_init): Round up identifier size.
8627 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
8629 * config.gcc: Revert previous change.
8631 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
8633 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8635 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
8637 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8638 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
8639 other non-elf netbsd config frags.
8640 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8641 collect2 will does that.
8642 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8643 shared-lib frobbing will work.
8645 2002-01-28 Kazu Hirata <kazu@hxi.com>
8647 * config/h8300/h8300.h: Fix formatting.
8648 * config/h8300/h8300.md: Likewise.
8650 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
8652 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8653 the old, removed AAA_standards fix.
8654 * fixinc/fixincl.x: Rebuilt.
8656 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
8658 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8659 atexit call in crtbegin, hooked in after call to frame_dummy;
8660 register EH before registering __fini__start.
8662 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
8664 * config/rs6000/altivec.h: Remove spurious semicolons.
8666 2002-01-27 Kazu Hirata <kazu@hxi.com>
8668 * config/h8300/h8300.md: Replace dead bit extraction patterns
8669 with ones that work.
8671 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8673 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8674 if not STRICT_ALIGNMENT.
8675 * rtl.h (MEM_ALIGN): Likewise.
8677 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
8679 * doc/invoke.texi (-fdump-translation-unit): Revert this
8680 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
8682 2002-01-27 Kazu Hirata <kazu@hxi.com>
8684 * config/h8300/h8300.md (define_constants): New.
8685 (anonymous patterns) Use defined constants appropriately.
8687 2002-01-27 Kazu Hirata <kazu@hxi.com>
8689 * config/h8300/h8300.c (function_arg): Remove redundant code.
8691 2002-01-26 Richard Henderson <rth@redhat.com>
8693 * sched-deps.c (reg_pending_uses_head): New.
8694 (reg_pending_barrier): Rename from reg_pending_sets_all.
8695 (find_insn_list): Don't mark inline.
8696 (find_insn_mem_list): Remove.
8697 (add_dependence_list, add_dependence_list_and_free): New.
8698 (flush_pending_lists): Replace only_write param with separate
8699 for_read and for_write parameters. Update all callers. Use
8700 add_dependence_list_and_free.
8701 (sched_analyze_1): Do not add reg dependencies here; just set
8702 the pending bits. Use add_dependence_list.
8703 (sched_analyze_2): Likewise.
8704 (sched_analyze_insn): Replace schedule_barrier_found with
8705 reg_pending_barrier. Add all dependencies for pending reg
8706 uses, sets, and clobbers.
8707 (sched_analyze): Don't add reg dependencies for calls, just
8708 set pending bits. Use regs_invalidated_by_call. Treat
8709 sched_before_next_call as a normal list, not a fake insn.
8710 (init_deps): No funny init for sched_before_next_call.
8711 (free_deps): Free pending mems lists. Don't zero reg_last.
8712 (init_deps_global): Init reg_pending_uses.
8713 (finish_deps_global): Free it.
8714 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
8715 (find_insn_mem_list): Remove.
8716 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8717 (propagate_deps): Use them. Zero temp mem lists.
8719 2002-01-26 Richard Henderson <rth@redhat.com>
8721 * Makefile.in (CRTSTUFF_CFLAGS): New.
8722 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8723 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8724 crtstuff.c instead of alpha assembly version.
8725 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8726 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
8727 not FORCE_{INIT,FINI}_SECTION_ALIGN.
8728 (__do_global_dtors_aux): Mark used.
8729 (frame_dummy, __do_global_ctors_aux): Mark used.
8730 (fini_dummy, init_dummy): Remove.
8732 * config/alpha/crtbegin.asm: Remove file.
8733 * config/alpha/crtend.asm: Remove file.
8734 * config/alpha/t-crtbe: Remove file.
8735 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8736 (LINK_EH_SPEC): New.
8738 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8739 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
8740 calling constructors.
8741 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8743 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8744 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8745 CRT_END_INIT_DUMMY hack.
8746 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8747 FORCE_{INIT,FINI}_SECTION_ALIGN.
8749 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8750 FORCE_{INIT,FINI}_SECTION_ALIGN.
8752 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8753 invocation sequence.
8754 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8756 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8757 (FORCE_CODE_SECTION_ALIGN): New.
8759 2002-01-26 Richard Henderson <rth@redhat.com>
8761 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8763 2002-01-26 Richard Henderson <rth@redhat.com>
8765 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8766 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8768 2002-01-26 Kazu Hirata <kazu@hxi.com>
8770 * config/h8300/h8300.md: Remove bit extraction patterns that
8771 cannot be triggered.
8772 Restrict each bit extraction pattern to a variant on which the
8775 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
8777 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8779 2002-01-26 Kazu Hirata <kazu@hxi.com>
8781 * config/h8300/h8300.md: Remove bit test patterns that cannot
8783 Restrict each bit test pattern to a variant on which the
8786 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8788 * builtins.c (expand_builtin_strncat): Remove redundant check for
8791 2002-01-25 David O'Brien <obrien@FreeBSD.org>
8793 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8795 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8798 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
8800 * dbxout.c (dbxout_init): Use assemble_name rather than just
8801 stripping off the first character.
8802 (dbxout_source_file): Likewise.
8804 2002-01-25 DJ Delorie <dj@redhat.com>
8806 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8807 using rtx_equal_p, not by comparing pointers.
8809 2002-01-25 Steve Ellcey <sje@cup.hp.com>
8811 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8812 for PIC_OFFSET_TABLE_REGNUM.
8813 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8815 2002-01-25 David O'Brien <obrien@FreeBSD.org>
8817 * config.gcc (x86_64-*-freebsd*): New target.
8818 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8820 (i[34567]86-*-freebsd*): Don't include svr4.h.
8821 * config/i386/freebsd64.h: New file.
8823 2002-01-25 Douglas B Rupp <rupp@gnat.com>
8825 * config/alpha/x-vms (version): Make static.
8827 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8828 in previous checkin.
8830 * Makefile.in (install-headers-cp): New target.
8831 * config.gcc (alpha-dec-*vms*): Install headers with
8834 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
8836 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8839 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8841 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8842 of compare_tree_int.
8843 (expand_builtin_strncat): Likewise.
8844 * c-decl.c (finish_struct): Use tree_low_cst.
8845 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8846 * tree.c (compare_tree_int): Likewise.
8848 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
8850 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8851 adjustments even if they are implemented by more than two insns.
8853 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
8855 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8856 * df.h (struct ref): Kill B.
8857 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8859 * basic-block.h (PROP_EQUAL_NOTES): New flag.
8860 * flow.c (propagate_one_insn): Use it.
8861 (mark_used_regs): Handle NIL.
8863 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
8865 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8868 2002-01-25 David Edelsohn <edelsohn@gnu.org>
8870 * rs6000.md (prefetch): Make address V4SI mode so that the address
8871 is restricted to legitimate form for instruction.
8873 2002-01-25 Bob Wilson <bob.wilson@acm.org>
8875 * doc/install.texi (xtensa-*-elf): New target.
8876 (xtensa-*-linux*): New target.
8877 * doc/contrib.texi: Add myself.
8879 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
8881 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8882 purpose register to hold an SImode (or smaller) value.
8884 2002-01-25 Jakub Jelinek <jakub@redhat.com>
8886 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8888 * crtstuff.c: Likewise.
8890 2002-01-25 Kazu Hirata <kazu@hxi.com>
8892 * config/h8300/h8300.md (negation patterns): Tighten
8893 predicates to register_operand.
8895 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
8897 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8900 * builtins.c (expand_builtin_prefetch): Same.
8902 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8904 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8907 2002-01-24 Kazu Hirata <kazu@hxi.com>
8909 * config/h8300/h8300.c (print_operand): Remove support for
8910 operand character 'A'.
8911 * config/h8300/h8300.md (three anonymous patterns): Replace
8912 operand character 'A' with either 'T' or 'S'.
8914 2002-01-24 Kazu Hirata <kazu@hxi.com>
8916 * config/h8300/h8300.c (print_operand): Remove support for
8917 operand character 'U'.
8919 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
8921 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8923 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
8925 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8926 values to be assigned to the stack pointer.
8928 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
8930 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8931 to const_double needs to be done right for big-endian systems.
8933 2002-01-24 Jason Merrill <jason@redhat.com>
8936 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8937 to can_throw_internal.
8939 2002-01-23 Richard Henderson <rth@redhat.com>
8941 * fold-const.c (fold): Change UINT_MAX test to check vs precision
8942 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
8944 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8946 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8947 (symGOT2reg): Use them, then set as GOT value as unchanging.
8948 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
8949 as a temporary, if possible.
8950 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
8951 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8953 2002-01-23 Kazu Hirata <kazu@hxi.com>
8955 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8956 accept to accept 0x80 as operands[2].
8958 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8960 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8962 2002-01-23 Richard Henderson <rth@redhat.com>
8964 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8966 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
8968 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8969 (parmlist_or_identifiers_1): Verify that only a parmlist follows
8972 2002-01-23 Richard Henderson <rth@redhat.com>
8974 * expr.c (move_by_pieces_1): Extend size before negation.
8976 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8977 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8978 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8979 * config/m68k/t-m68kelf: Likewise.
8981 2002-01-23 Bob Wilson <bob.wilson@acm.org>
8983 * config/xtensa/elf.h: New file.
8984 * config/xtensa/lib1funcs.asm: New file.
8985 * config/xtensa/lib2funcs.S: New file.
8986 * config/xtensa/linux.h: New file.
8987 * config/xtensa/t-xtensa: New file.
8988 * config/xtensa/xtensa-config.h: New file.
8989 * config/xtensa/xtensa-protos.h: New file.
8990 * config/xtensa/xtensa.c: New file.
8991 * config/xtensa/xtensa.h: New file.
8992 * config/xtensa/xtensa.md: New file.
8993 * config.gcc (xtensa-*-elf*): New target.
8994 (xtensa-*-linux*): New target.
8995 * cse.c (canon_hash): Compare rtx pointers instead of register
8996 numbers. This is required for the Xtensa port.
8997 * integrate.c (copy_insn_list): Handle case where the static
8998 chain is in memory and the memory address has to be copied to
9000 * doc/invoke.texi (Option Summary): Add Xtensa options.
9001 (Xtensa Options): New node.
9002 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
9004 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9006 * diagnostic.c (internal_error): Do ICE suppression only
9007 when ENABLE_CHECKING is not defined.
9009 * c-typeck.c (require_complete_type): Return error_mark_node
9010 if type is error_mark_node.
9012 2002-01-23 Janis Johnson <janis187@us.ibm.com>
9014 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
9015 -Os and issue a warning.
9017 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9019 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
9020 current (lack of) need for host configuration by hand.
9022 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
9023 references. Documentation of some target macros moved from
9024 hostconfig.texi to tm.texi.
9026 2002-01-23 Will Cohen <wcohen@redhat.com>
9028 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
9031 2002-01-23 Kazu Hirata <kazu@hxi.com>
9033 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
9036 2002-01-23 Jason Merrill <jason@redhat.com>
9038 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
9040 * function.c (assign_parms): Don't put args of inline functions
9041 into registers when not optimizing.
9043 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
9045 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
9046 (prologue_use): New pattern.
9047 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
9048 preference to gen_rtx_USE.
9049 (thumb_expand_prologue): Use gen_prologue_use in preference to
9051 (thumb_expand_epilogue): Use gen_prologue_use in preference to
9054 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
9056 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
9058 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
9061 * doc/extend.texi: Correct documentation of __alignof__.
9063 2002-01-22 Zack Weinberg <zack@codesourcery.com>
9065 * params.h: Rename arguments of DEFPARAM so that it will be
9066 recognized as a translation keyword.
9068 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9070 * extend.texi: Document altivec functions.
9071 Fix N-bit adjectives in X86 builtin documentation.
9073 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
9075 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
9076 auto_inc_dec values.
9078 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
9080 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
9082 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
9084 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
9086 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
9088 2002-01-22 Richard Henderson <rth@redhat.com>
9090 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
9091 copy_insn not copy_rtx.
9093 2002-01-23 Alan Modra <amodra@bigpond.net.au>
9095 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
9096 "nonzero" as that might add "1" bits. Ensure "constop" is
9097 properly sign extened.
9098 (force_to_mode): Tweak for sign extended constop.
9100 2002-01-22 Richard Henderson <rth@redhat.com>
9102 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
9103 for_each_rtx instead of assuming we're already looking at the MEM.
9104 (split_small_symbolic_mem_operand): Likewise.
9105 * config/alpha/alpha.h (PREDICATE_CODES): Update.
9106 * config/alpha/alpha.md (small symbolic memory splitters): Update.
9108 2002-01-22 Richard Henderson <rth@redhat.com>
9110 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
9111 sequence number for the literal.
9112 (divmoddi_internal_er): Likewise.
9114 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
9117 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
9118 in LIBICONV variable.
9119 * configure: Regenerated.
9121 2002-01-22 Krister Walfridsson <cato@df.lth.se>
9123 * dependence.c (build_def_use): Remove array_idx.
9125 * dwarfout.c (last_filename): Remove.
9126 (output_compile_unit_die): Remove last_filename.
9128 2002-01-22 Roger Sayle <roger@eyesopen.com>
9129 Richard Henderson <rth@redhat.com>
9132 * fold-const.c (fold): Optimize unsigned comparisons against
9133 UINT_MAX (and similar unsigned constants).
9135 2002-01-22 Janis Johnson <janis187@us.ibm.com>
9137 * Makefile.in (loop.o): Depend on OPTABS_H.
9138 * loop.c (emit_prefetch_instructions): Check the prefetch operand
9139 against the predicate.
9142 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
9143 for the address operand.
9145 2002-01-22 Richard Henderson <rth@redhat.com>
9147 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
9149 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
9152 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
9155 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
9157 * config.gcc (x86_64-*-netbsd*): New target.
9158 * config/i386/netbsd64.h: New file.
9160 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9162 * regrename.c (kill_value): Fix typo.
9164 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9166 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
9168 * config/rs6000/rs6000.h: Same.
9170 * function.c (instantiate_virtual_regs): Remove
9171 STARTING_FRAME_PHASE.
9172 (assign_stack_local_1): Same.
9173 Calculate frame phase.
9175 2002-01-22 Nick Clifton <nickc@redhat.com>
9177 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
9178 variable declaration to outer scope in order to simplify
9180 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
9181 arm_hard_regno_mode_ok.
9182 * config/arm/arm-protos.h: Add a prototype for
9183 arm_hard_regno_mode_ok.
9184 * config/arm/arm.c (soft_df_operand): Remove now redundant
9185 check for DImode values using IP_REGNUM.
9186 (nonimmediate_soft_df_operand): Remove now redundant check for
9187 DImode values using IP_REGNUM.
9188 (arm_hard_regno_mode_ok): New function. New check: make sure
9189 that DImode values are not stored in IP_REGNUM.
9191 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
9193 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
9195 2002-01-22 Jason Merrill <jason@redhat.com>
9197 * c-semantics.c (genrtl_compound_stmt): Only check nesting
9198 consistency if this COMPOUND_STMT is scoped.
9200 2002-01-22 Kazu Hirata <kazu@hxi.com>
9202 * predict.c: Fix formatting.
9203 * print-tree.c: Likewise.
9204 * protoize.c: Likewise.
9207 * sbitmap.h: Likewise.
9209 * sched-deps.c: Likewise.
9210 * sched-vis.c: Likewise.
9211 * sdbout.c: Likewise.
9212 * sibcall.c: Likewise.
9214 * ssa-ccp.c: Likewise.
9215 * ssa-dce.c: Likewise.
9217 * stor-layout.c: Likewise.
9218 * system.h: Likewise.
9220 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9222 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
9223 if fits in bounds of base type.
9225 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
9226 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
9227 (add_bound_info, default): If can't find a context, make a
9229 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
9231 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
9233 * c-typeck.c (parser_build_binary_op): If result from
9234 build_binary_op is ERROR_MARK just return error_mark_node without
9237 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
9239 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
9240 Split a.out-specific bits into...
9241 * config/netbsd-aout.h: ...this.
9242 * config/netbsd-elf.h: New file.
9243 * config/alpha/netbsd-elf.h: Remove.
9244 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
9245 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
9246 (STARTFILE_SPEC): Remove redundant definition.
9247 (ENDFILE_SPEC): Likewise.
9248 (LINK_SPEC): Likewise.
9249 (CPP_SPEC): Likewise.
9250 (ASM_SPEC): Likewise.
9251 (LIB_SPEC): Likewise.
9252 (SWITCH_TAKES_ARG): Likewise.
9253 (TARGET_MEM_FUNCTIONS): Likewise.
9254 (CPP_PREDEFINES): Redefine.
9255 (ASM_FINAL_SPEC): Remove redefinition.
9256 (ASM_COMMENT_START): Redefine.
9257 (FUNCTION_PROFILER): Define.
9258 (TARGET_VERSION): Redefine.
9259 Comment and formatting cleanup.
9260 * config/i386/netbsd.h: Include <netbsd-aout.h>.
9261 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
9262 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
9263 big- or little-endian.
9264 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
9265 * config.gcc (*-*-netbsd*): Add definitions common to all
9267 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
9268 gnu_ld definitions. Add netbsd-elf.h to and remove
9269 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
9270 tmake_file, and don't lose previous tmake_file contents.
9271 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
9272 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
9273 gnu_ld definitions. Add netbsd-elf.h to tm_file.
9274 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
9275 (mipsel-*-netbsd*): Rename this to...
9276 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
9277 mips/little.h to tm_file for mips*el-*.
9278 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
9279 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
9280 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
9282 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
9284 * pa-protos.h (reg_before_reload_operand): New function prototype.
9285 * pa.c (reg_before_reload_operand): New function implementation.
9286 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
9289 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9291 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
9293 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
9295 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
9296 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
9297 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
9298 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
9299 (ENDFILE_SPEC): Undefine.
9300 (STARTFILE_SPEC): Redefine for PA.
9302 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9304 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
9306 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
9308 * config.gcc: Add entries to supported PowerPC --with-cpu
9311 2002-01-21 Jakub Jelinek <jakub@redhat.com>
9313 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
9314 true for 64-bit mode only SSE registers in 32-bit mode.
9316 2002-01-21 Kazu Hirata <kazu@hxi.com>
9318 * unwind-dw2.c: Fix formatting.
9319 * unwind-dw2-fde.c: Likewise.
9320 * unwind-dw2-fde.h: Likewise.
9321 * unwind-pe.h: Likewise.
9322 * varasm.c: Likewise.
9323 * varray.h: Likewise.
9325 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
9327 Remove workaround for register stack overwrite bug in mmix.
9328 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
9329 support for TARGET_REG_STACK_FILL_BUG.
9330 * config/mmix/mmix.h: Remove member has_call_without_parameters.
9331 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
9333 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
9334 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
9335 -mno-reg-stack-fill-bug-workaround.
9336 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
9337 machine member has_call_without_parameters.
9338 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
9339 -mreg-stack-fill-bug-workaround and
9340 -mno-reg-stack-fill-bug-workaround.
9341 (MMIX Options): Ditto.
9343 2002-01-21 Kazu Hirata <kazu@hxi.com>
9345 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
9347 Remove redundant code.
9349 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
9351 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
9352 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9353 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9354 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
9355 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
9356 out target macro definitions and non-target-specific comments
9357 mostly taken from old versions of the manual.
9359 2002-01-20 Kazu Hirata <kazu@hxi.com>
9361 * config/h8300/h8300.h: Fix comment formatting.
9362 * config/ia64/aix.h: Likewise.
9363 * config/ia64/ia64-protos.h: Likewise.
9364 * config/ia64/ia64.c: Likewise.
9365 * config/ia64/ia64.h: Likewise.
9366 * config/ia64/ia64intrin.h: Likewise.
9367 * config/ia64/linux.h: Likewise.
9368 * config/ia64/unwind-aix.c: Likewise.
9369 * config/ia64/unwind-ia64.c: Likewise.
9371 2002-01-20 Kazu Hirata <kazu@hxi.com>
9373 * config/h8300/h8300.c: Revise comments about shift code.
9375 2002-01-20 Kazu Hirata <kazu@hxi.com>
9377 * config/h8300/h8300.c (function_arg): Update a comment.
9379 2002-01-20 Kazu Hirata <kazu@hxi.com>
9381 * config/h8300/h8300.md: Update the comments at the beginning
9384 2002-01-20 Kazu Hirata <kazu@hxi.com>
9386 * config/i370/i370.c: Fix comment formatting.
9387 * config/i370/i370.h: Likewise.
9388 * config/i370/i370.md: Likewise.
9389 * config/i370/linux.h: Likewise.
9391 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9393 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
9395 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
9396 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
9399 2002-01-20 Graham Stott <grahams@redhat.com>
9401 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
9403 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
9405 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9407 2002-01-19 Tom Rix <trix@redhat.com>
9409 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9411 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
9413 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9415 * function.c (assign_stack_local_1): Adjust x_frame_offset with
9416 STARTING_FRAME_PHASE.
9417 (STARTING_FRAME_PHASE): New.
9418 (instantiate_virtual_regs): Check saneness of
9419 STARTING_FRAME_PHASE.
9421 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9423 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
9425 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9427 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
9429 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9430 be used for bootstrapping GCC 3.0.
9432 2002-01-18 Kazu Hirata <kazu@hxi.com>
9434 * config/h8300/h8300.md: Fix an insn length.
9436 2002-01-18 Kazu Hirata <kazu@hxi.com>
9438 * bitmap.h: Fix comment formatting.
9439 * combine.c: Likewise.
9440 * cppfiles.c: Likewise.
9441 * c-pragma.h: Likewise.
9442 * c-typeck.c: Likewise.
9444 * dwarf2out.c: Likewise.
9445 * function.c: Likewise.
9447 * genattrtab.c: Likewise.
9448 * gthr-win32.h: Likewise.
9449 * haifa-sched.c: Likewise.
9450 * predict.c: Likewise.
9451 * rtlanal.c: Likewise.
9453 * unwind-dw2-fde.h: Likewise.
9454 * unwind-pe.h: Likewise.
9455 * vmsdbgout.c: Likewise.
9457 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9459 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9460 if type_required and passed decl.
9462 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
9464 * config.gcc (cpu_type): Include altivec.h in powerpc
9468 * config/rs6000/altivec.h: New.
9470 2002-01-17 David Edelsohn <edelsohn@gnu.org>
9472 * doc/install.texi (*-ibm-aix*): Update assembler and exception
9473 handling information.
9474 * doc/trouble.texi (Interoperation): Add libstdc++ information
9476 (Misunderstandings): Add template instantiation and static template
9477 member information for AIX.
9479 2002-01-17 Jason Merrill <jason@redhat.com>
9481 * dbxout.c (dbxout_type): Support const and volatile.
9483 * except.c (add_partial_entry): Remove backwards compatibility code.
9484 (end_protect_partials): Likewise.
9486 2002-01-17 Jakub Jelinek <jakub@redhat.com>
9488 * config/ia64/ia64.md (prologue_use): New.
9489 * config/ia64/ia64.c (ia64_expand_prologue): Use
9490 gen_prologue_use instead of gen_rtx_USE.
9491 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9492 as CODE_FOR_pred_rel_mutex.
9493 (ia64_sched_reorder2): Likewise.
9495 2002-01-16 Eric Christopher <echristo@redhat.com>
9497 * config/mips/r3900.h: Reformat.
9498 (SUBTARGET_CPP_SIZE_SPEC): Remove.
9499 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9500 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9501 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9502 * config/mips/t-elf: Remove mips3 multilib.
9504 2002-01-16 H.J. Lu <hjl@gnu.org>
9506 * config/mips/linux.h: Include "mips/abi64.h".
9508 2002-01-16 H.J. Lu <hjl@gnu.org>
9510 * config/mips/t-linux: New.
9512 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9514 * config/mips/linux.h: Don't include "gofast.h".
9515 (INIT_SUBTARGET_OPTABS): Removed.
9517 2002-01-16 Kazu Hirata <kazu@hxi.com>
9519 * config/h8300/h8300-protos.h: Replace emit_a_shift with
9521 * config/h8300/h8300.c: Likewise.
9522 * config/h8300/h8300.md: Likewise.
9524 2002-01-16 Kazu Hirata <kazu@hxi.com>
9526 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9527 spaces after an opcode name.
9528 (pushqi1_h8300hs): Likewise.
9529 (pushhi1_h8300hs): Likewise.
9531 2002-01-16 Kazu Hirata <kazu@hxi.com>
9533 * doc/extend.texi: Replace "option" with "attribute"
9536 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9538 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9539 (and:DI () (const_int -8)).
9540 (split_small_symbolic_mem_operand): Split
9541 (mem (and:DI () (const_int -8)).
9543 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9546 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9547 same way as TYPE_IMUL.
9548 (ultrasparc_sched_reorder): Likewise.
9549 * config/sparc/sparc.md (type): Add comment to update
9550 ultrasparc_sched_reorder when making changes.
9552 2002-01-16 Kazu Hirata <kazu@hxi.com>
9554 * doc/invoke.texi: Change the dump file name of block
9555 reordering pass from 28.bbro to 29.bbro.
9558 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
9560 * i386.md (minsf splitter): Fix pasto.
9562 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
9564 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9565 to frame pointer initialisation instruction.
9566 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9567 initialisation instruction.
9568 (soft_df_operand): Do not accept the IP register.
9569 (nonimmediate_soft_df_operand): Do not accept the IP register.
9571 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9574 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9575 MASK_V8 being both set.
9577 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
9579 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9580 insn for GOT register; add REG_MAYBE_DEAD notes instead.
9581 config/s390/s390.md (call, call_value): Add GOT register to
9582 CALL_INSN_FUNCTION_USAGE where needed.
9583 (call_exp, call_value_exp): New.
9585 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
9587 * config/arm/arm.c: General formatting tidy up.
9589 2002-01-16 Graham Stott <grahams@redhat.com>
9591 * calls.c (try_to_integrate): Use "(size_t)" intermediate
9592 cast and when casting an integer literal to "rtx" pointer.
9593 (expand_call): Likewise.
9594 * flow.c (try_pre_increment): Likewise.
9595 (find_use_as_address): Likewise.
9596 * integrate.c (expand_iline_function): Likewise.
9597 * regmove.c (try_auto_increment): Likewise.
9599 2002-01-16 Graham Stott <grahams@redhat.com>
9601 * sched-rgn.c (passed): Use sbitmap_free.
9604 (in_queue): Likewise.
9605 (in_stack): Likewise.
9607 2002-01-15 Eric Christopher <echristo@redhat.com>
9609 * flow.c (propagate_one_insn): Change to use fatal_insn.
9611 2002-01-15 Kazu Hirata <kazu@hxi.com>
9613 * expmed.c (extract_fixed_bit_field): Remove unused code.
9614 * system.h: Poison SLOW_ZERO_EXTEND.
9615 * doc/tm.texi: Remove.
9616 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9617 * config/arm/arm.h: Likewise.
9618 * config/avr/avr.h: Likewise.
9619 * config/clipper/clipper.h: Likewise.
9620 * config/convex/convex.h: Likewise.
9621 * config/d30v/d30v.h: Likewise.
9622 * config/dsp16xx/dsp16xx.h: Likewise.
9623 * config/elxsi/elxsi.h: Likewise.
9624 * config/fr30/fr30.h: Likewise.
9625 * config/h8300/h8300.h: Likewise.
9626 * config/i370/i370.h: Likewise.
9627 * config/i386/i386.h: Likewise.
9628 * config/m68k/m68k.h: Likewise.
9629 * config/mips/mips.h: Likewise.
9630 * config/ns32k/ns32k.h: Likewise.
9631 * config/pdp11/pdp11.h: Likewise.
9632 * config/pj/pj.h: Likewise.
9633 * config/s390/s390.h: Likewise.
9634 * config/sh/sh.h: Likewise.
9635 * config/stormy16/stormy16.h: Likewise.
9636 * config/v850/v850.h: Likewise.
9637 * config/vax/vax.h: Likewise.
9638 * config/we32k/we32k.h: Likewise.
9640 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
9642 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9643 (altivec_lvsl): Change constraint to b.
9644 (altivec_lvsr): Same.
9645 (altivec_lvebx): Same.
9646 (altivec_lvehx): Same.
9647 (altivec_lvewx): Same.
9648 (altivec_lvxl): Same.
9649 (altivec_lvx): Same.
9650 (altivec_stvx): Add parallel.
9651 (altivec_stvxl): Same.
9652 (altivec_stvehx): Same.
9653 (altivec_stvebx): Same.
9654 (altivec_stvebx): Same.
9656 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
9658 * config.gcc: Change altivec.h to altivec-defs.h.
9660 * config/rs6000/altivec.h: Delete.
9662 * config/rs6000/altivec-defs.h: Add.
9664 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
9666 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9669 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9670 less than or equal to eight bytes.
9672 * vax.md (andsi3): Remove constraints and change SET destination
9673 operand type to nonimmediate_operand.
9674 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
9675 when it is a CONST_INT.
9677 2002-01-15 Jason Merrill <jason@redhat.com>
9679 * c-common.def (FILE_STMT): New code.
9680 * c-common.c (statement_code_p): It's a statement.
9681 * c-common.h (stmt_tree_s): Add x_last_filename.
9682 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9683 (last_expr_filename): New macro.
9684 * c-semantics.c (begin_stmt_tree): Initialize it.
9685 (add_stmt): If the filename changed, also insert a
9687 (expand_stmt): Handle seeing one.
9689 2002-01-15 Eric Christopher <echristo@redhat.com>
9691 * flow.c (propagate_one_insn): Add error message and print out
9694 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
9696 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9697 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9698 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9699 TRAMPOLINE_ALIGNMENT.
9700 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
9702 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9703 PCC_BITFIELD_TYPE_MATTERS.
9704 * config/interix.h (STDC_VALUE): Remove. Use
9705 STDC_0_IN_SYSTEM_HEADERS.
9706 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9707 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9708 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9710 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
9712 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9713 not work on this platform currently.
9715 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
9717 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9718 readonly_warning in _().
9720 2002-01-15 Douglas B Rupp <rupp@gnat.com>
9722 * gcc.c (delete_if_ordinary): Backout previous change.
9724 2002-01-15 Kazu Hirata <kazu@hxi.com>
9726 * config/h8300/h8300.c (print_operand): Remove support for
9727 unused operand characters.
9729 * read-rtl.c: Fix formatting.
9731 * recog.c: Likewise.
9732 * regclass.c: Likewise.
9733 * regmove.c: Likewise.
9734 * reg-stack.c: Likewise.
9735 * reload1.c: Likewise.
9736 * rtlanal.c: Likewise.
9738 2002-01-15 Kazu Hirata <kazu@hxi.com>
9740 * config/i386/i386.c: Fix formatting.
9742 2002-01-15 Jakub Jelinek <jakub@redhat.com>
9744 * c-typeck.c (process_init_element): Don't save_expr
9745 COMPOUND_LITERAL_EXPR if just its initializer will be used.
9747 2002-01-15 David Edelsohn <edelsohn@gnu.org>
9749 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9750 emit optional traceback table if optimize_size or TARGET_ELF.
9751 * config/rs6000/rs6000.md (prefetch): New.
9753 2002-01-15 Andreas Jaeger <aj@suse.de>
9755 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9757 2002-01-15 Kazu Hirata <kazu@hxi.com>
9759 * mips-tfile.c: Fix formatting.
9761 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
9763 * unroll.c (final_reg_note_copy): Fix previous commit.
9765 2002-01-14 Kazu Hirata <kazu@hxi.com>
9767 * config/h8300/h8300-protos.h: Remove the prototype for
9769 * config/h8300/h8300.c (eq_operator): Remove.
9771 2002-01-14 Richard Henderson <rth@redhat.com>
9773 * config/i386/i386.md (prefetch): Tidy.
9774 (prefetch_3dnow): Fix locality operand.
9776 2002-01-14 Richard Henderson <rth@redhat.com>
9778 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9779 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9781 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
9783 * reload1.c (reload_combine): Pass reg_sum replacement through
9784 copy_rtx in loop performing multiple changes.
9786 2002-01-14 Jakub Jelinek <jakub@redhat.com>
9788 * except.c (remove_unreachable_regions): New.
9789 (free_eh_status): Clear exception_handler_labels.
9790 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9791 (find_exception_handler_labels): Don't add the same label more than
9793 (remove_exception_handler_label): Don't die if
9794 find_exception_handler_labels hasn't been called for the current
9797 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
9799 * toplev.c (rest_of_compilation): Rebuild jump labels after
9802 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
9804 * doc/extend.texi: Move documentation of X86 built-in functions
9806 * doc/invoke.texi: From here.
9807 * doc/sourcebuild.texi: Document location of documentation for
9808 machine built-in functions.
9810 2002-01-13 Christopher Faylor <cgf@redhat.com>
9812 * cppfiles.c (TEST_THRESHOLD): New macro.
9813 (SHOULD_MMAP): Ditto.
9814 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9817 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
9819 * unroll.c (final_reg_note_copy): Properly handle
9821 (unroll_loops): Fix LOOP_CONDITION heuristics.
9823 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
9825 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9826 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9828 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
9830 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9833 2002-01-14 Tom Rix <trix@redhat.com>
9835 * config/rs6000/rs6000.md: Fix typo with sradi.
9837 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
9839 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9840 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9841 (clrstrdi, clrstrsi): Adapt callers.
9843 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9845 (movti splitter): Never use register 0 as base register.
9847 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
9849 * combine.c (simplify_shift_const): Always generate new rtx
9850 for shift expression instead of reusing given expression.
9852 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9854 * config/alpha/alpha.c (alpha_expand_mov): Don't call
9855 alpha_legitimize_address unless mode is Pmode.
9857 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
9859 * doc/md.texi (Modifiers): Document the '*' constraint for the
9862 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9863 * doc/extend.texi (Function Attributes): 'interrupt' is valid
9866 2002-01-13 Richard Henderson <rth@redhat.com>
9868 * reload.c (find_reloads): Use a hard reg destination as reload reg
9869 for an input reload of the source.
9871 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9873 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9876 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
9878 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9879 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9881 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9883 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9885 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9887 2002-01-12 Tom Rix <trix@redhat.com>
9889 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9892 2002-01-12 Richard Henderson <rth@redhat.com>
9894 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9896 * doc/invoke.texi: Update Alpha options.
9898 * doc/invoke.texi: Update i386 built-in function lists.
9900 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
9902 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9903 referencing outside.
9905 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9907 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9908 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9909 offsets, and change line folding.
9910 * optabs.c (expand_binop): Remove warnings.
9911 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9913 2002-01-12 Graham Stott <grahams@redhat.com>
9915 * attribs.c (handle_deprecated_attribute): constify WHAT.
9916 * diagnostic.c (warn_deprecated_use): Add braces, fixes
9917 dangling else warning and constify WHAT.
9918 * except.h (struct function, struct inline_remap): Move
9919 struct tag forward defs before all prototypes.
9920 (duplicate_eh_regions): Whitespace.
9922 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
9924 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9925 MODE_BASE_REG_CLASS.
9926 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9928 2002-01-12 Richard Henderson <rth@redhat.com>
9930 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9931 (ix86_expand_vector_move): New.
9932 (bdesc_2arg): Remove andps, andnps, orps, xorps.
9933 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
9934 Remove old prefetch builtins. Special case the logicals removed above.
9935 (ix86_expand_builtin): Likewise.
9936 (safe_vector_operand): Use V4SFmode, not TImode.
9937 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
9938 (ix86_expand_timode_binop_builtin): New.
9939 * config/i386/i386-protos.h: Update.
9940 * config/i386/i386.h (enum ix86_builtins): Update.
9941 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9942 Use ix86_expand_vector_move in vector move expanders.
9943 (movti_internal, movti_rex64): Add xorps alternative.
9944 (sse_clrv4sf): Rename and adjust from sse_clrti.
9945 (prefetch): Don't work so hard.
9946 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9947 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9948 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9950 2002-01-11 Richard Henderson <rth@redhat.com>
9952 * config/i386/mmintrin.h: New file.
9953 * config/i386/xmmintrin.h: New file.
9954 * config.gcc (i?86-*-*): Add extra_headers.
9955 * simplify-rtx.c (simplify_unary_operation): Handle saturating
9957 (simplify_binary_operation): Handle saturating arithmetic codes.
9958 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9959 not the lowpart subreg.
9960 (ix86_expand_builtin): Return a TImode dummy register instead of 0
9962 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9964 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9966 * conflict.c (conflict_graph_compute): Free regsets when finished.
9967 * ssa.c (compute_coalesced_reg_partition): Likewise.
9969 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9971 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9972 every where we allocate a register.
9974 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9976 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9977 * lcm.c (compute_earliest, compute_farthest): Likewise.
9979 2002-01-11 Janis Johnson <janis187@us.ibm.com>
9981 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9983 2002-01-11 Janis Johnson <janis187@us.ibm.com>
9985 * doc/rtl.texi (Insns): Fix 2 typos.
9987 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
9989 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
9990 options. Use @table @gcctabopt for MMIX options. Add index
9991 entries for MMIX options. Start new paragraph with first
9992 heading of the machine-dependent options.
9994 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
9997 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9998 * combine.c (force_to_mode): Same.
9999 * reload1.c (clear_reload_reg_in_use): Same.
10001 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
10003 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
10006 2002-01-11 Andreas Jaeger <aj@suse.de>,
10007 Brad Lucier <lucier@math.purdue.edu>
10009 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
10012 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
10014 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
10015 Protect with IN_LIBGCC.
10016 (LINK_EH_SPEC): Add required trailing space.
10018 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
10020 * c-tree.h: Move function declarations so that they are listed
10021 under the filename which contains them.
10022 (check_identifier, finish_decl_top_level,
10023 lookup_name_current_level_global, shadow_record_fields): Remove.
10025 2002-01-11 Andreas Jaeger <aj@suse.de>
10027 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
10030 2002-01-10 Richard Henderson <rth@redhat.com>
10032 * config/alpha/alpha.c (print_operand): Add 'J'.
10033 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
10034 new operand with the sequence number for the lituse. When splitting
10035 the insns, use gen_movdi_er_high_g and generate a sequence number.
10036 (gen_movdi_er_high_g): Print the sequence number if non-zero.
10038 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
10040 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
10041 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
10043 (altivec_expand_builtin): Same.
10044 (altivec_expand_stv_builtin): New.
10046 * config/rs6000/rs6000.h (rs6000_builtins): Same.
10048 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
10049 ("altivec_lvehx"): New.
10050 ("altivec_lvewx"): New.
10051 ("altivec_lvxl"): New.
10052 ("altivec_lvx"): New.
10053 ("altivec_stvx"): New.
10054 ("altivec_stvebx"): New.
10055 ("altivec_stvehx"): New.
10056 ("altivec_stvewx"): New.
10057 ("altivec_stvxl"): New.
10059 2002-01-10 Richard Henderson <rth@redhat.com>
10061 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
10062 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
10063 care not to delete instructions twice.
10065 2002-01-10 Zack Weinberg <zack@codesourcery.com>
10067 * toplev.c: Don't declare environ (it's not used anywhere).
10068 * configure.in: Don't check for declaration of environ.
10069 * config/i386/xm-mingw32.h: Don't #define environ.
10070 * config.in, configure: Regenerate.
10072 2002-01-10 Zack Weinberg <zack@codesourcery.com>
10074 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
10075 * configure: Regenerate.
10077 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
10078 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
10079 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
10081 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
10082 LIMITS_H_TEST here, not in m68k/x-next.
10083 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
10084 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
10086 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
10087 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
10088 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
10090 * config/i386/x-djgpp: Renamed i386/t-djgpp.
10091 * config/m88k/x-dolph: Renamed m88k/t-dolph.
10092 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
10093 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
10094 replacement of quadlib.asm with quadlib.c.
10096 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
10097 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
10098 config/rs6000/xm-beos.h: Delete file.
10100 * config.gcc: Update to match above changes.
10102 2002-01-10 Kazu Hirata <kazu@hxi.com>
10104 * config/h8300/h8300.h: Fix comment typos.
10105 * config/h8300/h8300.md: Likewise.
10106 * config/h8300/lib1funcs.asm: Likewise.
10108 2002-01-10 Dale Johannesen <dalej@apple.com>
10110 PR optimization/5269
10111 * unroll.c (precondition_loop_p): Make *increment be the correct
10112 sign when n_iterations known, to avoid confusing caller.
10114 2002-01-10 Kazu Hirata <kazu@hxi.com>
10116 * doc/extend.texi (deprecated): Fix a typo.
10118 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
10120 * basic-block.h (update_br_prob_note): Declare.
10121 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
10122 (try_forward_edges): Care negative frequencies and update note.
10123 (outgoing_edges_match): Tweek conditional merging heuristics.
10124 (try_crossjump_to_edge): use update_br_prob_note.
10125 * cfglayout.c (fixup_reorder_chain): Likewise.
10126 * cfrtl.c (update_br_prob_note): New.
10127 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
10129 * i386.c (ix86_decompose_address): Return -1 if address contains
10131 (legitimate_address_p): Require ix86_decompose_address to return 1.
10133 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
10134 (cprop_insn): Likewise.
10136 2002-01-10 Kazu Hirata <kazu@hxi.com>
10138 * toplev.c: Fix formatting.
10139 * tree.c: Likewise.
10140 * tree-dump.c: Likewise.
10141 * unroll.c: Likewise.
10142 * unwind-dw2.c: Likewise.
10143 * unwind-dw2-fde.c: Likewise.
10144 * unwind-dw2-fde-glibc.c: Likewise.
10145 * unwind-sjlj.c: Likewise.
10147 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
10149 * doc/invoke.texi: Document PDP-11 options.
10151 2002-01-10 Kazu Hirata <kazu@hxi.com>
10153 * config/h8300/h8300.h: Fix formatting.
10155 2002-01-10 Ira Ruben <ira@apple.com>
10157 Add __attribute__ ((deprecated)).
10158 * extend.texi: Document __attribute__ ((deprecated)).
10159 * invoke.texi: Document -Wno-deprecated-declarations.
10160 * testsuite/g++.dg/other/deprecated.C: New C++ test.
10161 * testsuite/gcc.dg/deprecated.c: New C test.
10162 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
10163 (c_common_attribute_table): Add "deprecated" entry.
10164 (handle_deprecated_attribute): New function.
10165 * c-decl.c (deprecated_states): New enum.
10166 deprecated_state: State of "deprecated" handling.
10167 (start_decl): Set deprecated_state based on attributes.
10168 (grokdeclarator): Test for deprecated uses, propagate attribute.
10169 * c-typeck.c (build_component_ref): Test for deprecated fields.
10170 (build_external_ref): Test for deprecated primaries.
10171 * diagnostic.c (warn_deprecated_use) New function to issue
10172 warnings about __attribute__ ((depricated)) references.
10173 * flags.h (warn_deprecated_decl): Extern declared for
10174 -W[no-]deprecated-declarations option.
10175 * print-tree.c (print_node): Show deprecated flag status.
10176 * toplev.c (warn_deprecated_decl): Defined.
10177 (W_options): Added "deprecated-declaration".
10178 * toplev.h (warn_deprecated_use): Extern declared.
10179 * tree.h (struct tree_common): Define deprecated_flag.
10180 (TREE_DEPRECATED): New macro to access flag.
10181 * cp/call.c (build_call): Test for deprecated calls.
10182 * cp/class.c (add_implicitly_declared_members): Set global
10183 flag to tell grokdeclarator to not issue deprecated warnings.
10184 * cp/cp-tree.h: Add extern for adding_implicit_members.
10185 * cp/decl.c (deprecated_states): New enum.
10186 (start_decl): Set deprecated_state based on attributes.
10187 (grokdeclarator): Test for deprecated uses, propagate attribute.
10188 * cp/lex.c (do_identifier): Test for deprecated primaries.
10189 * cp/typeck.c (build_component_ref): Test for deprecated fields.
10191 2002-01-10 Ira Ruben <ira@apple.com>
10193 Fix to assign attributes to inline member functions.
10194 * cp/decl.c (start_method): Handle attrlist.
10196 2002-01-10 Kazu Hirata <kazu@hxi.com>
10198 * combine.c (expand_field_assignment): Use subreg_lsb().
10200 2002-01-10 David Edelsohn <edelsohn@gnu.org>
10202 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
10203 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
10204 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
10205 Recurse for any operand of AND as long as constant is non-zero.
10207 2002-01-10 Kazu Hirata <kazu@hxi.com>
10209 * config/h8300/h8300.md: Remove constraints from expanders.
10211 2002-01-10 Kazu Hirata <kazu@hxi.com>
10213 * varasm.c: Fix formatting.
10214 * varray.c: Likewise.
10215 * vmsdbgout.c: Likewise.
10216 * xcoffout.c: Likewise.
10218 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
10220 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
10221 update edge probabilities to match.
10223 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
10225 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
10227 * doc/languages.texi, doc/sourcebuild.texi: New files.
10228 * doc/configfiles.texi: Make a subsubsection. Update.
10229 * doc/configterms.texi: Add @node. Remove warning that this isn't
10230 instructions for building GCC.
10231 * doc/makefile.texi: Make a subsection.
10232 * doc/gccint.texi: Update.
10234 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
10236 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
10238 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
10240 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
10242 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
10244 * optabs.c (expand_fix): Look for wider integer modes first.
10246 * i386.md (mov?f): Avoid the fake const double trick for medium
10248 (min?f*/max?f*): Prohibit memory operands for i387 variant.
10249 (fop_df_4): Disable for SSE compilation.
10251 2002-01-10 Graham Stott <grahams@redhat.com>
10253 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
10254 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
10256 2002-01-10 Richard Henderson <rth@redhat.com>
10258 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
10260 2002-01-10 Richard Henderson <rth@redhat.com>
10262 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
10263 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
10265 2002-01-10 Kazu Hirata <kazu@hxi.com>
10267 * combine.c (can_combine_p): Fix a comment typo.
10269 2002-01-09 Zack Weinberg <zack@codesourcery.com>
10271 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
10272 empty list correctly. Change loop index $t to $f for
10273 consistency with rest of Makefile.
10275 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
10277 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
10278 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10280 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
10281 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
10282 (altivec_init_builtins): Same.
10283 (altivec_expand_unop_builtin): Return NULL_RTX on error.
10284 (altivec_expand_binop_builtin): Same.
10285 (altivec_expand_ternop_builtin): Same.
10288 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
10289 ("altivec_vctuxs"): Fix typo.
10290 ("altivec_vnmsubfp"): Same.
10291 ("altivec_dssall"): New.
10292 ("altivec_mfvscr"): New.
10293 ("altivec_dss"): New.
10294 ("altivec_lvsl"): New.
10295 ("altivec_lvsr"): New.
10296 ("altivec_dstt"): New.
10297 ("altivec_dstst"): New.
10298 ("altivec_dststt"): New.
10299 ("altivec_dst"): New.
10301 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
10302 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10304 2002-01-09 Richard Henderson <rth@redhat.com>
10306 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
10308 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
10310 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
10312 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
10314 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
10316 2002-01-09 Kazu Hirata <kazu@hxi.com>
10318 * read-rtl.c: Fix formatting.
10319 * real.c: Likewise.
10320 * regclass.c: Likewise.
10321 * regrename.c: Likewise.
10322 * reg-stack.c: Likewise.
10323 * reload1.c: Likewise.
10324 * reload.c: Likewise.
10327 2002-01-09 Kazu Hirata <kazu@hxi.com>
10329 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
10330 to extract items in the expr_list chain.
10332 2002-01-09 Richard Henderson <rth@redhat.com>
10334 * config/vax/vax.c (vax_rtx_cost): Never abort.
10336 * config/vax/vax.h (REAL_ARITHMETIC): Define.
10338 2002-01-09 Jan Hubicka <jh@suse.cz>
10340 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
10342 2002-01-09 Richard Henderson <rth@redhat.com>
10344 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
10345 Unify code from various alternatives.
10347 2002-01-09 Richard Henderson <rth@redhat.com>
10349 * regrename.c (copy_value): Ignore the copy if the source register
10350 is present in the value chain with a narrower mode.
10352 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10354 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
10355 for the c4x target. Also improve layout.
10357 2002-01-09 Richard Henderson <rth@redhat.com>
10359 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
10360 * config/m32r/m32r.md (and ior xor splitters): Swap operands
10361 to match insn patterns.
10363 2002-01-09 Richard Henderson <rth@redhat.com>
10365 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
10366 (copyprop_hardreg_forward_1): Likewise.
10368 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
10370 * pa.md (decrement_and_branch_until_zero): Change predicate for
10371 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
10373 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
10375 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
10376 gets undefined. For Darwin.
10378 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10380 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
10382 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10384 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
10386 2002-01-08 Richard Henderson <rth@redhat.com>
10388 * regrename.c (copy_value): Ignore overlapping copies.
10390 2002-01-08 Richard Henderson <rth@redhat.com>
10392 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
10393 as needed to avoid shared structure.
10395 2002-01-08 Kazu Hirata <kazu@hxi.com>
10397 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
10400 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10402 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
10403 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
10404 documentation of obsolete macros.
10405 * system.h: Poison these macros.
10406 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10407 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10408 config/c4x/c4x.h, config/clipper/clipper.h,
10409 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10410 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10411 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10412 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10413 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10414 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10415 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10416 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10417 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10418 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10419 config/sparc/sparc.h, config/stormy16/stormy16.h,
10420 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10421 definitions and commented out definitions of obsolete macros.
10422 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10423 of MAX_INT_TYPE_SIZE.
10425 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10427 * config/s390/s390.c (s390_preferred_reload_class): Never
10428 return ADDR_REGS if it isn't a subset of the given class.
10429 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10430 FP_REGS, but all superclasses as well.
10432 * config/s390/s390.c (s390_function_profiler): Fix thinko.
10434 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10435 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10436 must not be a const_int.
10438 2002-01-08 Richard Henderson <rth@redhat.com>
10440 * Makefile.in (toplev.o): Depend on options.h.
10441 (gcc.o): Depend on specs.h.
10443 2002-01-08 Jakub Jelinek <jakub@redhat.com>
10445 * expr.c (store_expr): Convert VOIDmode constants back to target's
10448 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10450 * doc/invoke.texi: Markup gcc as @command. Refer to
10451 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10452 of http://gcc.gnu.org/thanks.html.
10454 2002-01-08 Dale Johannesen <dalej@apple.com>
10456 * config/rs6000/rs6000.md: Add missing int register
10457 target case to movdf_low.
10459 2002-01-08 Zack Weinberg <zack@codesourcery.com>
10461 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10462 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
10463 (cppinit.o): Depend on except.h.
10464 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10465 s-specs): New rules.
10467 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10468 Don't create specs.h/options.h/gencheck.h here. Remove
10469 unnecessary variable settings from last argument of AC_OUTPUT.
10470 * config.in, configure: Regenerate.
10471 * intl.c: Hardcode package name as "gcc".
10473 * cppinit.c: Include except.h.
10474 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10476 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10477 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10478 (!)USING_SJLJ_EXCEPTIONS.
10479 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10481 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10483 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10484 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10485 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10486 documentation of obsolete macros.
10487 * system.h: Poison these macros.
10488 * config/d30v/d30v.h, config/ns32k/encore.h,
10489 config/stormy16/stormy16.h: Remove definitions and commented out
10490 definitions of obsolete macros.
10492 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
10494 * objc/objc-act.c (handle_class_ref): Mark the declaration of
10495 %sobjc_class_ref_%s as used - to prevent unwanted compiler
10498 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10500 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10501 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10502 to insn adjusting stack/frame pointer.
10503 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10504 accept operands that cause the insn to be non-splittable.
10506 2002-01-08 Graham Stott <grahams@redhat.com>
10508 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10509 (C_TYPE_FIELDS_VOLATILE): Likewise.
10510 (C_TYPE_BEING_DEFINED): Likewise.
10511 (C_IS_RESERVED_WORD): Likewise.
10512 (C_TYPE_VARIABLE_SIZE): Likewise.
10513 (C_DECL_VARIABLE_SIZE): Likewise.
10514 (C_MISSING_PROTOTYPE_WARNED): Likewise.
10515 (C_SET_EXP_ORIGINAL_CODE): Likewise.
10516 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10518 (C_DECL_ANTICIPATED): Likewise.
10519 (c_build_type_variant): Add parenthesis.
10521 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10523 * gcc.c (option_map): Remove --version.
10524 (process_command): Handle -fversion following the GNU Coding
10525 Standards. Partially addresses PR other/704.
10527 2002-01-08 Graham Stott <grahams@redhat.com>
10529 * combine.c (combine_instructions): Fix typo.
10531 2002-01-08 Graham Stott <grahams@redhat.com>
10533 * debug.h: Use "tree" and "rtx" throughout.
10535 * debug.c: Likewise.
10537 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
10539 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10540 constant pool, use the pool's version of the symbol instead.
10542 2002-01-07 Richard Henderson <rth@redhat.com>
10544 * regrename.c (find_oldest_value_reg): Ignore the value chain if
10545 the original register was copied in a mode with a fewer number of
10546 hard registers than the desired mode.
10547 (copyprop_hardreg_forward_1): Likewise.
10548 (debug_value_data): Fix loop test.
10549 * toplev.c (parse_options_and_default_flags): Reenable
10550 -fcprop-registers at -O1.
10552 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10554 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10555 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10557 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10560 * config/rs6000/rs6000.md: Add altivec predicate patterns.
10562 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
10564 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10565 (pa_output_function_prologue): Output local label at the beginning of
10566 the prologue when profiling.
10567 (hppa_profile_hook): Use the local label rather than the function label.
10568 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10570 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10572 * config/rs6000/rs6000.c (print_operand): Remove extra space.
10573 (altivec_expand_unop_builtin): Fix thinko.
10574 (altivec_expand_binop_builtin): Same.
10575 (altivec_expand_ternop_builtin): Same.
10576 (altivec_expand_builtin): Same.
10578 2002-01-07 Richard Henderson <rth@redhat.com>
10580 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10582 2002-01-07 Jason Merrill <jason@redhat.com>
10584 * unwind-dw2.c (execute_cfa_program): Use < again.
10586 2002-01-07 Jakub Jelinek <jakub@redhat.com>
10588 * predict.c (combine_predictions_for_insn): Avoid division by zero.
10590 2002-01-07 Jakub Jelinek <jakub@redhat.com>
10592 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10593 Don't allow -1 - x -> ~x simplifications in the first pass.
10595 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10597 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10599 (altivec_expand_binop_builtin): Same.
10600 (altivec_expand_unop_builtin): Same.
10601 (print_operand): Fix typo.
10602 (bdesc_1arg): Add vupk* variants.
10604 * rs6000.h (rs6000_builtins): Add vupk* enums.
10606 * rs6000.md: Add altivec_vupk* variants.
10608 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
10610 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10611 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10612 and last update dates.
10614 2002-01-07 Janis Johnson <janis187@us.ibm.com>
10616 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10618 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
10620 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10621 * config/avr/avr.h (CPP_SPEC): Likewise.
10622 (LINK_SPEC): Likewise.
10623 (CRT_BINUTILS_SPECS): Likewise.
10624 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10625 * doc/invoke.texi (AVR Options): Document them.
10627 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
10629 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10632 2002-01-07 Graham Stott <grahams@redhat.com>
10634 * config/i386/i386.h: Update copyright date.
10635 (HALF_PIC_PTR): Add parenthesis.
10636 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10637 (CONSTANT_ALIGNMENT): Add parenthesis.
10638 (DATA_ALIGNMENT): Likewise.
10639 (LOCAL_ALIGNMENT): Likewise.
10640 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10641 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10642 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10643 (HARD_REGNO_NREGS): Add paranethesis.
10644 (VALID_SSE_REG_MODE): Whitespace.
10645 (VALID_MMX_REG_MODE): Whitespace.
10646 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10647 (ix86_hard_regno_mode_ok): Add parenthesis.
10648 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10649 (RETURN_IN_MEMORY): Whitespace.
10650 (N_REG_CLASSES): Add parenthesis.
10651 (INTEGER_CLASS_P): Add parenthesis and wrap.
10652 (FLOAT_CLASS_P): Likewise.
10653 (SSE_CLASS_P): Likewise.
10654 (MMX_CLASS_P): Likewise.
10655 (MAYBE_INTEGER_CLASS_P): Likewise.
10656 (MAYBE_FLOAT_CLASS_P): Likewise.
10657 (MAYBE_SSE_CLASS_P): Likewise.
10658 (MAYBE_MMX_CLASS_P): Likewise.
10659 (Q_CLASS_P): Likewise.
10660 (GENERAL_REGNO_P): Uppercase macro parameter.
10661 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10662 (FP_REGNO_P): Likewise.
10663 (ANY_FP_REGNO_P): Uppercase macro parameter.
10664 (SSE_REGNO_P): Likewise.
10665 (SSE_REGNO): Likewise.
10666 (SSE_REG_P): Likewise.
10667 (SSE_FLOAT_MODE_P): Likewise.
10668 (MMX_REGNO_P): Likewise.
10669 (MMX_REG_P):Likewise.
10670 (STACK_REG_P): Likewise.
10671 (NON_STACK_REG_P): Likewise.
10672 (STACK_TOP_P): Likewise.
10673 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10674 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10675 (SECONDARY_MEMORY_NEEDED): Likewise.
10676 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10677 (MD_ASM_CLOBBERS): Whitespace and wrap.
10678 (MUST_PASS_IN_STACK): Whitespace and wrap.
10679 (RETURN_POPS_ARGS): Add parenthesis.
10680 (INIT_CUMULATIVE_ARGS): Likewise.
10681 (FUNCTION_ARG): Likewise.
10682 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10683 (SETUP_INCOMING_VARARGS): Likewise.
10684 (BUILD_VA_LIST_TYPE): Add parenthesis.
10685 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10687 (EXPAND_BUILTIN_VA_ARG): Likewise.
10688 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10689 (INITIALIZE_TRAMPOLINE): Add parenthesis.
10690 (INITIAL_ELIMINATION_OFFSET): Likewise.
10691 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10692 (REGNO_OK_FOR_BASE_P): Likewise.
10693 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10694 (REGNO_OK_FOR_DIREG_P): Likewise.
10695 (REG_OK_FOR_INDEX_P): Whitespace.
10696 (REG_OK_FOR_BASE_P): Whitespace.
10697 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10699 (FIND_BASE_TERM): Fix typo.
10700 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
10701 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10702 (SYMBOLIC_CONST; Whitespace.
10703 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
10704 (ENCODE_SECTION_INFO): Whitespace.
10705 (FINALIZE_PIC): Remove do { ... } while (0).
10706 (PROMOTE_MODE): Wrap in do { ... } while (0).
10707 (CONST_COSTS): Whitespace.
10708 (RTX_COSTS): Add paramethesis, whitespace and wrap.
10709 (REGISTER_MOVE_COST): Add parenthesis.
10710 (MEMORY_MOVE_COST): Likewise.
10711 (EXTRA_CC_MODES): Whitespace.
10712 (SELECT_CC_MODE): Add parenthesis and whitespace.
10713 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10714 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10715 (ASM_OUTPUT_LABEL): Add paramethesis.
10716 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10717 (ASM_OUTPUT_REG_POP): Likewise.
10718 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10719 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10721 * config/i386/i386.c: Update copyright.
10722 (CHECK_STACK_LIMIT): Add parenthesis.
10723 (AT_BP): Uppercase macro parameter.
10724 (x86_64_int_parameter_registers): Constify.
10725 (x86_64_int_return_registers): Likewise.
10726 (ix86_compare_op0): Use rtx.
10727 (construct_container): Constify INTREG parameter.
10728 (function_arg): Use rtx.
10730 * diagnostic.h: Update copyright date.
10731 (output_buffer_state): Add parenthesis.
10732 (output_buffer_format_args): Likewise.
10734 * combine.c (combine_instructions): Replace XEXP (links, 0)
10737 2002-01-06 H.J. Lu <hjl@gnu.org>
10739 * cfgcleanup.c (thread_jump): Fix 2 typos.
10741 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
10743 * config.gcc: Add support for --enable-altivec.
10745 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
10747 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10749 2002-01-06 Jakub Jelinek <jakub@redhat.com>
10751 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10752 __objc_class_name_*.
10754 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
10756 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10758 2002-01-06 Richard Henderson <rth@redhat.com>
10760 * reorg.c (emit_delay_sequence): Remove death notes, not merely
10761 nop them out. Increment label reference count for REG_LABEL.
10762 (fill_slots_from_thread): Frob label reference count around
10763 delete_related_insns.
10765 2002-01-05 Richard Henderson <rth@redhat.com>
10767 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10770 2002-01-05 Richard Henderson <rth@redhat.com>
10772 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10773 * integrate.c (output_inline_function): Likewise.
10774 * toplev.c (rest_of_compilation): Do it here instead. Move call
10775 to remove_unnecessary_notes after emitting abstract instance.
10776 Force an emitted nested function to have its parent emited as well.
10777 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10779 (rtl_for_decl_location): Do not look at reload data structures
10780 before reload has run.
10782 2002-01-05 Kazu Hirata <kazu@hxi.com>
10784 * cse.c: Fix formatting.
10785 * dwarf2asm.c: Likewise.
10786 * dwarf2out.c: Likewise.
10787 * explow.c: Likewise.
10788 * expmed.c: Likewise.
10789 * function.c: Likewise.
10790 * gcov.c: Likewise.
10791 * gencheck.c: Likewise.
10792 * genrecog.c: Likewise.
10793 * ggc-common.c: Likewise.
10794 * ggc-page.c: Likewise.
10795 * global.c: Likewise.
10797 2002-01-05 Kazu Hirata <kazu@hxi.com>
10799 * combine.c: Fix formatting.
10801 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
10804 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10806 2002-01-05 David Edelsohn <edelsohn@gnu.org>
10808 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10809 as 1 for __powerpc64__ as well.
10811 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10813 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10816 2002-01-05 Daniel Berlin <dan@dberlin.org>
10818 * lcm.c: Revert change, due to performance regression it causes on
10819 SPEC because it's slightly more conservative (sigh, I hate
10822 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
10824 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10826 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
10828 * doc/cppinternals.texi: Update.
10830 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
10832 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10833 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10835 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
10836 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10837 kludge for pre-october-14th mmix versions to handle new-found bug
10838 with PUSHJ/PUSHGO and the register stack.
10839 * config/mmix/mmix.h (struct machine_function): Rename member
10840 has_call_value_without_parameters to has_call_without_parameters.
10841 All referers changed.
10842 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10843 TARGET_MASK_BRANCH_PREDICT): New macros.
10844 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10845 -mno-reg-stack-fill-bug-workaround.
10846 * config/mmix/mmix.md ("call"): Set struct machine member
10847 has_call_without_parameters.
10849 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
10851 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10853 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
10855 * cfgcleanup.c: Include tm_p.h
10856 (mark_effect): Fix handling of hard register; fix handling of SET
10858 2002-01-04 Kazu Hirata <kazu@hxi.com>
10860 * config/h8300/h8300.md (anonymous patterns): Check that
10861 operands are registers before using REGNO on them.
10863 2002-01-03 Roland McGrath <roland@frob.com>
10865 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10867 2002-01-04 Jakub Jelinek <jakub@redhat.com>
10869 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10870 * c-common.h (genrtl_expr_stmt_value): Likewise.
10871 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10872 (expand_expr_stmt_value): Add maybe_last argument.
10873 Don't warn about statement with no effect if it is the last statement
10874 in expression statement.
10875 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10876 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10877 expand_expr_stmt_value.
10878 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10879 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10880 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10881 as maybe_last to expand_expr_stmt_value.
10883 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
10885 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10886 be passed in, do not build it.
10887 (c_begin_if_stmt): New function.
10888 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10889 * c-common.h (c_expand_start_cond): Update prototype.
10890 (c_begin_if_stmt): Prototype new function.
10891 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10892 * c-parse.in (if_prefix): Use c_begin_if_stmt,
10893 c_begin_while_stmt and c_finish_while_stmt_cond.
10895 2002-01-04 William Cohen <wcohen@redhat.com>
10897 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10898 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10899 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10900 * config/pa/som.h (ASM_FILE_START): Likewise.
10902 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
10904 * lcm.c: Include df.h.
10905 Add available_transfer_function prototype.
10906 (compute_available): Rework to use iterative dataflow framework.
10907 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10908 with bb_info in df.h
10909 (available_transfer_function): New function.
10911 * Makefile.in (lcm.o): add df.h to dependencies.
10913 2002-01-04 Richard Henderson <rth@redhat.com>
10915 * config/alpha/alpha.c (some_operand): Accept HIGH.
10916 (input_operand): Likewise; accept simple references to globals.
10917 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10918 (alpha_const_double_ok_for_letter_p): Likewise.
10919 (alpha_extra_constraint): Likewise.
10920 (alpha_preferred_reload_class): Likewise. Do not force
10921 symbolic constants to memory.
10922 (alpha_legitimate_address_p): Accept simple references
10923 to small_symbolic_operand.
10924 (alpha_legitimize_address): New arg scratch. Be prepared to be
10925 called when no_new_pseudos. Emit simple symbolic references.
10926 Split integers into low, high, and rest.
10927 (alpha_expand_mov): Use alpha_legitimize_address.
10928 (some_small_symbolic_mem_operand): New.
10929 (split_small_symbolic_mem_operand): New.
10930 * config/alpha/alpha-protos.h: Update.
10931 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10932 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10933 (EXTRA_CONSTRAINT): Likewise.
10934 (PREFERRED_RELOAD_CLASS): Likewise.
10935 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10936 (PREDICATE_CODES): Update.
10937 * config/alpha/alpha.md: New post-reload splitters to convert
10938 simplfied symbolic operands to the form that references $29.
10939 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10940 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10942 2002-01-03 Richard Henderson <rth@redhat.com>
10944 * local-alloc.c (function_invariant_p): Update commentary.
10946 2002-01-04 H.J. Lu <hjl@gnu.org>
10948 * toplev.c (rest_of_compilation): Fix a typo when calling
10951 2002-01-03 Kazu Hirata <kazu@hxi.com>
10953 * c-common.c: Fix formatting.
10954 * diagnostic.c: Likewise.
10955 * doloop.c: Likewise.
10956 * dwarf2out.c: Likewise.
10958 2002-01-03 Kazu Hirata <kazu@hxi.com>
10960 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10961 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10963 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
10965 * cpperror.c: Update comments and copyright.
10966 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10967 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10969 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
10971 * collect2.c (main): Use strcmp when testing for "-shared".
10973 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
10975 * cppmacro.c: Don't include intl.h. Update comments.
10976 (new_number_token): Allocate enough buffer for 64-bit unsigned
10977 integers; update prototype.
10978 * cppmain.c: Update comments.
10980 2002-01-03 William Cohen <wcohen@redhat.com>
10982 * function.h (struct function): Add profile.
10983 (current_function_profile): New.
10984 doc/extend.texi: Update documentation.
10985 * final.c (final_start_function): Use current_function_profile
10986 instead of profile_flag.
10987 (profile_after_prologue): Likewise.
10988 * function.c (expand_function_start): Likewise.
10989 (expand_function_start): Likewise.
10990 * config/alpha/alpha.c (direct_call_operand):
10991 (alpha_does_function_need_gp): Likewise.
10992 (alpha_expand_prologue): Likewise.
10993 * config/arm/arm.c (arm_expand_prologue): Likewise.
10994 thumb_expand_prologue: Likewise.
10995 * config/d30v/d30v.c (d30v_stack_info): Likewise.
10996 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10997 (fr30_expand_prologue): Likewise.
10998 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10999 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
11000 * config/i386/i386.h (FINALIZE_PIC): Likewise.
11001 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
11002 * config/i960/i960.c (i960_output_function_prologue): Likewise.
11003 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11004 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
11005 (m32r_expand_prologue): Likewise.
11006 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
11007 (m88k_expand_prologue): Likewise.
11008 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
11009 * config/mips/mips.c (compute_frame_size): Likewise.
11010 (mips_expand_prologue): Likewise.
11011 (mips_can_use_return_insn): Likewise.
11012 * config/pa/elf.h (ASM_FILE_START): Likewise.
11013 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11014 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11015 * config/pa/som.h (ASM_FILE_START): Likewise.
11016 * config/romp/romp.c (romp_using_r14): Likewise.
11017 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
11018 (rs6000_stack_info): Likewise.
11019 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11020 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
11021 * config/v850/v850.c (compute_register_save_size): Likewise.
11023 2002-01-03 Jakub Jelinek <jakub@redhat.com>
11025 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
11026 gen_lowpart_common fails, use gen_lowpart_SUBREG.
11028 2002-01-03 Turly O'Connor <turly@apple.com>
11030 * darwin.c (machopic_output_possible_stub_label): Don't generate
11031 stub routines for pseudo-stubs which we've just defined.
11033 2002-01-03 Kazu Hirata <kazu@hxi.com>
11035 * builtins.c: Fix formatting.
11036 * c-typeck.c: Likewise.
11037 * combine.c: Likewise.
11038 * expr.c: Likewise.
11039 * loop.c: Likewise.
11041 2002-01-03 Andreas Schwab <schwab@suse.de>
11043 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
11044 and return true if _cpp_push_next_buffer pushed a new include
11046 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
11047 _cpp_pop_file_buffer did not push a new file.
11048 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
11050 2002-01-02 Eric Christopher <echristo@redhat.com>
11052 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
11053 FIND_REG_INC_NOTE call. Update copyright.
11054 * loop.c (canonicalize_condition): Ditto.
11055 * reorg.c (delete_scheduled_jump): Ditto.
11057 2002-01-03 Kazu Hirata <kazu@hxi.com>
11059 * gcse.c: Fix formatting.
11061 2002-01-03 Graham Stott <grahams@redhat.com>
11063 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
11064 forward defs for struct tags rtx_def, union_tree, rtvec_def
11065 also output corresponding typedefs for rtx, tree, and rtvec.
11067 * system.h: Move forward defs for struct tags rtx_def, union_tree,
11068 rtvec_def along with corresponding typedefs for rtx, tree, and
11069 rtvec to config.h, hconfig.h, tconfig.h.
11071 2002-01-03 Graham Stott <grahams@redhat.com>
11073 * tree.h: Update copyright date.
11074 (IS_EXPR_CODE_CLASS): Add parenthesis.
11075 (TREE_SET_CODE): Add whitespace.
11076 (TREE_CHECK): Add parenthesis.
11077 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
11078 (CST_OR_CONSTRUCTOR_CHECK):
11079 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
11080 (TREE_SYMBOL_REFERENCED): Whitespace.
11081 (INT_CST_LT): Likewise.
11082 (INT_CST_LT_UNSIGNED): Likewise.
11083 (tree_real_cst): Unwrap comment.
11084 (tree_string): Likewise.
11085 (tree_complex): Likewise.
11086 (IDENTIFIER_POINTER): correct cast.
11087 (SAVE_EXPR_CONTEXT): Whitespace.
11088 (EXPR_WFL_FILENAME_NODE): Likewise.
11089 (EXPR_WFL_FILENAME): Remove parenthesis.
11090 (DECL_ORIGIN): Add parenthesis.
11091 (DECL_FROM_INLINE): Use NULL_TREE.
11092 (build_int_2): Whitespace.
11093 (build_type_variant): Add parenthesis.
11095 * gcc/jcf-parse.c: Update copyright date.
11096 (yyparse): Constify resource_filename.
11098 2002-01-03 Graham Stott <grahams@redhat.com>
11100 * rtl.h: Update copyright date.
11101 (RTL_CHECK1): Wrap long line.
11102 (RTL_CHECK2): Likewise.
11103 (RTL_CHECKC1): Wrap long line and whitespace.
11104 (RTL_CHECKC2): Likewise.
11105 (XWINT): Whitespace.
11111 (XBITMAP): Likewise.
11113 (XBBDEF): Likewise.
11115 (X0WINT): Likewise.
11117 (X0UINT): Likewise.
11121 (X0MODE): Likewise.
11122 (X0BITMAP): Likewise.
11123 (X0TREE): Likewise.
11124 (X0BBDEF): Likewise.
11125 (X0ADVFLAGS): Likewise.
11126 (X0CSELIB): Likewise.
11127 (X0MEMATTR): Likewise.
11128 (XCWINT): Likewise.
11130 (XCUINT): Likewise.
11134 (XCMODE): Likewise.
11135 (XCBITMAP): Likewise.
11136 (XCTREE): Likewise.
11137 (XCBBDEF): Likewise.
11138 (XCADVFLAGS): Likewise.
11139 (XCCSELIB): Likewise.
11140 (XC2EXP): Likewise.
11141 (INSN_UID): Likewise.
11142 (PREV_INSN): Likewise.
11143 (PATTERN): Likewise.
11144 (INSN_CODE): Likewise.
11145 (PUT_REG_NOTE_KIND): Likewise.
11146 (CODE_LABEL_NUMBER): Likewise.
11147 (NOTE_SOURCE_FILE): Likewise.
11148 (NOTE_BLOCK): Likewise.
11149 (NOTE_EH_HANDLER): Likewise.
11150 (NOTE_RANGE_INFO): Likewise.
11151 (NOTE_LIVE_INFO): Likewise.
11152 (NOTE_BASIC_BLOCK): Likewise.
11153 (NOTE_EXPECTED_VALUE): Likewise.
11154 (NOTE_LINE_NUMBER): Likewise.
11155 (LABEL_NAME): Likewise.
11156 (LABEL_NUSES): Likewise.
11157 (LABEL_ALTERNATE_NAME): Likewise.
11158 (ADDRESSOF_DECL): Likewise.
11159 (JUMP_LABEL): Likewise.
11160 (LABEL_NEXTREF): Likewise.
11162 (ORIGINAL_REGNO: Likewise.
11163 (HARD_REGISTER_NUM_P): Add parenthesis.
11164 (SUBREG_REG): Whitespace.
11165 (SUBREG_BYTE): Likewise.
11166 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
11167 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
11168 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
11169 (ASM_OPERANDS_INPUT_VEC): Likewise.
11170 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
11171 (ASM_OPERANDS_INPUT): Likewise.
11172 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
11173 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
11174 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
11175 (ASM_OPERANDS_INPUT_MODE): Likewise.
11176 (ASM_OPERANDS_SOURCE_FILE): Likewise.
11177 (ASM_OPERANDS_SOURCE_LINE): Likewise.
11178 (MEM_SET_IN_STRUCT_P): Minor reformat.
11179 (TRAP_CONDITION): Whitespace.
11180 (TRAP_CODE): Likewise.
11181 (COND_EXEC_TEST): Likewise.
11182 (COND_EXEC_CODE): Likewise.
11183 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
11184 (PHI_NODE_P): Add parenthesis.
11185 (plus_constant): Whitespace and add parenthesis.
11187 2002-01-03 Kazu Hirata <kazu@hxi.com>
11189 * config/avr/avr.c: Fix comment typos.
11190 * config/c4x/c4x.md: Likewise.
11191 * config/dsp16xx/dsp16xx.h: Likewise.
11192 * config/dsp16xx/dsp16xx.md: Likewise.
11193 * config/i386/i386.md: Likewise.
11194 * config/ia64/ia64.c: Likewise.
11195 * config/m32r/m32r.h: Likewise.
11196 * config/m68hc11/m68hc11.md: Likewise.
11197 * config/mmix/mmix.c: Likewise.
11198 * config/mn10200/mn10200.c: Likewise.
11199 * config/romp/romp.c: Likewise.
11200 * config/sh/sh.c: Likewise.
11201 * config/stormy16/stormy16.c: Likewise.
11202 * config/stormy16/stormy16.h: Likewise.
11203 * config/stormy16/stormy16.md: Likewise.
11205 2002-01-03 Graham Stott <grahams@redhat.com>
11207 * loop.h: Update copyright date.
11208 (LOOP_MOVABLES): Fix typo.
11209 (LOOP_REGS): Likewise.
11210 (LOOP_IVS): Likewise.
11212 2002-01-03 Graham Stott <grahams@redhat.com>
11214 * cppinit.c: Update copyright date.
11215 Don't include output.h
11216 * Makefile.in: Update copyright date.
11219 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
11222 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
11223 (-pthread) Add to RS/6000 options.
11225 2002-01-02 Kazu Hirata <kazu@hxi.com>
11227 * except.c: Fix comment typos.
11228 * loop.c: Likewise.
11229 * varasm.c: Likewise.
11230 * doc/tm.texi: Fix a typo.
11232 2002-01-02 Jakub Jelinek <jakub@redhat.com>
11234 * c-typeck.c (output_init_element): Allow initializing static storage
11235 duration objects with compound literals.
11237 2002-01-02 Richard Henderson <rth@redhat.com>
11239 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
11242 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11244 * gcc.c (default_compilers): Const-ify.
11245 * mips-tdump.c (stab_names): Likewise.
11246 * mips-tfile.c (map_coff_types, map_coff_storage,
11247 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
11248 pseudo_ops_t, pseudo_ops): Likewise.
11249 * protoize.c (default_include): Likewise
11251 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
11252 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
11253 Add array size in declaration.
11254 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
11255 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
11256 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
11257 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
11258 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
11259 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
11260 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
11261 emtens, make_nan): Const-ify.
11262 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
11263 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
11265 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
11267 * config.gcc (ia64-*-*): Set extra_headers.
11268 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
11269 * config/alpha/t-osf: Remove.
11270 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
11272 2002-01-02 David Edelsohn <edelsohn@gnu.org>
11274 * config/rs6000/t-aix43: Revert previous change.
11276 2002-01-02 Jason Merrill <jason@redhat.com>
11278 * c-decl.c (c_expand_body): Call outlining_inline_function when
11279 emitting an inline function out of line.
11281 2002-01-02 Richard Henderson <rth@redhat.com>
11283 * dwarf2out.c (limbo_die_node): Add created_for member.
11284 (new_die): New argument created_for. Update all callers.
11285 (mark_limbo_die_list): New.
11286 (dwarf2out_init): Register limbo_die_list as a root.
11287 (dwarf2out_finish): Force insert limbo dies into their function
11290 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
11293 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
11295 2002-01-02 Kazu Hirata <kazu@hxi.com>
11297 * config/h8300/fixunssfsi.c: Update copyright.
11300 * config/h8300/h8300.c: Update copyright.
11301 Eliminate warnings.
11303 2002-01-02 Kazu Hirata <kazu@hxi.com>
11305 * config/romp/romp.c: Fix comment formatting.
11306 * config/romp/romp.h: Likewise.
11307 * config/romp/romp.md: Likewise.
11308 * config/s390/s390.c: Likewise.
11309 * config/stormy16/stormy16.c: Likewise.
11310 * config/stormy16/stormy16.h: Likewise.
11312 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
11314 * c-common.h (genrtl_expr_stmt_value): Declare.
11315 * c-semantics.c (genrtl_goto_stmt): Redirect to...
11316 (genrtl_goto_stmt_value): ... this new function. Pass new
11317 argument down to expand_expr_stmt_value, taking
11318 TREE_ADDRESSABLE into account.
11319 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
11320 STMT_EXPR as addressable, i.e., one whose result we want.
11321 * expr.c (expand_expr): Don't save expression statement value
11322 of labeled_blocks or loop_exprs.
11323 * stmt.c (expand_expr_stmt): Redirect to...
11324 (expand_expr_stmt_value): ... this new function. Use new
11325 argument to tell whether to save expression value.
11326 (expand_end_stmt_expr): Reset last_expr_type and
11327 last_expr_value if we don't have either.
11328 * tree-inline.c (declare_return_variable): Mark its use
11329 statement as addressable.
11330 * tree.h: Document new use of TREE_ADDRESSABLE.
11331 (expand_expr_stmt_value): Declare.
11333 2002-01-01 Tom Rix <trix@redhat.com>
11335 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
11336 rs6000_emit_allocate_stack.
11338 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
11340 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
11341 ${srcdir}/ginclude/ to every entry in extra_headers.
11342 * configure: Regenerate.
11343 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
11344 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
11345 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
11346 * ginclude/proto.h: Rename to config/convex/proto.h.
11348 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11350 * attribs.c (handle_vector_size_attribute): Use host_integerp
11351 and tree_int_cst; remove warnings.
11352 * caller-save.c (insert_restore): Add cast to get rid of warning.
11353 (insert_save): Likewise.
11354 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
11355 * regmove.c (find_matches): Add temporary var to kill a warning.
11357 2002-01-01 Douglas B Rupp <rupp@gnat.com>
11359 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
11360 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
11361 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
11362 (vms-dwarf2eh.o): Add Makefile rule.
11363 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
11364 * config/alpha/vms-dwarf2eh.asm: New file.
11366 * gcc.c (delete_if_ordinary): Delete all versions.
11368 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
11370 * config/mmix/mmix.md: Update FIXME to not mention
11372 (MMIX_rJ_REGNUM): New define_constants constant.
11373 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
11374 "*movdicc_real"): Adjust contraints formatting.
11375 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
11376 for branch prediction.
11377 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
11379 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
11380 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
11381 number. Delete related FIXMEs.
11382 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
11383 from number to MMIX_rJ_REGNUM.
11384 (TARGET_MASK_BRANCH_PREDICT): New.
11385 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
11386 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
11387 value. Add -mbranch-predict and -mno-branch-predict.
11388 (TARGET_VERSION): Drop date.
11389 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
11390 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
11391 for finding out global symbols.
11392 (mmix_asm_output_labelref): Revert condition for global symbol.
11393 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
11394 (mmix_print_operand_punct_valid_p): A '+' is valid.
11396 See ChangeLog.6 for earlier changes.