1 2002-04-24 Richard Henderson <rth@redhat.com>
4 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
7 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
9 * sh.c (sh_va_arg): If argument was passed by reference,
10 dereference the pointer.
12 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
14 * sh.md (divsi3_i4_media): Use match_operand for input values
15 rather than hard registers.
16 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
17 unnecessarily through hard registers. Keep copies of pseudo
18 registers outside of the libcall sequence.
20 * sh.md (casesi_shift_media): Add modes.
22 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
25 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
27 * attribs.c (c_common_attribute_table): Move table and handlers
29 (format_attribute_table, lang_attribute_table,
30 lang_attribute_common): Remove.
31 (init_attributes): Replace NULL pointers with pointers to the
33 (handle_packed_attribute, handle_nocommon_attribute,
34 handle_common_attribute, handle_noreturn_attribute,
35 handle_noinline_attribute, handle_always_inline_attribute,
36 handle_used_attribute, handle_unused_attribute,
37 handle_const_attribute, handle_transparent_union_attribute,
38 handle_constructor_attribute, handle_destructor_attribute,
39 handle_mode_attribute, handle_section_attribute,
40 handle_aligned_attribute, handle_weak_attribute,
41 handle_alias_attribute, handle_visibility_attribute,
42 handle_no_instrument_function_attribute, handle_malloc_attribute,
43 handle_no_limit_stack_attribute, handle_pure_attribute,
44 handle_deprecated_attribute, handle_vector_size_attribute,
45 vector_size_helper): Move to c-common.c.
46 * c-common.c (c_common_attribute_table,
47 handle_packed_attribute, handle_nocommon_attribute,
48 handle_common_attribute, handle_noreturn_attribute,
49 handle_noinline_attribute, handle_always_inline_attribute,
50 handle_used_attribute, handle_unused_attribute,
51 handle_const_attribute, handle_transparent_union_attribute,
52 handle_constructor_attribute, handle_destructor_attribute,
53 handle_mode_attribute, handle_section_attribute,
54 handle_aligned_attribute, handle_weak_attribute,
55 handle_alias_attribute, handle_visibility_attribute,
56 handle_no_instrument_function_attribute, handle_malloc_attribute,
57 handle_no_limit_stack_attribute, handle_pure_attribute,
58 handle_deprecated_attribute, handle_vector_size_attribute,
59 vector_size_helper): Move from attribs.c.
60 * c-common.h (c_common_attribute_table,
61 c_common_format_attribute_table): New.
62 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
63 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
64 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
65 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
66 (LANG_HOOKS_INITIALIZER): Update.
67 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
68 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
69 * target.h: Update comment.
70 * tree.c (default_target_attribute_table): Remove.
71 * tree.h (default_target_attribute_table, format_attribute_table,
72 lang_attribute_table, lang_attribute_common): Remove.
74 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
75 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
77 2002-04-24 Jason Merrill <jason@redhat.com>
79 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
80 * dwarf2out.c (dwarf_attr_name): Support it.
81 (gen_array_type_die): Emit it.
82 (lookup_type_die): No special handling for VECTOR_TYPE.
83 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
85 2002-04-24 Richard Henderson <rth@redhat.com>
87 * config/mips/mips.md (movdi_usd): Renumber.
89 2002-04-24 David S. Miller <davem@redhat.com>
92 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
93 32-bit Sparc and current_function_returns_struct is true.
95 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
97 * loop.c (canonicalize_condition): Use gen_int_mode.
99 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
101 * config/rs6000/altivec.h: Cleanup file. Add non individual
145 (vec_lde): Add vector float variant.
150 (vec_vmhaddshs): New.
172 (vec_vmladduhm): New.
173 (vec_vmhraddshs): New.
206 (vec_vrsqrtefp): New.
258 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
261 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
262 added literals from substracted literals.
263 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
264 (fold) [associate]: Preserve MINUS_EXPR if needed.
266 2002-04-23 Zack Weinberg <zack@codesourcery.com>
268 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
271 2002-04-23 Tom Tromey <tromey@redhat.com>
273 * gcc.c: Added --resource. For PR java/6314.
275 2002-04-23 David O'Brien <obrien@FreeBSD.org>
277 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
278 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
281 2002-04-23 David O'Brien <obrien@FreeBSD.org>
283 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
285 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
287 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
289 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
290 (ix86_expand_clrstr): Fix typo.
291 * loop.c (gen_load_of_final_value): New.
292 (loop_givs_rescan, strength_reduce, check_dbra_loop):
295 2002-04-23 Roger Sayle <roger@eyesopen.com>
297 * builtins.c (builtin_memset_gen_str): New function.
298 (expand_builtin_memset): Optimize the case of constant length, but
301 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
303 * config/rs6000/altivec.h (vec_step): Remove extraneous
305 (vec_ctu): Cast return.
307 2002-04-23 Alan Modra <amodra@bigpond.net.au>
310 * function.h: (struct function): Add profile_label_no field.
311 (current_function_profile_label_no): Define.
312 * function.c: (profile_label_no): New static var.
313 (expand_function_start): Increment it, and copy to
314 current_function_profile_label_no.
315 * output.h (profile_label_no): Delete.
316 * final.c (profile_label_no): Delete.
317 (profile_function): Use current_function_profile_label_no.
318 (final_end_function): Don't increment profile_label_no here.
319 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
320 profile_label_no with current_function_profile_label_no.
321 * config/pa/pa.c (current_function_number): Delete.
322 (pa_output_function_prologue): Don't output profile label here.
323 (hppa_profile_hook): Use label_no param rather than
324 current_function_number.
325 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
326 * config/pa/pa.h: .. here.
327 (FUNCTION_PROFILER): Output profile label here.
329 2002-04-22 Eric Christopher <echristo@redhat.com>
331 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
332 patch of 2002-04-09 due to binutils issues.
333 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
335 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
337 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
338 constraint to 'o' for m=r and r=m alternatives.
339 ("*movv8hi_internal1"): Same.
340 ("*movv16qi_internal1"): Same.
341 ("*movv4sf_internal1"): Same.
343 2002-04-22 Janis Johnson <janis187@us.ibm.com>
345 * rtl.h (RTX_FLAG): New macro.
346 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
347 * final.c (alter_subreg): Use macro to access rtx flag.
348 * integrate.c (copy_rtx_and_substitute): Use new access macro.
349 * print-rtl.c (print_rtx): Use new access macro.
351 * cse.c (insert): Check rtx code before accessing flag.
353 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
354 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
355 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
356 convert_const_symbol_ref, make_canonical, make_alternative_compare,
357 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
358 simplify_test_exp, optimize_attrs, simplify_by_exploding,
359 find_and_mark_used_attributes, unmark_used_attributes,
360 add_values_to_cover, simplify_with_current_value,
361 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
362 copy_rtx_unchanging, main): Use new access macros.
364 2002-04-22 Tom Rix <trix@redhat.com>
366 * expmed.c (init_expmed): Generate shifted constant once.
368 2002-04-22 Zack Weinberg <zack@codesourcery.com>
370 * c-lex.c (lex_charconst): Call convert to get constant in
371 proper type; don't just smash the type field.
374 * config.gcc: Add list of obsolete configurations. Disallow
375 building these without --enable-obsolete.
376 * doc/install.texi: Document --enable-obsolete and obsoletion
377 policy. Mention obsoletion of individual targets in
380 2002-04-22 Richard Henderson <rth@redhat.com>
382 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
384 2002-04-22 Mark Mitchell <mark@codesourcery.com>
387 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
388 (walk_fixup_memory_subreg): Likewise.
389 (fixup_var_refs_insn): Adjust accordingly.
390 (fixup_var_refs_1): Likewise.
392 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
394 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
395 LIBPATH_ARCH64_SPEC): Define.
396 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
397 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
398 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
399 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
401 2002-04-22 Joel Sherrill <joel@OARcorp.com>
403 * gthr-rtems.h: Correct prototypes to remove warnings.
405 2002-04-22 Richard Henderson <rth@redhat.com>
408 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
410 * gcse.c (free_insn_expr_list_list): New.
411 (clear_modify_mem_tables): Use it. Fix bit set usage.
412 (canon_list_insert): Use EXPR_LISTs for expressions.
413 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
415 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
417 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
418 file change and include code to _cpp_pop_buffer.
419 * cpphash.h (struct pending_option): Predeclare.
420 (struct cpp_reader): New member next_include_file.
421 (_cpp_pop_file_buffer): Update.
422 (_cpp_push_next_buffer): Update, rename.
423 * cppinit.c (cpp_destroy): Free include chain and pending here.
424 (cpp_finish_options): Simplify.
425 (_cpp_push_next_buffer): Rename and clean up.
426 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
428 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
430 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
432 * config/rs6000/altivec.h (vec_xor): Add variant for both args
433 being vector signed int.
435 (vec_xor): Add variant for both args being vector signed char.
436 Remove redundant variant.
439 2002-04-21 David S. Miller <davem@redhat.com>
441 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
442 compare mode in output RTL.
444 2002-04-22 David Edelsohn <edelsohn@gnu.org>
446 * config/rs6000/rs6000.c (rs6000_override_options): Correct
447 style and formatting of previous patch.
449 2002-04-22 Alan Modra <amodra@bigpond.net.au>
451 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
452 flag_pic for ABI_AIX.
454 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
456 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
457 * cppfiles.c (read_include_file): Similarly.
458 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
459 uxstrdup ustrchr, ufputs): Similarly.
460 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
461 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
462 cpp_ideq, parse_identifier, parse_number): Similarly.
463 * cpplib.c (struct directive, dequote_string, D, run_directive,
464 cpp_push_buffer): Similarly.
465 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
466 _cpp_create_definition, check_trad_stringification,
467 cpp_macro_definition): Similarly.
469 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
471 * cppmacro.c (funlike_invocation_p): Don't step back
474 2002-04-21 David Edelsohn <edelsohn@gnu.org>
476 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
479 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
481 * doc/invoke.texi: Remove Chill references.
482 * doc/gcc.texi: Update last modified date.
484 2002-04-20 Kazu Hirata <kazu@hxi.com>
486 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
487 push and pop. Replace add.l with add.w.
489 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
491 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
492 multiply instructions for H8/300H case.
494 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
496 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
497 Bum three instructions from each routine.
499 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
501 * Makefile.in: Update.
502 * decl.c (push_c_function_context, pop_c_function_context,
503 mark_c_function_context): Rename for consistency.
504 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
505 * c-tree.h (push_c_function_context, pop_c_function_context,
506 mark_c_function_context): Rename for consistency.
507 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
508 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
509 * function.c (init_lang_status, save_lang_status,
510 restore_lang_status, mark_lang_status, free_lang_status):
512 (push_function_context_to, pop_function_context_from,
513 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
515 * function.h (init_lang_status, save_lang_status,
516 restore_lang_status, mark_lang_status, free_lang_status):
518 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
519 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
520 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
521 LANG_HOOKS_FUNCTION_INITIALIZER): New.
522 (LANG_HOOKS_INITIALIZER): Update.
523 (lhd_do_nothing_f): New.
524 * langhooks.h (struct lang_hooks_for_functions): New.
525 (struct lang_hooks): New hooks.
526 * langhooks.c (lhd_do_nothing_f): New.
528 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
529 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
531 2002-04-19 David S. Miller <davem@redhat.com>
533 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
534 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
536 2002-04-19 Jakub Jelinek <jakub@redhat.com>
539 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
540 x = ((int) y < 0) ? cst1 : cst2.
542 2002-04-19 Jakub Jelinek <jakub@redhat.com>
545 * function.c: Reapply patch for c/6358.
546 (expand_function_end): Copy decl_rtl's mode, not
547 current_function_return_rtx mode.
549 2002-04-19 Joel Sherrill <joel@OARcorp.com>
551 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
554 2002-04-19 Tom Tromey <tromey@redhat.com>
556 * doc/install.texi (Specific): Update status of Solaris 2.8.
559 2002-04-19 Andreas Schwab <schwab@suse.de>
561 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
562 (PUT_REAL): Restore old definition.
564 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
565 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
567 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
568 binutils 2.11.2 and higher generate smaller binaries than Sun's
571 2002-04-19 Mark Mitchell <mark@codesourcery.com>
574 * toplev.c (rest_of_compilation): Do not defer functions for which
575 TREE_SYMBOL_REFERENCED has already been set.
577 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
579 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
582 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
584 * builtins.c: Include langhooks.h.
585 (lang_type_promotes_to): Remove.
586 (expand_builtin_va_arg): Use new hook.
587 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
588 (simple_type_promotes_to): Move to c-typeck.c.
589 * c-common.h (simple_type_promotes_to): Remove.
590 * c-decl.c (duplicate_decls, grokdeclarator): Update.
591 * c-format.c: Include langhooks.h.
592 (check_format_types): Update.
593 * c-tree.h (c_type_promotes_to): New.
594 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
595 (type_lists_compatible_p): Update.
596 * langhooks-def.h (lhd_type_promotes_to): New.
597 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
598 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
599 * langhooks.c (lhd_type_promotes_to): New.
600 * langhooks.h (struct lang_hooks_for_types): New hook.
601 * tree.h (lang_type_promotes_to): Remove.
603 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
605 2002-04-18 Richard Henderson <rth@redhat.com>
607 * function.c: Revert patch for c/6358.
609 2002-04-18 Richard Henderson <rth@redhat.com>
611 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
612 blocks. Handle multiple references to the TRAP block. Handle
613 non-adjacent THEN and OTHER blocks.
615 2002-04-18 Richard Henderson <rth@redhat.com>
617 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
618 crash with no type for by-mode libcalls.
620 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
622 2002-04-18 Bob Wilson <bob.wilson@acm.org>
624 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
625 __xtensa_nonlocal_goto): Use a syscall instructions to flush
626 the register windows.
628 2002-04-18 Zack Weinberg <zack@codesourcery.com>
630 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
631 appropriate. Document need for extended precision even when
632 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
633 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
634 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
635 instead of relying on later syntax error when REAL_WIDTH > 5.
636 * real.c: Define NE based only on whether or not we have a
637 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
638 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
639 define GET_REAL and PUT_REAL as simple memcpy operations; no
640 need to byteswap or round.
641 Use #error instead of #ifdef-ing out the entire file, for
642 prompt error detection.
644 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
646 2002-04-18 David S. Miller <davem@redhat.com>
648 * config/sparc/sparc.h (BRANCH_COST): Define.
650 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
653 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
655 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
656 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
657 propagate_block calls after relaxation loop using new variable
658 stabilized_prop_flags.
660 2002-04-18 Richard Henderson <rth@redhat.com>
662 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
663 (ia64_va_arg): Expect variable sized types by reference.
664 * config/ia64/ia64-protos.h: Update.
665 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
666 ia64_function_arg_pass_by_reference.
668 2002-04-18 Richard Henderson <rth@redhat.com>
670 * ifcvt.c: Include except.h.
671 (block_has_only_trap): Break out from find_cond_trap.
672 (find_cond_trap): Use it. Always delete the trap block.
673 (merge_if_block): Allow then block null. Be less simplistic about
674 what insns can end a block.
675 * Makefile.in (ifcvt.o): Depend on except.h.
677 * config/ia64/ia64.md (trap, conditional_trap): New.
679 2002-04-18 Jakub Jelinek <jakub@redhat.com>
682 * function.c (assign_parms): Assign hard current_function_return_rtx
684 (expand_function_end): ...not here.
686 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
688 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
689 * c-tree.h (c_incomplete_type_error): New.
690 * c-typeck.c (require_complete_type, build_component_ref): Update.
691 (incomplete_type_error): Rename.
692 * langhooks-def.h (lhd_incomplete_type_error): New.
693 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
694 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
695 * langhooks.c (lhd_incomplete_type_error): New.
696 * langhooks.h (struct lang_hooks_for_types): New hook.
697 * tree.c (size_in_bytes): Use new hook.
698 * tree.h (incomplete_type_error): Remove.
700 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
702 2002-04-18 Zack Weinberg <zack@codesourcery.com>
704 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
705 TARGET_FLOAT_FORMAT blocks.
707 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
709 * doc/install.texi (Downloading the source): Do not mention Chill
710 any longer, but mention Ada.
711 (Configuration): Do not mention Chill any longer.
713 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
715 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
717 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
719 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
722 2002-04-18 Jakub Jelinek <jakub@redhat.com>
724 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
725 instead of unsigned_type.
727 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
729 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
730 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
733 2002-04-18 Bernd Schmidt <bernds@redhat.com>
735 * attribs.c (vector_type_node_list): New static variable.
736 (handle_vector_size_attribute): Use it to avoid generating a
737 new type node each time we are called.
739 * combine.c (subst): Avoid trying to make a vector mode subreg of
741 (gen_lowpart_for_combine): Likewise.
743 2002-04-18 Roger Sayle <roger@eyesopen.com>
744 Jakub Jelinek <jakub@redhat.com>
746 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
747 for integer constant c (if x has unsigned type or sign bit is not
748 set in c). This folds the zero/sign extension into the bit-wise and
751 2002-04-18 Jakub Jelinek <jakub@redhat.com>
754 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
757 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
759 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
761 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
763 * gcc.c (read_specs): Detect and fail if an attempt is made to
764 rename a spec string to an already existing string.
766 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
768 * config/s390/s390.c (legitimize_pic_address): Do not generate
769 illegal address constant without CONST.
771 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
773 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
774 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
776 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
779 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
780 to make sure previous reloads are taken into account. Generate
781 better code if one operand is an in-range immediate constant.
783 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
785 * doc/install.texi (Building): libgcj requires GNU make.
787 2002-04-17 Jakub Jelinek <jakub@redhat.com>
790 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
791 even if hard quad and register is not floating.
792 (movtf reg<-mem split): Disallow splitting if hard quad and
793 register is floating.
794 (movtf mem<-reg split): Likewise.
795 * config/sparc/sparc.c (fp_register_operand): New predicate.
796 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
798 2002-04-17 Zack Weinberg <zack@codesourcery.com>
800 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
801 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
802 (unprotoize.o): Ditto. Build from protoize.c. Define
803 UNPROTOIZE on command line.
804 * protoize.c: Include cppdefault.h. Delete include_defaults.
805 (in_system_include_dir): Use cpp_include_defaults (defined in
807 * unprotoize.c: Delete file.
809 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
811 * config/rs6000/altivec.h (vec_ld): Add array variants.
815 2002-04-17 Alan Matsuoka <alanm@redhat.com>
816 Aldy Hernandez <aldyh@redhat.com>
818 * config/rs6000/altivec.h: Define __ALTIVEC__.
825 Add parentheses to all macro arguments.
827 2002-04-16 Richard Henderson <rth@redhat.com>
830 * except.c (remove_eh_handler): Insert inner regions at beginning
831 of sibling chain. Refactor expressions.
833 2002-04-16 Richard Henderson <rth@redhat.com>
835 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
836 * config/sparc/sol2-gas-bi.h: New file.
837 * config.gcc (sparc*-solaris): Add it as needed.
838 * configure.in (AS_SPARC64_FLAG): Remove check.
839 * config.in, configure: Regenerate.
841 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
843 2002-04-16 Richard Henderson <rth@redhat.com>
845 * config/mips/mips.c (override_options): Don't override N32 for
849 * config/mips/mips.md (can_delay): Split out of existing define_delays.
850 (HILO_delay): Set can_delay false.
852 2002-04-16 Dale Johannesen <dalej@apple.com>
854 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
855 instruction addresses.
856 (rs6000_output_function_epilogue): Likewise.
858 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
860 * c-parse.in (poplevel, compstmt_start,
861 compstmt_primary_start): Add ending ';', in accordance
864 2002-04-16 Richard Henderson <rth@redhat.com>
866 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
867 Adjust tm_file order to get TARGET_DEFAULT set properly.
868 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
869 * doc/install.texi (sparc-solaris): Update.
871 2002-04-16 Dale Johannesen <dalej@apple.com>
873 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
874 comparison operands do not match each other or if modes of
875 conditions do not match result.
877 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
880 * config/s390/s390.md (mulsidi3): Set both subregs of the
883 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
885 * config/rs6000/altivec.h (vec_addc): Type check.
887 2002-04-16 Jakub Jelinek <jakub@redhat.com>
890 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
892 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
894 2002-04-15 Richard Henderson <rth@redhat.com>
896 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
897 call_really_used_regs too.
899 2002-04-15 Richard Henderson <rth@redhat.com>
901 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
903 2002-04-15 David S. Miller <davem@redhat.com>
905 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
908 2002-04-16 Jakub Jelinek <jakub@redhat.com>
911 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
912 CONST_VECTOR is { 0, ... 0 }.
914 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
916 * doc/install.texi (Installing GCC: Configuration): Clarify
917 the only supported ways to configure gcc.
919 2002-04-15 Roland McGrath <roland@frob.com>
921 * config.gcc (alpha*-*-gnu*): New target configuration.
922 * config/alpha/gnu.h: New file for it.
923 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
925 2002-04-16 Mark Mitchell <mark@codesourcery.com>
927 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
928 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
929 * tree.h (expand_start_stmt_expr): Update prototype.
930 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
931 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
932 on the STMT_EXPR created for the inline function.
934 2002-04-15 Richard Henderson <rth@redhat.com>
936 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
937 config/i386/linux-aout.h, config/i386/linux-oldld.h,
938 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
939 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
940 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
941 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
942 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
943 Define __gnu_linux__, not gnu_linux.
944 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
946 2002-04-15 Mark Mitchell <mark@codesourcery.com>
948 Remove Chill front end.
949 * gcc.c (default_compilers): Remove Chill entries.
950 * ch: Remove directory.
951 * doc/frontends.texi: Remove information about Chill.
952 * doc/sourcebuild.texi: Likewise.
953 * doc/standards.texi: Likewise.
955 2002-04-15 Douglas B Rupp <rupp@gnat.com>
957 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
958 (LONGLONG_STANDALONE): Define.
960 2002-04-15 David S. Miller <davem@redhat.com>
962 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
963 Call emit_library_call with LCT_NORMAL.
964 (sparc_initialize_trampoline): Use LCT_foo instead of
965 magic constant in emit_library_call invocations.
966 (sparc64_initialize_trampoline): Likewise.
967 (sparc_profile_hook): Likewise.
968 * config/sparc/sparc.md: Likewise.
970 * config/sparc/sparc.c (sparc_extra_constraint_check):
971 Fix type of argument 'c'.
972 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
975 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
977 * diagnostic.h (output_buffer_state): Redefine.
978 (output_format_decoder): New macro.
979 (output_prefixing_rule): Likewise.
980 (output_line_cutoff): Likewise.
981 (diagnostic_format_decoder): Adjust.
982 (diagnostic_prefixing_rule): Likewise.
983 (diagnostic_line_cutoff): Likewise.
984 (diagnostic_state): Likewise.
985 (diagnostic_kind_count): Likewise.
986 (diagnostic_buffer): Now a macro.
988 * diagnostic.c (diagnostic_buffer): Remove definition.
989 (output_is_line_wrapping): Adjust.
990 (set_real_maximum_length): Likewise.
991 (output_set_maximum_length): Likewise.
992 (init_output_buffer): Likewise.
993 (lhd_print_error_function): Likewise.
994 (output_do_verbatim): Likewise.
996 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
998 * cpperror.c (print_location): Don't print include chain
1000 (cpp_begin_message): Update to use DL_ macros.
1001 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1002 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1003 cpp_notice, cpp_notice_from_errno): Remove.
1004 (cpp_error, cpp_error_with_line): Update to take a diagnostic
1007 * cppexp.c (CPP_ICE): Remove.
1008 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
1009 lex, integer_overflow, _cpp_parse_expr): Update.
1010 * cppfiles.c (read_include_file, find_include_file,
1011 handle_missing_header, _cpp_read_file, remap_filename): Update.
1012 * cpphash.h (enum error_type): Remove.
1013 (_cpp_begin_message): Update.
1014 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
1015 cpp_handle_option, cpp_post_options): Update.
1016 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
1017 skip_whitespace, parse_identifier, parse_slow, parse_string,
1018 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
1019 cpp_interpret_charconst): Update.
1020 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
1021 lex_macro_node, do_undef, glue_header_name, parse_include,
1022 do_include_common, read_flag, do_line, do_linemarker, do_ident,
1023 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
1024 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
1025 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
1026 _cpp_pop_buffer, do_diagnostic): Update.
1027 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
1028 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
1029 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1030 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1031 cpp_notice, cpp_notice_from_errno): Remove.
1032 (cpp_error, cpp_error_with_line): Update to take a diagnostic
1035 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
1036 collect_args, enter_macro_context, save_parameter, parse_params,
1037 _cpp_create_definition, check_trad_stringification,
1038 cpp_macro_definition): Update.
1039 * cppmain.c (cpp_preprocess_file): Update.
1040 * fix-header.c (read_scan_file): Update.
1042 2002-04-14 Andreas Schwab <schwab@suse.de>
1044 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
1046 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1048 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
1050 2002-04-13 Mark Mitchell <mark@codesourcery.com>
1052 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
1055 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
1057 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
1059 2002-04-13 Joel Sherrill <joel@OARcorp.com>
1061 * config/sparc/t-elf: Enable v8 multilibs. Impacts
1062 sparc-elf and sparc-rtems targets.
1064 2002-04-13 Mark Mitchell <mark@codesourcery.com>
1066 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
1067 defined, and __gnu_hurd__ wherever __GNU__ is defined.
1068 * arm/linux-elf.h: Likewise.
1069 * cris/aout.h: Likewise.
1070 * cris/linux.h: Likewise.
1071 * i370/linux.h: Likewise.
1072 * i386/gnu.h: Likewise.
1073 * i386/linux-aout.h: Likewise.
1074 * i386/linux-oldld.h: Likewise.
1075 * i386/linux.h: Likewise.
1076 * i386/linux64.h: Likewise.
1077 * ia64/linux.h: Likewise.
1078 * m68k/linux-aout.h: Likewise.
1079 * m68k/linux.h: Likewise.
1080 * mips/linux.h: Likewise.
1081 * pa/pa-linux.h: Likewise.
1082 * pj/linux.h: Likewise.
1083 * rs6000/sysv4.h: Likewise.
1084 * s390/linux.h: Likewise.
1085 * sh/linux.h: Likewise.
1086 * sparc/linux-aout.h: Likewise.
1087 * sparc/linux.h: Likewise.
1088 * sparc/linux64.h: Likewise.
1089 * xtensa/linux.h: Likewise.
1091 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
1093 * stmt.c (check_unique_operand_names): Expect operand names to
1094 be strings rather than identifiers. Use simple_cst_equal to
1096 (resolve_operand_name_1): Make same identifier to string change here.
1097 * c-parse.in (asm_operand): Convert a named operand into a string.
1098 * cp/parse.y (asm_operand): Likewise.
1100 2002-04-13 Andreas Schwab <schwab@suse.de>
1102 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
1104 2002-04-12 Mark Mitchell <mark@codesourcery.com>
1106 Revert these changes:
1108 2002-04-06 Mark Mitchell <mark@codesourcery.com>
1111 * stor-layout.c (layout_decl): Reset the RTL for the decl.
1113 2002-04-12 Richard Henderson <rth@redhat.com>
1115 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
1116 (sparc*-*-solaris): Clean up header files.
1117 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
1118 and plan on generating 64-bit code.
1119 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
1120 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
1121 * config/sparc/sol2-sld-64.h: Rename ...
1122 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
1123 for AS_SPARC64_FLAG not defined.
1124 * config/sparc/sol2-gld-bi.h: New.
1125 * config/sparc/sol2-sld.h: Remove.
1126 * config/sparc/sol26-sld.h: New.
1127 * config/sparc/sol2.h: Tidy comments.
1128 * doc/install.texi: Document sparc-solaris configury changes.
1130 2002-04-12 Richard Henderson <rth@redhat.com>
1132 * recog.c (offsettable_address_p): Match the logic in adjust_address.
1134 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
1135 in 64-bit mode only. Use only for 32-bit or MEDLOW.
1137 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1139 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
1141 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
1143 * pa.c (pa_can_combine_p): Call extract_insn before calling
1146 2002-04-12 Douglas B Rupp <rupp@gnat.com>
1148 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
1149 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
1150 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
1151 (CPP_PREDEFINES): Handle __declspec.
1152 * config/i386/t-interix (USER_H): Remove.
1154 2002-04-12 DJ Delorie <dj@redhat.com>
1156 * integrate.c (compare_blocks): Make comparisons safe for when
1157 sizeof(int) < sizeof(char *).
1158 (find_block): Likewise.
1160 2002-04-12 Jan Hubicka <jh@suse.cz>
1161 David Edelsohn <edelsohn@gnu.org>
1163 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
1165 (symbol_ref_operand): New.
1166 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
1167 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
1169 2002-04-12 Andreas Schwab <schwab@suse.de>
1171 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
1172 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
1173 overrides the definition in config/svr4.h.
1175 2002-04-12 Eric Norum <eric.norum@usask.ca>
1177 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
1178 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
1179 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
1180 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
1181 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
1182 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
1183 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
1184 definitions to config/rtems.h and make the targets more similar.
1186 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1188 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
1189 POINTERS_EXTEND_UNSIGNED.
1190 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
1191 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
1193 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
1196 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
1198 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
1199 depends on TARGET_SHMEDIA, not TARGET_SH5.
1201 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
1203 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
1204 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
1206 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
1208 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
1211 2002-04-12 Andreas Schwab <schwab@suse.de>
1213 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
1215 2002-04-12 Richard Henderson <rth@redhat.com>
1218 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
1220 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
1221 modes spanning multiple hard regs.
1223 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
1225 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1227 * pa.c (pa_output_function_prologue): Don't accumulate the total
1228 number of code bytes when using TARGET_64BIT, or gas, SOM and not
1229 the portable runtime.
1230 (output_deferred_plabels): Handle 64bit plabels.
1231 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
1232 generating pic code using the GAS assembler for object formats that
1233 are not SOM (ie., ELF32 and ELF64).
1234 (output_millicode_call): Check attribute type if attribute length is 28.
1235 Likewise use $PIC_pcrel$0. Only call get_attr_length and
1236 dbr_sequence_length once.
1237 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
1238 dbr_sequence_length once.
1239 * pa.h (TARGET_SOM): Define if not defined.
1240 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
1241 with GAS and not SOM.
1242 (jump, call_internal_reg, call_value_internal_reg): Likewise.
1243 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
1245 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1247 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
1248 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
1249 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
1250 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
1251 elfos.h and dbxelf.h values are fine now.
1252 * config/i386/freebsd.h, config/alpha/freebsd.h
1253 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
1255 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1257 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
1258 or set Acpu or Amachine. Reformat.
1259 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1261 (LINK_SPEC): Do not need to undef.
1262 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
1263 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
1264 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1266 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
1267 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
1268 (LINK_SPEC): Do not need to undef.
1269 (DONT_USE_BUILTIN_SETJMP): Do not define.
1270 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
1271 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
1272 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
1273 Remove trailing spaces.
1274 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
1275 __ELF__, or set Acpu or Amachine. Reformat.
1276 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1279 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1281 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
1282 all other *-*-freebsd* targets.
1284 2002-04-11 Richard Henderson <rth@redhat.com>
1286 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
1288 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1290 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
1291 Include {cpu}/{cpu}.h thru tm_file.
1292 (alpha*-*-linux*ecoff): Remove target.
1293 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
1294 (LINK_SPEC): Remove, is not OS independent.
1295 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
1296 (LINK_SPEC): Do not need to #undef any longer.
1297 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
1299 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
1301 (LINK_SPEC): Moved here from alpha/elf.h.
1302 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
1304 * config/alpha/linux-ecoff.h: Remove.
1305 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
1306 (CPP_SPEC): Define _POSIX_SOURCE as needed.
1307 (CPP_SUBTARGET_SPEC): Do not define.
1308 (LINK_SPEC): Do not need to #undef any longer.
1309 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
1310 * config/alpha/vms.h: Likewise.
1312 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
1314 * doc/extend.texi: Remove old claim that typedefs cannot have
1315 an alignment attribute.
1317 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1319 PR optimization/6177
1320 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
1321 bitpos is 0 and bitsize CONCAT size.
1323 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1326 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
1328 2002-04-10 David O'Brien <obrien@FreeBSD.org>
1330 * config/alpha/freebsd.h: Minor reformatting.
1331 (CPP_SPEC): Define ELF and add cpp_subtarget.
1332 (ASM_SPEC): No longer needed.
1334 2002-04-11 Richard Henderson <rth@redhat.com>
1336 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
1337 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
1338 (dimode mem/zero splitter): New.
1340 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
1342 * config/cris/cris.c (cris_override_options): Tweak error message
1343 for PIC not implemented.
1345 * config/cris/cris.h: Tweak comments related to parameter-passing.
1347 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
1349 2002-04-10 Richard Henderson <rth@redhat.com>
1351 * except.c (add_ehl_entry): Allow duplicates after landing pad
1354 2002-04-10 David Edelsohn <edelsohn@gnu.org>
1356 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
1358 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
1360 * c-decl.c (c_init_decl_processing): Move generation of
1361 decls for g77_integer_type_node and friends from here ...
1362 * c-common.c (c_common_nodes_and_builtins): ... to here.
1364 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
1366 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
1367 is only used as frame pointer when frame_pointer_needed is true.
1369 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
1372 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
1373 for the fact that the pool entry uses two words.
1374 (movdf_hard_insn): Similarly. Also, ADR instruction can span
1376 (movdf_soft_insn): Similarly.
1377 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
1378 for the fact that the pool entry uses three words.
1380 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
1382 * config/mips/mips.c (mips_va_arg): When using the struct version
1383 of the EABI va_list, allow arguments in the register save area to
1384 take up less room than a stack argument.
1386 2002-04-10 Richard Henderson <rth@redhat.com>
1388 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
1389 if EXPAND_INITIALIZER.
1391 2002-04-09 Richard Henderson <rth@redhat.com>
1393 * config/alpha/alpha.md (movdi_er_maybe_g): New.
1394 * config/alpha/alpha.c (alpha_expand_mov): Use it.
1396 2002-04-10 Alan Modra <amodra@bigpond.net.au>
1398 PR optimization/6233
1399 * rtlanal.c (pure_call_p): New function.
1400 * rtl.h (pure_call_p): Declare.
1401 * loop.c (prescan_loop): Use it to set has_nonconst_call.
1402 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
1404 2002-04-09 Eric Christopher <echristo@redhat.com>
1406 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
1407 information to .comm directive.
1409 2002-04-09 Richard Henderson <rth@redhat.com>
1412 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
1414 2002-04-09 Richard Henderson <rth@redhat.com>
1416 * basic-block.h (flow_delete_block_noexpunge): Declare.
1417 (expunge_block_nocompact): Declare.
1418 * cfg.c (expunge_block_nocompact): Split out from ...
1419 (expunge_block): ... here.
1420 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
1421 (flow_delete_block_noexpunge): Split out from ...
1422 (flow_delete_block): ... here.
1423 * cfgcleanup.c (delete_unreachable_blocks): Compact while
1424 removing dead blocks.
1425 * except.c (exception_handler_labels): Remove.
1426 (exception_handler_label_map): New.
1427 (struct eh_region): Add aka member.
1428 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
1429 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
1430 (for_each_eh_label, for_each_eh_label_1): New.
1431 (init_eh): Register exception_handler_label_map.
1432 (free_eh_status): Use free_region.
1433 (find_exception_handler_labels): Use the map, not the list.
1434 (remove_exception_handler_label): Likewise.
1435 (maybe_remove_eh_handler): Likewise.
1436 (remove_eh_handler): Use the region aka bitmap.
1437 * except.h (exception_handler_labels): Remove.
1438 (for_each_eh_label): Declare.
1439 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
1440 * loop.c (invalidate_loops_containing_label): New.
1441 (find_and_verify_loops): Use it. Use for_each_eh_label.
1442 * sched-rgn.c (is_cfg_nonregular): Use
1443 current_function_has_exception_handlers.
1445 2002-04-09 Richard Henderson <rth@redhat.com>
1447 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
1448 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
1449 Do not return changed status.
1450 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
1451 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
1452 New functions that do return changed status.
1453 * sbitmap.h: Update decls.
1454 * gcse.c, lcm.c: Use _cg functions as needed.
1456 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1458 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
1459 (sh64-*-elf*, sh-*-rtemself*): Likewise.
1460 * config/sh/embed_bb.c: New file.
1461 * config/sh/embed-elf.h: New file.
1462 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
1463 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
1464 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1466 (SUBTARGET_CPP_PTR_SPEC): Don't define.
1467 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
1468 Add subtarget_asm_endian_spec.
1469 (ASM_SPEC): Use subtarget_asm_endian_spec.
1470 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
1471 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
1472 (WCHAR_UNSIGNED): Define.
1473 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
1474 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1475 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
1477 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
1478 (sh_adjust_cost): Likewise.
1479 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1481 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
1482 (WCHAR_TYPE_SIZE): Likewise.
1483 (ASM_SPEC): Use subtarget_asm_endian_spec.
1484 (SH_ELF_WCHAR_TYPE): #undef/ #define.
1485 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
1486 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
1487 (MAX_WCHAR_TYPE_SIZE): Don't #define .
1488 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
1489 (USER_LABEL_PREFIX): Don't #undef /#define .
1490 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1491 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
1492 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
1493 (ASM_SPEC): Likewise.
1494 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
1495 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
1496 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
1497 (LIB2FUNCS_EXTRA): Define.
1498 * t-sh64 (LIB2FUNCS_EXTRA): Define.
1499 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1500 (LIB1ASMFUNCS_CACHE): Define.
1501 (LIB2FUNCS_EXTRA): Redefine empty.
1503 2002-04-08 Richard Henderson <rth@redhat.com>
1505 * reorg.c (get_branch_condition): Use reversed_comparison_code.
1507 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1509 * config/m68hc11/larith.asm (__map_data_section): Fix condition
1510 and optimize for size.
1511 (__do_global_ctors): Fix pointer comparison.
1512 (__do_global_dtors): Likewise.
1514 2002-04-09 David S. Miller <davem@redhat.com>
1516 * config/sparc/sparc.c (sparc_extra_constraint_check): New
1517 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
1518 allow reloading pseudos.
1519 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1520 * config/sparc/sparc-protos.h: Declare it.
1522 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1523 unsigned comparison warning.
1524 (output_restore_regs): Mark leaf_function as unused.
1526 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1528 * expr.c (is_aligning_offset): New function.
1529 (expand_expr, case COMPONENT_EXPR): Call it.
1531 2002-04-08 David S. Miller <davem@redhat.com>
1534 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
1536 Make init_priority work on Sparc when using GNU ld.
1537 * config/sparc/linux.h, config/sparc/linux64.h,
1538 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
1539 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
1540 * config/sparc/sol2-gld.h: New file to do the same.
1541 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1542 sparc/sol2-gld.h to tm_file.
1544 PR optimization/4328
1545 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1546 * doc/md.texi: Document it.
1547 * config/sparc/sparc.md (movdi_insn_sp64_novis,
1548 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1549 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1550 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1551 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1553 2002-04-08 Andreas Jaeger <aj@suse.de>
1555 * stmt.c (expand_asm_operands): Revert last patch from Richard
1558 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1560 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1561 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
1563 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1565 * doc/contrib.texi (Contributors): Add David O'Brien.
1567 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1569 * configure.in (auto-build.h): Use target_alias and build_alias
1570 when running configure.
1571 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1572 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1573 * configure: Regenerate.
1575 2002-04-07 David S. Miller <davem@redhat.com>
1577 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1579 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
1582 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1583 generating 32-bit pic code.
1585 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
1587 * cppinit.c (cpp_create_reader): Initialize
1588 discard_comments_in_macro_exp.
1589 (COMMAND_LINE_OPTIONS): Add "-CC" option.
1590 (cpp_handle_option): Handle "-CC" option.
1591 * cpplex.c (save_comment): If saving a C++ comment in
1592 a directive, convert it to a C comment.
1593 (_cpp_lex_direct): Pass second comment start character to
1594 save_comment to indicate comment type.
1595 * cpplib.c (_cpp_handle_directive): If processing
1596 a "#define" directive and discard_comments_in_macro_exp
1597 is false, re-enable saving of comments.
1598 (lex_macro_node): If discard_comments_in_macro_exp is false,
1599 discard any comments before the macro identifier.
1600 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1602 * cppmacro.c (cpp_get_token): If expanding a macro while
1603 processing a directive, discard any comments we might encounter.
1604 (parse_params): If discard_comments_in_macro_exp is false,
1605 ignore comments in the macro parameter list.
1606 * gcc.c (cpp_unique_options): Add "-CC" option.
1607 (option_map): Map "--comments-in-macros" to "-CC".
1608 * doc/cppopts.texi: Document "-CC" option.
1609 * f/lang-specs.h: Add "-CC" option.
1610 * testsuite/gcc.dg/cpp/maccom1.c: New test.
1611 * testsuite/gcc.dg/cpp/maccom2.c: New test.
1612 * testsuite/gcc.dg/cpp/maccom3.c: New test.
1613 * testsuite/gcc.dg/cpp/maccom4.c: New test.
1614 * testsuite/gcc.dg/cpp/maccom5.c: New test.
1615 * testsuite/gcc.dg/cpp/maccom6.c: New test.
1617 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1620 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1622 2002-04-06 Mark Mitchell <mark@codesourcery.com>
1625 * stor-layout.c (layout_decl): Reset the RTL for the decl.
1628 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1629 RTX_UNCHANGING_P for the functions arguments when a tail call
1632 2002-04-06 Jason Merrill <jason@redhat.com>
1634 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1635 (parse_options_and_default_flags): Set them appropriately.
1636 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1638 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
1640 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1643 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1646 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1647 types come in by-reference. Fix typo in comment.
1649 2002-04-05 David S. Miller <davem@redhat.com>
1651 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1652 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1653 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1654 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1656 2002-04-05 David S. Miller <davem@redhat.com>
1658 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1659 are not going to emit return instructions, emit at least a nop
1660 for the sake of sane backtraces.
1662 2002-04-05 Richard Henderson <rth@redhat.com>
1664 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1666 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
1668 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1670 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
1672 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1673 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1674 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1676 2002-04-05 Andreas Schwab <schwab@suse.de>
1678 * c-convert.c: Include c-common.h.
1679 * Makefile.in (c-convert.o): Updated.
1681 2002-04-05 Jakub Jelinek <jakub@redhat.com>
1683 * mklibgcc.in: Use separate libgcc.map for each multilib.
1684 * Makefile.in (distclean): Don't remove libgcc.map here.
1686 2002-04-05 Jakub Jelinek <jakub@redhat.com>
1688 * Makefile.in (s-mlib): Handle --disable-multilib by separate
1689 genmultilib invocation.
1691 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
1693 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1694 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
1695 to num_gprs for symmetry.
1696 * config/mips/mips.c: Adjust accordingly.
1698 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
1700 * c-common.c (truthvalue_conversion): Rename, update.
1701 * c-common.h (c_common_truthvalue_conversion): New.
1702 * c-convert.c (convert): Update.
1703 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1704 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1705 * c-typeck.c (build_binary_op, build_unary_op,
1706 build_conditional_expr): Update.
1707 * fold-const.c (constant_boolean_node, fold): Use langhook.
1708 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1709 * langhooks.h (struct lang_hooks): New hook.
1710 * stmt.c (expand_decl_cleanup): Use langhook.
1711 * tree.h (truthvalue_conversion): Remove.
1713 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1715 2002-04-05 Alan Modra <amodra@bigpond.net.au>
1717 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1718 Add rules to make null object file.
1720 2002-04-04 Jim Blandy <jimb@redhat.com>
1722 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1723 macro formal parameter names.
1725 2002-04-04 David S. Miller <davem@redhat.com>
1727 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1729 2002-04-04 Richard Henderson <rth@redhat.com>
1732 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1733 Support copies into and out of memory. Don't accept allows_reg
1734 and allows_mem as gospel.
1736 2002-04-04 Richard Henderson <rth@redhat.com>
1739 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1740 (write_dependence_p): Likewise.
1742 2002-04-04 Richard Henderson <rth@redhat.com>
1744 * predict.c (estimate_bb_frequencies): Do frequency calculation
1745 with a volatile temporary.
1747 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
1749 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1751 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1754 * final.c (final_start_function): Don't bump profile_label_no here...
1755 (final_end_function): ...but here.
1757 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1759 * config/sparc/sparc.md (pic): New attribute.
1760 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1762 (split after do_builtin_setjmp_setup): New.
1764 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1767 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1770 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1772 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1773 UNITS_PER_WORD for zero sized aggregates.
1775 2002-04-03 David S. Miller <davem@redhat.com>
1777 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1778 one-character spec for this, just use %(link_gcc_c_sequence).
1780 2002-04-03 David S. Miller <davem@redhat.com>
1782 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1785 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
1787 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1788 (DWARF_FRAME_RETURN_COLUMN): Move.
1789 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1790 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1791 * pa.c (except.h, predict.h): Include.
1793 (store_reg_modify, set_reg_plus_d): Revise prototypes.
1794 (output_ascii): Add cast.
1795 (store_reg_modify): Revise to add frame notes.
1796 (set_reg_plus_d): Likewise.
1797 (compute_frame_size): Include space for eh data registers in frame if
1798 the current function calls eh_return.
1799 (hppa_expand_prologue): Ensure register %r2 is saved if the current
1800 function calls eh_return. Save eh data registers if the current
1801 function calls eh_return. Fix code to add frame notes. Emit
1802 blockage to prevent insns with frame notes being scheduled in the
1803 delay slot of calls.
1804 (hppa_expand_epilogue): Restore eh data registers and do final stack
1805 adjustment if the current function calls eh_return. Don't add frame
1807 (output_call): Revise for change in length of call insn. Don't do
1808 return pointer adjustment for an unconditional jump in the delay slot
1809 of a call when using frame notes.
1810 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1811 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1812 (ARG_POINTER_CFA_OFFSET): Define.
1813 * pa.md (return_external_pic): New pattern.
1814 (prologue): Correct formatting. Use return_external_pic if current
1815 function calls eh_return.
1816 (call_internal_symref, call_value_internal_symref,
1817 sibcall_internal_symref, sibcall_value_internal_symref): Change default
1818 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1820 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1822 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1823 list of targets to check using "nop" insn.
1824 * configure: Rebuilt.
1826 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1828 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1830 2002-04-03 David S. Miller <davem@redhat.com>
1832 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1833 library sequence passed to the linker.
1834 (LINK_COMMAND_SPEC): Use it.
1835 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1836 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1837 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1839 2002-04-03 Jason Merrill <jason@redhat.com>
1841 * except.c (struct eh_status): Remove protect_list.
1842 (begin_protect_partials, end_protect_partials): Remove.
1843 (add_partial_entry): Remove.
1844 * except.h: Remove prototypes.
1846 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1847 expand_decl_cleanup_eh.
1850 * tree.h (CLEANUP_EH_ONLY): New macro.
1851 * stmt.c (expand_decl_cleanup_eh): New fn.
1852 (expand_cleanups): Check CLEANUP_EH_ONLY.
1853 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1854 Use expand_decl_cleanup_eh.
1855 (expand_stmt): Adjust.
1856 * c-common.h: Adjust prototype.
1858 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
1860 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1861 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1862 (cris_target_asm_function_epilogue): Ditto.
1863 (cris_initial_frame_pointer_offset): Ditto.
1864 (cris_simple_epilogue): Ditto.
1865 (cris_expand_builtin_va_arg): Variable-size types come in
1868 2002-04-03 David S. Miller <davem@redhat.com>
1870 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1872 (set_fast_math): Correct 'fsr' type.
1874 2002-04-03 Richard Henderson <rth@redhat.com>
1877 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1878 * toplev.c (check_global_declarations): Use it.
1879 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1880 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1881 (LANG_HOOKS_DECLS): Add it.
1882 * langhooks.c (lhd_warn_unused_global_decl): New.
1883 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1884 * c-objc-common.c (c_warn_unused_global_decl): New.
1885 * c-tree.h (c_warn_unused_global_decl): Declare.
1886 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1888 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
1890 * langhooks-def.h (lhd_set_decl_assembler_name,
1891 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1892 (LANG_HOOKS_INITIALIZER): Update.
1893 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1894 * langhooks.h (struct lang_hooks): New hook.
1895 * tree.c (set_decl_assembler_name): Move to langhooks.c.
1896 (lang_set_decl_assembler_name): Remove.
1897 (init_obstacks): Don't set hook.
1898 (decl_assembler_name): New function.
1899 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1900 (decl_assembler_name): New.
1901 (lang_set_decl_assembler_name): Remove.
1903 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1905 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1906 works properly with .hidden symbols.
1907 * configure: Rebuilt.
1908 * config.in: Rebuilt.
1909 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1910 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1911 properly with .hidden symbols.
1913 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1916 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1919 2002-04-03 Richard Henderson <rth@redhat.com>
1922 * sched-rgn.c (sets_likely_spilled): New.
1923 (sets_likely_spilled_1): New.
1924 (add_branch_dependences): Use it.
1926 2002-04-02 Richard Henderson <rth@redhat.com>
1929 * loop.h (LOOP_FIRST_PASS): New.
1930 * loop.c (strength_reduce): Mind it when deciding to unroll.
1931 * toplev.c (rest_of_compilation): Set it.
1933 2002-04-02 David S. Miller <davem@redhat.com>
1935 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1936 mems_ok_for_ldd_peep when the order of the loads being examined
1938 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1939 existing comment to increase comprehension of this situation.
1941 2002-04-02 Zack Weinberg <zack@codesourcery.com>
1943 * config/sh/sh.md: Don't use union real_extract.
1945 2002-04-02 Richard Henderson <rth@redhat.com>
1947 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1949 2002-04-02 David O'Brien <obrien@FreeBSD.org>
1951 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1952 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1953 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1954 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1955 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1956 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1957 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1958 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1959 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1960 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1961 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1962 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1963 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1964 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1965 Include as many configury headers via tm_file as possible. This
1966 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1967 * config/openbsd-oldgas.h: New file.
1968 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1969 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1970 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1971 config/i386/i386-coff.h, config/i386/i386-interix.h,
1972 config/i386/iscdbx.h, config/i386/linux-aout.h,
1973 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1974 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1975 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1976 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1977 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1978 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1979 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1980 config/i386/vxi386.h: Do not directly include configury headers.
1981 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1982 Directly include configury headers that are no longer automatically
1983 included by the above headers.
1984 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1985 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1986 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1987 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1988 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1989 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1990 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1991 (TARGET_VERSION): Define.
1992 * config/i386/beos-elf.h, config/i386/freebsd.h,
1993 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1994 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1995 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1996 config/i386/sco5.h, config/i386/sysv4.h
1997 (TARGET_VERSION): Do not need to protect.
1998 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1999 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
2000 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
2001 config/i386/i386-interix.h, config/i386/linux-aout.h,
2002 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
2003 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
2004 (YES_UNDERSCORES): Do not define - not needed.
2005 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
2006 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2007 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
2008 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
2009 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2010 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
2011 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
2012 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
2014 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
2015 Richard Henderson <rth@redhat.com>
2018 * function.c (assign_temp): Accept either type or decl argument.
2019 Detect variables whose size is too large to fit into an integer.
2020 * stmt.c (expand_decl): Pass the decl, not the type.
2022 2002-04-02 David O'Brien <obrien@FreeBSD.org>
2024 * protoize.c: Match include directory usage with cppdefault.c.
2026 2002-04-03 Jeffrey A Law (law@redhat.com)
2027 Hans-Peter Nilsson <hp@bitrange.com>
2029 * combine.c (simplify_comparison): Avoid narrowing a comparison
2030 with a paradoxical subreg when doing so would drop signficant bits.
2032 2002-04-02 Steve Ellcey <sje@cup.hp.com>
2034 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
2035 if POINTERS_EXTEND_UNSIGNED is defined.
2037 2002-04-02 Richard Henderson <rth@redhat.com>
2040 * local-alloc.c (contains_replace_regs): LO_SUM may contain
2043 2002-04-02 Richard Henderson <rth@redhat.com>
2045 * doc/standards.texi: Document required freestanding libc entry points.
2047 2002-04-02 Alan Modra <amodra@bigpond.net.au>
2049 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
2050 associated splitter. Remove MQ constraint.
2051 (ctrdi_internal4): Correct CCmode clobber.
2053 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
2055 * milli64.S ($$dyncall): New function.
2056 * t-linux (LIB1ASMFUNCS): Revise module list.
2057 (LIB1ASMSRC): Use pa/milli64.S.
2059 2002-04-02 Richard Henderson <rth@redhat.com>
2061 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
2062 rename solaris_sys_varargs_h.
2064 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2066 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
2067 the same mode as its component.
2069 2002-04-02 Richard Henderson <rth@redhat.com>
2072 * final.c (this_is_asm_operands): Export.
2073 * output.h (this_is_asm_operands): Declare.
2074 * config/i386/i386.c (print_operand): Error odd asm operands.
2076 2002-04-02 Richard Henderson <rth@redhat.com>
2079 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
2081 2002-04-01 Richard Henderson <rth@redhat.com>
2084 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
2085 * fixinc/fixincl.x: Rebuild.
2087 2002-04-01 Richard Henderson <rth@redhat.com>
2089 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
2090 (atomic_alloc, atomic_free): New.
2091 (SIZE, MASK_FOR, PTR_IN): New.
2092 (emergency_reg_state, emergency_reg_state_free): New.
2093 (emergency_labeled_state, emergency_labeled_state_free): New.
2094 (reg_state_alloced, labeled_state_alloced): New.
2095 (alloc_reg_state, free_reg_state): New.
2096 (alloc_label_state, free_label_state, free_label_states): New.
2097 (push, pop, dup_state_stack, free_state_stack): Use them.
2098 (desc_label_state): Likewise.
2099 (uw_frame_state_for): Free label states and state stack.
2100 (uw_update_reg_address): Eliminate warnings.
2102 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
2104 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
2105 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
2107 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2109 * c-decl.c (grokdeclarator): Update.
2110 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2111 * c-tree.h (c_mark_addressable): New.
2112 * c-typeck.c (default_function_array_conversion, build_unary_op,
2113 build_array_ref, convert_for_assignment): Update.
2114 (mark_addressable): Rename.
2115 * calls.c (try_to_integrate, expand_call): Use langhook.
2116 * expr.c (expand_expr): Use langhook.
2117 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
2118 * langhooks.h (struct lang_hooks): New hook.
2119 * stmt.c (expand_asm_operands): Use langhook.
2120 * tree.h (mark_addressable): Remove.
2122 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2124 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2126 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
2129 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2131 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
2132 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
2134 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2136 * c-common.c (unsigned_conversion_warning, convert_and_check,
2137 unsigned_type, signed_type, shorten_compare,
2138 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
2139 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
2140 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
2142 * c-decl.c (grokdeclarator): Update.
2143 * c-format.c (check_format_types): Update.
2144 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2145 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2146 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
2147 * convert.c (convert_to_integer): Use new hooks.
2148 * expmed.c (make_tree): Use new hooks.
2149 * expr.c (store_expr): Use new hooks.
2150 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
2151 all_ones_mask_p, unextend, fold): Use new hooks.
2152 * langhooks.h (struct lang_hooks_for_types): New hooks.
2153 * tree.h (signed_or_unsigned_type, signed_type,
2154 unsigned_type): Remove.
2156 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2157 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2159 2002-03-31 Richard Henderson <rth@redhat.com>
2161 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
2162 (desc_frgr_mem): Fix reference to f16-f31.
2164 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2166 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
2167 RTVEC_ELT): Const-ify.
2168 * varray.h (VARRAY_CHECK): Const-ify.
2169 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
2170 ggc_mark_rtvec, ggc_mark): Const-ify.
2172 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2174 * diagnostic.c: Include langhooks-def.h.
2175 * Makefile.in (diagnostic.o): Update.
2177 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
2179 * c-common.c (c_unsafe_for_reeval): Rename.
2180 * c-common.h (c_unsafe_for_reeval): Rename.
2181 * c-decl.c (finish_incomplete_decl): Rename.
2182 (c_init_decl_processing): Don't set langhook.
2183 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2184 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2185 * c-objc-common.c (c_objc_common_init): Don't set langhook.
2186 * c-tree.h (finish_incomplete_decl): Rename.
2187 * langhooks-def.h (lhd_unsafe_for_reeval): New.
2188 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
2189 (LANG_HOOKS_INITIALIZER): Update.
2190 * langhooks.c (lhd_unsafe_For_reeval): New.
2191 * langhooks.h (struct langhooks): New hooks.
2192 * toplev.c (incomplete_decl_finalize_hook): Remove.
2193 (wrapup_global_declarations): Update.
2194 * tree.c (lang_unsafe_for_reeval): Remove.
2195 (unsafe_for_reeval): Update.
2196 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
2199 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2200 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2202 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
2204 * diagnostic.c (print_error_function): Remove.
2205 (default_print_error_function): Rename.
2206 (report_error_function): Update.
2207 * diagnostic.h (print_error_function): Remove.
2208 (default_print_error_function): Remove.
2209 * langhooks-def.h (struct diagnostic_context): Predeclare.
2210 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
2211 (LANG_HOOKS_INITIALIZER): Update.
2212 * langhooks.h (struct diagnostic context): Predeclare.
2213 (struct lang_hooks): New hook.
2215 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2217 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
2218 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
2220 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
2221 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
2222 of PIC_OFFSET_TABLE_REGNUM thruout.
2223 * config/rs6000/rs6000.md: Likewise.
2224 * config/rs6000/darwin.h: Likewise.
2226 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2228 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
2229 unsigned HOST_WIDE_INT, not unsigned int.
2231 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2233 PR middle-end/6096, middle-end/6098, middle-end/6099
2234 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
2236 (fill_slots_from_thread): Likewise.
2238 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2240 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
2241 floating fields in float regs.
2242 (function_arg_record_value_2): Likewise.
2244 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
2246 * config/mmix/mmix.md (define_constants): Remove misleading
2247 FIXME. Add MMIX_fp_rO_OFFSET.
2248 ("nonlocal_goto_receiver"): Don't have stack-frame address of
2249 saved rO as part of the pattern. Remove FIXME.
2250 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
2251 here, at output-time.
2253 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2256 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
2258 (output_v9branch): Likewise.
2260 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
2262 * gcc.c: Revert previous patch for now.
2263 * config/i386/djgpp.h: Likewise.
2265 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
2267 * config/mmix/crti.asm (_init): Register _fini with atexit.
2268 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
2270 2002-03-31 Richard Henderson <rth@redhat.com>
2273 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
2274 (ASM_OUTPUT_DEF_FROM_DECLS): New.
2276 2002-03-31 Richard Henderson <rth@redhat.com>
2278 * libgcc2.c (__bb_exit_func): Make static.
2280 * config/alpha/alpha.md (trap): New.
2282 2002-03-31 Richard Henderson <rth@redhat.com>
2284 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
2285 promoted argument types; build trap.
2286 (expand_builtin_trap): New.
2287 (expand_builtin): Use it.
2288 * stmt.c (expand_nl_goto_receivers): Likewise.
2289 * expr.h (expand_builtin_trap): Declare.
2290 * libfuncs.h (LTI_abort, abort_libfunc): New.
2291 * optabs.c (init_optabs): Init abort_libfunc.
2293 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
2295 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
2296 (LINK_COMMAND_SPEC): ... from here.
2297 (init_gcc_specs): Duplicate it here too, omitting
2298 shared_name in the second copy.
2299 (init_spec): Test for duplicate
2300 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
2302 2002-03-30 David S. Miller <davem@redhat.com>
2304 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2305 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
2307 2002-03-30 Roger Sayle <roger@eyesopen.com>
2308 Richard Henderson <rth@redhat.com>
2310 * regmove.c (combine_stack_adjustments_for_block): Avoid
2311 emitting a stack adjustment of zero bytes. Let delete_insn
2314 2002-03-30 Richard Henderson <rth@redhat.com>
2316 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
2317 (sparc_emitting_epilogue): New.
2318 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
2319 * config/sparc/sparc-protos.h: Update.
2320 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
2321 (TARGET_SWITCHES): Update.
2322 * config/sparc/sparc.md (return): Remove.
2323 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
2324 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
2325 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
2326 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
2327 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
2328 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
2329 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
2330 Remove MASK_EPILOGUE.
2331 * doc/invoke.texi: Update.
2333 2002-03-30 Daniel Berlin <dan@dberlin.org>
2335 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
2336 CPP will start the file for us.
2338 2002-03-30 Richard Henderson <rth@redhat.com>
2341 * config/ia64/ia64.c (group_barrier_needed_p): Special case
2342 prologue_allocate_stack.
2343 (ia64_single_set): Use insn codes for recognition of special
2344 cases, not rtl matching.
2345 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
2347 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
2349 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
2351 2002-03-30 Richard Henderson <rth@redhat.com>
2354 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
2355 or -fomit-frame-pointer with profiling.
2356 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2357 (FUNCTION_PROFILER): Do nothing.
2358 (PROFILE_HOOK): New.
2359 * config/sparc/sparc.c (sparc_override_options): Don't check
2360 code models for profiling.
2361 (sparc_function_profiler): Remove.
2362 (sparc_profile_hook): New.
2363 * config/sparc/sparc-protos.h: Update.
2365 2002-03-30 Jakub Jelinek <jakub@redhat.com>
2367 PR optimization/6086
2368 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
2369 of SUBREG of volatile MEM or because the MEM was mode dependent,
2370 return CLOBBER instead of unmodified SUBREG.
2372 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
2374 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
2375 when not optimizing.
2377 * toplev.c (rest_of_compilation): Cann mark_constant_function
2378 only when optimizing.
2380 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
2383 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
2384 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
2385 (try_optimize_cfg): clear all AUX fields.
2387 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
2388 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
2389 (ix86_address_cost): Be prepared for SUBREGed registers.
2390 (legitimate_address_p): Accept SUBREGed registers.
2392 2002-03-29 Richard Henderson <rth@redhat.com>
2395 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
2397 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2399 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
2400 for aggregate and TFmode types.
2402 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
2404 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
2406 2002-03-29 Richard Henderson <rth@redhat.com>
2409 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
2410 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
2412 2002-03-29 Richard Henderson <rth@redhat.com>
2415 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
2416 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
2417 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
2418 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
2420 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
2422 2002-03-29 Dale Johannesen <dalej@apple.com>
2424 * loop.c (combine_movables): Do allow combination of pseudos.
2426 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
2428 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
2429 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
2430 No functional change except ...
2431 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
2432 * doc/install.texi (*-*-freebsd*): Document port configuration.
2434 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
2436 * Makefile.in (convert.o, calls.o, expmed.o): Update.
2437 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
2439 * builtin-types.def (BT_PTRMODE): Update.
2440 * c-common.c (type_for_size): Rename c_common_type_for_size.
2441 (type_for_mode): Similarly.
2442 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
2444 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
2445 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
2446 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
2448 * c-typeck.c (common_type, comptypes, default_conversion):
2450 * calls.c: Include langhooks.h.
2451 (emit_library_call_value_1): Use new hooks. Avoid redundant
2453 * convert.c: Include langhooks.h
2454 (convert_to_pointer, convert_to_integer): Use new hooks.
2455 * except.c (init_eh): Similarly.
2456 * expmed.c: Include langhooks.h.
2457 (expand_mult_add): Use new hooks.
2458 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
2459 try_casesi): Similarly.
2460 * fold-const.c (optimize_bit_field_compare, make_range,
2461 decode_field_reference, fold_truthop, fold): Similarly.
2462 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
2463 put_var_into_stack): Similarly.
2464 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
2465 LANG_HOOKS_TYPE_FOR_SIZE): New.
2466 (LANG_HOOKS_TYPES_INITIALIZER): Update.
2467 * langhooks.h (lang_hooks_for_types): New hooks.
2468 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
2469 * tree.c (get_unwidened, get_narrower): Similarly.
2470 * tree.h (type_for_mode, type_for_size): Remove.
2471 * varasm.c (force_const_mem): Use new hooks.
2472 * utils2.c (nonbinary_modular_operation): Update.
2474 * objc-act.c (handle_impent): Update.
2475 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
2478 2002-03-29 Steve Ellcey <sje@cup.hp.com>
2480 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
2481 * config/ia64/ia64.c (basereg_operand): New.
2482 * config/ia64/ia64-protos.h (basereg_operand): Declare.
2483 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
2485 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
2487 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
2488 unwind information when frame_pointer_needed.
2489 (mmix_assemble_integer): Tweak wording in comment.
2491 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
2493 * Makefile.in (except.o): Update.
2494 * except.c: Include langhooks.h.
2495 (init_eh): Use langhook.
2496 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
2497 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2498 (LANG_HOOKS_INITIALIZER): Update.
2499 * langhooks.h (lang_hooks_for_types): New.
2500 (struct lang_hooks): Add it.
2501 * tree.c (make_lang_type_fn, make_lang_type): Remove.
2502 * tree.h (make_lang_type_fn, make_lang_type): Remove.
2504 * alpha/alpha.c: Include langhooks.h.
2505 (alpha_build_va_list): Use langhook.
2506 * d30v/d30v.c: Include langhooks.h.
2507 (d30v_build_va_list): Use langhook.
2508 * i386/i386.c: Include langhooks.h.
2509 (ix86_build_va_list): Use langhook.
2510 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2511 * s390/s390.c: Include langhooks.h.
2512 (s390_build_va_list): Use langhook.
2513 * stormy16/stormy16.c: Include langhooks.h.
2514 (stormy16_build_va_list): Use langhook.
2516 2002-03-29 Jakub Jelinek <jakub@redhat.com>
2519 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2521 (length): Compute variable length for branches/calls/jumps here.
2522 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2523 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2524 define branch_type attribute.
2525 (divsi3_sp32): Maximum length is 6 not 7.
2526 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2527 call_address_untyped_struct_value_sp32,
2528 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2529 * config/sparc/sparc.c (empty_delay_slot): New function.
2530 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2531 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
2533 2002-03-29 Jakub Jelinek <jakub@redhat.com>
2535 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
2536 nonzero_bits if not needed.
2537 (nonzero_bits) [XOR]: Likewise.
2538 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
2539 reg_last_set_mode and mode are both MODE_INT, but not equal.
2540 (record_value_for_reg): Compute reg_last_set_nonzero_bits
2541 in nonzero_bits_mode for MODE_INT modes.
2543 2002-03-28 Richard Henderson <rth@redhat.com>
2546 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2547 to GAS. Correct drift between alternatives.
2549 2002-03-28 Richard Henderson <rth@redhat.com>
2552 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2554 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
2556 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2557 emulation to the linker.
2559 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
2561 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2562 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2564 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
2566 * combine.c (simplify_and_const_int): Make sure to apply mask
2567 when force_to_mode returns a constant integer. PR3311.
2569 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2571 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2573 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2575 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2576 and Objective-C Dialect Options.
2578 2002-03-28 Richard Henderson <rth@redhat.com>
2580 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2581 comparison should be done vs !=0 not >0 return code. Tidy cases.
2583 2002-03-28 Richard Henderson <rth@redhat.com>
2585 * c-decl.c (finish_function): New arg can_defer_p. Pass it
2586 on to c_expand_body.
2587 * c-tree.h (finish_function): Update decl.
2588 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2590 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
2592 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2594 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
2596 * rtlanal.c: Include flags.h
2597 (may_trap_p): Do not mark FP operations if trapping
2598 if !flag_trapping_math
2599 * Makefile.in (rtlanal.o): Add dependency on flag.h
2600 * ifcvt.c (noce_operand_ok): Avoid the lameness.
2602 2002-03-27 Zack Weinberg <zack@codesourcery.com>
2604 * mips.md: Use dconst1, not 1.0, as first argument of
2605 REAL_VALUE_LDEXP. Don't use union real_extract.
2607 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2609 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2610 rather than $target. Heed program_prefix and
2611 program_transform_name. Search for gas in cross-compiler case too.
2612 "test -x" rather than "test -f".
2613 (gcc_cv_ld): Likewise.
2614 (gcc_cv_nm): Heed program_prefix and program_transform_name.
2615 (gcc_cv_objdump): Likewise.
2616 * configure: Regenerate.
2618 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2620 * Makefile.in (attribs.o): Update.
2621 * attribs.c: Include langhooks.h.
2622 (decl_attributes): Use langhook.
2623 * c-decl.c (insert_default_attributes): Rename.
2624 * c-tree.h (c_insert_default_attributes): New.
2625 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2626 (LANG_HOOKS_INITIALIZER): Update.
2627 * langhooks.h (struct lang_hooks): New hook.
2628 * tree.h (insert_default_attributes): Remove.
2630 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2632 2002-03-27 Andreas Schwab <schwab@suse.de>
2634 * config/i386/i386.c (classify_argument): Also check for
2637 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2639 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2642 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
2644 * i960.md (ret): Set PC.
2645 (nonlocal_goto): Fix expander.
2646 * builtins.c (epxand_builin_longjmp): Check that we've emitted
2649 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
2651 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2654 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2656 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2657 assigning to BLOCK_FOR_INSN directly.
2659 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
2661 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2663 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2665 * c-common.c (c_expand_expr): Fix prototype.
2666 * c-common.h (c_expand_expr): Always declare, update.
2667 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2668 * c-objc-common.c (c_objc_common_init): No global hook.
2669 * expr.c (expand_expr): Use langhook.
2670 * expr.h (enum expand_modifier): Conditionally declare.
2671 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2672 (LANG_HOOKS_INITIALIZER): Update.
2673 * langhooks.c (lhd_expand_expr): New.
2674 * langhooks.h (struct lang_hooks): New hook.
2675 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2676 (lang_independent_init): Don't default hook.
2678 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2680 2002-03-27 Richard Henderson <rth@redhat.com>
2683 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2684 TARGET_CONST_GP. Simplify conditions.
2686 2002-03-27 Richard Henderson <rth@redhat.com>
2688 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2689 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2690 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2692 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
2694 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2695 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2696 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2697 Remove unnecessary masks.
2698 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2699 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2700 -mwindows, -mdll switches and their negations.
2702 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2704 * gcc-common.c (lang_mark_false_label_stack): Remove.
2705 * ggc.h (lang_mark_false_label_stack): Similarly.
2707 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
2709 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2711 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2712 or __rtems_ is defined.
2714 2002-03-26 Richard Henderson <rth@redhat.com>
2716 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2717 if a non-trivial load was emitted.
2718 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
2719 in high+extra+low case.
2721 2002-03-26 Richard Henderson <rth@redhat.com>
2723 * config.gcc (sparc*-solaris): Use float_format=sparc.
2725 2002-03-26 Richard Henderson <rth@redhat.com>
2727 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2728 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2729 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2730 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2731 (WINT_TYPE_SIZE): Fix at 32.
2733 2002-03-26 Richard Henderson <rth@redhat.com>
2735 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2736 until after eh landing pad generation.
2737 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2738 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2740 2002-03-26 Richard Henderson <rth@redhat.com>
2742 * expr.h (ADD_PARM_SIZE): One more convert for INC.
2744 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
2746 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
2747 and warning switches.
2748 (cc1_options): Likewise.
2750 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
2752 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2753 Restore more of the signal context. Set no_reg_stack_frame.
2754 * config/ia64/unwind-ia64.c (unw_state_record):
2755 Add no_reg_stack_frame, comments.
2756 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2757 (uw_update_context): Adjust bsp when unwinding from leaf,
2758 but not signal frame.
2760 2002-03-26 David Edelsohn <edelsohn@gnu.org>
2762 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2764 2002-03-26 Bob Wilson <bob.wilson@acm.org>
2766 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2768 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
2771 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2772 "Add a pool_range attribute", which was lost during the ARM/Thumb
2775 2002-03-26 Bob Wilson <bob.wilson@acm.org>
2777 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2778 a register into the MAC16 accumulator.
2780 2002-03-26 Andrew Cagney <ac131313@redhat.com>
2782 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2783 (Warning Options): Document -Wswitch-enum.
2784 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
2786 (warn_switch_enum): Define variables.
2787 * flags.h (warn_switch_enum): Declare variables.
2788 * stmt.c (expand_end_case_type): When warn_switch_enum /
2789 -Wswitch-enum, perform switch checks.
2792 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
2794 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2795 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2796 (reload_muladdsi_compare0_scratch): Delete.
2798 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
2800 * doc/install.texi (*-*-freebsd*): Update.
2802 2002-03-26 Richard Henderson <rth@redhat.com>
2804 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2805 (SUB_PARM_SIZE): Cast DEC to ssizetype.
2807 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2808 types from the normal argument frame.
2810 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2811 variable sized objects by reference.
2812 (sparc_va_arg): Receive them by reference too.
2814 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
2816 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2817 code to not restoring global registers.
2819 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
2821 * Makefile.in (ggc-common.o): Update.
2822 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2823 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2824 * c-tree.h (c_mark_tree): New.
2825 * ggc-common.c: Include langhooks.h.
2826 (gcc_mark_trees): Use new langhook.
2827 * ggc-callbacks.c: Delete file.
2828 * ggc.h (lang_mark_tree): Remove.
2829 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2830 (LANG_HOOKS_INITIALIZER): Update.
2831 * langhooks.h (struct lang_hooks): New hook.
2833 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2835 2002-03-25 Zack Weinberg <zack@codesourcery.com>
2837 * doc/cpp.texi: Exclude entire Top node from printed manual.
2838 Move option index after directive index. Insert page breaks
2839 before GFDL and concept index. Index environment variables
2840 with command line options.
2841 * doc/cppenv.texi: Use @vtable for environment variable list.
2842 Add paragraph explaining semantics of empty elements in path
2843 variables. Exclude a cross-reference to Fishkill from the
2844 manpage. Remove an unnecessary cross-reference of the entry
2845 right above the referer. Don't use @anchor in text that goes
2847 * doc/cppopts.texi: Cross-reference the environment variables
2848 section, not the specific environment variable, for consistency.
2850 2002-03-25 Richard Henderson <rth@redhat.com>
2852 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2853 anywhere in the block. Don't refer to insns that have been
2854 removed from the chain. Iterate backward through the new insns.
2855 Don't refer to edges that have been removed.
2857 2002-03-26 Alan Modra <amodra@bigpond.net.au>
2859 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2860 test for overflow of constant.
2862 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
2865 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2866 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2867 these patterns on arm_archv4.
2869 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
2871 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2874 2002-03-25 Zack Weinberg <zack@codesourcery.com>
2876 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
2877 float_handled, float_handler, float_signal, set_float_handler,
2878 and do_float_handler. Set handler for SIGFPE to crash_signal.
2879 * toplev.h: Don't prototype do_float_handler.
2881 * c-lex.c: Fold parse_float into lex_number. Make warning
2882 about portability of hex float constants more informative, and
2883 don't issue it on top of a syntax error.
2884 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2886 * real.h: Define REAL_VALUE_ABS here...
2887 * simplify-rtx.c: ... not here. Fold check_fold_consts,
2888 simplify_unary_real, simplify_binary_real, and
2889 simplify_binary_is2orm1 into their callers.
2890 * tree.c: Fold build_real_from_int_cst_1 into caller.
2892 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2894 * tsystem.h: Include float.h here...
2895 * libgcc2.c: ... not here.
2897 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
2899 Fixes for: PR bootstrap/3591, target/5676
2900 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2901 defined. Do not disable exceptions or rtti.
2902 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2903 mcore.h. Disable exceptions and rtti, since they are not
2906 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
2908 * c-decl.c (maybe_build_cleanup): Remove.
2909 * expr.c (expand_expr): Use langhook.
2910 * langhooks-def.h (lhd_return_null_tree,
2911 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2912 (LANGHOOKS_INITIALIZER): Update.
2913 * langhooks.c (lhd_return_null_tree): New.
2914 * langhooks.h (struct lang_hooks): New hook.
2915 * tree-inline.c (initialize_inlined_parameters): Use langhook.
2916 * tree.h (maybe_build_cleanup): Remove.
2918 2002-03-25 Jakub Jelinek <jakub@redhat.com>
2920 * regrename.c (build_def_use): Move recog_memoized
2921 before extract_insn.
2923 2002-03-25 Jakub Jelinek <jakub@redhat.com>
2926 * expr.c (emit_group_store): Handle storing into CONCAT.
2928 2002-03-25 Jakub Jelinek <jakub@redhat.com>
2930 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2931 corresponding MATCH_DUP.
2933 2002-03-24 Richard Henderson <rth@redhat.com>
2935 * unroll.c (unroll_loop): Zero label_map.
2937 * gcse.c: Include except.h.
2938 * Makefile.in (gcse.o): Update.
2940 2002-03-24 Richard Henderson <rth@redhat.com>
2942 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2943 Do resolve_unique_section before shared data clause.
2945 2002-03-24 Richard Henderson <rth@redhat.com>
2947 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2949 2002-03-24 Richard Henderson <rth@redhat.com>
2951 * recog.c (peephole2_optimize): Split blocks when EH insns are
2952 generated in the middle of a block. Do global life update if
2955 2002-03-24 Richard Henderson <rth@redhat.com>
2957 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2959 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
2962 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2963 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2964 (init_dependency_output): Don't make no_output decision here.
2966 2002-03-24 Andrew Cagney <ac131313@redhat.com>
2968 * stmt.c (check_for_full_enumeration_handling): Remove tests of
2969 warn_switch. Update description.
2970 (expand_end_case_type): Call check_for_full_enumeration_handling
2973 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2975 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2976 (m68hc11_split_move): Call it to see if the source and destination
2977 operands use the same direction auto inc/dec mode, otherwise make the
2978 source an offsetable memory operand and generate an add.
2980 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2982 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2983 register for operand 2.
2984 ("*subsi3_zero_extendqi"): Likewise.
2985 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2986 bits so that it is compatible with a pop.
2987 ("*andhi3_gen"): Likewise.
2988 ("xorhi3"): Likewise.
2990 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
2992 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2994 (cpp_post_options): ... not here.
2996 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
2997 Aldy Hernandez <aldyh@redhat.com>
2999 Removal of separate preprocessor cpp0.
3001 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
3002 cpp0, install-common): Update.
3003 * c-common.c (flag_preprocess_only): New.
3004 (c_common_init): Preprocess for -E.
3005 * c-common.h (flag_preprocess_only): New.
3006 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
3007 * c-objc-common.c (c_init_decl_processing): Exit quickly
3008 for NULL return from c_common_init.
3009 * cpplib.h (cpp_preprocess_file): New.
3010 * cppmain.c (main, general_init, pfile, progname): Remove.
3011 (do_preprocessing): Rename cpp_preprocess_file, don't call
3012 cpp_finish. Don't close stdout here.
3013 (setup_callbacks): Update prototype.
3014 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
3016 * tradcpp.c (main): Ignore -quiet.
3018 * lang-specs.h (default_compilers): Preprocess with cc1obj.
3020 2002-03-24 Richard Henderson <rth@redhat.com>
3022 PR optimization/5742
3023 * machmode.def: Add inner mode field to complex modes.
3024 * config/mips/mips.c (mips_function_value): Always define. Add
3025 new argument to handle libcalls.
3026 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
3027 (FUNCTION_VALUE): Likewise.
3028 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
3029 * config/mips/mips-protos.h: Update.
3031 2002-03-23 Richard Henderson <rth@redhat.com>
3033 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
3034 * config/sparc/sparc-protos.h: Update.
3035 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
3037 2002-03-23 Richard Henderson <rth@redhat.com>
3039 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
3040 _start or _init begins the text segment.
3042 2002-03-23 David Edelsohn <edelsohn@gnu.org>
3044 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
3045 not HOST_WIDEST_INT.
3046 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
3048 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
3051 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
3052 operand argument to output_return_instruction.
3053 * arm.c (arm_print_operand, case 'd'): If the operand is
3054 const_true_rtx then just return.
3055 (arm_print_operand, case 'D'): If the operand is const_true_rtx
3058 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3060 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
3061 (Warning Options): Document -Wswitch-default.
3062 * toplev.c (W_options): Add -Wswitch-default. Update comment on
3064 (warn_switch_default): Define variable.
3065 (warn_switch): Update comment.
3066 * flags.h (warn_switch_default): Declare variable.
3067 (warn_switch): Update comment.
3068 * stmt.c (expand_end_case): Check for and, when
3069 warn_switch_no_default, warn of a missing default case.
3071 2002-03-23 Alan Modra <amodra@bigpond.net.au>
3073 * real.h (N): Special case 128 bit doubles.
3075 * combine.c (simplify_comparison): When widening modes, ignore
3076 sign extension on CONST_INTs.
3078 2002-03-22 Bob Wilson <bob.wilson@acm.org>
3080 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
3081 passed to adjust_address. Fix comment formatting.
3084 2002-03-22 Zack Weinberg <zack@codesourcery.com>
3086 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
3087 Always make REAL_VALUE_TYPE a struct containing an array of
3088 HOST_WIDE_INT, not a double. Tidy up the code deciding how
3089 big it is. Don't declare or use union real_extract.
3091 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
3092 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
3093 (print_operand), config/arm/arm.c (output_move_double),
3094 config/arm/arm.md (consttable_4, consttable_8),
3095 config/romp/romp.c (output_fpops), config/s390/s390.h
3096 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
3097 (xtensa_output_literal): Don't use union real_extract.
3099 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
3100 (sfmode_constant_to_ulong), config/ns32k/merlin.h
3101 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
3102 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
3103 (PRINT_OPERAND): Don't use local version of union
3106 * config/convex/convex.c (check_float_value), config/vax/vax.c
3107 (vax_float_literal), config/m88k/m88k.md (divdf3),
3108 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
3109 config/pdp11/pdp11.c (output_move_quad): Don't do host
3110 arithmetic on target floating point quantities.
3112 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
3113 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
3115 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
3116 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
3118 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
3119 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
3121 * print-rtl.c (print_rtx): Disable code which needs
3122 floating-point emulator.
3123 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
3124 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
3125 depending on HOST_FLOAT_FORMAT to be defined properly.
3127 * config/1750a/1750a.c (get_double, float_label): Delete.
3128 (print_operand): Delete huge commented-out chunk. Use
3129 REAL_VALUE_TO_DECIMAL.
3130 * config/1750a/1750a-protos.h: Delete prototypes of deleted
3132 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
3134 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
3135 Use REAL_VALUE_TO_DECIMAL as ELF version does.
3136 * config/m88k/m88k.c (real_power_of_2_operand,
3137 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
3138 real_extract out of the union; run the input through
3139 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
3140 from that into the union.
3141 * config/pdp11/pdp11.c (output_move_double): Rearrange
3142 parentheses to make automatic indenter happy.
3144 * doc/tm.texi (Cross-compilation): Rename node to "Floating
3145 Point" and rewrite to describe current situation. Also adjust
3146 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
3148 * doc/rtl.texi: Adjust cross reference.
3150 2002-03-22 Bob Wilson <bob.wilson@acm.org>
3152 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
3153 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
3154 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
3155 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
3156 prevent use of sp as a reload register.
3157 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
3158 non_acc_reg_operand.
3159 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
3160 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
3161 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
3162 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
3164 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
3166 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
3167 * cpplex.c (unterminated): Delete.
3168 (parse_string): No string literal may extend over multiple
3169 lines. Suppress the error when preprocessing assembly.
3170 * cppmain.c (scan_translation_unit): Strings are single-line.
3172 * doc/cpp.texi: Update to match.
3174 2002-03-22 Jakub Jelinek <jakub@redhat.com>
3176 PR optimization/5854
3177 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
3179 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
3180 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
3181 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
3182 const0 if scratch register was not allocated.
3183 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
3184 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
3186 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
3187 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
3188 with GEN_INT (...) everywhere. Remove constraints in define_split
3190 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
3191 require scratch register for setting 0 into regs/non-pushable memory.
3193 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
3195 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
3196 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
3198 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
3200 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
3201 * cppinit.c (cpp_create_reader): On by default.
3202 (cpp_handle_option): Handle -W[no-]endif-labels.
3203 (cpp_post_options): Also enable if -pedantic.
3204 * cpplib.c (do_else): Use it.
3205 (do_endif): Likewise.
3206 * doc/cppopts.texi: Document new option.
3207 * doc/invoke.texi: Document new option.
3209 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
3211 * config/i386/i386.c, config/i386/i386.md: Change all occurences
3212 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
3214 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
3216 * flow.c (calculate_global_regs_live): Clear aux fields of
3219 2002-03-22 Jakub Jelinek <jakub@redhat.com>
3221 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
3222 REG or MEM subregs, pass rtx * instead of rtx to it.
3223 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
3224 rtx * instead of rtx to alter_subreg.
3225 * config/m32r/m32r.c (gen_split_move_double): Likewise.
3226 * config/pj/pj.c (pj_output_rval): Likewise.
3228 2002-03-22 Richard Henderson <rth@redhat.com>
3231 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
3232 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
3233 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
3234 (ia64_expand_prologue): Look at int_regs, not words, for number
3235 of incomming int regs.
3237 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
3239 * expr.c (expand_expr): A RESULT_DECL is part of a call.
3241 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
3243 * toplev.c (flag_loop_optimize, flag_crossjumping):
3244 New static variables.
3245 (rest_of_compilation): Conditionalize crossjumping and
3247 (parse_options_and_default_flags): Default loop_optimize and
3249 (lang_independent_options): Add -fcrossjumping and -floop-optimize
3250 * invoke.texi (crossjumping, loop-optimize): Document.
3252 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3254 * real.c (eiisneg): Move outside #ifdef NANS.
3256 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
3258 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
3259 frequencies match; avoid match on different loop depths.
3260 (try_crossjump_to_bb): Kill tests that no longer brings time
3262 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
3264 (split_edge): Likewise.
3266 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
3269 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
3270 * cfgrtl.c: Include insn-config.h
3271 (split_block) Dirtify block in presence of conditional execution
3273 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3275 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
3276 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
3277 (function_arg): Constify CUMULATIVE_ARGS.
3278 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
3279 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
3280 (UNITS_PER_DOUBLE): New macro.
3281 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
3282 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
3283 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
3284 fp_regs and stack_words.
3285 (EABI_FLOAT_VARARGS_P): New macro.
3286 * config/mips/mips.c (struct mips_arg_info): New.
3287 (mips_arg_info): New function.
3288 (function_arg_advance): Use it. Add adjustment instructions here
3289 rather than in function_arg.
3290 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
3291 for VOIDmode at the beginning of the function.
3292 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
3293 (function_arg_pass_by_reference): Likewise.
3294 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
3295 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
3296 (mips_va_start): Likewise. Use the new stack_words field of
3297 CUMULATIVE_ARGS to set up overflow area. Reformat.
3298 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
3299 doubles and other types, aligning the overflow pointer for non-doubles
3300 too. Remove some code duplication. Replace hard-coded constants.
3302 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3304 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
3305 (CLASS_UNITS): Undefine.
3306 (CLASS_MAX_NREGS): Use FP_INC.
3307 * config/mips/mips.c (compute_frame_size): Likewise.
3308 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
3310 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
3312 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
3313 prototype, and handle lexing numbers and identifiers.
3314 (parse_identifier): Update to new form of parse_slow.
3315 (parse_number): Fast path only, use parse_slow otherwise.
3316 (_cpp_lex_direct): Update calls to parse_number.
3318 2002-03-21 DJ Delorie <dj@redhat.com>
3320 * bb-reorder.c (make_reorder_chain_1): Protect against
3321 when redundant edges are omitted.
3322 * predict.c (dump_prediction): Likewise.
3324 2002-03-21 Richard Henderson <rth@redhat.com>
3327 * fixinc/inclhack.def (solaris_stdio_tag): New.
3328 * fixinc/fixincl.x: Regenerate.
3330 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
3333 * c-typeck.c (process_init_element): Flag non-static
3334 initialization of a flexible array member as illegal.
3336 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3338 * config/rs6000/t-linux64: New.
3339 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
3340 t-ppccomm. Use t-rs6000 and t-linux64.
3341 (powerpc64-*-gnu* <tmake_file>): Likewise.
3342 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
3343 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
3344 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
3346 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
3348 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
3349 flag_really_no_inline instead of optimize == 0.
3351 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
3353 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
3355 * flags.h (flag_really_no_inline): New.
3357 * c-common.c (c_common_post_options): Initialize
3358 flag_really_no_inline.
3360 * toplev.c (flag_really_no_inline): New.
3362 2002-03-21 Jakub Jelinek <jakub@redhat.com>
3364 * config/avr/avr.md (length): Fix length computation for
3365 conditional branches.
3367 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
3369 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
3370 sdbout.o, profile.o): Update.
3371 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
3373 * c-common.h (gettags): Move here from tree.h.
3374 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
3375 insert_block, getdecls, kept_level_p, global_bindings_p): New.
3376 * dbxout.c (dbxout_init): Use getdecls langhook.
3377 * expr.c (expand_expr): Use insert_block langhook.
3378 * fold-const.c: Include langhooks.h.
3379 (fold_range_test, fold_binary_op_with_conditional_arg,
3380 fold): Use global_bindings_p langhook.
3381 * integrate.c (expand_inline_function): Use insert_block langhook.
3382 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
3383 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
3384 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
3385 LANG_HOOKS_GETDECLS): New.
3386 (LANG_HOOKS_INITIALIZER): Update.
3387 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
3389 * langhooks.h (struct lang_hooks_for_decls): New.
3390 (struct lang_hooks): Update.
3391 * profile.c: Include langhooks.h.
3392 (output_func_start_profiler): Use new langhooks.
3393 * sdbout.c: Include langhooks.h.
3394 (sdbout_init, sdbout_finish): Use getdecls langhook.
3395 * stmt.c: Include langhooks.h.
3396 (expand_fixup, fixup_gotos): Use new langhooks.
3397 * stor-layout.c: Include langhooks.h.
3398 (variable_size): Use global_bindings_p langhook.
3399 * toplev.c (compile_file): Use getdecls langhook.
3400 * tree-inline.c (remap_block): Use insert_block langhook.
3401 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
3402 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
3404 2002-03-21 Richard Henderson <rth@redhat.com>
3406 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
3407 constants in .data when -fpic.
3409 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3411 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
3414 2002-03-21 Tom Tromey <tromey@redhat.com>
3416 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
3418 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3420 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
3422 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
3424 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
3425 Richard Henderson <rth@redhat.com>
3428 * c-common.c (c_expand_expr): Preserve result of a statement
3429 expression if needed.
3431 2002-03-21 Jakub Jelinek <jakub@redhat.com>
3434 * genrecog.c (maybe_both_true_mode): Remove.
3435 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
3436 * machmode.def (Pmode): Likewise.
3438 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
3440 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
3441 (nonlocal_mentioned_p_1): New function.
3442 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
3443 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
3444 (mark_constant_function): Recognize pure functions.
3445 * rtl.h (global_reg_mentioned_p): New prototype.
3446 * rtlanal.c (global_reg_mentioned_p,
3447 global_reg_mentioned_p_1): New function.
3449 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3451 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
3453 * fixinc/fixincl.x: Regenerate.
3455 2002-03-20 Jason Merrill <jason@redhat.com>
3457 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
3459 2002-03-20 Michael Meissner <meissner@redhat.com>
3461 * doc/invoke.texi (Optimize Options): Document that -O2 sets
3464 2002-03-20 Bob Wilson <bob.wilson@acm.org>
3466 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
3467 ".literal_position" directive before the constant pool.
3469 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3471 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
3472 Add Craig Rodrigues.
3473 Add Brad Lucier to testers.
3475 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3478 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
3480 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
3481 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
3482 instead of insn_extract.
3484 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3487 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
3489 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
3490 stmt if some case has been output.
3492 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3495 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
3496 movsfcc_1, movdfcc_1): Add %O2.
3497 * config/i386/i386.c (print_operand): Handle %ON.
3498 Print . before float condition codes in Sun as cmov syntax.
3499 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3500 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3503 2002-03-20 Philip Blundell <pb@nexus.co.uk>
3505 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3506 return instruction if PC was popped.
3508 2002-03-20 Bob Wilson <bob.wilson@acm.org>
3510 * config/xtensa/xtensa.md: Remove unused type attributes.
3511 (adddi_carry, subddi_carry): Change type attribute to "multi".
3513 2002-03-19 Dale Johannesen <dalej@apple.com>
3515 PR optimization/5999, middle-end/5731
3516 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3517 multiplications by reciprocals.
3519 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
3521 * Makefile.in: Update.
3522 * c-common.c: Include langhooks.h.
3523 (inline_forbidden_p): Use new hook.
3524 * diagnostic.c: Include langhooks.h.
3525 (format_with_decl, announce_function,
3526 default_print_error_function): Use new hook.
3527 * dwarf2out.c (dwarf2_name): Use new hook.
3528 * function.c: Include langhooks.h.
3529 (init_function_start): Use new hook.
3530 * langhooks-def.h (lhd_decl_printable_name): New.
3531 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
3532 (LANGHOOKS_INITIALIZER): Update.
3533 * langhooks.c (lhd_decl_printable_name): New.
3534 * langhooks.h (struct lang_hooks): New hook.
3535 * toplev.c (decl_name, decl_printable_name): Remove.
3536 (open_dump_file): Use new hook.
3537 (process_options): Remove old hook.
3538 * tree.h (decl_printable_name): Remove.
3540 * objc-act.c (objc_init): Remove old hook.
3541 (objc_printable_name): Export.
3542 * objc-act.h (objc_printable_name): New.
3543 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3545 2002-03-19 Jim Blandy <jimb@redhat.com>
3547 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3548 the start_source_file debug hook, not the current line number.
3550 2002-03-19 Richard Henderson <rth@redhat.com>
3552 * flow.c (EH_USES): Provide default.
3553 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3554 * doc/tm.texi (EH_USES): New.
3556 * config/ia64/ia64.c (ia64_eh_uses): New.
3557 * config/ia64/ia64-protos.h: Update.
3558 * config/ia64/ia64.h (EH_USES): New.
3560 2002-03-19 Richard Henderson <rth@redhat.com>
3562 * varasm.c (output_constant_def): Fix stupid typo.
3564 2002-03-19 Richard Henderson <rth@redhat.com>
3567 * except.c (current_function_has_exception_handlers): New.
3568 * except.h: Declare it.
3569 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3570 Combine tests that disable all sibcalls for the function.
3572 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
3574 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3577 2002-03-19 Richard Henderson <rth@redhat.com>
3580 * config/ia64/ia64.c: Revert 2002-03-01 patch.
3581 * config/ia64/ia64.h (INIT_EXPANDERS): New.
3583 2002-03-19 Jim Blandy <jimb@redhat.com>
3585 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3586 name, even if the replacement list contains no tokens, as required
3589 2002-03-19 Jason Merrill <jason@redhat.com>
3591 * varasm.c (globalize_decl): Get the name from the RTL, not
3592 DECL_ASSEMBLER_NAME.
3594 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3596 2002-03-19 Bob Wilson <bob.wilson@acm.org>
3598 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3599 subdi_carry): Define.
3601 2002-03-19 David Edelsohn <edelsohn@gnu.org>
3603 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3604 about -fpic/-fPIC if extra_warnings set.
3606 2002-03-19 David Edelsohn <edelsohn@gnu.org>
3608 * expr.c (expand_expr): Sign-extend CONST_INT generated from
3609 TREE_STRING_POINTER.
3610 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3612 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3614 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3615 in favor of SP if FRAME_POINTER_REQUIRED is false.
3617 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
3619 * emit-rtl.c (gen_int_mode): New function.
3620 * rtl.h: Prototype for it.
3621 * combine.c (make_extraction, simplify_comparison), expmed.c
3622 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3623 (convert_modes, store_field), optabs.c (expand_fix),
3624 simplify-rtx.c (neg_const_int, simplify_unary_real),
3626 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3627 Use it instead of GEN_INT (trunc_int_for_mode (...)).
3629 2002-03-19 Jakub Jelinek <jakub@redhat.com>
3632 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3633 convert_parm_for_inlining.
3634 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3636 * langhooks-def.h: Likewise.
3637 * objc/objc-lang.c: Likewise.
3638 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3640 * tree-inline.c (initialize_inlined_parameters):
3641 Call convert_parm_for_inlining lang hook if needed.
3642 * c-typeck.c (c_convert_parm_for_inlining): New function.
3643 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3645 2002-03-18 Mark Mitchell <mark@codesourcery.com>
3647 * calls.c (precompute_arguments): Do not assume that temporaries
3648 can be destroyed after expanding the argument.
3649 (expand_call): Likewise.
3651 2002-03-15 Eric Christopher <echristo@redhat.com>
3653 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3654 Fix register preference on last change.
3655 * config/mips/mips.c (mips_return_in_memory): New function.
3656 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3657 * config/mips/mips-protos.h: Declare.
3658 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3659 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3661 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3663 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3665 (anddi3, iorsi3): Likewise.
3667 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3668 use %gprel for symbols that are going to be placed in linkonce
3671 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3672 RETURN_ADDRESS_POINTER_REGNUM to $ra.
3673 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3674 not needed. Disregard leaf_function_p().
3675 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3676 mips16 frame pointer.
3677 * config/mips/mips.md (store ra): Only to small SP offsets.
3678 2001-08-22 Graham Stott <grahams@redhat.com>
3679 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3680 return a REG rtx for the return address register.
3682 2002-03-18 Bob Wilson <bob.wilson@acm.org>
3684 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3685 constant-pool addresses as "mode-dependent".
3686 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3688 2002-03-18 Jakub Jelinek <jakub@redhat.com>
3691 * expr.c (emit_group_load): Use extract_bit_field if
3692 needed for CONCAT arguments.
3694 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
3697 * arm.md (tablejump): Make this a define_expand. For PIC add the
3698 offset to the base of the table.
3699 (thumb_tablejump): Matcher for Thumb tablejump insn.
3700 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3701 as the difference of two labels.
3702 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3703 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3705 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3706 * arm.c (get_jump_table_size): If the table is not in the text
3707 section, return zero.
3709 2002-03-18 Bernd Schmidt <bernds@redhat.com>
3711 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3713 (arm_reload_out_hi): Use gen_lowpart instead of
3714 gen_rtx_SUBREG to access QImode components.
3715 * config/arm/arm.md: Disable zero_extend split for QImode
3716 subregs in BIG_ENDIAN mode.
3717 (storehi_bigend): Match use of least significant byte.
3718 (storeinthi): Remove extraneous SUBREG.
3719 Add missing construction of operands[2].
3720 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3721 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3722 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3724 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
3726 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3729 2002-03-17 Richard Henderson <rth@redhat.com>
3731 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3734 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
3736 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3737 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3739 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3741 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3743 * predict.c (estimate_bb_frequencies): Delete unused variables.
3745 2002-03-17 Richard Henderson <rth@redhat.com>
3747 * config/ia64/ia64.c (ia64_attribute_table): Move before
3748 targetm definition. Make static.
3750 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
3752 * c-common.h (yyparse, c_common_parse_file): New.
3753 * c-lang.c: Include c-common.h.
3754 (LANG_HOOKS_PARSE_FILE): Redefine.
3755 * c-lex.c: Include c-common.h.
3756 (yyparse): Rename c_common_parse_file. Call yyparse.
3757 * c-parse.in (yyparse): Remove macro.
3758 * c-tree.h (yyparse_1): Remove.
3759 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3760 (LANG_HOOKS_INITIALIZER): Update.
3761 * langhooks.h (struct lang_hoooks): New hook parse_file.
3762 * toplev.c (compile_file): Use parse_file hook.
3763 * tree.h (yyparse): Remove.
3764 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3766 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
3768 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3769 float_truncate, not fix.
3770 ("*truncdfsf2_real"): Ditto.
3771 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3773 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3775 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
3777 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3778 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
3779 where appropriate. Make the second reference to
3780 leaf_function_p a function call, as intended. Reindented.
3782 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3783 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3785 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3786 add register to non-constant into sp.
3788 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3789 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3790 (mips16_gp_pseudo_rtx): Lose.
3791 (INIT_EXPANDERS): Deleted.
3792 * config/mips/mips.c (mips_init_machine_status): New.
3793 (mips_free_machine_status): New.
3794 (mips_mark_machine_status): New.
3795 (override_options): Set them.
3796 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3797 (struct machine_function): ... new. Replaced all references.
3798 (mips_add_gc_roots): Don't mark them.
3799 (embedded_pic_fnaddr_reg): New, extracted from...
3800 (embedded_pic_offset): ... here.
3801 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3804 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
3806 * cppinit.c: Revert -MD removal.
3808 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3810 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3811 soft registers by default for 68HC12.
3812 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3813 when compiling with -fomit-frame-pointer.
3814 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3815 (expand_epilogue): Likewise.
3816 (m68hc11_gen_rotate): Use exg when rotating by 8.
3818 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3820 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3821 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3822 (splits): Remove unused add splits.
3823 ("*addhi3_68hc12"): Tune constraints.
3824 ("addhi_sp"): Try to use X instead of Y in all cases and if the
3825 constant fits in 8-bits and D is dead use abx/aby instructions.
3826 ("*addhi3"): Remove extern declaration of ix_reg.
3827 ("*subsi3"): Optimize and provide new split.
3828 ("subhi3"): Cleanup.
3829 ("*subhi3_sp"): Avoid saving X if we know it is dead.
3830 (arith splits): For 68hc12 save the address register on the stack
3831 and do the arithmetic operation with a pop.
3833 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3835 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3836 allocating QImode in address registers.
3837 ("*movqi_m68hc11"): Likewise.
3839 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
3841 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3843 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
3845 * cppinit.c (print_help): Display -MD and -MMD.
3846 Don't display usage string. Update assertion syntax and
3848 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3849 (cpp_handle_option): Update.
3851 2002-03-15 Chris Demetriou <cgd@broadcom.com>
3853 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3854 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3855 and define it so that regardless of target CPU size,
3856 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3857 of "int" rather than "long."
3859 2002-03-15 Richard Henderson <rth@redhat.com>
3861 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3864 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3866 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3867 ("tstqi" split): Avoid using memory for tstqi on address register.
3868 (splits): Remove constraints.
3869 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3870 ("cmpdf", "cmpsf"): Remove since not used.
3871 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3872 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3874 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3876 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3877 ("neghi2"): Tighten constraints.
3878 ("one_cmplsi2"): Optimize and simplify split.
3879 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3881 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3883 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3884 and split of AND operation to clear the upper bits.
3885 ("*logicalsi3_zextqi"): Likewise.
3886 ("*logicallhi3_zexthi_ashift8"): Likewise.
3887 ("*logicalsi3_silshr16"): Likewise.
3888 ("logicalsi3_silshl16"): Likewise.
3889 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3891 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3893 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3894 (m68hc11_indirect_p): New function.
3895 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3896 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3898 (asm_print_register): Likewise.
3899 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3900 (m68hc11_indirect_p): Declare.
3901 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3902 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3903 (TARGET_SWITCHES): New option -mrelax.
3904 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3906 ("iorsi3", "xorsi3"): Likewise.
3907 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3908 ("*andhi3_mem"): New to handle destination in memory with bclr
3909 and a scratch register.
3910 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3911 ("*andhi3_const"): New when operand2 is constant.
3912 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3913 ("*andhi3_gen"): Cleanup of the old "andhi3".
3914 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3915 ("xorqi3"): Update constraints.
3917 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3919 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3920 for reg_equiv_memory_loc when the operand is a register that does
3921 not get a hard register (stack location).
3922 (tst_operand): After reload, accept all memory operand.
3923 (symbolic_memory_operand): Fix detection of symbolic references.
3924 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3925 accept symbols and any constant.
3927 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3929 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3930 note on the insn that sets the soft frame register.
3931 (must_parenthesize): ix and iy are also reserved names.
3932 (print_operand_address): One more place where parenthesis are required
3933 to avoid confusion with register names.
3934 (m68hc11_gen_movhi): Allow push of stack pointer.
3935 (m68hc11_check_z_replacement): Fix handling of parallel with a
3937 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3938 the replacement register is.
3939 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3940 and D8_REGS classes.
3941 (MODES_TIEABLE_P): All modes are tieable except QImode.
3943 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3945 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3946 (___subdi3): Likewise.
3947 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3948 (__map_data_section): Optimize 68hc11 case.
3950 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3952 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3953 than a shift to avoid adding a register with itself.
3954 (m68hc11_memory_move_cost): Take into account NO_REGS.
3955 (m68hc11_register_move_cost): Update and use memory move cost
3957 (m68hc11_address_cost): Make cost of valid offset not 0 so that
3958 it gives more opportunities to cse to optimize.
3959 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3960 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3962 2002-03-15 Mark Mitchell <mark@codesourcery.com>
3964 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3965 * c-common.def (CLEANUP_STMT): New tree node.
3966 * c-common.h (CLEANUP_DECL): New macro.
3967 (CLEANUP_EXPR): Likewise.
3968 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3969 * expr.c (expand_expr): Tidy.
3970 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3971 * tree-inline.c (initialize_inlined_parameters): Clean up
3972 new local variables.
3974 2002-03-15 Jakub Jelinek <jakub@redhat.com>
3977 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3978 before movrXX only, use reg_overlap_mentioned_p.
3979 Only special case NE if just one insn can be generated.
3981 2002-03-15 Jason Merrill <jason@redhat.com>
3983 * varasm.c (assemble_variable): Call resolve_unique_section before
3984 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
3987 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
3990 * arm.md (split pattern for thumb shiftable immediates): Add comment
3991 explaining non-obvious test.
3993 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
3996 * arm.md (movaddr, movaddr_insn): Delete.
3998 2002-03-15 Jason Merrill <jason@redhat.com>
4000 * toplev.c (wrapup_global_declarations): Clarify variable handling.
4001 -fkeep-static-consts doesn't apply to comdats.
4003 2002-03-14 Richard Henderson <rth@redhat.com>
4005 * c-decl.c: Include c-pragma.h.
4006 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
4007 (finish_function): Tidy.
4008 * c-pragma.c: Include c-common.h.
4009 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
4010 (handle_pragma_weak): Use them.
4011 (init_pragma): Register pending_weaks.
4012 * c-pragma.h (maybe_apply_pragma_weak): Declare.
4013 * print-tree.c (print_node): Print DECL_WEAK.
4014 * varasm.c (mark_weak_decls): Remove.
4015 (remove_from_pending_weak_list): Remove.
4017 (asm_emit_uninitialised): Call globalize_decl for weak commons.
4018 (weak_decls): Make a tree_list.
4019 (declare_weak): Cons weak_decls directly.
4020 (globalize_decl): Remove weak_decls elements directly.
4021 (weak_finish): Simplify weak_decls walk. Don't weaken unused
4022 symbols. Don't pretend to handle aliases.
4023 (init_varasm_once): Update weak_decls registry.
4024 * Makefile.in: Update dependencies.
4026 2002-03-14 Richard Henderson <rth@redhat.com>
4029 * config/ia64/ia64.c: Include tm_p.h last.
4030 (gen_nop_type): Remove duplicate definition.
4031 (cycle_end_fill_slots): Set sched_data for second L slot.
4032 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
4033 (nop_cycles_until): Fix typos.
4035 2002-03-15 Jakub Jelinek <jakub@redhat.com>
4037 PR optimization/5891
4038 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
4040 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
4042 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
4043 descriptors correctly.
4045 2002-03-14 Michael Meissner <meissner@redhat.com>
4047 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
4048 100, allowing MAX_UNROLLED_INSNS to be overridden.
4050 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
4053 * unroll.c (params.h): Include.
4054 (MAX_UNROLLED_INSNS): Delete, now in params.h.
4056 * doc/invoke.texi (--param max-unroll-insns): Document.
4058 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
4060 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
4062 * arm.md: Fix warnings about constraints in peepholes and splits.
4064 2002-03-14 Zack Weinberg <zack@codesourcery.com>
4066 * cpphash.h (struct lexer_state): Remove line_extension member.
4067 * cpplib.c (dequote_string, do_linemarker): New functions.
4068 (linemarker_dir): New data object.
4069 (DIRECTIVE_TABLE): No longer need to interpret #line in
4070 preprocessed source. Delete obsolete comment about return
4072 (end_directive, directive_diagnostics, _cpp_handle_directive):
4073 Don't muck with line_extension.
4074 (directive_diagnostics): No need to issue warnings for
4076 (_cpp_handle_directive): Issue warnings for linemarkers here,
4077 when appropriate. Dispatch linemarkers to do_linemarker, not
4079 (do_line): Code to handle linemarkers split out to do_linemarker.
4080 Convert escape sequences in filename argument, both places.
4082 * cppmacro.c (quote_string): Rename cpp_quote_string and
4083 export. All callers changed.
4084 * cpplib.h (cpp_quote_string): Prototype.
4085 * cppmain.c (print_line): Call cpp_quote_string on to_file
4088 * doc/cpp.texi: Document that escapes are now interpreted in
4089 #line and in linemarkers, and that non-printing characters are
4090 converted to octal escapes when linemarkers are generated.
4092 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
4094 * emit-rtl.c (try_split): Use delete_insns.
4095 * recog.c (split_all_insns): Fix terminating condition.
4097 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
4098 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4101 * arm.c (arm_output_epilogue): Fix floating-point register save
4102 adjustment when using a frame pointer.
4104 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
4106 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
4107 * config/mips/mips.c (compute_frame_size): Retrofit them here.
4108 (save_restore_insns, mips_expand_epilogue): And here.
4109 (build_mips16_call_stub): And here.
4110 (mips_function_value): Use the new macros to decide whether a single
4111 or complex float can be returned in floating-point registers. Return
4112 a parallel rtx in the complex case.
4114 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
4116 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
4117 call after liveness analysis.
4119 * recog.c (split_insn): Use delete_insn_and_edges.
4121 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
4122 instructions to have branch prediction notes.
4123 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
4125 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
4127 * configure.in: Don't pass -Wno-long-long to a ADA compiler
4128 that doesn't support it.
4129 * configure: Regenerate.
4131 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4134 * config/sparc/sparc.md (normal_branch, inverted_branch,
4135 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
4136 inverted_fp_branch): Adjust calls to output_cbranch.
4137 Set length attribute.
4138 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
4139 output_v9branch. Set length attribute.
4140 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
4142 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
4143 (output_cbranch): Likewise. Handle far branches.
4144 (output_v9branch): Handle far branches.
4145 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
4147 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
4148 noov_compare64_op predicates.
4150 2002-03-13 Jason Merrill <jason@redhat.com>
4152 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
4153 into the function and constify it.
4154 * gthr-dce.h, gthr-solaris.h: Likewise.
4156 2002-03-13 David Edelsohn <edelsohn@gnu.org>
4158 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
4159 * config/rs6000/rs6000.c (rs6000_va_arg): Use
4160 std_expand_builtin_va_arg if not ABI_V4.
4162 2002-03-13 Jason Merrill <jason@redhat.com>
4164 * varasm.c (globalize_decl): New fn.
4165 (assemble_start_function): Use it.
4166 (asm_emit_uninitialized): Use it.
4167 (assemble_alias): Use it.
4168 (assemble_variable): Use it.
4170 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
4172 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
4173 2002-03-12 internal visibility change.
4174 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
4175 visibility into SYMBOL_REF_FLAG.
4177 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
4179 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
4180 VOIDmode operand. Add compile-time optimization for constant results.
4182 2002-03-12 Jason Merrill <jason@redhat.com>
4184 * c-typeck.c (convert_for_assignment): Don't allow conversions
4185 between pointers and references. Only allow lvalues to convert to
4188 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
4190 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
4191 before prologue, to avoid scheduling problems.
4193 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4195 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4196 (ELIMINABLE_REGS): Add sfp->sp.
4197 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
4199 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4201 PR optimization/5892
4202 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
4204 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4206 * loop.c (basic_induction_var): Don't call convert_modes if mode
4207 classes are different.
4209 2002-03-12 Richard Henderson <rth@redhat.com>
4211 PR optimization/5901
4212 * function.c (reposition_prologue_and_epilogue_notes): Position
4213 the markers after/before the last/first insn not deleted.
4215 2002-03-12 Richard Henderson <rth@redhat.com>
4217 PR optimization/5878
4218 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
4219 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
4220 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
4222 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
4223 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
4224 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
4226 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
4227 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
4228 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
4229 also. Don't set it if not flag_pic.
4230 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
4231 to be INVALID_REGNUM when not used.
4233 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
4235 * expmed.c (store_bit_field): Reset alias set for memory.
4236 (extract_bit_field): Same.
4238 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4240 * c-common.c (c_tree_code_type, c_tree_code_length,
4241 c_tree_code_name, add_c_tree_codes): Delete.
4242 * c-common.h (add_c_tree_codes): Delete.
4243 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
4245 * c-objc-common.c (c_objc_common_init): Don't call
4246 add_c_tree_codes, instead set lang_unsafe_for_reeval.
4247 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
4248 objc_tree_code_name, add_objc_tree_codes): Delete.
4249 (objc_init): Don't call add_objc_tree_codes.
4250 * objc/objc-lang.c (tree_code_type, tree_code_length,
4251 tree_code_name): Define.
4252 * toplev.c (lang_independent_init): Don't set
4253 tree_code_length[IDENTIFIER_NODE].
4254 * tree.c (tree_code_type, tree_code_length, tree_code_name):
4255 Delete definitions, moved to language front-ends.
4256 * tree.def (IDENTIFIER_NODE): Hardwire the length.
4257 * tree.h (tree_code_type, tree_code_length, tree_code_name):
4259 (tree_code_length): Change type to unsigned char.
4261 2002-03-12 Richard Henderson <rth@redhat.com>
4263 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
4264 internal visibility change.
4266 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4268 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
4269 validize_mem() instead of change_address to avoid clobbering
4272 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
4274 * c-lex.h (position_after_whitespace): Remove.
4276 2002-03-12 Jakub Jelinek <jakub@redhat.com>
4278 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
4279 (lex_string): Use unsigned char pointers.
4281 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
4283 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
4284 is not a valid memory_operand.
4286 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4288 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
4289 * config/xtensa/lib1funcs.asm: Fix copyright to include
4290 special case for libgcc files.
4291 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
4292 (__divsi3): Likewise.
4293 (__umodsi3): Likewise.
4294 (__modsi3): Likewise.
4295 * config/xtensa/lib2funcs.S: Fix copyright to include
4296 special case for libgcc files.
4298 2002-03-12 Tom Rix <trix@redhat.com>
4300 * collect2.c (resolve_lib_name): Move outside of
4301 OBJECT_FORMAT_COFF ifdef.
4302 (ignore_library): Same.
4304 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4306 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
4308 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4310 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
4311 to function_section before writing out the constant pool.
4313 2002-03-12 David Edelsohn <edelsohn@gnu.org>
4315 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
4317 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
4319 2002-03-12 Alan Modra <amodra@bigpond.net.au>
4321 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
4325 (cmpsi splitter): Likewise.
4326 (modsi3): Fail if <= 0.
4327 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
4328 redundant test when HOST_BITS_PER_WIDE_INT != 32.
4329 (reg_or_sub_cint64_operand): Likewise.
4330 (num_insns_constant_wide): Optimize sign extension.
4331 (rs6000_legitimize_address): Likewise.
4333 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
4335 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4336 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4338 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
4340 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
4341 address calculation.
4343 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
4345 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
4346 scratch register to DImode / TImode.
4347 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
4348 register used does not overlap the target.
4350 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4352 * Makefile.in (debug.o): Depend on debug.h.
4353 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
4354 * debug.c (do_nothing_debug_hooks): Likewise.
4355 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
4356 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
4357 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
4358 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
4359 * dwarfout.c (dwarf_debug_hooks): Likewise.
4360 * integrate.c (output_inline_function): Likewise.
4361 * objc/objc-act.c (synth_module_prologue): Likewise.
4362 * sdbout.c (sdb_debug_hooks): Likewise.
4363 * toplev.c (debug_hooks): Likewise.
4364 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4366 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4368 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
4369 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
4370 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
4371 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
4372 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
4373 * defaults.h (POINTER_SIZE): Define.
4374 * doc/tm.texi (POINTER_SIZE): Document default.
4376 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4378 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
4380 2002-03-11 Richard Henderson <rth@redhat.com>
4382 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
4383 if rebuild_label_notes_after_reload.
4385 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
4387 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
4388 emit pic register load if "internal" visibility.
4389 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
4390 (cris_expand_builtin_va_arg): Do all computations on trees.
4392 2002-03-11 Richard Henderson <rth@redhat.com>
4394 * rtlanal.c: Include recog.h.
4395 (keep_with_call_p): Fix thinko.
4396 * Makefile.in (rtlanal.o): Update dependencies.
4398 2002-03-11 Chris Meyer <cmeyer@gatan.com>
4400 * genflags.c (gen_insn): Use IS_VSPACE.
4401 * genoutput.c (output_insn_data): Likewise.
4402 (process_template): Likewise.
4404 2002-03-11 Richard Henderson <rth@redhat.com>
4406 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
4408 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
4410 * Makefile.in: Update.
4411 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
4412 Update documentation.
4413 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
4414 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
4416 2002-03-11 Zack Weinberg <zack@codesourcery.com>
4418 * Makefile.in: Give texi2pod its input file as a command line
4419 argument, not on stdin.
4421 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
4422 Daniel Berlin <dan@dberlin.org>
4424 C++ alias analysis improvement.
4425 * alias.c (record_component_aliases): Record aliases for base
4428 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
4430 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
4432 2002-03-11 Douglas B Rupp <rupp@gnat.com>
4434 * toplev.c (vms_fopen): Remove, not needed.
4436 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
4438 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
4440 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
4441 for FP, already done later.
4443 * toplev.c (debug_args): Add entry for VMS_DEBUG.
4444 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
4446 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
4448 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
4449 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
4450 LARGEST_EXPONENT_IS_NORMAL for the given mode.
4451 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
4452 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
4453 (ediv, emul, eldexp, esqrt): Likewise.
4454 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
4455 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
4456 (saturate): New function.
4457 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
4458 (make_nan): Use a saturation value instead of a NaN if
4459 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
4460 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
4461 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
4462 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
4463 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
4464 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
4465 !ROUND_TOWARDS_ZERO.
4466 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
4467 (ROUND_TOWARDS_ZERO): Document.
4469 2002-03-11 Andreas Jaeger <aj@suse.de>
4471 * cfg.c (dump_flow_info): Remove unused variable.
4473 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
4475 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
4476 computations on trees.
4478 2002-03-10 Richard Henderson <rth@redhat.com>
4481 * reload.c (copy_replacements_1): New.
4482 (copy_replacements): Use it to recurse through the rtx.
4484 2002-03-10 Richard Henderson <rth@redhat.com>
4486 * loop.c (strength_reduce): Compute number of iterations as
4487 unsigned HOST_WIDE_INT.
4489 2002-03-10 Richard Henderson <rth@redhat.com>
4491 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
4492 to move away from the end of the block.
4494 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
4496 PR preprocessor/5899
4497 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4499 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4501 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4503 * attribs.c (decl_attributes): Fix signed/unsigned warning.
4505 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
4507 * config/mmix/mmix.c: Improve comments.
4508 (mmix_target_asm_function_prologue): Drop variable
4509 empty_stack_frame. Don't allocate unused slot above fp.
4510 (mmix_target_asm_function_epilogue): Mirror prologue changes.
4511 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4512 brace in first column.
4513 (enum reg_class): Ditto.
4514 (FIRST_PARM_OFFSET): Now 0.
4515 (USER_LABEL_PREFIX): Remove #if 0:d definition.
4517 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4519 * combine.c (make_extraction): Fix error in last change.
4521 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4523 * c4x.c (c4x_fp_reglist): Const-ify.
4524 * cris.c (cris_print_operand): Likewise.
4525 * i386.c (ix86_va_arg): Likewise.
4526 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4527 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4528 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4529 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4530 * mcore.h (regno_reg_class): Likewise.
4531 * mips.c (gen_int_relational): Likewise.
4532 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
4533 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
4534 * pdp11.c (move_costs): Likewise.
4535 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
4536 * s390.c (s390_branch_condition_mnemonic, regclass_map):
4538 * s390.h (regclass_map): Likewise.
4539 * sh.c (shift_amounts): Likewise.
4540 * sh.md (rotlsi3): Likewise.
4542 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
4544 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4545 (ne0+5): Use new clobber to generate proper shift pattern.
4546 Patch by Michael Matz <matz@kde.org>.
4548 2002-03-09 Andreas Schwab <schwab@suse.de>
4550 * gcc.c (validate_all_switches): Also handle `%W{...}'.
4552 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
4554 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4556 2002-03-09 Jakub Jelinek <jakub@redhat.com>
4559 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4560 even for non-representable constants.
4562 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4564 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4565 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4566 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4567 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4568 (pop_function_context): Compute MAY_SHARE parameter for
4570 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4571 (gen_mem_addressof): Call fixup_var_refs with new parm.
4573 * combine.c (make_extraction): Don't make extension of CONST_INT.
4575 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
4577 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4578 in o32 and o64 ABIs.
4579 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4580 but getting fixed-size structs passed in registers regardless of
4581 padding in o32 and o64 ABIs.
4583 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4584 offset before loading address of argument passed by transparent
4587 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
4589 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4591 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
4593 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4594 marker such that registers after it are saved.
4596 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4598 * sparc.c (arith_4096_operand): Fix error in last change.
4600 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
4602 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4605 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
4607 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4610 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
4612 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4614 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
4616 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4617 removed; fix return value.
4618 * combine.c (combine_instructions): Dirtify blocks where we failed to
4619 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4620 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4622 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4624 * gcse.c (insert_insn_end_bb): Fix typo in last change.
4626 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
4628 * recog.c (peephole2_optimize): Re-distribute EH edges.
4630 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
4632 * expr.c (expand_expr): Use unsave lang hook.
4633 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4634 (LANG_HOOKS_INITIALIZER): Update.
4635 * langhooks.h (struct lang_hooks): New hook unsave.
4636 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4637 (unsave_expr_1): Remove unused lang_unsave_expr_now.
4638 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
4639 (unsave_expr_now): Remove.
4640 * tree.h (unsave_expr_now, lang_unsave,
4641 lang_unsave_expr_now): Remove.
4644 2002-03-08 Andreas Jaeger <aj@suse.de>
4646 * flow.c (propagate_block_delete_insn): Remove unused variable.
4648 2002-03-08 Kazu Hirata <kazu@hxi.com>
4650 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4651 insn length for memory load/store.
4653 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
4655 * doc/install.texi (--with-libiconv-prefix): Document.
4657 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
4659 * doc/sourcebuild.texi: Fix typo.
4661 2002-03-08 Jakub Jelinek <jakub@redhat.com>
4664 * builtins.c (std_expand_builtin_va_arg): Do all computations on
4667 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4669 * rtl.c (copy_most_rtx): Move from here ...
4670 * emit-rtl.c (copy_most_rtx): ... to here.
4672 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
4674 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4675 SUBTARGET_CPP_SIZE_SPEC.
4676 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4678 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4680 2002-03-07 Matt Hiller <hiller@redhat.com>
4682 * gensupport.c (first_dir_md_include): Renamed from include;
4683 change all references.
4684 (last_dir_md_include): Renamed from last_include; change all
4686 (init_md_reader): Unconditionally initialize base_dir whether or
4687 not filename is a relative path.
4689 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
4691 * config/fp-bit.c (_unord_f2): Compile it in even if
4692 US_SOFTWARE_GOFAST is enabled.
4694 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4695 NULL_RTX. Set all HFmode operations as NULL_RTX.
4696 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4697 NULL_RTX, try reversing the comparison and the operands.
4699 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
4701 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4702 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4705 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
4707 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4709 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
4711 * basic-block.h (fixup_abnormal_edges): Declare.
4712 * reload1.c (fixup_abnormal_edges): New function.
4713 * reg-stack.c (convert_regs): Use it.
4715 * gcse.c (insert_insn_end_bb): Handle trapping insns.
4717 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4719 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
4721 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4722 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4723 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4724 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4725 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4726 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4727 unless x and y could be infinite.
4728 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4729 Check that the common type of both arguments is a real, even for
4730 targets without unordered comparisons. Allow an integer argument
4731 to be compared against a real.
4732 (expand_tree_builtin): Use expand_unordered_cmp.
4733 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4734 * cse.c (fold_rtx): Likewise. Fix indentation.
4735 * fold-const.c (fold_real_zero_addition_p): New.
4736 (fold): Use it, and the new HONOR_... macros.
4737 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4738 * jump.c (reversed_comparison_code_parts): After searching for
4739 the true comparison mode, use HONOR_NANS to decide whether it
4740 can be safely reversed.
4741 (reverse_condition_maybe_unordered): Remove IEEE check.
4742 * simplify-rtx.c (simplify_binary_operation): Use the new macros
4743 to decide which simplifications are valid. Allow the following
4744 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4745 and (a - -b) to (a + b).
4746 (simplify_relational_operation): Use HONOR_NANS.
4747 * doc/tm.texi: Document the MODE_HAS_... macros.
4749 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
4751 * combine.c (simplify_comparison): If simplifying a logical shift
4752 right and compare with constant, force the comparison to unsigned.
4754 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
4756 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4758 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4760 (alt_reg_names): Remove % for vrsave.
4762 2002-03-06 Richard Henderson <rth@redhat.com>
4764 PR optimization/5844
4765 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
4766 if used indicates we've already emitted one copy of an operand.
4767 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4768 (gen_split): Supply a non-null used.
4770 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
4772 * reload1.c (reload): Unshare all rtl after reload is done.
4774 * simplify-rtx.c (simplify_plus_minus): Do not abort,
4775 but simply fail if the expression is too complex to simplify.
4776 (simplify_gen_binary): Handle simplify_plus_minus failures.
4778 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
4780 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4781 consistently call delete_trivially_dead_insns after CSE and GCSE;
4782 fix DFI_life dumping; do jump threading after liveness; do crossjumping
4783 after liveness2; update comment in last crossjumping.
4784 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4786 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
4788 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4789 after completing fast dead code elimination.
4791 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4794 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
4796 * version.c: Fix misplaced leading blanks on first line.
4798 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
4800 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4802 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
4804 * cfgcleanup.c (mentions_nonequal_regs): New function.
4805 (thread_jump): Use it.
4806 * toplev.c (rest_of_compilation): Run jump threading after
4809 2002-03-06 Jakub Jelinek <jakub@redhat.com>
4811 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4814 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
4816 * predict.c (estimate_bb_frequencies): Do not reload the
4817 frequencies from notes.
4819 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
4821 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4822 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4824 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4825 delete_noop_moves): Return indeger.
4826 * flow.c (ndead): New variable.
4827 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4828 BB argument; update callers.
4829 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4830 (life_analysis): Do not call purge_all_dead_edges.
4831 (update_life_info): Return number of deleted insns; print statistics.
4832 (update_life_info_in_dirty_blocks): likewise.
4833 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4834 return number of insns deleted.
4836 * cse.c: Include timevar.h
4837 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4838 iterate until stabilizes; print statistics; return number of killed
4840 * Makefile.in: (cse.o): Add timevar.h dependency
4841 * rtl.h (delete_trivially_dead_insns): New.
4842 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4843 * toplev.c (rest_of_compilation): Update callers.
4845 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4846 (try_optimize_cfg): Do not update liveness.
4847 (cleanup-cfg): Loop until try_optimize_cfg and dead code
4848 removal stabilizes; use delete_trivially_dead_insns.
4850 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4852 2002-03-05 Zack Weinberg <zack@codesourcery.com>
4854 * cppmain.c (setup_callbacks): Disable #pragma and #ident
4855 callbacks when processing assembly language.
4857 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4859 * pa.h (ASM_FILE_END): Define.
4860 * som.h (ASM_FILE_END): Delete.
4862 * pa.c (function_arg): Don't pass floats in general registers in
4863 indirect calls if TARGET_ELF32.
4865 2002-03-05 Richard Henderson <rth@redhat.com>
4867 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4869 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
4871 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4873 2002-03-05 Jakub Jelinek <jakub@redhat.com>
4875 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4876 -r command line. Don't hide any symbols if not building
4879 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
4881 * cfg.c (dump_flow_info): Warn about profile mismatches.
4882 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4883 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4885 2002-03-05 Jakub Jelinek <jakub@redhat.com>
4887 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4888 wide volatile memory by parts.
4890 2002-03-05 Jakub Jelinek <jakub@redhat.com>
4892 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4895 2002-03-05 Richard Henderson <rth@redhat.com>
4897 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4899 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
4901 * toplev.c (documented_lang_options): Document more
4902 language-specific options.
4903 * doc/invoke.texi (Warning Options): Correct documentation for
4904 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4905 * c-decl.c (c_decode_option): Use a table to handle warning options.
4907 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
4909 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4910 parameter to mmix_encode_section_info.
4911 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4912 relocatably. Always produce ELF, not mmo if linking relocatably.
4913 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4914 first is non-zero, don't add symbol prefix.
4915 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4916 prototype accordingly.
4918 2002-03-04 Krister Walfridsson <cato@df.lth.se>
4920 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4922 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
4924 * configure.in: Increase required makeinfo version to 4.1.
4925 * configure: Regenerate.
4927 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
4929 * .cvsignore: Remove *.info* and genrtl*; these files are generated
4932 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
4934 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4935 * doc/invoke.texi: Fix @math uses.
4937 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
4939 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4942 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
4944 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4945 (powerpc-*-eabisimaltivec*): Same.
4947 * config/rs6000/t-ppcendian: New.
4949 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4951 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4952 nonimmediate_src_operand and nonimmediate_lsrc_operand to
4953 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4955 2002-03-03 Richard Henderson <rth@redhat.com>
4957 * toplev.c (rest_of_decl_compilation): Revert last two changes.
4959 2002-03-03 Zack Weinberg <zack@codesourcery.com>
4961 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4962 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4963 tree.c, config/m68k/m68k.c:
4964 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4965 REAL_ARITHMETIC blocks unconditional. Delete some further
4966 #ifdef blocks predicated on REAL_ARITHMETIC.
4967 * flags.h, toplev.c: Delete remaining references to
4970 * doc/invoke.texi: Remove documentation of -fpretend-float.
4971 * doc/tm.texi: Describe the various REAL_* macros as provided by
4972 real.h, not by the target configuration files.
4974 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4975 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4976 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4977 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4978 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4979 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4980 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4981 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4982 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4983 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4984 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4985 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4986 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4987 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4988 config/xtensa/xtensa.h:
4989 Do not define, undefine, or mention in comments any of
4990 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4991 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4992 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4993 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4994 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4995 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4996 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4997 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4998 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
5000 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5002 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
5003 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
5004 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
5005 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
5006 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
5007 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
5009 * defaults.h (BITS_PER_WORD): Define.
5010 * doc/tm.texi (BITS_PER_WORD): Document default value.
5012 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
5013 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
5014 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
5016 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5018 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
5019 lieu of explicit sizeof/sizeof.
5020 * i386.c (override_options, ix86_init_mmx_sse_builtins,
5021 ix86_expand_builtin): Likewise.
5022 * mips.c (mips_add_gc_roots): Likewise.
5023 * mmix.c (mmix_output_condition): Likewise.
5024 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
5025 altivec_init_builtins): Likewise.
5026 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
5027 * cppexp.c (Nsuff, parse_number): Likewise.
5028 * cppinit.c (builtin_array_end): Likewise.
5029 * gcc.c (n_default_compilers, process_command): Likewise.
5030 * genpreds.c (output_predicate_decls): Likewise.
5031 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
5032 * lcm.c (N_ENTITIES): Likewise.
5033 * stor-layout.c (set_sizetype): Likewise.
5035 2002-03-03 Richard Henderson <rth@redhat.com>
5037 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
5038 for types or labels.
5040 2002-03-03 Richard Henderson <rth@redhat.com>
5042 * c-decl.c (start_decl): Initialized variables are not common.
5044 2002-03-02 Per Bothner <per@bothner.com>
5046 * gcc.c (option_map): Suport new --bootclasspath option.
5047 --CLASSPATH is now just an alias for --classpath.
5049 2002-03-02 Richard Henderson <rth@redhat.com>
5051 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
5052 load if "internal" visibility.
5053 * doc/extend.texi: Document visibility meanings.
5055 2002-03-02 Richard Henderson <rth@redhat.com>
5057 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
5058 to functions as well.
5060 2002-03-02 Richard Henderson <rth@redhat.com>
5062 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
5063 (handle_visibility_attribute): Don't call assemble_visibility.
5064 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
5065 without asmspec. Invoke assemble_alias when needed.
5066 * varasm.c (maybe_assemble_visibility): New.
5067 (assemble_start_function, assemble_variable, assemble_alias): Use it.
5069 2002-03-02 Richard Henderson <rth@redhat.com>
5071 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
5072 invoke ENCODE_SECTION_INFO with first call flag.
5074 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
5075 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
5076 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
5077 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
5078 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
5079 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
5080 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
5081 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
5082 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
5083 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
5084 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
5085 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
5086 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
5087 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
5088 config/mcore/mcore-protos.h, config/mcore/mcore.c,
5089 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
5090 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
5091 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
5092 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
5093 config/sh/sh.h, config/sparc/sparc.h,
5094 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
5095 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
5096 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
5097 FIRST argument. As needed, examine it and do nothing.
5099 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
5100 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
5101 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
5103 * config/arm/t-pe (pe.o): Add dependencies.
5105 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5107 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
5108 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
5109 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
5110 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
5111 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
5112 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
5113 * defaults.h (BITS_PER_UNIT): Define.
5114 * doc/tm.texi (BITS_PER_UNIT): Document default value.
5116 2002-03-02 Kazu Hirata <kazu@hxi.com>
5118 * config/h8300/h8300-protos.h: Add a prototype for
5119 compute_a_shift_length.
5120 * config/h8300/h8300.c (h8300_asm_insn_count): New.
5121 (compute_a_shift_length): Likewise.
5122 (h8300_adjust_insn_length): Do not adjust insn length of shift
5124 * config/h8300/h8300.md (anonymous shift patterns): Use
5125 compute_a_shift_length.
5127 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5129 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
5132 * emit-rtl.c (offset_address): Call update_temp_slot_address.
5134 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5136 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
5137 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
5138 * flags.h (flag_zero_initialized_in_bss): Declare.
5139 * toplev.c (flag_zero_initialized_in_bss): New flag.
5140 (lang_independent_options): Add flag_zero_initialized_in_bss.
5141 * tree.c (initializer_zerop): New function.
5142 * tree.h (initializer_zerop): Declare.
5143 * varasm.c (assemble_variable): If we can emit bss, put zero
5144 initializers in the bss section.
5146 2002-03-02 Alan Modra <amodra@bigpond.net.au>
5148 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
5149 like more than one symbol per .weak directive.
5151 2002-03-01 Richard Henderson <rth@redhat.com>
5153 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
5154 adjust argument_pointer by pretend_args_size.
5155 (ia64_va_start): Adjust va_start address by -pretend_args_size.
5157 2002-03-01 Kazu Hirata <kazu@hxi.com>
5159 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
5161 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
5163 * toplev.c (rest_of_compilation): Delete dead jumptables before
5165 * flow.c (delete_dead_jumptables): Make global.
5166 * rtl.h (delete_dead_jumptables): Declare.
5168 2002-03-01 David Edelsohn <edelsohn@gnu.org>
5170 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
5171 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
5172 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
5174 2002-03-01 Kazu Hirata <kazu@hxi.com>
5176 * config/h8300/h8300-protos.h: Fix formatting.
5177 * config/h8300/h8300.c: Likewise.
5178 * config/h8300/h8300.h: Likewise.
5180 2002-03-01 Kazu Hirata <kazu@hxi.com>
5182 * config/h8300/h8300.c (print_operand): Support 16-bit
5184 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
5186 2002-02-28 Richard Henderson <rth@redhat.com>
5188 * expmed.c (store_bit_field): Prevent generation of CONCATs;
5189 pun complex values as integers; use gen_lowpart instead of
5191 (extract_bit_field): Likewise.
5193 2002-03-01 Alan Modra <amodra@bigpond.net.au>
5194 David Edelsohn <edelsohn@gnu.org>
5196 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
5197 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
5198 (SUPPORTS_WEAK): Likewise.
5199 * output.h (add_weak): Add tree param.
5200 * varasm.c (add_weak): Likewise. Save decl.
5201 (struct weak_syms): Add decl field.
5202 (mark_weak_decls): New function.
5203 (init_varasm_once): ggc_add_root mark_weak_decls.
5204 (assemble_start_function): Use ASM_WEAKEN_DECL.
5205 (assemble_variable): Likewise.
5206 (assemble_alias): Likewise.
5207 (declare_weak): Pass decl to add_weak.
5208 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
5209 (remove_from_pending_weak_list): Declare and define for
5211 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
5212 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
5213 * defaults.h (SUPPORTS_WEAK): Likewise.
5214 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5215 .weak for code sym. Do emit .size for descriptor sym.
5216 (ASM_DECLARE_FUNCTION_SIZE): Define.
5217 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
5218 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
5219 .lglobl unless TARGET_XCOFF. Formatting fixes.
5220 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5222 (HANDLE_PRAGMA_WEAK): Remove.
5223 (ASM_WEAKEN_LABEL): Remove.
5224 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
5226 2002-03-01 Jason Merrill <jason@redhat.com>
5228 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
5229 (TARGET_EXPR_CLEANUP): New macro.
5231 2002-02-28 Steve Ellcey <sje@cup.hp.com>
5233 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
5234 to take ptr_extend into account as third type of extension.
5235 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
5236 fields used by SUBREG_PROMOTED_UNSIGNED_P.
5237 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
5238 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
5239 * calls.c (precompute_arguments): Use new macro.
5240 (expand_call): Ditto.
5241 * combine.c (nonzero_bits): Ditto.
5242 (record_promoted_value): Ditto.
5243 * expr.c (store_expr): Ditto.
5244 (expand_expr): Ditto.
5245 * function.c (assign_parms): Ditto.
5247 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
5249 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
5250 override -shared and -shared-libgcc.
5252 2002-02-28 David O'Brien <obrien@FreeBSD.org>
5254 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
5256 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
5259 2002-02-28 Richard Henderson <rth@redhat.com>
5261 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
5262 4 cycle latency from MM producers.
5263 (ia64_internal_sched_reorder): Likewise with pipeline flush.
5265 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5267 * mklibgcc.in: Don't use GNU make extension.
5269 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
5271 * c-parse.in (STATIC): New terminal.
5272 (scspec): New non-terminal. Update productions accordingly.
5273 (program): Remove bogus ifc / end ifc.
5274 (array_declarator): Simplify production using STATIC.
5276 2002-02-28 Jim Meyering <meyering@lucent.com>
5278 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
5279 \a still means TARGET_BELL.
5281 2002-02-28 Richard Henderson <rth@redhat.com>
5283 * haifa-sched.c (sched_emit_insn): New.
5284 (schedule_block): Use last_scheduled_insn to track last insn.
5285 * sched-int.h (sched_emit_insn): Prototype.
5286 * config/ia64/ia64.c (last_issued): Remove.
5287 (ia64_variable_issue): Don't set it.
5288 (nop_cycles_until): Use sched_emit_insn.
5290 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
5292 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
5295 2002-02-28 Kazu Hirata <kazu@hxi.com>
5297 * config/h8300/h8300.c: Fix formatting.
5298 * config/h8300/h8300.h: Likewise.
5300 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
5302 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
5303 which may overwrite the high byte of the frame pointer.
5305 2002-02-28 Bo Thorsen <bo@suse.de>
5307 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
5308 (STARTFILE_SPEC): Add 64 bit files.
5309 (ENDFILE_SPEC): Likewise.
5311 2002-02-28 Jason Merrill <jason@redhat.com>
5313 * c-decl.c (finish_function): Only warn about missing return
5314 statement with -Wreturn-type.
5316 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
5318 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
5320 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
5321 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
5323 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
5325 * basic-block.h (BB_REACHABLE): Renumber.
5326 (BB_DIRTY, BB_NEW): New flags.
5327 (clear_bb_flags): Declare.
5328 (update_life_info_in_dirty_blocks): Declare.
5329 * cfg.c (clear_bb_flags): New function.
5330 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
5331 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
5332 reorder_insns, emit_insn_after): Mark block as dirty.
5333 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
5334 (update_life_info_in_dirty_blocks): New function.
5335 * recog.c (apply_change_group): Dirtify block.
5337 * cse.c (cse_insn): Reorder emitting of jump insn to keep
5339 * gcse.c (delete_null_pointer_checks): Likewise.
5341 * toplev.c (dump_file_index): Move cse2 after bp,
5343 (dump_file_info): Similary.
5344 (rest_of_compilation): Avoid most of CFG rebuilds;
5345 do first if converision after null pointer checks, do cse2
5346 after branch prediction; avoid full liveness rebuild after
5347 initializing subregs.
5348 * invoke.texi (-d options): Document -du, renumber.
5350 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
5351 (notice_new_block): Do not set BB_UPDATE_LIFE.
5352 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
5353 merge_blocks_move_successor_nojumps, merge_blocks,
5354 try_crossjump_to_edge): Likewise.
5355 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
5356 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
5357 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
5358 (merge_of_block): Do not use life_data_ok.
5359 (find_if_case_1): Do not use SET_UPDATE_LIFE.
5360 (if_convert): Use BB_DIRTY mechanizm to update life.
5361 * lcm.c (optimize_mode_switching): Update
5362 update_life_info_in_dirty_blocks
5364 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
5366 * Makefile.in (integrate.o): Update.
5367 * c-decl.c (copy_lang_decl): Rename.
5368 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5369 * integrate.c: Include langhooks.h.
5370 (copy_decl_for_inlining): Update to use langhook.
5371 * langhooks-def.h (lhd_do_nothing_t,
5372 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
5373 (LANG_HOOKS_INITIALIZER): Update.
5374 * langhooks.c (lhd_do_nothing_t): New.
5375 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
5376 * tree.h (copy_lang_decl): Remove.
5378 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5380 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
5382 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
5383 POST_DEC, and POST_MODIFY.
5385 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5387 * c-typeck.c (digest_init): Remove unused parameter; all
5390 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
5392 * expmed.c (expand_shift): Correctly test for low part of a
5395 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
5397 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
5398 insn UIDs with insn addresses.
5400 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5402 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
5403 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
5404 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
5405 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
5406 gcc.c, toplev.c: Delete code implementing -traditional mode.
5408 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
5409 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
5410 Document removal of -traditional mode for compilation, and
5411 remove documentation only relevant to that mode.
5413 * config/nextstep.h, config/ptx4.h, config/svr4.h,
5414 config/convex/convex.h, config/d30v/d30v.h,
5415 config/i386/dgux.h, config/i386/osf1elf.h,
5416 config/i386/osfelf.h, config/i386/osfrose.h,
5417 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
5418 config/m68k/hp310.h, config/m88k/dgux.h,
5419 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
5420 config/m88k/m88k.h, config/m88k/openbsd.h,
5421 config/mips/abi64.h, config/mips/osfrose.h,
5422 config/mips/svr4-5.h, config/mips/svr4-t.h,
5423 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5424 config/stormy16/stormy16.h: Remove all references to
5425 -traditional from target specs. Delete all mention of the
5426 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
5427 delete a couple of commented-out definitions of
5428 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
5431 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
5432 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
5434 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5436 * mklibgcc.in: Don't use \n in a line subject to
5437 interpretation by echo.
5439 2002-02-27 Graham Stott <grahams@redhat.com>
5441 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
5444 * loop.c (prescan_loop): Handle PARALLEL.
5446 * unroll.c (loop_iterations): Return 0 if the add_val for
5449 * final.c (output_operand_lossage): Constify PFX_STR.
5451 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
5453 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
5455 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
5456 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
5458 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
5460 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5462 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
5464 * cpplex.c (_cpp_lex_token): Handle directives in macro
5466 * cpplib.c (_cpp_handle_directive): Save and restore state
5467 if parsing macro args when entering a directive.
5468 * cppmacro.c (collect_args): No need to handle directives
5470 (enter_macro_context, replace_args): Use the original macro
5471 definition in case it was redefined whilst collecting arguments.
5475 2002-02-26 David Edelsohn <edelsohn@gnu.org>
5477 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
5478 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
5479 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
5481 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
5482 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
5483 (load_toc_v4_PIC_2): Same.
5485 2002-02-26 Alan Modra <amodra@bigpond.net.au>
5487 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
5489 2002-02-26 Richard Henderson <rth@redhat.com>
5491 * config/alpha/alpha.md (ashldi_se): Re-enable.
5493 2002-02-26 Richard Henderson <rth@redhat.com>
5495 * config/alpha/alpha.c (alpha_encode_section_info): Examine
5496 MODULE_LOCAL_P; improve commentary.
5498 2002-02-26 Zack Weinberg <zack@codesourcery.com>
5500 * doc/cpp.texi: Clarify documentation of relationship between
5503 2002-02-26 Kazu Hirata <kazu@hxi.com>
5505 * config/h8300/h8300-protos.h: Update the prototype for
5506 compute_logical_op_length. Add the prototype for
5507 compute_logical_op_cc.
5508 * config/h8300/h8300.c (compute_logical_op_length): Figure out
5510 (compute_logical_op_cc): New.
5511 * config/h8300/h8300.md: Combine all the logical op patterns
5512 in HImode and SImode. Use compute_logical_op_cc.
5514 2002-02-26 Kelley Cook <kelleycook@comcast.net>
5516 * config/i386/i386.c (print_operand): Don't append ATT-style
5517 length suffixs to x87 opcodes when in Intel mode.
5519 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
5521 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5522 (init_emit_once): Update calls.
5523 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5524 (init_syntax_once): Prototype.
5526 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5528 * pa-linux.h (LIB_SPEC): Update definition.
5529 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5531 2002-02-26 Richard Henderson <rth@redhat.com>
5533 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5534 if we emitted a stop bit.
5536 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5538 * configure.in (libgcc_visibility): Substitute.
5539 * configure: Rebuilt.
5540 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5541 defined symbols .hidden.
5543 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5545 * attribs.c (c_common_attribute_table): Add visibility.
5546 (handle_visibility_attribute): New function.
5547 * varasm.c (assemble_visibility): New function.
5548 * output.h (assemble_visibility): Add prototype.
5549 * tree.h (MODULE_LOCAL_P): Define.
5550 * crtstuff.c (__dso_handle): Use visibility attribute.
5551 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5552 for MODULE_LOCAL_P symbols too.
5553 * config/ia64/ia64.c (ia64_encode_section_info): Handle
5554 MODULE_LOCAL_P symbols the same way as local symbols.
5555 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5556 into .sdata/.sbss by the user.
5557 * doc/extend.texi (Function Attributes): Document visibility
5560 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5563 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5564 STRING_CST initializer spanning the whole variable without
5566 If expand_expr returned MEM, don't use it.
5568 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
5570 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5571 generate a die for the lexical block.
5573 2002-02-26 Kazu Hirata <kazu@hxi.com>
5575 * config/h8300/h8300-protos.h: Add a prototype for
5576 compute_logical_op_length.
5577 * config/h8300/h8300.c (compute_logical_op_length): New.
5578 * config/h8300/h8300.md (anonymous logical patterns): Use
5579 compute_logical_op_length for length.
5581 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5583 * dwarf2out.c (modified_type_die): Do not call type_main_variant
5585 (gen_type_die): Same.
5587 * attribs.c (handle_vector_size_attribute): Set debug information.
5589 2002-02-26 Daniel Egger <degger@fhm.edu>
5591 * config/rs6000/rs6000.md: Swap define_insn attributes to
5592 fix incorrect generation of merge high instructions instead
5595 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5597 * c-typeck.c (really_start_incremental_init): Use
5598 bitsize_zero_node for vectors.
5600 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5602 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5603 ("*set_vrsave_internal"): Same.
5605 2002-02-25 Richard Henderson <rth@redhat.com>
5607 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5608 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
5610 2002-02-25 Jakub Jelinek <jakub@redhat.com>
5613 * config/i386/i386.c (ix86_return_pops_args): Only pop
5614 fake structure return argument if it was passed on the stack.
5616 2002-02-25 Jason Merrill <jason@redhat.com>
5618 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5621 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
5623 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5624 link with shared_name only.
5625 * doc/invoke.texi (Link Options): Document new behavior.
5627 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
5629 * c-typeck.c (push_init_level): Handle vectors.
5631 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
5633 * config/sparc/sparc.c (const64_high_operand): Zero-extend
5634 operands of SPARC_SETHI_P.
5635 (input_operand): Likewise.
5636 (sparc_emit_set_const32): Likewise.
5637 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5638 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5639 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
5640 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5641 (movdi_insn_sp64_vis): Likewise.
5642 (movdi split, movdf split): Use SETHI32.
5643 * doc/md.texi: Document SPARC constraints L, M and N.
5645 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
5647 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5648 ("*set_vrsave_internal"): use mfspr for Darwin.
5650 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5651 gen_get_vrsave_internal.
5653 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5655 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5657 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
5659 * cpplex.c (cpp_interpret_charconst): Get signedness or
5660 otherwise of wide character constants correct.
5661 * cppexp.c (lex): Get signedness of wide charconsts correct.
5663 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5665 * optabs.c (widen_operand): Only call convert_modes for
5666 promoted SUBREG if signedness matches.
5667 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5669 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5671 * cpplib.c (glue_header_name): Use local buffer to build up
5674 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5676 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5678 2002-02-23 Kazu Hirata <kazu@hxi.com>
5680 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5681 H8/300[HS] separately.
5682 * config/h8300/h8300.md: Remove the early clobber constraint
5683 from bit field patterns.
5685 2002-02-23 Kazu Hirata <kazu@hxi.com>
5687 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5689 (mulhisi3): Likewise.
5690 (umulqisi3): Likewise.
5691 (umulhisi3): Likewise.
5693 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5695 * cppinit.c (output_deps): Correct test for stdout output.
5696 (init_dependency_output): Cure warning.
5698 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5700 * expr.c (store_expr): When converting expression to promoted
5701 equivalent type, allow using SUBREG_REG of TARGET as the target
5702 of the expansion of EXP.
5703 * loop.c (basic_induction_var, case SUBREG): Always look inside.
5704 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5705 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5706 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5707 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5709 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
5711 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5712 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5713 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5715 2002-02-23 Jakub Jelinek <jakub@redhat.com>
5717 PR optimization/5747
5718 * loop.c (scan_loop): Update reg info if move_movables created new
5721 2002-02-23 David Edelsohn <edelsohn@gnu.org>
5723 * gcc.c (init_gcc_spec): Revert last change.
5725 2002-02-23 David Edelsohn <edelsohn@gnu.org>
5727 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5728 gpc_reg_operand constraint.
5730 2002-02-23 Alan Modra <amodra@bigpond.net.au>
5732 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5733 Simplify comparison of `low'.
5734 (add_operand): Fix formatting.
5735 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5736 (mask_operand): Disallow mask to wrap in 64-bit mode.
5737 (rs6000_stack_info): Remove redundant test setting push_p.
5738 (output_toc): Fix formatting.
5739 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5740 cc_reg_not_cr0_operand constraint.
5741 (booldi3, boolcdi3 splitters): Same.
5743 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
5745 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5747 2002-02-22 David Edelsohn <edelsohn@gnu.org>
5749 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5750 gcc invoked with -shared-libgcc.
5752 2002-02-22 Jakub Jelinek <jakub@redhat.com>
5755 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5756 decl if any of elements was TREE_USED.
5758 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
5760 * config/sparc/sol2.h: Don't include sys/mman.h.
5761 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5762 (arith_4096_operand): Don't throw high bits away.
5763 (const64_operand): Take sign extension of CONST_INTs into account.
5764 (const64_high_operand, sparc_emit_set_const32): Likewise.
5765 (GEN_HIGHINT64): Likewise.
5766 (sparc_emit_set_const64_quick1): Likewise.
5767 (const64_is_2insns): Likewise.
5768 (print_operand): Use trunc_int_for_mode for sign extension.
5769 * config/sparc/sparc.h (SMALL_INT32): Likewise.
5770 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5771 chars. Assume CONST_INT is already properly sign-extended.
5772 (movdi split): Sign-extend each SImode part.
5773 (andsi3 split): Don't mask high bits off, so that result
5774 remains properly sign-extend.
5775 (iorsi3 split): Likewise.
5776 (xorsi3 split): Likewise.
5778 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
5780 * fold-const.c (fold): Fix typo in comments.
5782 2002-02-21 Diego Novillo <dnovillo@redhat.com>
5784 * Makefile.in (langhooks.o): Update dependencies.
5786 2002-02-21 Diego Novillo <dnovillo@redhat.com>
5788 * langhooks.c: Include flags.h.
5790 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
5792 * testsuite/gcc.dg/attr-alwaysinline.c: New.
5794 * c-common.c (c_common_post_options): Set inline trees by
5797 * doc/extend.texi (Function Attributes): Document always_inline
5799 Update documentation about inlining when not optimizing.
5801 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5803 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5804 unless DECL_ALWAYS_INLINE.
5806 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5807 unless DECL_ALWAYS_INLINE.
5808 (c_disregard_inline_limits): Disregard if always_inline set.
5810 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5811 Disregard if always_inline set.
5812 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5813 unless DECL_ALWAYS_INLINE.
5815 * attribs.c (handle_always_inline_attribute): New.
5816 (c_common_attribute_table): Add always_inline.
5818 * config/rs6000/altivec.h: Add prototypes for builtins
5819 requiring the always_inline attribute.
5821 2002-02-21 Eric Christopher <echristo@redhat.com>
5823 * expmed.c (store_bit_field): Try to simplify the subreg
5824 before generating a new one when when the mode size of
5825 value is less than maxmode.
5827 2002-02-21 Richard Henderson <rth@redhat.com>
5829 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5830 than gen_rtx_PLUS to form the sum.
5831 * explow.c (force_reg): Rearrange to not allocate new pseudo
5832 when force_operand returns a register.
5833 * expr.c (expand_assignment): Allow offset_rtx expansion to
5834 return a sum. Do not force addresses into registers.
5835 (expand_expr): Likewise.
5836 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5837 to canonicalize arithmetic that didn't simpify.
5838 (simplify_plus_minus): New argument force; update
5839 all callers. Don't split CONST unless we can do something with it,
5840 and wouldn't lose the constness of the operands.
5842 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5843 that we generated earlier.
5845 2002-02-21 Tom Tromey <tromey@redhat.com>
5847 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5848 (output_line_info): Use constant `1', with a long explanatory
5850 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5852 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
5854 * jump.c (redirect_jump): If old label has no UID, don't try to
5857 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
5859 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5860 If input is constant, do shifts at compile time.
5862 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
5864 * doc/extend.texi: Fix some more overfull hboxes.
5866 2002-02-21 Jakub Jelinek <jakub@redhat.com>
5868 PR optimization/4994
5869 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5872 2002-02-21 Jakub Jelinek <jakub@redhat.com>
5875 * expr.h (expand_and): Add mode argument.
5876 * expmed.c (expand_and): Add mode argument.
5877 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5878 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5879 * except.c (expand_builtin_extract_return_addr): Likewise.
5880 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5881 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5882 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5883 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5884 * config/c4x/c4x.md: Use GEN_INT (x) instead of
5885 gen_rtx (CONST_INT, VOIDmode, x).
5887 2002-02-21 Jakub Jelinek <jakub@redhat.com>
5890 * stmt.c (warn_if_unused_value): Move side effects test once more.
5892 2002-02-20 Torbjorn Granlund <tege@swox.com>
5894 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5895 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5897 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
5899 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5900 SUBREG or ZERO_EXTEND.
5902 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
5904 * sh.h (current_function_anonymous_args): Remove.
5905 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5906 of current_function_varargs and current_function_stdarg is set.
5907 * sh.c (sh_expand_prologue): Check current_function_varargs /
5908 current_function_stdarg / TARGET_SH5 instead of
5909 current_function_anonymous_args.
5911 * sh64.h (TARGET_VERSION): Define.
5913 2002-02-20 David Edelsohn <edelsohn@gnu.org>
5915 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5916 VRSAVE_REGNO on TARGET_ALTIVEC.
5918 2002-02-20 Alan Modra <amodra@bigpond.net.au>
5920 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5921 bits of SImode const_int.
5922 (includes_rshift_p): Likewise.
5923 (print_operand): Call mask_operand and mask64_operand with correct
5925 (rs6000_output_function_epilogue): Pad traceback table to word.
5926 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5927 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5928 mask64_operand with correct mode.
5929 (FUNCTION_ARG_REGNO_P): Correct parentheses.
5931 2002-02-20 Jakub Jelinek <jakub@redhat.com>
5934 * varasm.c (get_pool_constant_mark): New.
5935 * rtl.h (get_pool_constant_mark): Add prototype.
5936 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5937 be represented if it has not been output.
5939 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
5941 * combine.c (do_SUBST): Sanity check substitutions of
5942 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5943 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5944 CONST_INT into its operand.
5945 (known_cond): Likewise, for ZERO_EXTEND.
5946 * simplify-rtx.c (simplify_unary_operation): Fix condition to
5947 allow for simplification of wide modes. Reject CONST_INTs in
5948 ZERO_EXTEND when their actual mode is not given.
5950 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
5952 * c-decl.c (pushdecl): If no global declaration is found for an
5953 extern declaration in block scope, try a limbo one.
5955 2002-02-20 Jakub Jelinek <jakub@redhat.com>
5958 * c-common.c (pointer_int_sum): Moved from...
5959 * c-typeck.c (pointer_int_sum): ...here.
5960 * c-common.h (pointer_int_sum): Add prototype.
5962 2002-02-20 Jakub Jelinek <jakub@redhat.com>
5965 * c-decl.c (duplicate_decls): Return 0 if issued error about
5968 2002-02-20 Roger Sayle <roger@eyesopen.com>
5969 Jakub Jelinek <jakub@redhat.com>
5972 * tree.c (host_integerp): Ensure that the constant integer is
5973 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5974 when pos is zero or non-zero respectively. Clarify comment.
5975 * c-format.c (check_format_info_recurse): Fix host_integerp
5976 usage; the pos argument should be zero when assigning to a
5977 signed HOST_WIDE_INT.
5979 2002-02-20 Richard Henderson <rth@redhat.com>
5981 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5982 of the operand, rather than assuming TImode.
5983 (ix86_expand_binop_builtin): Cope with commutative patterns
5984 using nonimmediate_operand for both operands.
5985 (ix86_expand_timode_binop_builtin): Likewise.
5986 (ix86_expand_store_builtin): Validate operand 1.
5987 (ix86_expand_unop1_builtin): Likewise.
5989 2002-02-20 Philip Blundell <philb@gnu.org>
5992 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5994 2002-02-20 Richard Henderson <rth@redhat.com>
5997 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5999 2002-02-20 Tom Tromey <tromey@redhat.com>
6001 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6002 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6003 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6004 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6005 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
6008 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
6010 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
6011 for (const_int 0) in X not just INTVAL.
6013 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
6015 * doc/extend.texi: Avoid or reduce overfull hboxes.
6017 2002-02-20 Diego Novillo <dnovillo@redhat.com>
6019 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
6020 operations if the field does not start at a mode boundary.
6022 2001-02-20 Joel Sherrill <joel@OARcorp.com>
6024 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
6025 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
6026 Also done for -Acpu and -Amachine.
6028 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
6030 * cppinit.c (init_dependency_output): Take deps output file
6031 from -o if none given with -MF. Suppress normal output.
6032 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
6033 * doc/cpp.texi, doc/invoke.texi: Update.
6035 2002-02-19 Zack Weinberg <zack@codesourcery.com>
6037 * toplev.c (output_quoted_string): Write unprintable
6038 characters with octal escapes.
6040 2002-02-19 David Edelsohn <edelsohn@gnu.org>
6042 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
6043 really_call_used[VRSAVE_REGNO] if not Altivec.
6045 2002-02-19 Alan Modra <amodra@bigpond.net.au>
6047 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
6049 (constant_pool_expr_1): Fix formatting.
6050 (rs6000_legitimize_reload_address): Likewise.
6052 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6054 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
6055 now that we have one.
6057 2002-02-19 Zack Weinberg <zack@codesourcery.com>
6059 * tree.h (struct tree_common): Remove aux. Add unused_0 at
6060 end of first block of bitfields (which was only seven bits);
6061 rename dummy to unused_1; remove comment which is no longer true.
6063 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
6065 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
6067 2002-02-19 Philip Blundell <pb@nexus.co.uk>
6070 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
6074 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
6075 arm_is_longcall_p rather than inspecting call-type cookie
6077 (call_value_insn) [TARGET_THUMB]: Likewise.
6079 2002-02-19 Graham Stott <grahams@redhat.com>
6081 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
6083 2002-02-19 David Edelsohn <edelsohn@gnu.org>
6085 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
6086 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6087 (FP_SAVE_INLINE): Delete.
6089 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
6090 * config/rs6000/eabi.asm: Remove ABI save restore routines.
6091 * config/rs6000/t-ppccomm: Build crtsavres.o.
6092 * config/rs6000/crtsavres.asm: New file.
6094 2002-02-19 Philip Blundell <philb@gnu.org>
6096 * config/arm/arm.c (use_return_insn): Don't reject interrupt
6098 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
6099 (output_return_instruction): Allow interrupt functions to return with
6100 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
6101 (arm_expand_prologue): Subtract 4 before stacking LR in an
6104 2002-02-19 Philip Blundell <pb@nexus.co.uk>
6106 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
6107 decl, not just FUNCTION_DECL.
6108 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
6109 (arm_assemble_integer): Likewise.
6110 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
6113 2002-02-19 matthew green <mrg@eterna.com.au>
6115 * config.gcc (sparc-*-netbsdelf*): Enable target.
6116 (sparc64-*-netbsd*): New target.
6117 * config/sparc/netbsd-elf.h: New file.
6118 * config/sparc/t-netbsd64: New file.
6120 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
6122 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
6124 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
6126 * doc/invoke.texi: explicitly list the style guidelines that
6127 -Weffc++ checks for.
6129 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
6131 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
6133 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
6136 * gcc.c (cpp_unique_options): Treat -o as indicating object file
6137 only if not -E. If -E, pass -o through to the preprocessor.
6139 2002-02-19 Kazu Hirata <kazu@hxi.com>
6141 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
6142 register number with an appropriate macro.
6144 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6146 * doc/rtl.texi (Constants): Close @code tag.
6148 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
6150 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
6151 ("mmx_uavgv4hi3"): Same.
6152 ("pmulhrwv4hi3"): Same.
6154 * tree-inline.c (walk_tree): Handle vectors.
6156 * c-common.c (constant_expression_warning): Handle vectors.
6157 (overflow_warning): Same.
6159 * sched-deps.c (sched_analyze_2): Handle vectors.
6161 * rtlanal.c (rtx_unstable_p): Handle vectors.
6162 (rtx_varies_p): Same.
6163 (count_occurrences): Same.
6164 (regs_set_between_p): Same.
6165 (modified_between_p): Same.
6166 (modified_in_p): Same.
6167 (volatile_insn_p): Same.
6168 (volatile_refs_p): Same.
6169 (side_effects_p): Same.
6171 (inequality_comparisons_p): Same.
6172 (replace_regs): Same.
6173 (computed_jump_p_1): Same.
6175 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
6177 (inner_mode_array): New.
6178 (copy_rtx): Handle vectors.
6179 (copy_most_rtx): Same.
6180 (rtx_equal_p): Same.
6181 (get_mode_alignment): Adjust for vectors.
6183 * resource.c (mark_referenced_resources): Handle vectors.
6184 (mark_set_resources): Same.
6186 * reload1.c (eliminate_regs): Handle vectors.
6187 (elimination_effects): Same.
6188 (scan_paradoxical_subregs): Same.
6190 * reload.c (subst_reg_equivs): Handle vectors.
6192 * regrename.c (scan_rtx): Handle vectors.
6194 * regclass.c (reg_scan_mark_refs): Handle vectors.
6196 * recog.c (find_single_use_1): Handle vectors.
6198 * local-alloc.c (equiv_init_varies_p): Handle vectors.
6199 (contains_replace_regs): Same.
6200 (memref_referenced_p): Same.
6202 * integrate.c (copy_rtx_and_substitute): Handle vectors.
6203 (subst_constants): Same.
6205 * genattrtab.c (attr_copy_rtx): Handle vectors.
6206 (encode_units_mask): Same.
6207 (clear_struct_flag): Same.
6208 (count_sub_rtxs): Same.
6210 * gcse.c (want_to_gcse_p): Handle vectors.
6211 (oprs_unchanged_p): Same.
6212 (hash_expr_1): Same.
6213 (oprs_not_set_p): Same.
6214 (expr_killed_p): Same.
6215 (compute_transp): Same.
6216 (store_ops_ok): Same.
6218 * function.c (purge_addressof_1): Do not allow paradoxical subregs
6220 (fixup_var_refs_1): Same.
6221 (instantiate_virtual_regs_1): Same.
6223 * fold-const.c (operand_equal_p): Handle vectors.
6225 (rtl_expr_nonnegative_p): Same.
6227 * flow.c (mark_used_regs): Handle vectors.
6229 * df.c (df_uses_record): Handle vectors.
6231 * cselib.c (cselib_subst_to_values): Handle vectors.
6232 (cselib_mem_conflict_p): Same.
6235 * cse.c (canon_reg): Handle vectors.
6237 (cse_process_notes): Same.
6238 (count_reg_usage): Same.
6241 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
6243 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
6245 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
6246 (gen_rtx): Handle CONST_VECTOR.
6247 (gen_const_vector_0): New.
6248 (copy_rtx_if_shared): CONST_VECTORs can be shared.
6249 (reset_used_flags): Same.
6250 (copy_insn_1): Same.
6251 (initializer_constant_valid_p): Handle VECTOR_CST.
6253 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
6255 * doc/rtl.texi (Constants): Document const_vector.
6256 (CONST0_RTX): Update for vectors.
6257 (RTL sharing): Same.
6259 * print-tree.c (print_node): Add case for VECTOR_CST.
6261 * tree.h (TREE_VECTOR_CST_ELTS): New.
6262 (struct tree_vector): New.
6263 (union tree_node): Add vector node.
6264 (build_vector): Add prototype.
6266 * tree.def (VECTOR_CST): New.
6268 * tree.c (build_vector): New.
6270 * expmed.c (make_tree): Handle CONST_VECTOR.
6272 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
6273 (CONST_VECTOR_ELT): New.
6274 (CONST_VECTOR_NUNITS): New.
6276 * machmode.h (GET_MODE_INNER): New.
6277 (DEF_MACHMODE): Accept 8th arg.
6279 * machmode.def: Add 8th argument for vector inner mode.
6280 Add inner vector modes for vectors.
6282 * rtl.def (VEC_CONST): Remove.
6283 (CONST_VECTOR): New.
6285 * expr.c (clear_storage): Allow vectors.
6286 (is_zeros_p): Handle VECTOR_CST.
6288 * varasm.c (output_constant_pool): Handle vectors.
6289 (rtx_const): Add veclo and vechi fields.
6290 (kind): Add RTX_VECTOR.
6291 (decode_rtx_const): Add case for vector.
6293 * config/rs6000/rs6000-protos.h: Add zero_constant.
6295 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
6296 constants. Force easy vector constants into memory.
6297 (easy_vector_constant): New.
6298 (emit_easy_vector_constant): New.
6299 (rs6000_legitimize_reload_address): Do not generate bad reloads on
6302 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
6304 ("altivec_lvxl"): Same.
6305 (altivec_lvebx): Same.
6306 (altivec_lvehx): Same.
6307 (altivec_lvewx): Same.
6308 ("*movv4si_const0"): New.
6309 ("*movv4sf_const0"): New.
6310 ("*movv8hi_const0"): New.
6311 ("*movv16qi_const0"): New.
6313 2002-02-18 Kazu Hirata <kazu@hxi.com>
6315 * config/h8300/h8300.c (notice_update_cc): Use
6318 2002-02-18 Kazu Hirata <kazu@hxi.com>
6320 * config/h8300/h8300.md (divmod patterns): Change the
6321 constraints for operands[1] to register_operand.
6323 2002-02-18 Kazu Hirata <kazu@hxi.com>
6325 * config/h8300/h8300-protos.h: Remove the prototype for
6327 * config/h8300/h8300.c (p_operand): Remove.
6328 * config/h8300/h8300.md: Replace p_operand with
6331 2002-02-18 Philip Blundell <pb@nexus.co.uk>
6333 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
6335 (output_return_instruction): Allow use of LDR to unstack
6336 return addresss even for interrupt handlers or when
6337 interworking. If compiling for ARMv5, use interworking-safe
6338 return instructions by default. Remove duplicated code and
6339 lengthy "strcat" sequences.
6341 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6343 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
6344 (LINK_EH_SPEC): Define.
6345 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
6347 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
6349 * config/s390/s390.c (s390_emit_prologue): Do not set the
6350 frame_related flag for call-clobbered registers.
6352 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
6354 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
6355 (construct_container): Fix handling of SSE operands.
6356 (ix86_expand_builtin): Fix handling of 64bit pointers.
6357 (mmx_maskmovq_rex): New pattern.
6359 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
6361 * regrename.c (kill_set_value): Handle subregs properly.
6363 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
6365 * objc/objc-act.c (handle_impent): Remove leading '*'
6366 from objc_class_name.
6368 2002-02-17 Richard Henderson <rth@redhat.com>
6370 * config/alpha/alpha.c (some_small_symbolic_operand,
6371 some_small_symbolic_operand_1, split_small_symbolic_operand,
6372 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
6373 Handle small SYMBOL_REFs anywhere, not just inside memories.
6374 * config/alpha/alpha-protos.h: Update.
6375 * config/alpha/alpha.h (PREDICATE_CODES): Update.
6376 * config/alpha/alpha.md (small symbolic operand splitter): Update.
6378 2002-02-17 Roland McGrath <roland@frob.com>
6380 * config.gcc (powerpc-*-gnu-gnualtivec*,
6381 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
6382 * config/rs6000/gnu.h: New file.
6383 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
6384 Grok "gnu" in rs6000_abi_name.
6385 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
6386 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
6387 Grok -mcall-gnu analogous to -mcall-linux et al.
6388 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6389 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
6390 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
6392 2002-02-17 Jakub Jelinek <jakub@redhat.com>
6395 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
6398 2002-02-17 Philipp Thomas <pthomas@suse.de>
6400 * config/cris/cris.h: Undefine STARTFILE_SPEC and
6401 ENDFILE_SPEC before (re)defining them.
6403 2002-02-17 Kazu Hirata <kazu@hxi.com>
6405 * config/h8300/h8300.c: Fix formatting.
6406 * config/h8300/h8300.h: Likewise.
6408 2002-02-17 Philipp Thomas <pthomas@suse.de>
6410 * doc/tm.texi: Explain why empty strings should not be
6411 marked for translation.
6413 2002-02-17 Philipp Thomas <pthomas@suse.de>
6415 * final.c (output_operand_lossage): Changed to accept
6416 printf style arguments. Change calls where necessary.
6417 * output.h (output_operand_lossage): Change declaration
6418 accordingly. Update copyright.
6419 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
6420 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
6421 Update copyright date where necessary.
6423 * config/i386/i386.c (print_operand): Likewise. Remove use of
6426 * config/cris/cris.c (cris_operand_lossage): Likewise.
6427 Rename parameter so that exgettext recognizes it as
6428 translatable message.
6429 (LOSE_AND_RETURN): Rename parameter to msgid.
6431 2002-02-17 Kazu Hirata <kazu@hxi.com>
6433 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
6434 hard coded register number with an appropriate macro.
6435 (HARD_REGNO_MODE_OK): Likewise.
6436 (ARG_POINTER_REGNUM): Likewise.
6437 (STATIC_CHAIN_REGNUM): Likewise.
6438 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6439 * config/h8300/h8300.md (define_constants): Define more
6442 2002-02-17 Philipp Thomas <pthomas@suse.de>
6444 * config/i386/i386.h: Don't mark empty strings for translation.
6446 2002-02-16 H.J. Lu <hjl@gnu.org>
6448 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
6450 2002-02-16 Zack Weinberg <zack@codesourcery.com>
6452 * cppinit.c (merge_include_chains): Check for brack being
6453 NULL before attempting to merge it with qtail.
6455 2002-02-16 Andrew Cagney <ac131313@redhat.com>
6457 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
6460 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
6462 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
6464 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
6466 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
6467 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
6468 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
6470 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6472 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
6473 now only if !TARGET_FIX.
6474 (*movsi_nt_vms_fix): New pattern.
6476 2002-02-16 Douglas B Rupp <rupp@gnat.com>
6478 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
6479 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
6480 (alpha_sa_mask, alpha_sa_size): Reflect above change.
6481 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
6482 (alpha_start_function, alpha_expand_epilogue): Likewise.
6483 (unicosmk_gen_dsib): Likewise.
6485 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6487 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
6489 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
6491 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
6492 check_and_change_labels, s390_final_chunkify): Delete.
6493 (s390_split_branches, s390_chunkify_pool): New functions.
6494 (s390_function_prologue): Call them.
6496 * config/s390/s390.h (S390_REL_MAX): Delete.
6497 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6499 * config/s390/s390.md (cjump, icjump, jump): Fix length
6500 attribute calculation.
6503 2002-02-15 David Edelsohn <edelsohn@gnu.org>
6505 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6506 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6508 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
6510 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6511 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6512 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6514 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
6516 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6518 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
6520 * reload.c (find_dummy_reload): Check that an output register
6521 is valid for its mode.
6523 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
6525 * combine.c (known_cond): After replacing the REG of a SUBREG, try
6528 * function.c (assign_parms): Demote promoted argument passed by
6529 transparent reference.
6531 2001-02-14 Joel Sherrill <joel@OARcorp.com>
6533 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6534 -Acpu() and -Amachine() to eliminate warnings.
6536 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
6538 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6540 2002-02-14 Kazu Hirata <kazu@hxi.com>
6542 * config/h8300/h8300-protos.h: Update the prototype for
6544 * config/h8300/h8300.c (const_costs): Treat SET as a little
6545 more expensive operation.
6546 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6547 reference to const_costs.
6549 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
6551 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6553 2002-02-14 Jakub Jelinek <jakub@redhat.com>
6556 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6557 use arguments from newtype.
6559 2002-02-13 Eric Christopher <echristo@redhat.com>
6561 * config/mips/mips.c (override_options): Add check for march/mipsX
6562 on the same command line. Fix error message in cpu processing.
6563 Remove architecture and ISA checks.
6565 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
6567 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6569 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6571 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
6573 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6575 ("*movv8hi_internal1"): Same.
6576 ("*movv16qi_internal1"): Same.
6577 ("*movv4sf_internal1"): Same.
6579 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6580 not push_reload for altivec modes.
6582 2002-02-13 Joel Sherrill <joel@OARcorp.com>
6584 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6585 all RTEMS targets including removal of #includes from config/*/rtems*.h
6586 file and adding them to tm_file setting. Added xm_defines=POSIX to
6588 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6589 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6590 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6591 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6592 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6593 config/m68k/rtemself.h: Ditto.
6594 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6595 config/mips/rtems64.h: Ditto.
6596 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6597 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6599 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6600 config/sparc/rtemself.h: Ditto.
6601 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6602 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6603 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6605 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6606 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6607 target made more similar to i386-elf.
6608 * config/i386/t-rtems-i386: Added soft float support and multilibs.
6609 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6610 be similar to config/m68k/t-m68kelf.
6611 * gthr-rtems.h: Encapsulate with extern "C" for C++.
6613 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
6615 * regmove.c (kill_value): Handle subregs.
6617 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
6619 * i386.md (mul patterns): Allow memory operand to be first;
6620 add expanders where needed; fix constraints.
6621 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6622 Allow memory operand to be the first.
6624 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6627 2002-02-13 Jakub Jelinek <jakub@redhat.com>
6630 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6633 2002-02-13 Jakub Jelinek <jakub@redhat.com>
6635 PR optimization/5547:
6636 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6637 all valid IA-32 address modes involving non-scaled %ebx and
6638 GOT/GOTOFF as displacement.
6640 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
6642 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6643 after emitting ltorg insns.
6645 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6646 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6647 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6648 *abssf2): Fix "op_type" attribute.
6650 2002-02-13 Douglas B Rupp <rupp@gnat.com>
6652 * mkconfig.sh: Avoid using a subshell redirect.
6653 ($output.T): Change to $(output)T.
6654 (ENABLE_NLS): Remove unneeded undef.
6656 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6657 * config/alpha/x-vms (libsubdir): Define.
6659 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6660 register frame procedures. Optimize retrieving context.
6662 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6663 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6664 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6666 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6668 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6669 Make same change as for find_base_value.
6671 2002-02-13 Kazu Hirata <kazu@hxi.com>
6673 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6674 of QImode and SImode.
6676 2002-02-13 Kazu Hirata <kazu@hxi.com>
6678 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6679 length computation of movsi.
6680 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6682 2002-02-13 Kazu Hirata <kazu@hxi.com>
6684 * config/h8300/h8300.md (subqi3): Tighten the predicate for
6685 operands[2] to register_operand.
6687 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
6689 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6691 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
6693 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6694 for altivec_lvx* and altivec_stvx*.
6695 ("*movv4si_internal"): Add constraint for loading from GPRs.
6696 ("*movv8hi_internal1"): Same.
6697 ("*movv16qi_internal1"): Same.
6698 ("*movv4sf_internal1"): Same.
6700 * config/rs6000/rs6000.c (altivec_register_operand): New.
6702 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6703 altivec_register_operand.
6705 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
6707 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6710 2002-02-13 Stan Shebs <shebs@apple.com>
6712 * c-typeck.c (digest_init): Handle vectors.
6713 (really_start_incremental_init): Same.
6714 (pop_init_level): Same.
6715 (process_init_element): Same.
6717 * varasm.c (output_constant): Same.
6719 * expr.c (clear_storage): Same.
6720 (store_constructor): Same.
6722 2002-02-12 Eric Christopher <echristo@redhat.com>
6724 * explow.c (hard_function_value): Add comment explaining
6725 signed/unsigned comparison.
6727 2002-02-12 Jakub Jelinek <jakub@redhat.com>
6729 * jump.c (never_reached_warning): Add finish argument.
6730 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6731 real insn after end.
6732 * rtl.h (never_reached_warning): Adjust prototype.
6733 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6734 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6735 never_reached_warning.
6737 2002-02-12 Graham Stott <grahams@redhat.com>
6739 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6741 2002-02-12 Kazu Hirata <kazu@hxi.com>
6743 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6744 logical shifts on H8/300.
6745 (shift_alg_si): Improve several shifts on H8/300.
6746 (get_shift_alg): Likewise.
6748 2002-02-12 Graham Stott <grahams@redhat.com>
6750 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6752 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6754 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6755 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6757 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
6759 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6760 non-CONST_INT through default_assemble_integer.
6761 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6762 <case 8>: Abort for CONST_DOUBLE.
6764 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6766 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6768 * config/pa/pa-linux.h (LIB_SPEC): Delete.
6769 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6771 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
6773 * config/stormy16/stormy16.md (zero_extendqihi2): New.
6775 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
6777 * regrename.c (regrename_optimize): Don't accept a
6778 part-clobbered register if the replaced register is not part
6781 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6782 take padding into account when computing the argument value.
6784 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6786 * combine.c (try_combine): Apply substitutions in
6787 CALL_INSN_FUNCTION_USAGE too.
6789 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
6791 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6792 __builtin_altivec_abs*.
6795 * config/rs6000/rs6000.h (rs6000_builtins): Add
6796 ALTIVEC_BUILTIN_ABS*.
6798 * config/rs6000/altivec.h: Use const char for builtins expecting
6800 (vec_abs): New versions for C and C++.
6803 2002-02-10 Kazu Hirata <kazu@hxi.com>
6805 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6808 2002-02-10 Kazu Hirata <kazu@hxi.com>
6810 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6811 constant definition from h8300.md.
6812 (FRAME_POINTER_REGNUM): Likewise.
6813 * config/h8300/h8300.md (define_constants): Add FP_REG.
6815 2002-02-10 Kazu Hirata <kazu@hxi.com>
6817 * config/h8300/h8300.c (print_operand): Remove redundant code.
6819 2002-02-10 Kazu Hirata <kazu@hxi.com>
6821 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6822 * config/h8300/h8300.c (byte_reg): Make it static.
6824 2002-02-10 Richard Henderson <rth@redhat.com>
6827 * c-typeck.c (incomplete_type_error): Handle flexible array members.
6829 2002-02-10 Richard Henderson <rth@redhat.com>
6832 * tree.c (append_random_chars): Don't abort if main_input_filename
6835 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
6837 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6839 2002-02-10 Kazu Hirata <kazu@hxi.com>
6841 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6842 (pushhi1): Likewise.
6844 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
6846 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6847 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6849 2002-02-09 David O'Brien <obrien@FreeBSD.org>
6851 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6853 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
6855 2002-02-09 Kazu Hirata <kazu@hxi.com>
6857 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6858 a half of an SImode register on H8/300.
6860 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
6862 * i386.md (movdi_2): Add missing '!'.
6864 2002-02-09 Kazu Hirata <kazu@hxi.com>
6866 * config/h8300/h8300.h: Fix formatting. Remove commented-out
6869 2002-02-09 Kazu Hirata <kazu@hxi.com>
6871 * config/h8300/h8300.md (length): Correct the distance valid
6872 for the short branch.
6874 2002-02-09 Kazu Hirata <kazu@hxi.com>
6876 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6878 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
6880 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6881 registers in SImode.
6882 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6885 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6888 Contribute sh64-elf.
6889 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
6890 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6891 (sh_cannot_modify_jumps_p): New function.
6892 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
6893 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6894 (sh_ms_bitfield_layout_p): New function.
6895 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
6896 Zack Weinberg <zack@codesourcery.com>
6897 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6898 expand_simple_binop instead of expand_binop.
6899 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
6900 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6901 use of .quad and .uaquad.
6902 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6903 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6904 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6905 * config/sh/sh.md (movdi_const, movdi_const_32bit,
6906 movdi_const_16bit): Make sure all CONSTs have modes.
6907 (sym2PIC): Ditto, but by adjusting all callers.
6908 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6909 if the prologue calls the SHmedia argument decoder or register
6911 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6912 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6913 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6914 (sh_expand_epilogue): Don't emit USE of return target register.
6915 (prepare_move_operands): Legitimize DImode PIC addresses.
6916 (sh_media_register_for_return): Skip tr0, used to initialize the
6918 (sh_expand_prologue): Remove explicit USE of return register.
6919 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
6920 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
6921 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6922 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6923 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6925 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6926 (MOVI_SHORI_BASE_OPERAND_P): New.
6927 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6928 (EXTRA_CONSTRAINT_T): Define in terms of them.
6929 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6930 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6931 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6932 alternatives supporting TARGET_REGS.
6933 (UNSPEC_GOTPLT): New constant.
6934 (movdi split): Move incrementing of LABEL_NUSES...
6935 (movdi_const, movdi_const_32bit): Here. Use
6936 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6937 (movdi_const_16bit): New.
6938 (call, call_value) [flag_pic]: Use GOTPLT.
6939 (call_pop, call_value_pop): New expands.
6940 (call_pop_compact, call_pop_rettramp): New insns.
6941 (call_value_pop_compact, call_value_pop_rettramp): New insns.
6942 (sibcall) [flag_pic]: Use GOT.
6943 (builtint_setjmp_receiver): Remove bogus, unused expand.
6944 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6945 (*pt, *ptb, ptrel): New insns.
6946 (sym2GOT): Handle DImode GOT.
6947 (sym2GOTPLT, symGOTPLT2reg): New expands.
6948 (sym2PIC): New expand.
6949 (shcompact_return_tramp): Use GOTPLT to return trampoline.
6950 (shcompact_return_tramp_i): Use return register explicitly.
6951 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6952 disable flag_reorder_blocks.
6953 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
6954 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6955 clobbers, for clarity.
6956 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6957 restoring of r0 in macl as MAYBE_DEAD.
6958 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
6959 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6960 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6961 alter_subreg all over.
6962 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6963 reload, instead of emitting instructions that would require
6965 (casesi_load_media): Add missing modes.
6966 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
6967 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6968 as used if the argument decoder is called.
6969 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
6970 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6971 Pmode, then extend it to DImode if necessary.
6972 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
6973 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6974 constants in FPU-enabled SHmedia, let them be loaded from memory.
6975 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
6976 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6977 Adjust whitespace in assembly output templates.
6978 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
6979 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6980 mode of if_then_else.
6981 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
6982 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6984 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
6985 Joern Rennecke <amylaar@redhat.com>
6986 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6987 (SUBTARGET_CPP_PTR_SPEC): New.
6988 (SUBTARGET_CPP_SPEC): Remove.
6989 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
6990 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6991 Fix typo in previous checkin.
6992 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
6993 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6994 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
6995 Alexandre Oliva <aoliva@redhat.com>
6996 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6997 what single FP register can hold for SHmedia target.
6998 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
6999 Alexandre Oliva <aoliva@redhat.com>
7000 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7001 Do not split into SUBREG.
7002 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
7003 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
7004 and added new functions as specified in SH5 ABI r9.
7005 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
7006 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
7008 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
7009 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
7010 gen_consttable_4 and gen_consttable_8. Emit multiple labels
7011 and consttable_window_ends.
7012 2001-06-03 Graham Stott <grahams@redhat,com>
7013 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
7014 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
7015 * config/sh/sh.c (print_operand): Handle floating-point pair,
7016 vector and matrix registers.
7017 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
7018 vector modes into account.
7019 * config/sh/sh.md (movv2sf): Split move between registers into
7021 (movv4sf, movv16sf): Introduce insns that get split only after
7023 * config/sh/shmedia.h: Fix Copyright dates.
7024 * config/sh/ushmedia.h: Likewise. Move loop counter
7025 declarations into conditionals that uses them.
7026 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
7028 * config/sh/sshmedia.h: Fix Copyright dates.
7029 (sh_media_PUTCFG): Fix constraints.
7030 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
7031 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
7032 ptrmemfunc_vbit_in_delta for SH5.
7033 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
7034 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
7035 * invoke.texi: Likewise.
7036 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
7037 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
7038 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
7039 GCC_pop_shmedia_regs_nofpu): New global symbols.
7040 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
7041 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
7042 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
7043 compact function with nonlocal labels.
7044 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
7045 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
7046 (initial_elimination_offset): Account for their stack space.
7047 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
7048 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
7049 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
7050 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
7051 least one of the operands to be a register.
7052 (movv2sf): Likewise. Renamed to movv2sf_i.
7053 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
7054 prepare_move_operands() before emitting SHmedia insns.
7055 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
7056 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
7057 Don't save nor initialize r12. Don't mis-align the stack.
7058 Pad the code with a nop.
7059 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
7061 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
7062 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
7063 [__SHMEDIA__]: Implement.
7064 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
7065 * config/sh/sh.md: Set latency of `pt' closer to reality.
7066 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
7067 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
7068 Set move, load and store type attributes.
7069 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
7070 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
7072 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
7073 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
7074 * config/sh/sh.c (sh_media_register_for_return): New function.
7075 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
7076 branch-target register.
7077 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
7078 * config/sh/sh.md (return_media_i): Use any call-clobbered
7079 branch-target register.
7080 (return_media): If r18 wasn't copied in the prologue, copy it
7082 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
7083 Clear class FP0_REGS.
7084 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
7086 2001-03-08 DJ Delorie <dj@redhat.com>
7087 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
7088 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
7089 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
7090 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
7091 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
7092 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
7093 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
7094 return value correctly for call_cookie.
7095 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
7096 * config/sh/crt1.asm (start): Modified so as to call
7097 ___setup_argv_and_call_main.
7098 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
7099 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
7101 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
7102 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
7103 (STRIP_NAME_ENCODING): Use it.
7104 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
7105 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
7106 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
7107 prepare_scc_operands().
7108 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
7109 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
7110 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
7111 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
7112 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
7113 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
7114 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
7115 used in shcompact_incoming_args.
7116 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
7118 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
7120 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
7122 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
7123 Simplify. Adjust. Add sanity check.
7124 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
7126 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
7128 (udivsi3, divsi3): Use them.
7129 (force_mode_for_call): New insn.
7130 (call, call_value, sibcall_value): Emit it before SHcompact
7132 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
7133 * config/sh/sh.md (call, call_value, sibcall): Make sure the
7134 call cookie is non-NULL before taking its value.
7135 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
7136 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
7137 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
7138 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
7140 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
7141 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
7142 temporary for stack adjusts. Use MACL and MACH to pass
7143 arguments to shcompact_incoming_args.
7144 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
7146 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
7147 (nested_trampoline): Load static chain address into r1.
7148 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
7149 2001-01-07 Alexandre Oliva <aoliva@redhat.com
7150 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
7151 fp_arith_reg_operand().
7152 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
7153 * config/sh/sh.md (casesi): Sign-extend the first two operands,
7154 and use signed compares for them.
7155 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
7156 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
7157 ones properly aligned.
7158 (find_barrier): Account for extra alignment needed for 8-byte wide
7160 (machine_dependent_reorg): Require a label for the second 4-byte
7161 constant after an 8-byte one.
7162 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
7164 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
7165 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
7166 last_float when switching float modes.
7167 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
7168 auto-increment for general-purpose registers.
7169 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
7171 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
7173 * config/sh/sh.c (sh_builtin_saveregs): Support using all
7174 registers for varargs.
7175 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
7176 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
7177 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
7178 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
7179 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
7180 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
7181 call_cookie accordingly.
7182 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
7183 (SHCOMPACT_BYREF): Likewise.
7184 (SHCOMPACT_FORCE_ON_STACK): New macro.
7185 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
7186 (sh_builtin_saveregs): Likewise.
7187 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7188 shcompact_incoming_args): Use new shift values. Support
7189 sequences of consecutive and non-consecutive pushes/pops.
7190 * config/sh/sh.md (return): Don't explicitly use PR_REG.
7191 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
7192 * config/sh/sh.h (TEXT_SECTION): Define.
7193 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
7194 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
7195 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
7196 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
7197 return values on FPU-enabled SHmedia.
7198 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
7199 FPU-enabled SHmedia.
7200 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
7201 value is returned in a non-FP reg and is not returned by
7203 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
7205 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
7206 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
7207 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
7208 quad-aligned to be passed by callee-copy reference.
7209 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
7210 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
7211 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
7212 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
7213 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
7214 copying low-numbered FP regs to r7 and r8.
7215 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
7216 FP regs to general-purpose regs only if the copy was passed on the
7218 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
7219 copying FP reg to r9.
7220 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
7221 copy FP regs to general-purpose regs only in outgoing calls.
7222 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
7223 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
7225 * config/sh/sh.h (struct sh_args): Document all fields.
7226 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
7227 passed partially on the stack should not consider making
7229 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
7230 stack_regs only for incoming calls. When passing FP args,
7231 make sure there are FP regs available before modifying
7233 (SHCOMPACT_BYREF): Pass double args in general-purpose
7234 registers by reference.
7235 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
7236 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
7237 attempt to generate sibcalls if the caller got any arguments
7239 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
7240 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
7241 to 8-byte boundaries.
7242 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
7243 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
7244 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
7245 stored in the stack.
7246 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
7247 for the offsets to have the ISA bit set.
7248 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
7249 invocation. Use beq instead of bgt to mark end of sequence of
7251 (shcompact_incoming_args): Fix store of r2. Use beq instead of
7252 bgt to mark end of sequence of stores.
7253 * config/sh/sh.c (arith_operand): Don't check whether
7254 CONST_OK_FOR_J for now.
7255 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
7256 instead of long for conversion.
7257 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
7258 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
7259 before passing it to fprintf.
7260 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
7261 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
7262 Call set_fpscr before reading/writing SR.
7263 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
7265 * config/sh/lib1funcs.asm: Add `.align 2' directives before
7267 (FMOVD_WORKS): Define on SH5 with FPU.
7268 (set_fpscr): Define on SH5. Remove separate _fpscr_values
7270 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
7272 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
7273 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
7275 (ia_main_table): Ditto.
7276 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
7277 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7278 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
7279 the definitions from sh.h.
7280 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
7282 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
7283 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
7284 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7285 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
7286 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
7287 Increment LABEL_NUSES.
7289 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
7291 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
7293 * config/sh/elf.h (SIZE_TYPE): Likewise.
7294 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7295 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7296 shcompact_incoming_args): Load switch table addresses using
7298 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7299 (NO_BUILTIN_SIZE_TYPE): Define.
7300 (SIZE_TYPE): Don't define.
7301 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7302 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
7303 definition of __SH5__=32 for -m5-compact-nofpu.
7304 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
7306 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
7307 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
7308 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
7309 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
7310 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
7311 (INSN_LENGTH_ALIGNMENT): Likewise.
7312 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7313 * config/sh/sh.md (call, call_value, sibcall): Simplify
7314 copying of non-branch-target register.
7315 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7316 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
7317 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
7318 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7319 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
7320 floating-point values as structs.
7321 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
7322 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
7323 general-purpose register.
7324 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
7325 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
7326 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
7327 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
7328 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
7329 (ENCODE_SECTION_INFO): Enclose variables and constants in
7331 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
7332 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
7333 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
7334 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
7335 only for LABEL_REFs. For SYMBOL_REFs, prepend
7336 SH_DATALABEL_ENCODING to the symbol name.
7337 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
7339 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
7340 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
7342 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
7343 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
7344 (DATALABEL_REF_P): Don't require CONST.
7345 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
7347 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
7348 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
7350 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
7351 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
7352 Use shallow_copy_rtx and PUT_MODE to change the mode of
7353 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
7354 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
7355 on SHmedia using GENERAL_REGs.
7356 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7357 bltu_media_i): Fix reversion of conditions.
7358 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
7359 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
7360 * config/sh/sh.c (output_far_jump): Save r13 in macl.
7361 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
7362 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
7363 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
7364 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
7365 (GCC_nested_trampoline): Likewise.
7366 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
7367 * config/sh/sh.c (gen_datalabel_ref): Define.
7368 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
7369 (INITIALIZE_TRAMPOLINE): Likewise.
7370 (TRAMPOLINE_ADJUST_ADDRESS): Define.
7371 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
7372 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
7373 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
7374 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
7375 (ic_invalidate): Adjust for SH5.
7376 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
7377 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
7379 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
7380 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
7381 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
7382 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
7383 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
7384 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
7385 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
7386 * config/sh/sh.c (target_reg_operand): Match only target-branch
7387 registers and pseudos that aren't virtual registers.
7388 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7389 Copy operands that don't match target_reg_operand to pseudos.
7390 (call_media, call_value_media, sibcall_media): Use
7391 target_reg_operand instead of target_operand.
7392 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
7393 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
7394 * config/sh/sh.c (target_reg_operand): Match hardware registers
7395 other than branch-target registers.
7396 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
7397 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
7398 (fpscr_values) [SH5 == 32]: Define.
7399 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
7400 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7401 Handle function addresses coming in SUBREGs.
7402 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
7403 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7404 shcompact_return_trampoline): Use datalabel where appropriate.
7405 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
7406 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
7407 general-purpose register to copy one branch-target register to
7409 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
7410 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
7411 SYMBOL_REFs with VOIDmode.
7412 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7413 bltu_media_i): New insns.
7414 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
7415 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
7416 (INIT_CUMULATIVE_ARGS): Likewise.
7417 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
7418 * machmode.def (V16SFmode): New mode.
7419 * c-common.c (type_for_mode): Support V2SF and V16SF.
7420 * tree.c (build_common_tree_nodes_2): Likewise.
7421 * tree.h (tree_index): Likewise.
7422 * calls.c (emit_call_1): Take args_so_far. Adjust all
7423 callers. Introduce CALL_POPS_ARGS.
7424 * tm.texi (CALL_POPS_ARGS): Document.
7425 * config/sh/crt1.asm: Implement in SHmedia mode.
7426 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
7427 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
7428 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
7429 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
7430 Implement divsi and udivsi in SHmedia mode. Introduce
7431 SHcompact trampolines.
7432 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
7434 (regno_reg_class): Rewrite.
7435 (fp_reg_names): Remove.
7436 (sh_register_names, sh_additional_register_names): New.
7437 (print_operand): Added `u'. Support SUBREGs in addresses.
7438 Add parentheses around shifted CONSTs.
7439 (output_file_start): Output .mode and .abi directives.
7440 (shiftcosts, addsubcosts, multcosts): Adjust.
7441 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
7442 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
7443 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
7444 bytes, not registers. Take into account the need for the
7445 SHcompact incoming args trampoline. Adjust all callers.
7446 (sh_expand_prologue): Take stack_regs into account. Call
7447 incoming args trampoline. Keep stack aligned as per SH5 ABI.
7448 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
7449 stack aligned as per SH5 ABI.
7450 (sh_builtin_saveregs): Support SH5 ABI.
7451 (sh_build_va_list, sh_va_start): Likewise.
7452 (initial_elimination_offset): Take alignment into account.
7453 Compute location of PR according to the SH5 stack frame.
7454 (arith_reg_operand): Reject branch-target registers.
7455 (shmedia_6bit_operand): New.
7456 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
7457 (target_reg_operand): Match DImode only. Accept SUBREGs.
7458 (target_operand): New.
7459 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
7460 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
7461 SIBCALL_REGS for SHmedia.
7462 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
7463 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
7464 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
7465 (TARGET_SWITCHES): New SH5 flags.
7466 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
7467 VALID_REGISTER_P to disable unsupported registers.
7468 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
7469 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
7470 (FUNCTION_ARG_PADDING): Define.
7471 (FASTEST_ALIGNMENT): Adjust.
7472 (SH_REGISTER_NAMES_INITIALIZER): New.
7473 (sh_register_names): Declare.
7474 (DEBUG_REGISTER_NAMES): Define.
7475 (REGISTER_NAMES): Define based on sh_register_names.
7476 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
7477 (sh_additional_register_names): Declare.
7478 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
7479 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
7480 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
7481 (REGISTER_NATURAL_MODE): Define.
7482 (FIRST_PSEUDO_REGISTER): Adjust.
7483 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
7484 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
7485 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
7486 (VECTOR_MODE_SUPPORTED_P): Define.
7487 (REG_CLASS_CONTENTS): Adjust.
7488 (SMALL_REGISTER_CLASSES): Adjust.
7489 (REG_ALLOC_ORDER): Adjust.
7490 (INDEX_REG_CLASS): Adjust.
7491 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
7492 (CONST_OK_FOR_LETTER_P): Adjust.
7493 (PREFERRED_RELOAD_CLASS): Adjust.
7494 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7495 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7496 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7497 (FIRST_FP_PARM_REG): Adjust.
7498 (CALL_POPS_ARGS): Define.
7499 (FUNCTION_ARG_REGNO_P): Adjust.
7500 (struct sh_args): New fields.
7501 (GET_SH_ARG_CLASS): Adjust.
7502 (INIT_CUMULATIVE_ARGS): Adjust.
7503 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7504 (FUNCTION_ARG_ADVANCE): Adjust.
7505 (FUNCTION_ARG): Adjust.
7506 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7507 (FUNCTION_ARG_CALLEE_COPIES): Define.
7508 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7509 (STRICT_ARGUMENT_NAMING): Define.
7510 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7511 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7512 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7513 (SETUP_INCOMING_VARARGS): Adjust.
7514 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7515 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7516 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7517 (SUBREG_OK_FOR_INDEX_P): Adjust.
7518 (EXTRA_CONSTRAINT_S): Update.
7519 (EXTRA_CONSTRAINT_T): New.
7520 (EXTRA_CONSTRAINT): Adjust.
7521 (GO_IF_LEGITIMATE_INDEX): Adjust.
7522 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7523 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7525 (MAX_MOVE_MAX): Define.
7527 (CONST_COSTS): Adjust.
7528 (REGISTER_MOVE_COST): Adjust.
7529 (BRANCH_COST): Adjust.
7530 (TEXT_SECTION_ASM_OP): Adjust.
7531 (DBX_REGISTER_NUMBER): Adjust.
7532 (ASM_OUTPUT_DOUBLE_INT): New.
7533 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7534 (PREDICATE_CODES): Adjust.
7535 (PROMOTE_MODE): Adjust.
7536 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7537 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7538 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7539 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7540 (DR0_REG, DR2_REG, DR4_REG): Renumber.
7541 (TR0_REG, TR1_REG, TR2_REG): New.
7542 (XD0_REG): Renumber.
7543 (UNSPEC_COMPACT_ARGS): New.
7544 (type): Added pt and ptabs.
7545 (length): Default to 4 on SHmedia. Default pt length to 12
7546 and 20 on SHmedia32 and SHmedia64, respectively.
7547 (pt): New function unit.
7548 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
7549 Add whitespace between operands of SHmedia instructions.
7551 (adddi3_media, addsi3_media): Adjust constraints.
7552 (subsi3) [SHmedia]: Force operand 1 into a register.
7553 (udivsi3_i1_media, udivsi3_i4_media): New.
7554 (udivsi3): Support SHmedia.
7555 (divsi3_i1_media, divsi3_i4_media): New.
7556 (divsi3): Support SHmedia.
7557 (anddi3, iordi3, xordi3): Adjust constraints.
7558 (zero_extendhidi2, zero_extendqidi2): New.
7559 (extendsidi2, extendhidi2, extendqidi2): New.
7560 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7561 (pop_e, pop_fpul, pop_4): Likewise.
7562 (movsi_media): Support FP and BT registers.
7563 (movsi_media_nofpu): New. Adjust splits to DImode.
7564 (lduw, ldub): Renamed to zero_extend* above.
7565 (movqi_media): Fix typo.
7566 (movdi_media): Support FP and BT registers.
7567 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
7568 (movdi_const_32bit): New.
7569 (shori_media): Require immediate operand. Use `u' for output.
7570 (movdf_media, movsf_media): Simplified.
7571 (movdf_media_nofpu, movsf_media_nofpu): New.
7572 (movdf, movsf): Adjust
7573 (movv2sf, movv2sf, movv16sf): New.
7574 (beq_media, beq_media_i): Adjust constraints. Don't use
7575 scratch BT register.
7576 (bne_media, bne_media_i): Likewise.
7577 (bgt_media, bgt_media_i): Likewise.
7578 (bge_media, bge_media_i): Likewise.
7579 (bgtu_media, bgtu_media_i): Likewise.
7580 (bgeu_media, bgeu_media_i): Likewise.
7581 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7582 bunordered): Emit jump insn. Force operands to registers when
7584 (jump_media, jump): Simplify.
7585 (call_compact, call_compact_rettramp): New.
7586 (call_value_compact, call_value_compact_rettramp): New.
7587 (call_media, call_value_media): Simplify.
7588 (sibcall_compact, sibcall_media): New.
7589 (call, call_value): Adjust for SHmedia and SHcompact.
7590 (sibcall, sibcall_value, untyped_call): Likewise.
7591 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7592 (indirect_jump): Adjust for SHmedia.
7593 (casesi_jump_media): New.
7594 (nop): Re-enable for SHmedia.
7595 (call_site): Restrict to SH1.
7596 (casesi): Adjust for SHmedia.
7597 (casesi_shift_media, casesi_load_media): New.
7598 (return): Explicitly use PR register. Call return trampoline
7600 (return_i): Explicitly use PR register.
7601 (shcompact_return_tramp, shcompact_return_tramp_i): New.
7602 (return_media): Adjust.
7603 (shcompact_incoming_args): New.
7605 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7606 (movstrsi): Disable on SH5.
7607 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7608 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7609 (subsf3, subsf3_media): Likewise.
7610 (mulsf3, mulsf3_media, mac_media): Likewise.
7611 (divsf3, divsf3_media): Likewise.
7612 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
7613 (floatsisf2, fux_truncsfsi2): Likewise.
7614 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
7616 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7617 (cmpunsf_media, cmpsf): Likewise.
7618 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7619 (abssf2, abssf2_media): Likewise.
7620 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7621 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7622 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
7623 (floatsidf2, fix_truncdfsi2): Likewise.
7624 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
7626 (cmpeqdf_media, cmpgtdf_media): Likewise.
7627 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7628 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7629 (absdf2, absdf2_media): Likewise.
7630 (extendsfdf2, extendsfdf2_media): Likewise.
7631 (truncsfdf2, truncsfdf2_media): Likewise.
7632 * config/sh/sh64.h: New file.
7633 * config/sh/t-sh64: New file.
7634 * config/sh/shmedia.h: New file.
7635 * config/sh/ushmedia.h: New file.
7636 * config/sh/sshmedia.h: New file.
7637 * configure.in: Added sh64-*-elf.
7638 * configure: Rebuilt.
7639 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
7640 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7641 (reg_class_from_letter): Use `b' for TARGET_REGS.
7642 (print_operand): Support `%M', `%m', `AND' and
7643 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
7644 (andcosts): Adjust for SHmedia.
7645 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7647 (target_reg_operand): New function.
7648 * config/sh/sh-protos.h (target_reg_operand): Declare.
7649 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7650 FP registers on SH5.
7651 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7653 (TARGET_REGISTER_P): New macro.
7654 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7655 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7656 (EXTRA_CONSTRAINT_S): New macro.
7657 (EXTRA_CONSTRAINT): Adjust.
7658 (FLOAT_TYPE_SIZE): Define to 32.
7659 (Pmode): DImode on SHmedia.
7660 (CONST_COSTS): Adjust for SHmedia literals.
7661 (PREDICATE_CODES): Added target_reg_operand.
7662 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7663 * config/sh/sh.md: Remove all attrs from SHmedia insns.
7664 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7665 (cmpdi): Accept SHmedia.
7666 (movdicc_false, movdicc_true): New insns.
7667 (movdicc): New expand.
7668 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7670 (addsi3_media): Match `S' constraint.
7671 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7672 (negdi2): Expand for SHmedia.
7673 (one_cmpldi2): New expand.
7674 (zero_extendsidi2): Change from expand to insn.
7675 (extendsidi2): Add constraints.
7676 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
7677 LD/ST address. Fix SI immediate loading split.
7678 (movhi_media, movqi_media, lduw, ldub): New insns.
7679 (movhi, movqi): Accept SHmedia.
7680 (shori_media, movdi_media): Relax input constraints. Split
7682 (movdf_media, movsf_media): New insn. New split to movdi.
7683 (movdf, movsf): Match on SHmedia.
7684 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7685 bgeu_media): New insns and splits. New insns with `_i' suffix.
7686 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7687 (bunordered): New expand.
7688 (jump_compact): Renamed from `jump'.
7689 (jump_media): New insn.
7691 (call_media, call_value_media): New insns.
7692 (call, call_value): Adjust.
7693 (indirect_jump_compact): Renamed from `indirect_jump'.
7694 (indirect_jump_media): New insn.
7695 (indirect_jump): New expand.
7696 (untyped_call, return): Accept SHmedia.
7697 (return_media): New insn.
7698 (prologue, epilogue, blockage): Accept SHmedia.
7699 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7700 (sunordered): New expand.
7701 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7702 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7703 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7704 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7705 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7706 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7707 abssf2_media): New insns.
7708 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7709 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7710 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7711 floatdidf2, floatsidf2_media, fix_truncdfdi2,
7712 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7713 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7714 absdf2_media): New insns.
7715 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7716 (extendsfdf2_media, truncdfsf2_media): New insns.
7717 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
7718 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7719 * config/sh/sh.h (CONST_OK_FOR_J): Document.
7720 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7721 * config/sh/sh.md (adddi3): New expand.
7722 (adddi3_media, adddi3z_media): New insns.
7723 (adddi3_compact): Renamed from adddi3.
7724 (addsi3_media): Use add.l r63 to add constant zero.
7725 (subdi3): New expand.
7726 (subdi3_media): New insn.
7727 (subdi3_compact): Renamed from subdi3.
7728 (mulsidi3): New expand.
7729 (mulsidi3_media): New insn.
7730 (mulsidi3_compact): Renamed from mulsidi3.
7731 (umulsidi3): New expand.
7732 (umulsidi3_media): New insn.
7733 (umulsidi3_compact): Renamed from umulsidi3.
7734 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7735 (ashlsi3, ashrsi3, lshrsi3): Use them.
7736 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7737 (ashldi3, ashrdi3, lshrdi3): Use them.
7738 (zero_extendsidi2): New expand.
7739 (extendsidi2): New insn.
7740 (movsi_media): New insn. Split to movdi to load constants.
7741 (movsi): Enable for shmedia.
7742 (movdi_media): New insn. Use shori_media to load wide constants.
7743 (short_media): New insn.
7744 (movdi): Enable for shmedia.
7745 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
7746 * config/sh/sh.h (CPP_SPEC): Added `m5'.
7747 (SUBTARGET_CPP_SPEC): Added `!m5'.
7748 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7749 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
7750 to all other SH variants.
7751 (TARGET_DEFAULT): Set to SH1_BIT.
7752 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7753 (BITS_PER_WORD): Raise to 64 on shmedia.
7754 (MAX_BITS_PER_WORD): Change to 64.
7755 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7756 (INT_TYPE_SIZE): Keep as 32.
7757 (UNITS_PER_WORD): Raise to 8 on shmedia.
7758 (MIN_UNITS_PER_WORD): Keep as 4.
7759 (POINTER_SIZE): Raise to 64 on shmedia.
7760 (CONST_OK_FOR_J): New macro.
7761 (CONST_OK_FOR_LETTER_P): Use it.
7762 (processor_type): Add PROCESSOR_SH5.
7763 * config/sh/sh.md: Conditionalize all expands, insns and
7764 splits to TARGET_SH1.
7766 (addsi3_compact): Renamed from...
7767 (addsi3): Now an expand.
7768 (addsi3_media, subsi3_media): New insns.
7769 (subsi3): Don't negate constants with SHmedia.
7771 * hooks.c: New file.
7772 * hooks.h: New file.
7773 * Makefile.in (HOOKS_H): New.
7774 (TARGET_DEF_H): Added $(HOOKS_H).
7775 (OBJS): Added hooks.o.
7776 (cfgcleanup.o, bb-reorder.o): Added target.h.
7777 (hooks.o): Added dependencies.
7778 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7779 (TARGET_INITIALIZER): this.
7780 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7781 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7782 * bb-reorder.c: Include target.h.
7783 (reorder_basic_blocks): Skip if cannot modify jumps.
7784 * cfgcleanup.c: Include target.h.
7785 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7787 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7789 * config/mips/mips.md (casesi_internal, casesi_internal_di):
7790 Protect jump delay slot instructions with .set noreorder and
7793 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7795 * config/mips/mips.md (casesi_internal_di): Calculate
7796 the index into the target offset table correctly.
7798 2002-02-08 Richard Henderson <rth@redhat.com>
7800 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7801 * final.c (output_addr_const): Accept and discard SUBREG.
7802 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7803 mark them unknown instead.
7804 (simplify_subtraction): Handle RTX_UNKNOWN.
7805 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7807 2002-02-08 David Edelsohn <edelsohn@gnu.org>
7809 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7811 2002-02-08 Richard Henderson <rth@redhat.com>
7813 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7815 2002-02-08 Andreas Jaeger <aj@suse.de>
7817 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7818 * config/i386/t-linux64: New file.
7820 2002-02-08 Jakub Jelinek <jakub@redhat.com>
7822 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7823 * c-parse.in (compstmt): Clear last_expr_type.
7825 2002-02-07 Richard Henderson <rth@redhat.com>
7827 * loop.c (strength_reduce): Sink final_value when not
7830 2002-02-07 David O'Brien <obrien@FreeBSD.org>
7832 * config/sparc/freebsd.h: Fix mismatched spec {.
7834 2002-02-07 Richard Henderson <rth@redhat.com>
7836 * cfgrtl.c: Include recog.h and insn-config.h.
7837 (keep_with_call_p): Fix general_operand invocation.
7838 * Makefile.in (cfgrtl.o): Update dependencies.
7840 2002-02-07 Kazu Hirata <kazu@hxi.com>
7842 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7843 comment. Accept HImode only if TARGET_H8300.
7845 2002-02-07 Eric Christopher <echristo@redhat.com>
7847 * config/mips/crtn.asm: Cleanup #ifdefs.
7849 2002-02-07 Eric Christopher <echristo@redhat.com>
7851 * config/mips/crti.asm: Add changes for mips16. mips16 uses
7852 register 7 as RA instead of $31.
7853 * config/mips/crtn.asm: Ditto.
7854 * config/mips/mips.c (mips_move_2words): Add case for
7855 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7856 (compute_frame_size): Fix typo.
7857 (save_restore_insns): Ditto. Make documentation about using
7858 register $7 as return register more precise.
7859 (mips_expand_epilogue): Fix comment. Add code to work around not
7860 being able to add to the stack pointer directly.
7861 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7862 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7865 2002-02-07 Tom Rix <trix@redhat.com>
7867 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7868 immediates in ldu and stdu DS opcode field.
7869 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7870 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7871 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7873 2002-02-07 Jeff Sturm <jsturm@one-point.com>
7875 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7876 offset for stack bias.
7878 2002-02-07 H.J. Lu <hjl@gnu.org>
7880 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7882 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
7884 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7886 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
7888 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7889 * i386.c (x86_order_regs_for_local_alloc): New global function.
7890 * i386.h (REG_ALLOC_ORDER): CLeanup.
7891 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7893 2002-02-07 Richard Henderson <rth@redhat.com>
7895 PR optimization/2463
7896 * alias.c (find_base_value): Recall base values for fixed hard regs.
7897 * loop.c (loop_regs_update): Don't use single_set on non-insns.
7899 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
7901 * config/mips/mips.md (define_delay) [mips16]: Adjust required
7904 2002-02-06 Richard Henderson <rth@redhat.com>
7907 * stmt.c (resolve_operand_name_1): Take more care with mixed
7908 named and unnamed operands.
7910 2002-02-06 Janis Johnson <janis187@us.ibm.com>
7911 Jan Hubicka <jh@suse.cz>
7913 * loop.c (remove_constant_addition): Avoid clobbering a shared
7916 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
7918 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7919 * config/s390/t-linux64: New file.
7920 * config/s390/libgcc-glibc.ver: New file.
7922 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
7924 * config/s390/linux64.h: Delete file.
7925 * config/s390/s390x.h: New file.
7926 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7927 as target header file.
7928 * config/s390/linux.h (TARGET_VERSION): Define depending on
7929 DEFAULT_TARGET_64BIT.
7930 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7931 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7932 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7933 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7934 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7935 (EXTRA_SPEC): New define.
7936 * config/s390/s390.h (TARGET_VERSION): Define depending on
7937 DEFAULT_TARGET_64BIT.
7938 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7940 2002-02-06 Jason Merrill <jason@redhat.com>
7942 * c-decl.c (finish_function): Warn about a non-void function with
7943 no return statement and no abnormal exit.
7944 (current_function_returns_abnormally): New variable.
7945 (start_function): Clear it.
7946 (struct c_language_function): Add returns_abnormally.
7947 (push_c_function_context): Save it.
7948 (pop_c_function_context): Restore it.
7949 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7950 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7951 an explicit return type.
7952 * c-tree.h: Declare current_function_returns_abnormally.
7953 (C_FUNCTION_IMPLICIT_INT): New macro.
7954 * c-typeck.c (build_function_call): Set it.
7955 (c_expand_return): Set current_function_returns_value even if the
7958 2002-02-06 Jakub Jelinek <jakub@redhat.com>
7961 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7962 unsafe for reevaluation.
7964 2002-02-06 Jakub Jelinek <jakub@redhat.com>
7967 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7968 EXPR_STMT, but COMPOUND_STMT, recurse into it.
7970 2002-02-06 Richard Henderson <rth@redhat.com>
7972 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7973 be a general_operand. Dest for function value must be a pseudo.
7975 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
7977 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7978 as SYMBOL_REFs from the constant pool.
7980 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
7982 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7983 passed by invisible reference.
7985 2002-02-05 Richard Henderson <rth@redhat.com>
7987 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7989 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
7991 Implement using "base addresses" in insn operands as default.
7992 * config/mmix/mmix.c (mmix_conditional_register_usage): if
7993 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7994 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7995 used to read the rtx value.
7996 (mmix_target_asm_function_epilogue): Fix spacing.
7997 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7998 (mmix_legitimate_address): Ditto.
7999 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
8000 should be loaded with a GETA insn. Don't allocate needless extra
8001 char for nul termination and fix misleading comment.
8002 (mmix_print_operand_address): Handle constants if
8003 TARGET_BASE_ADDRESSES.
8004 (mmix_output_register_setting): Use base addressing if
8005 TARGET_BASE_ADDRESSES and the number of insns is 3.
8006 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
8007 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
8008 to use R as constraint, add LDA to match s.
8009 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
8010 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
8011 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
8012 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
8013 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
8014 order with other fixed registers.
8015 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
8016 other parameter/call-clobbered registers.
8017 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
8018 -mbase-addresses, -mno-base-addresses.
8019 (MMIX Options): Ditto.
8021 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
8023 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
8025 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
8027 * config/rs6000/altivec.h: Change elem to _S_elem.
8029 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
8031 * config/netbsd.h (WCHAR_TYPE): Define.
8032 (WCHAR_TYPE_SIZE): Ditto.
8034 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
8035 (WCHAR_UNSIGNED): Ditto.
8036 (WCHAR_TYPE_SIZE): Ditto.
8038 * config/arm/netbsd.h: Likewise.
8039 * config/i386/netbsd-elf.h: Likewise.
8040 * config/i386/netbsd.h: Likewise.
8041 * config/m68k/netbsd-elf.h: Likewise.
8042 * config/m68k/netbsd.h: Likewise.
8043 * config/ns32k/netbsd.h: Likewise.
8044 * config/sparc/netbsd.h: Likewise.
8045 * config/vax/netbsd.: Likewise.
8047 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
8049 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
8050 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
8051 (TARGET_INITIALIZER): this.
8052 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
8053 (BITFIELD_NBYTES_LIMITED): Markup fix.
8054 * tree.h (default_ms_bitfield_layout_p): Declare.
8055 (record_layout_info): Added prev_field.
8056 * tree.c (default_ms_bitfield_layout_p): New fn.
8057 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
8058 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
8059 * stor-layout.c: Include target.h.
8060 (start_record_layout): Initialize prev_field.
8061 (place_field): Handle MS bit-field layout, and disregard
8062 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
8063 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
8064 * Makefile.in (stor-layout.o): Adjust dependencies.
8066 2002-02-05 Jason Merrill <jason@redhat.com>
8068 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
8070 2002-02-05 Andreas Jaeger <aj@suse.de>
8072 * crtstuff.c: Fix comments.
8074 2002-02-05 Richard Henderson <rth@redhat.com>
8077 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
8078 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
8081 * config/mips/mips.c (function_arg): Handle TImode.
8082 (function_arg_advance): Likewise.
8084 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8086 * config/rs6000/altivec.h (vec_step_help): Rename to
8089 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8091 * config/rs6000/altivec.h: Fix typos.
8093 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
8095 * config/arm/netbsd.h: Correct a comment.
8097 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8099 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
8100 building void typed builtins.
8102 * config/rs6000/altivec.h (vec_ld*): Fix typos.
8103 (vec_step): Implement for C++.
8105 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8107 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
8109 2002-02-04 Richard Henderson <rth@redhat.com>
8111 * combine.c (nonzero_bits): Re-introduce special case for
8112 sp/fp/ap wrt REGNO_POINTER_ALIGN.
8114 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8116 * doc/extend.texi: Warn about unsupported usage of altivec
8119 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
8120 (altivec_predicate_*): New.
8122 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
8123 Add C++ version of vec_*() functions.
8125 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
8126 (bdesc_2arg): Remove altivec predicates.
8127 (altivec_expand_builtin): Handle predicates.
8128 (altivec_init_builtins): Handle predicates.
8129 (altivec_expand_predicate_builtin): New.
8131 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8133 * pa.c (DO_FRAME_NOTES): Move forward.
8134 (store_reg): Revise handling of frame notes.
8135 (load_reg): Likewise.
8136 (set_reg_plus_d): Likewise.
8137 (hppa_expand_prologue): Likewise.
8138 (hppa_expand_epilogue): Likewise.
8140 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8142 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
8144 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8146 PR c/4475, c++/3780:
8147 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
8148 * c-common.h (SWITCH_TYPE): Define.
8149 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
8150 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
8151 Rename spareness variable to sparseness.
8152 (expand_end_case_type): Renamed from expand_end_case, use orig_type
8153 if non-NULL instead of TREE_TYPE (orig_index).
8154 * tree.h (expand_end_case_type): Renamed from expand_end_case.
8155 (expand_end_case): Define using expand_end_case_type.
8156 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
8157 to expand_end_case_type.
8158 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
8160 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8162 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
8163 (BIGGEST_ALIGNMENT): Change to 128.
8165 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8167 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
8169 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8171 * pa.md (call_internal_reg_64bit): Remove unused variable.
8173 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
8175 * config/arm/arm.h (machine_function): Add uses_anonymous_args
8177 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
8178 * config/arm/arm.c (current_function_anonymous_args): Delete,
8179 replace uses with cfun->machine->uses_anonymous_args.
8180 (arm_reorg): Do not reset uses_anonymous_args.
8182 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
8183 any geenral register.
8185 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
8187 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
8190 2002-02-04 Richard Henderson <rth@redhat.com>
8192 * combine.c (force_to_mode): Remove STACK_BIAS code.
8193 (nonzero_bits): Likewise. Replace sp/fp special case with
8194 REGNO_POINTER_ALIGN.
8196 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
8197 (HARD_FRAME_POINTER_REGNUM): New.
8198 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
8199 (FIXED_REGS, CALL_USED_REGS): Update.
8200 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
8201 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
8202 (HARD_REGNO_NREGS): Update for SFP.
8203 (STACK_POINTER_OFFSET): Include bias here ...
8204 (FIRST_PARM_OFFSET): ... not here.
8205 (STACK_BIAS): Remove.
8206 (INIT_EXPANDERS): New.
8207 (STARTING_FRAME_OFFSET): Do not include bias.
8208 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
8209 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
8210 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
8211 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
8212 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
8213 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
8214 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
8215 (MUST_SAVE_REGISTER): Likewise.
8216 (sparc_flat_function_prologue): Likewise.
8217 (sparc_flat_function_epilogue): Likewise.
8218 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
8219 (sparc_init_modes): SFP is GENERAL_REGS.
8220 (sparc_builtin_saveregs): SFP does not have bias applied.
8222 2002-02-04 Richard Henderson <rth@redhat.com>
8224 * config/alpha/alpha.c (current_function_is_thunk): Don't check
8225 current_function_is_thunk.
8226 (alpha_sa_mask): Distinguish between current_function_is_thunk
8227 called from ASM_OUTPUT_MI_THUNK and not.
8228 (alpha_does_function_need_gp): Thunks always need gp.
8229 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8230 (alpha_output_mi_thunk_osf): New.
8231 * config/alpha/alpha-protos.h: Update.
8232 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
8234 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
8236 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
8237 function types, not when they're taken away.
8239 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
8241 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
8242 CODE_LABEL and jump table when replacing a table jump with a
8245 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8247 * config/s390/s390-protos.h (legitimize_la_operand,
8248 s390_secondary_input_reload_class, s390_plus_operand,
8249 s390_expand_plus_operand): Add prototypes.
8251 config/s390/s390.c (s390_secondary_input_reload_class,
8252 s390_plus_operand, s390_expand_plus_operand): New functions.
8254 (struct s390_address): New member 'pointer'.
8255 (s390_decompose_address): Compute it.
8256 (legitimate_la_operand_p): Use it.
8257 (legitimize_la_operand): New function.
8258 (movti, movdi, movdf splitters): Call it.
8260 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
8261 (PREDICATE_CODES): Add s390_plus_operand.
8263 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
8264 (la_ccclobber): Allow GENERAL_REGS as output operand.
8266 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
8267 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
8268 (*la_64, *la_31, reload_indi, reload_insi): ... these.
8270 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8272 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
8273 register names for regular asm () construct.
8275 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8277 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
8280 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8282 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
8285 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
8287 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
8288 constant pool to be identical by string address and index.
8290 2002-02-04 Anthony Green <green@redhat.com>
8292 * output.h (SECTION_OVERRIDE): Define.
8293 * varasm.c (named_section): Obey SECTION_OVERRIDE.
8295 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
8297 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
8298 by existing arm*-*-netbsd* (a.out) target.
8299 (ns32k-*-netbsdelf*): Likewise.
8300 (sparc-*-netbsdelf*): Likewise.
8301 (vax-*-netbsdelf*): Likewise.
8303 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
8305 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
8306 headers and libobjc headers.
8308 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
8310 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
8311 (_mingw.h): Remove duplicate include.
8313 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
8315 * config.gcc: Set cpu_type to m68k for 68010, as well.
8316 (m68010-*-netbsdelf*): New...
8317 (m68k*-*-netbsdelf*): ...targets.
8318 * config/m68k/netbsd-elf.h: New file.
8320 2002-02-02 Kazu Hirata <kazu@hxi.com>
8322 * config/h8300/h8300.c (hand_list): Move inside function_arg.
8324 2002-02-02 Kazu Hirata <kazu@hxi.com>
8326 * config/h8300/h8300.c (h8_push_ops): Move inside
8328 (h8_pop_ops): Likewise.
8329 (h8_move_ops): Likewise.
8331 2002-02-02 Kazu Hirata <kazu@hxi.com>
8333 * config/h8300/h8300.c (os_task): Make it static.
8334 (monitor): Likewise.
8335 (pragma_saveall): Likewise.
8337 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
8339 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
8340 constant is a valid sign-extension for Pmode.
8342 2002-02-02 Kazu Hirata <kazu@hxi.com>
8344 * config/h8300/h8300.c: Fix formatting.
8346 2002-02-02 Kazu Hirata <kazu@hxi.com>
8348 * config/h8300/h8300.md: Fix formatting.
8350 2002-02-02 Kazu Hirata <kazu@hxi.com>
8352 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
8353 predicates of operands[1]. Split the patterns for each
8356 2002-02-02 Kazu Hirata <kazu@hxi.com>
8358 * config/h8300/h8300.md (xor patterns): Tighten the predicates
8359 of operands[1] to register_operand.
8361 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
8363 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
8364 * cpphash.c (_cpp_init_hashtable): Similarly.
8365 * cppinit.c (cpp_create_reader): Default the signed_char flag.
8366 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
8367 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
8368 (cpp_handle_option): Handle the new options.
8369 * cpplex.c (cpp_interpret_charconst): Use new flag.
8370 * cpplib.h (struct cpp_options): New member signed_char.
8371 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
8372 (cpp_options): Handle -fsigned-char and -funsigned-char.
8373 (static_specs): Remove signed_char_spec.
8374 (do_spec1): Don't handle %c.
8375 * system.h: Poison SIGNED_CHAR_SPEC.
8376 * tradcif.y (yylex): Use flag_signed_char.
8377 * tradcpp.h (flag_signed_char): New.
8378 * tradcpp.c (flag_signed_char): New.
8379 (main): Handle new command-line options.
8380 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
8382 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
8383 * avr/avr.h: Remove old comments.
8384 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
8385 (CC1_SPEC): Pass -fsigned-char if -mic*.
8386 (SIGNED_CHAR_SPEC): Remove.
8388 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
8390 2002-02-01 Eric Christopher <echristo@redhat.com>
8392 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
8393 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
8394 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
8395 (ASM_OUTPUT_REG_POP): Ditto.
8397 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
8399 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
8402 2002-02-02 Jakub Jelinek <jakub@redhat.com>
8404 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
8406 2002-02-02 Jakub Jelinek <jakub@redhat.com>
8409 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
8412 2002-02-01 Janis Johnson <janis187@us.ibm.com>
8414 * cfganal.c: Include tm_p.h.
8415 (keep_with_call_p): Fix the test that determines if a register holds
8416 the return value of a call.
8418 2002-02-01 DJ Delorie <dj@redhat.com>
8420 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
8421 we are given conflicting registers, switch to the other one we
8422 had allocated for us.
8423 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
8424 as TImode so we know when the "other" register is available.
8426 2002-02-01 David O'Brien <obrien@FreeBSD.org>
8428 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
8431 2002-02-01 Janis Johnson <janis187@us.ibm.com>
8433 * cfganal.c (keep_with_call_p): New function.
8434 (flow_call_edges_add): Prevent splitting a block between a call and
8435 a single-set instruction that should be kept in the same block.
8437 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
8439 * doc/install.texi (avr): Update outdated URL.
8441 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
8443 * config/stormy16/stormy16.md (pushqi): New.
8447 (movhi): Remove stack operands.
8449 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
8450 nonimmediate_nonstack_operand.
8451 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
8453 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
8456 2002-01-31 Jason Merrill <jason@redhat.com>
8458 * Makefile.in (c-parse.c): Handle .output file.
8459 * objc/Make-lang.in (objc-parse.c): Likewise.
8461 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
8463 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
8464 the -me[lb] option is given. Don't output the default flag
8467 2002-01-31 Zack Weinberg <zack@codesourcery.com>
8469 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
8470 the primary source file; this has not been done yet.
8471 * c-decl.c (c_expand_body): Reset input_filename from
8472 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
8474 2002-01-31 Kazu Hirata <kazu@hxi.com>
8476 * rtlanal.c (subreg_regno_offset): Do not use
8477 SUBREG_REGNO_OFFSET.
8478 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
8479 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
8481 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
8483 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
8484 version rather than GNATS version in --version output.
8486 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
8488 * ifcvt.c (noce_process_if_block): Make a copy of the destination
8489 when copying back from a temporary.
8491 2002-01-30 Richard Henderson <rth@redhat.com>
8493 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8494 and new_dest are the same.
8496 2002-01-30 Richard Henderson <rth@redhat.com>
8499 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8500 * rtl.c (note_insn_name): Update.
8501 * emit-rtl.c (remove_unnecessary_notes): Kill it.
8502 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
8503 to perform loop rotation.
8504 (expand_exit_loop_top_cond): New.
8505 * tree.h (expand_exit_loop_top_cond): Declare it.
8506 * c-semantics.c (genrtl_while_stmt): Use it.
8507 (genrtl_for_stmt): Likewise.
8509 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
8511 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8512 arguments to 64-bit boundaries on 64-bit ABIs.
8514 2002-01-30 Steve Ellcey <sje@cup.hp.com>
8516 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8518 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
8520 * c-decl.c (grokdeclarator): Handle type being a typedef for an
8523 2002-01-30 David O'Brien <obrien@FreeBSD.org>
8525 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8526 * config/sparc/sparc_bi.h: Remove file.
8527 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8529 2002-01-30 Richard Henderson <rth@redhat.com>
8531 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8533 2002-01-30 Zack Weinberg <zack@codesourcery.com>
8535 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8537 2002-01-30 Jason Merrill <jason@redhat.com>
8539 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8540 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8541 (reg_save): Use DW_CFA_offset_extended_sf instead.
8543 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8545 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8547 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8550 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
8552 * rs6000.md ("*call_value_local32"): Remove constraints.
8553 ("*call_value_local64"): Same.
8554 ("*call_value_indirect_nonlocal_aix32"): Same.
8555 ("*call_value_nonlocal_aix32"): Same.
8556 ("*call_value_indirect_nonlocal_aix64"): Same.
8557 ("*call_value_nonlocal_aix64"): Same.
8558 ("*call_value_nonlocal_sysv"): Same.
8560 2002-01-29 Richard Henderson <rth@redhat.com>
8562 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8564 2002-01-29 Richard Henderson <rth@redhat.com>
8566 * expr.c (force_operand): Ignore flag_pic for detecting pic
8568 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8569 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8570 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8571 instead of open-coded loop.
8572 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8573 be fixed when in use.
8575 2002-01-29 Richard Henderson <rth@redhat.com>
8577 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8578 * sched-rgn.c (propagate_deps): Update them.
8579 * sched-deps.c (sched_analyze_insn): Update them. Flush the
8580 clobbers list when either gets too long.
8582 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8584 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8585 and INDEX_REGS the same as GENERAL_REGS.
8586 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8588 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
8590 * tree.c (build_nonstandard_integer_type): Correct prototype.
8592 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
8594 * config/s390/s390.md (movstrsico, movstrdix_64,
8595 movstrsix_31): Remove, replace by ...
8596 (movstrdi_short, movstrsi_short, movstrdi_long,
8597 movstrsi_long): ... these. New.
8598 (movstrdi, movstrsi): Adapt.
8600 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8601 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8602 Remove unnecessary CC clobber.
8603 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8604 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8606 (divmoddi4): Don't partially initialize TImode register.
8608 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
8610 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8612 2002-01-29 Richard Henderson <rth@redhat.com>
8614 * flow.c (print_rtl_and_abort): Remove.
8615 (print_rtl_and_abort_fcn): Remove.
8616 (verify_local_live_at_start): Use dump_bb instead.
8617 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8618 (verify_wide_reg_1): Return 2 on mode test failure.
8620 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
8622 PR c/3325, c/3326, c/2511, c/3347
8623 * c-decl.c (enum_decl_context): Remove BITFIELD.
8624 (grokdeclarator): Take bitfield width as an input.
8625 Ensure bitfields are given the correct type. Perform
8626 bitfield width validation with build_bitfield_integer_type
8627 rather than waiting for finish_struct.
8628 (grok_typename, grok_typename_in_parm_context, start_decl,
8629 push_parmdecl, grokfield, start_function): Update calls to
8631 (build_bitfield_integer_type): New function.
8632 (finish_struct): Move bitfield validation to grokdeclarator
8633 and build_bitfield_integer_type.
8634 * tree.c (build_nonstandard_integer_type): New function.
8635 * tree.h (build_nonstandard_integer_type): New prototype.
8637 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8639 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8642 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8643 don't ignore unrecognized -W* options.
8644 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8645 * cpplib.h (cpp_handle_option): Adjust prototype.
8646 * c-decl.c (c_decode_options): Pass 0 as last argument to
8650 * gcc.c (cpp_unique_options): Split from cpp_options.
8651 (cpp_options): Source cpp_unique_options.
8652 (default_compilers): Use cpp_unique_options instead of cpp_options
8653 when used together with cc1_options.
8654 (static_specs): Add cpp_unique_options.
8655 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8656 when used together with cc1_options.
8658 2002-01-29 Kazu Hirata <kazu@hxi.com>
8660 * config/h8300/h8300-protos.h: Update the prototype of
8662 * config/h8300/h8300.c (output_a_shift): Remove an unused
8663 argument 'insn'. Remove redundant code.
8664 * config/h8300/h8300.md: Adust to the new prototype of
8667 2002-01-29 Kazu Hirata <kazu@hxi.com>
8669 * config/h8300/h8300-protos.h: Update the prototypes of
8670 emit_a_rotate and expand_a_rotate.
8671 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8672 first argument to 'enum rtx_code'.
8673 (expand_a_rotate): Likewise.
8675 2002-01-28 Kazu Hirata <kazu@hxi.com>
8677 * config/h8300/h8300-protos.h: Update the prototype of
8679 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8681 * config/h8300/h8300.md: Adjust to the new prototype.
8683 2002-01-28 Kazu Hirata <kazu@hxi.com>
8685 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8688 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
8690 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8691 is a fixed register before returning pic_offset_table_rtx.
8692 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8693 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8695 2002-01-28 Jason Merrill <jason@redhat.com>
8697 * dwarf2.h: Sync with src version.
8699 2002-01-28 Paul Koning <pkoning@equallogic.com>
8701 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8703 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8704 * doc/extend.texi (__builtin_prefetch): Update documentation:
8705 first argument is now const void ptr.
8707 2002-01-28 Kazu Hirata <kazu@hxi.com>
8709 * config/h8300/h8300-protos.h: Remove an unused prototype.
8711 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
8713 * toplev.c (lang_independent_init): Round up identifier size.
8715 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
8717 * config.gcc: Revert previous change.
8719 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
8721 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8723 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
8725 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8726 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
8727 other non-elf netbsd config frags.
8728 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8729 collect2 will does that.
8730 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8731 shared-lib frobbing will work.
8733 2002-01-28 Kazu Hirata <kazu@hxi.com>
8735 * config/h8300/h8300.h: Fix formatting.
8736 * config/h8300/h8300.md: Likewise.
8738 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
8740 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8741 the old, removed AAA_standards fix.
8742 * fixinc/fixincl.x: Rebuilt.
8744 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
8746 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8747 atexit call in crtbegin, hooked in after call to frame_dummy;
8748 register EH before registering __fini__start.
8750 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
8752 * config/rs6000/altivec.h: Remove spurious semicolons.
8754 2002-01-27 Kazu Hirata <kazu@hxi.com>
8756 * config/h8300/h8300.md: Replace dead bit extraction patterns
8757 with ones that work.
8759 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8761 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8762 if not STRICT_ALIGNMENT.
8763 * rtl.h (MEM_ALIGN): Likewise.
8765 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
8767 * doc/invoke.texi (-fdump-translation-unit): Revert this
8768 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
8770 2002-01-27 Kazu Hirata <kazu@hxi.com>
8772 * config/h8300/h8300.md (define_constants): New.
8773 (anonymous patterns) Use defined constants appropriately.
8775 2002-01-27 Kazu Hirata <kazu@hxi.com>
8777 * config/h8300/h8300.c (function_arg): Remove redundant code.
8779 2002-01-26 Richard Henderson <rth@redhat.com>
8781 * sched-deps.c (reg_pending_uses_head): New.
8782 (reg_pending_barrier): Rename from reg_pending_sets_all.
8783 (find_insn_list): Don't mark inline.
8784 (find_insn_mem_list): Remove.
8785 (add_dependence_list, add_dependence_list_and_free): New.
8786 (flush_pending_lists): Replace only_write param with separate
8787 for_read and for_write parameters. Update all callers. Use
8788 add_dependence_list_and_free.
8789 (sched_analyze_1): Do not add reg dependencies here; just set
8790 the pending bits. Use add_dependence_list.
8791 (sched_analyze_2): Likewise.
8792 (sched_analyze_insn): Replace schedule_barrier_found with
8793 reg_pending_barrier. Add all dependencies for pending reg
8794 uses, sets, and clobbers.
8795 (sched_analyze): Don't add reg dependencies for calls, just
8796 set pending bits. Use regs_invalidated_by_call. Treat
8797 sched_before_next_call as a normal list, not a fake insn.
8798 (init_deps): No funny init for sched_before_next_call.
8799 (free_deps): Free pending mems lists. Don't zero reg_last.
8800 (init_deps_global): Init reg_pending_uses.
8801 (finish_deps_global): Free it.
8802 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
8803 (find_insn_mem_list): Remove.
8804 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8805 (propagate_deps): Use them. Zero temp mem lists.
8807 2002-01-26 Richard Henderson <rth@redhat.com>
8809 * Makefile.in (CRTSTUFF_CFLAGS): New.
8810 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8811 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8812 crtstuff.c instead of alpha assembly version.
8813 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8814 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
8815 not FORCE_{INIT,FINI}_SECTION_ALIGN.
8816 (__do_global_dtors_aux): Mark used.
8817 (frame_dummy, __do_global_ctors_aux): Mark used.
8818 (fini_dummy, init_dummy): Remove.
8820 * config/alpha/crtbegin.asm: Remove file.
8821 * config/alpha/crtend.asm: Remove file.
8822 * config/alpha/t-crtbe: Remove file.
8823 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8824 (LINK_EH_SPEC): New.
8826 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8827 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
8828 calling constructors.
8829 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8831 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8832 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8833 CRT_END_INIT_DUMMY hack.
8834 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8835 FORCE_{INIT,FINI}_SECTION_ALIGN.
8837 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8838 FORCE_{INIT,FINI}_SECTION_ALIGN.
8840 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8841 invocation sequence.
8842 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8844 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8845 (FORCE_CODE_SECTION_ALIGN): New.
8847 2002-01-26 Richard Henderson <rth@redhat.com>
8849 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8851 2002-01-26 Richard Henderson <rth@redhat.com>
8853 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8854 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8856 2002-01-26 Kazu Hirata <kazu@hxi.com>
8858 * config/h8300/h8300.md: Remove bit extraction patterns that
8859 cannot be triggered.
8860 Restrict each bit extraction pattern to a variant on which the
8863 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
8865 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8867 2002-01-26 Kazu Hirata <kazu@hxi.com>
8869 * config/h8300/h8300.md: Remove bit test patterns that cannot
8871 Restrict each bit test pattern to a variant on which the
8874 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8876 * builtins.c (expand_builtin_strncat): Remove redundant check for
8879 2002-01-25 David O'Brien <obrien@FreeBSD.org>
8881 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8883 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8886 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
8888 * dbxout.c (dbxout_init): Use assemble_name rather than just
8889 stripping off the first character.
8890 (dbxout_source_file): Likewise.
8892 2002-01-25 DJ Delorie <dj@redhat.com>
8894 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8895 using rtx_equal_p, not by comparing pointers.
8897 2002-01-25 Steve Ellcey <sje@cup.hp.com>
8899 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8900 for PIC_OFFSET_TABLE_REGNUM.
8901 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8903 2002-01-25 David O'Brien <obrien@FreeBSD.org>
8905 * config.gcc (x86_64-*-freebsd*): New target.
8906 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8908 (i[34567]86-*-freebsd*): Don't include svr4.h.
8909 * config/i386/freebsd64.h: New file.
8911 2002-01-25 Douglas B Rupp <rupp@gnat.com>
8913 * config/alpha/x-vms (version): Make static.
8915 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8916 in previous checkin.
8918 * Makefile.in (install-headers-cp): New target.
8919 * config.gcc (alpha-dec-*vms*): Install headers with
8922 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
8924 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8927 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8929 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8930 of compare_tree_int.
8931 (expand_builtin_strncat): Likewise.
8932 * c-decl.c (finish_struct): Use tree_low_cst.
8933 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8934 * tree.c (compare_tree_int): Likewise.
8936 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
8938 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8939 adjustments even if they are implemented by more than two insns.
8941 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
8943 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8944 * df.h (struct ref): Kill B.
8945 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8947 * basic-block.h (PROP_EQUAL_NOTES): New flag.
8948 * flow.c (propagate_one_insn): Use it.
8949 (mark_used_regs): Handle NIL.
8951 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
8953 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8956 2002-01-25 David Edelsohn <edelsohn@gnu.org>
8958 * rs6000.md (prefetch): Make address V4SI mode so that the address
8959 is restricted to legitimate form for instruction.
8961 2002-01-25 Bob Wilson <bob.wilson@acm.org>
8963 * doc/install.texi (xtensa-*-elf): New target.
8964 (xtensa-*-linux*): New target.
8965 * doc/contrib.texi: Add myself.
8967 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
8969 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8970 purpose register to hold an SImode (or smaller) value.
8972 2002-01-25 Jakub Jelinek <jakub@redhat.com>
8974 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8976 * crtstuff.c: Likewise.
8978 2002-01-25 Kazu Hirata <kazu@hxi.com>
8980 * config/h8300/h8300.md (negation patterns): Tighten
8981 predicates to register_operand.
8983 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
8985 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8988 * builtins.c (expand_builtin_prefetch): Same.
8990 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8992 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8995 2002-01-24 Kazu Hirata <kazu@hxi.com>
8997 * config/h8300/h8300.c (print_operand): Remove support for
8998 operand character 'A'.
8999 * config/h8300/h8300.md (three anonymous patterns): Replace
9000 operand character 'A' with either 'T' or 'S'.
9002 2002-01-24 Kazu Hirata <kazu@hxi.com>
9004 * config/h8300/h8300.c (print_operand): Remove support for
9005 operand character 'U'.
9007 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
9009 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
9011 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
9013 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
9014 values to be assigned to the stack pointer.
9016 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
9018 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
9019 to const_double needs to be done right for big-endian systems.
9021 2002-01-24 Jason Merrill <jason@redhat.com>
9024 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
9025 to can_throw_internal.
9027 2002-01-23 Richard Henderson <rth@redhat.com>
9029 * fold-const.c (fold): Change UINT_MAX test to check vs precision
9030 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
9032 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9034 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
9035 (symGOT2reg): Use them, then set as GOT value as unchanging.
9036 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
9037 as a temporary, if possible.
9038 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
9039 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
9041 2002-01-23 Kazu Hirata <kazu@hxi.com>
9043 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
9044 accept to accept 0x80 as operands[2].
9046 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9048 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
9050 2002-01-23 Richard Henderson <rth@redhat.com>
9052 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
9054 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
9056 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
9057 (parmlist_or_identifiers_1): Verify that only a parmlist follows
9060 2002-01-23 Richard Henderson <rth@redhat.com>
9062 * expr.c (move_by_pieces_1): Extend size before negation.
9064 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
9065 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
9066 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
9067 * config/m68k/t-m68kelf: Likewise.
9069 2002-01-23 Bob Wilson <bob.wilson@acm.org>
9071 * config/xtensa/elf.h: New file.
9072 * config/xtensa/lib1funcs.asm: New file.
9073 * config/xtensa/lib2funcs.S: New file.
9074 * config/xtensa/linux.h: New file.
9075 * config/xtensa/t-xtensa: New file.
9076 * config/xtensa/xtensa-config.h: New file.
9077 * config/xtensa/xtensa-protos.h: New file.
9078 * config/xtensa/xtensa.c: New file.
9079 * config/xtensa/xtensa.h: New file.
9080 * config/xtensa/xtensa.md: New file.
9081 * config.gcc (xtensa-*-elf*): New target.
9082 (xtensa-*-linux*): New target.
9083 * cse.c (canon_hash): Compare rtx pointers instead of register
9084 numbers. This is required for the Xtensa port.
9085 * integrate.c (copy_insn_list): Handle case where the static
9086 chain is in memory and the memory address has to be copied to
9088 * doc/invoke.texi (Option Summary): Add Xtensa options.
9089 (Xtensa Options): New node.
9090 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
9092 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9094 * diagnostic.c (internal_error): Do ICE suppression only
9095 when ENABLE_CHECKING is not defined.
9097 * c-typeck.c (require_complete_type): Return error_mark_node
9098 if type is error_mark_node.
9100 2002-01-23 Janis Johnson <janis187@us.ibm.com>
9102 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
9103 -Os and issue a warning.
9105 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9107 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
9108 current (lack of) need for host configuration by hand.
9110 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
9111 references. Documentation of some target macros moved from
9112 hostconfig.texi to tm.texi.
9114 2002-01-23 Will Cohen <wcohen@redhat.com>
9116 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
9119 2002-01-23 Kazu Hirata <kazu@hxi.com>
9121 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
9124 2002-01-23 Jason Merrill <jason@redhat.com>
9126 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
9128 * function.c (assign_parms): Don't put args of inline functions
9129 into registers when not optimizing.
9131 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
9133 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
9134 (prologue_use): New pattern.
9135 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
9136 preference to gen_rtx_USE.
9137 (thumb_expand_prologue): Use gen_prologue_use in preference to
9139 (thumb_expand_epilogue): Use gen_prologue_use in preference to
9142 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
9144 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
9146 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
9149 * doc/extend.texi: Correct documentation of __alignof__.
9151 2002-01-22 Zack Weinberg <zack@codesourcery.com>
9153 * params.h: Rename arguments of DEFPARAM so that it will be
9154 recognized as a translation keyword.
9156 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9158 * extend.texi: Document altivec functions.
9159 Fix N-bit adjectives in X86 builtin documentation.
9161 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
9163 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
9164 auto_inc_dec values.
9166 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
9168 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
9170 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
9172 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
9174 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
9176 2002-01-22 Richard Henderson <rth@redhat.com>
9178 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
9179 copy_insn not copy_rtx.
9181 2002-01-23 Alan Modra <amodra@bigpond.net.au>
9183 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
9184 "nonzero" as that might add "1" bits. Ensure "constop" is
9185 properly sign extened.
9186 (force_to_mode): Tweak for sign extended constop.
9188 2002-01-22 Richard Henderson <rth@redhat.com>
9190 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
9191 for_each_rtx instead of assuming we're already looking at the MEM.
9192 (split_small_symbolic_mem_operand): Likewise.
9193 * config/alpha/alpha.h (PREDICATE_CODES): Update.
9194 * config/alpha/alpha.md (small symbolic memory splitters): Update.
9196 2002-01-22 Richard Henderson <rth@redhat.com>
9198 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
9199 sequence number for the literal.
9200 (divmoddi_internal_er): Likewise.
9202 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
9205 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
9206 in LIBICONV variable.
9207 * configure: Regenerated.
9209 2002-01-22 Krister Walfridsson <cato@df.lth.se>
9211 * dependence.c (build_def_use): Remove array_idx.
9213 * dwarfout.c (last_filename): Remove.
9214 (output_compile_unit_die): Remove last_filename.
9216 2002-01-22 Roger Sayle <roger@eyesopen.com>
9217 Richard Henderson <rth@redhat.com>
9220 * fold-const.c (fold): Optimize unsigned comparisons against
9221 UINT_MAX (and similar unsigned constants).
9223 2002-01-22 Janis Johnson <janis187@us.ibm.com>
9225 * Makefile.in (loop.o): Depend on OPTABS_H.
9226 * loop.c (emit_prefetch_instructions): Check the prefetch operand
9227 against the predicate.
9230 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
9231 for the address operand.
9233 2002-01-22 Richard Henderson <rth@redhat.com>
9235 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
9237 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
9240 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
9243 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
9245 * config.gcc (x86_64-*-netbsd*): New target.
9246 * config/i386/netbsd64.h: New file.
9248 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9250 * regrename.c (kill_value): Fix typo.
9252 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9254 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
9256 * config/rs6000/rs6000.h: Same.
9258 * function.c (instantiate_virtual_regs): Remove
9259 STARTING_FRAME_PHASE.
9260 (assign_stack_local_1): Same.
9261 Calculate frame phase.
9263 2002-01-22 Nick Clifton <nickc@redhat.com>
9265 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
9266 variable declaration to outer scope in order to simplify
9268 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
9269 arm_hard_regno_mode_ok.
9270 * config/arm/arm-protos.h: Add a prototype for
9271 arm_hard_regno_mode_ok.
9272 * config/arm/arm.c (soft_df_operand): Remove now redundant
9273 check for DImode values using IP_REGNUM.
9274 (nonimmediate_soft_df_operand): Remove now redundant check for
9275 DImode values using IP_REGNUM.
9276 (arm_hard_regno_mode_ok): New function. New check: make sure
9277 that DImode values are not stored in IP_REGNUM.
9279 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
9281 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
9283 2002-01-22 Jason Merrill <jason@redhat.com>
9285 * c-semantics.c (genrtl_compound_stmt): Only check nesting
9286 consistency if this COMPOUND_STMT is scoped.
9288 2002-01-22 Kazu Hirata <kazu@hxi.com>
9290 * predict.c: Fix formatting.
9291 * print-tree.c: Likewise.
9292 * protoize.c: Likewise.
9295 * sbitmap.h: Likewise.
9297 * sched-deps.c: Likewise.
9298 * sched-vis.c: Likewise.
9299 * sdbout.c: Likewise.
9300 * sibcall.c: Likewise.
9302 * ssa-ccp.c: Likewise.
9303 * ssa-dce.c: Likewise.
9305 * stor-layout.c: Likewise.
9306 * system.h: Likewise.
9308 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9310 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
9311 if fits in bounds of base type.
9313 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
9314 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
9315 (add_bound_info, default): If can't find a context, make a
9317 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
9319 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
9321 * c-typeck.c (parser_build_binary_op): If result from
9322 build_binary_op is ERROR_MARK just return error_mark_node without
9325 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
9327 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
9328 Split a.out-specific bits into...
9329 * config/netbsd-aout.h: ...this.
9330 * config/netbsd-elf.h: New file.
9331 * config/alpha/netbsd-elf.h: Remove.
9332 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
9333 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
9334 (STARTFILE_SPEC): Remove redundant definition.
9335 (ENDFILE_SPEC): Likewise.
9336 (LINK_SPEC): Likewise.
9337 (CPP_SPEC): Likewise.
9338 (ASM_SPEC): Likewise.
9339 (LIB_SPEC): Likewise.
9340 (SWITCH_TAKES_ARG): Likewise.
9341 (TARGET_MEM_FUNCTIONS): Likewise.
9342 (CPP_PREDEFINES): Redefine.
9343 (ASM_FINAL_SPEC): Remove redefinition.
9344 (ASM_COMMENT_START): Redefine.
9345 (FUNCTION_PROFILER): Define.
9346 (TARGET_VERSION): Redefine.
9347 Comment and formatting cleanup.
9348 * config/i386/netbsd.h: Include <netbsd-aout.h>.
9349 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
9350 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
9351 big- or little-endian.
9352 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
9353 * config.gcc (*-*-netbsd*): Add definitions common to all
9355 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
9356 gnu_ld definitions. Add netbsd-elf.h to and remove
9357 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
9358 tmake_file, and don't lose previous tmake_file contents.
9359 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
9360 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
9361 gnu_ld definitions. Add netbsd-elf.h to tm_file.
9362 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
9363 (mipsel-*-netbsd*): Rename this to...
9364 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
9365 mips/little.h to tm_file for mips*el-*.
9366 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
9367 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
9368 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
9370 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
9372 * pa-protos.h (reg_before_reload_operand): New function prototype.
9373 * pa.c (reg_before_reload_operand): New function implementation.
9374 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
9377 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9379 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
9381 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
9383 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
9384 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
9385 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
9386 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
9387 (ENDFILE_SPEC): Undefine.
9388 (STARTFILE_SPEC): Redefine for PA.
9390 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9392 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
9394 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
9396 * config.gcc: Add entries to supported PowerPC --with-cpu
9399 2002-01-21 Jakub Jelinek <jakub@redhat.com>
9401 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
9402 true for 64-bit mode only SSE registers in 32-bit mode.
9404 2002-01-21 Kazu Hirata <kazu@hxi.com>
9406 * unwind-dw2.c: Fix formatting.
9407 * unwind-dw2-fde.c: Likewise.
9408 * unwind-dw2-fde.h: Likewise.
9409 * unwind-pe.h: Likewise.
9410 * varasm.c: Likewise.
9411 * varray.h: Likewise.
9413 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
9415 Remove workaround for register stack overwrite bug in mmix.
9416 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
9417 support for TARGET_REG_STACK_FILL_BUG.
9418 * config/mmix/mmix.h: Remove member has_call_without_parameters.
9419 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
9421 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
9422 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
9423 -mno-reg-stack-fill-bug-workaround.
9424 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
9425 machine member has_call_without_parameters.
9426 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
9427 -mreg-stack-fill-bug-workaround and
9428 -mno-reg-stack-fill-bug-workaround.
9429 (MMIX Options): Ditto.
9431 2002-01-21 Kazu Hirata <kazu@hxi.com>
9433 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
9435 Remove redundant code.
9437 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
9439 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
9440 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9441 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9442 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
9443 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
9444 out target macro definitions and non-target-specific comments
9445 mostly taken from old versions of the manual.
9447 2002-01-20 Kazu Hirata <kazu@hxi.com>
9449 * config/h8300/h8300.h: Fix comment formatting.
9450 * config/ia64/aix.h: Likewise.
9451 * config/ia64/ia64-protos.h: Likewise.
9452 * config/ia64/ia64.c: Likewise.
9453 * config/ia64/ia64.h: Likewise.
9454 * config/ia64/ia64intrin.h: Likewise.
9455 * config/ia64/linux.h: Likewise.
9456 * config/ia64/unwind-aix.c: Likewise.
9457 * config/ia64/unwind-ia64.c: Likewise.
9459 2002-01-20 Kazu Hirata <kazu@hxi.com>
9461 * config/h8300/h8300.c: Revise comments about shift code.
9463 2002-01-20 Kazu Hirata <kazu@hxi.com>
9465 * config/h8300/h8300.c (function_arg): Update a comment.
9467 2002-01-20 Kazu Hirata <kazu@hxi.com>
9469 * config/h8300/h8300.md: Update the comments at the beginning
9472 2002-01-20 Kazu Hirata <kazu@hxi.com>
9474 * config/i370/i370.c: Fix comment formatting.
9475 * config/i370/i370.h: Likewise.
9476 * config/i370/i370.md: Likewise.
9477 * config/i370/linux.h: Likewise.
9479 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9481 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
9483 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
9484 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
9487 2002-01-20 Graham Stott <grahams@redhat.com>
9489 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
9491 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
9493 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9495 2002-01-19 Tom Rix <trix@redhat.com>
9497 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9499 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
9501 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9503 * function.c (assign_stack_local_1): Adjust x_frame_offset with
9504 STARTING_FRAME_PHASE.
9505 (STARTING_FRAME_PHASE): New.
9506 (instantiate_virtual_regs): Check saneness of
9507 STARTING_FRAME_PHASE.
9509 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9511 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
9513 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9515 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
9517 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9518 be used for bootstrapping GCC 3.0.
9520 2002-01-18 Kazu Hirata <kazu@hxi.com>
9522 * config/h8300/h8300.md: Fix an insn length.
9524 2002-01-18 Kazu Hirata <kazu@hxi.com>
9526 * bitmap.h: Fix comment formatting.
9527 * combine.c: Likewise.
9528 * cppfiles.c: Likewise.
9529 * c-pragma.h: Likewise.
9530 * c-typeck.c: Likewise.
9532 * dwarf2out.c: Likewise.
9533 * function.c: Likewise.
9535 * genattrtab.c: Likewise.
9536 * gthr-win32.h: Likewise.
9537 * haifa-sched.c: Likewise.
9538 * predict.c: Likewise.
9539 * rtlanal.c: Likewise.
9541 * unwind-dw2-fde.h: Likewise.
9542 * unwind-pe.h: Likewise.
9543 * vmsdbgout.c: Likewise.
9545 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9547 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9548 if type_required and passed decl.
9550 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
9552 * config.gcc (cpu_type): Include altivec.h in powerpc
9556 * config/rs6000/altivec.h: New.
9558 2002-01-17 David Edelsohn <edelsohn@gnu.org>
9560 * doc/install.texi (*-ibm-aix*): Update assembler and exception
9561 handling information.
9562 * doc/trouble.texi (Interoperation): Add libstdc++ information
9564 (Misunderstandings): Add template instantiation and static template
9565 member information for AIX.
9567 2002-01-17 Jason Merrill <jason@redhat.com>
9569 * dbxout.c (dbxout_type): Support const and volatile.
9571 * except.c (add_partial_entry): Remove backwards compatibility code.
9572 (end_protect_partials): Likewise.
9574 2002-01-17 Jakub Jelinek <jakub@redhat.com>
9576 * config/ia64/ia64.md (prologue_use): New.
9577 * config/ia64/ia64.c (ia64_expand_prologue): Use
9578 gen_prologue_use instead of gen_rtx_USE.
9579 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9580 as CODE_FOR_pred_rel_mutex.
9581 (ia64_sched_reorder2): Likewise.
9583 2002-01-16 Eric Christopher <echristo@redhat.com>
9585 * config/mips/r3900.h: Reformat.
9586 (SUBTARGET_CPP_SIZE_SPEC): Remove.
9587 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9588 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9589 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9590 * config/mips/t-elf: Remove mips3 multilib.
9592 2002-01-16 H.J. Lu <hjl@gnu.org>
9594 * config/mips/linux.h: Include "mips/abi64.h".
9596 2002-01-16 H.J. Lu <hjl@gnu.org>
9598 * config/mips/t-linux: New.
9600 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9602 * config/mips/linux.h: Don't include "gofast.h".
9603 (INIT_SUBTARGET_OPTABS): Removed.
9605 2002-01-16 Kazu Hirata <kazu@hxi.com>
9607 * config/h8300/h8300-protos.h: Replace emit_a_shift with
9609 * config/h8300/h8300.c: Likewise.
9610 * config/h8300/h8300.md: Likewise.
9612 2002-01-16 Kazu Hirata <kazu@hxi.com>
9614 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9615 spaces after an opcode name.
9616 (pushqi1_h8300hs): Likewise.
9617 (pushhi1_h8300hs): Likewise.
9619 2002-01-16 Kazu Hirata <kazu@hxi.com>
9621 * doc/extend.texi: Replace "option" with "attribute"
9624 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9626 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9627 (and:DI () (const_int -8)).
9628 (split_small_symbolic_mem_operand): Split
9629 (mem (and:DI () (const_int -8)).
9631 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9634 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9635 same way as TYPE_IMUL.
9636 (ultrasparc_sched_reorder): Likewise.
9637 * config/sparc/sparc.md (type): Add comment to update
9638 ultrasparc_sched_reorder when making changes.
9640 2002-01-16 Kazu Hirata <kazu@hxi.com>
9642 * doc/invoke.texi: Change the dump file name of block
9643 reordering pass from 28.bbro to 29.bbro.
9646 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
9648 * i386.md (minsf splitter): Fix pasto.
9650 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
9652 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9653 to frame pointer initialisation instruction.
9654 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9655 initialisation instruction.
9656 (soft_df_operand): Do not accept the IP register.
9657 (nonimmediate_soft_df_operand): Do not accept the IP register.
9659 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9662 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9663 MASK_V8 being both set.
9665 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
9667 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9668 insn for GOT register; add REG_MAYBE_DEAD notes instead.
9669 config/s390/s390.md (call, call_value): Add GOT register to
9670 CALL_INSN_FUNCTION_USAGE where needed.
9671 (call_exp, call_value_exp): New.
9673 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
9675 * config/arm/arm.c: General formatting tidy up.
9677 2002-01-16 Graham Stott <grahams@redhat.com>
9679 * calls.c (try_to_integrate): Use "(size_t)" intermediate
9680 cast and when casting an integer literal to "rtx" pointer.
9681 (expand_call): Likewise.
9682 * flow.c (try_pre_increment): Likewise.
9683 (find_use_as_address): Likewise.
9684 * integrate.c (expand_iline_function): Likewise.
9685 * regmove.c (try_auto_increment): Likewise.
9687 2002-01-16 Graham Stott <grahams@redhat.com>
9689 * sched-rgn.c (passed): Use sbitmap_free.
9692 (in_queue): Likewise.
9693 (in_stack): Likewise.
9695 2002-01-15 Eric Christopher <echristo@redhat.com>
9697 * flow.c (propagate_one_insn): Change to use fatal_insn.
9699 2002-01-15 Kazu Hirata <kazu@hxi.com>
9701 * expmed.c (extract_fixed_bit_field): Remove unused code.
9702 * system.h: Poison SLOW_ZERO_EXTEND.
9703 * doc/tm.texi: Remove.
9704 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9705 * config/arm/arm.h: Likewise.
9706 * config/avr/avr.h: Likewise.
9707 * config/clipper/clipper.h: Likewise.
9708 * config/convex/convex.h: Likewise.
9709 * config/d30v/d30v.h: Likewise.
9710 * config/dsp16xx/dsp16xx.h: Likewise.
9711 * config/elxsi/elxsi.h: Likewise.
9712 * config/fr30/fr30.h: Likewise.
9713 * config/h8300/h8300.h: Likewise.
9714 * config/i370/i370.h: Likewise.
9715 * config/i386/i386.h: Likewise.
9716 * config/m68k/m68k.h: Likewise.
9717 * config/mips/mips.h: Likewise.
9718 * config/ns32k/ns32k.h: Likewise.
9719 * config/pdp11/pdp11.h: Likewise.
9720 * config/pj/pj.h: Likewise.
9721 * config/s390/s390.h: Likewise.
9722 * config/sh/sh.h: Likewise.
9723 * config/stormy16/stormy16.h: Likewise.
9724 * config/v850/v850.h: Likewise.
9725 * config/vax/vax.h: Likewise.
9726 * config/we32k/we32k.h: Likewise.
9728 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
9730 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9731 (altivec_lvsl): Change constraint to b.
9732 (altivec_lvsr): Same.
9733 (altivec_lvebx): Same.
9734 (altivec_lvehx): Same.
9735 (altivec_lvewx): Same.
9736 (altivec_lvxl): Same.
9737 (altivec_lvx): Same.
9738 (altivec_stvx): Add parallel.
9739 (altivec_stvxl): Same.
9740 (altivec_stvehx): Same.
9741 (altivec_stvebx): Same.
9742 (altivec_stvebx): Same.
9744 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
9746 * config.gcc: Change altivec.h to altivec-defs.h.
9748 * config/rs6000/altivec.h: Delete.
9750 * config/rs6000/altivec-defs.h: Add.
9752 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
9754 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9757 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9758 less than or equal to eight bytes.
9760 * vax.md (andsi3): Remove constraints and change SET destination
9761 operand type to nonimmediate_operand.
9762 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
9763 when it is a CONST_INT.
9765 2002-01-15 Jason Merrill <jason@redhat.com>
9767 * c-common.def (FILE_STMT): New code.
9768 * c-common.c (statement_code_p): It's a statement.
9769 * c-common.h (stmt_tree_s): Add x_last_filename.
9770 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9771 (last_expr_filename): New macro.
9772 * c-semantics.c (begin_stmt_tree): Initialize it.
9773 (add_stmt): If the filename changed, also insert a
9775 (expand_stmt): Handle seeing one.
9777 2002-01-15 Eric Christopher <echristo@redhat.com>
9779 * flow.c (propagate_one_insn): Add error message and print out
9782 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
9784 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9785 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9786 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9787 TRAMPOLINE_ALIGNMENT.
9788 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
9790 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9791 PCC_BITFIELD_TYPE_MATTERS.
9792 * config/interix.h (STDC_VALUE): Remove. Use
9793 STDC_0_IN_SYSTEM_HEADERS.
9794 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9795 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9796 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9798 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
9800 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9801 not work on this platform currently.
9803 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
9805 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9806 readonly_warning in _().
9808 2002-01-15 Douglas B Rupp <rupp@gnat.com>
9810 * gcc.c (delete_if_ordinary): Backout previous change.
9812 2002-01-15 Kazu Hirata <kazu@hxi.com>
9814 * config/h8300/h8300.c (print_operand): Remove support for
9815 unused operand characters.
9817 * read-rtl.c: Fix formatting.
9819 * recog.c: Likewise.
9820 * regclass.c: Likewise.
9821 * regmove.c: Likewise.
9822 * reg-stack.c: Likewise.
9823 * reload1.c: Likewise.
9824 * rtlanal.c: Likewise.
9826 2002-01-15 Kazu Hirata <kazu@hxi.com>
9828 * config/i386/i386.c: Fix formatting.
9830 2002-01-15 Jakub Jelinek <jakub@redhat.com>
9832 * c-typeck.c (process_init_element): Don't save_expr
9833 COMPOUND_LITERAL_EXPR if just its initializer will be used.
9835 2002-01-15 David Edelsohn <edelsohn@gnu.org>
9837 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9838 emit optional traceback table if optimize_size or TARGET_ELF.
9839 * config/rs6000/rs6000.md (prefetch): New.
9841 2002-01-15 Andreas Jaeger <aj@suse.de>
9843 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9845 2002-01-15 Kazu Hirata <kazu@hxi.com>
9847 * mips-tfile.c: Fix formatting.
9849 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
9851 * unroll.c (final_reg_note_copy): Fix previous commit.
9853 2002-01-14 Kazu Hirata <kazu@hxi.com>
9855 * config/h8300/h8300-protos.h: Remove the prototype for
9857 * config/h8300/h8300.c (eq_operator): Remove.
9859 2002-01-14 Richard Henderson <rth@redhat.com>
9861 * config/i386/i386.md (prefetch): Tidy.
9862 (prefetch_3dnow): Fix locality operand.
9864 2002-01-14 Richard Henderson <rth@redhat.com>
9866 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9867 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9869 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
9871 * reload1.c (reload_combine): Pass reg_sum replacement through
9872 copy_rtx in loop performing multiple changes.
9874 2002-01-14 Jakub Jelinek <jakub@redhat.com>
9876 * except.c (remove_unreachable_regions): New.
9877 (free_eh_status): Clear exception_handler_labels.
9878 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9879 (find_exception_handler_labels): Don't add the same label more than
9881 (remove_exception_handler_label): Don't die if
9882 find_exception_handler_labels hasn't been called for the current
9885 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
9887 * toplev.c (rest_of_compilation): Rebuild jump labels after
9890 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
9892 * doc/extend.texi: Move documentation of X86 built-in functions
9894 * doc/invoke.texi: From here.
9895 * doc/sourcebuild.texi: Document location of documentation for
9896 machine built-in functions.
9898 2002-01-13 Christopher Faylor <cgf@redhat.com>
9900 * cppfiles.c (TEST_THRESHOLD): New macro.
9901 (SHOULD_MMAP): Ditto.
9902 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9905 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
9907 * unroll.c (final_reg_note_copy): Properly handle
9909 (unroll_loops): Fix LOOP_CONDITION heuristics.
9911 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
9913 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9914 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9916 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
9918 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9921 2002-01-14 Tom Rix <trix@redhat.com>
9923 * config/rs6000/rs6000.md: Fix typo with sradi.
9925 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
9927 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9928 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9929 (clrstrdi, clrstrsi): Adapt callers.
9931 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9933 (movti splitter): Never use register 0 as base register.
9935 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
9937 * combine.c (simplify_shift_const): Always generate new rtx
9938 for shift expression instead of reusing given expression.
9940 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9942 * config/alpha/alpha.c (alpha_expand_mov): Don't call
9943 alpha_legitimize_address unless mode is Pmode.
9945 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
9947 * doc/md.texi (Modifiers): Document the '*' constraint for the
9950 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9951 * doc/extend.texi (Function Attributes): 'interrupt' is valid
9954 2002-01-13 Richard Henderson <rth@redhat.com>
9956 * reload.c (find_reloads): Use a hard reg destination as reload reg
9957 for an input reload of the source.
9959 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9961 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9964 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
9966 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9967 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9969 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9971 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9973 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9975 2002-01-12 Tom Rix <trix@redhat.com>
9977 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9980 2002-01-12 Richard Henderson <rth@redhat.com>
9982 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9984 * doc/invoke.texi: Update Alpha options.
9986 * doc/invoke.texi: Update i386 built-in function lists.
9988 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
9990 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9991 referencing outside.
9993 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9995 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9996 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9997 offsets, and change line folding.
9998 * optabs.c (expand_binop): Remove warnings.
9999 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
10001 2002-01-12 Graham Stott <grahams@redhat.com>
10003 * attribs.c (handle_deprecated_attribute): constify WHAT.
10004 * diagnostic.c (warn_deprecated_use): Add braces, fixes
10005 dangling else warning and constify WHAT.
10006 * except.h (struct function, struct inline_remap): Move
10007 struct tag forward defs before all prototypes.
10008 (duplicate_eh_regions): Whitespace.
10010 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
10012 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10013 MODE_BASE_REG_CLASS.
10014 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
10016 2002-01-12 Richard Henderson <rth@redhat.com>
10018 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
10019 (ix86_expand_vector_move): New.
10020 (bdesc_2arg): Remove andps, andnps, orps, xorps.
10021 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
10022 Remove old prefetch builtins. Special case the logicals removed above.
10023 (ix86_expand_builtin): Likewise.
10024 (safe_vector_operand): Use V4SFmode, not TImode.
10025 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
10026 (ix86_expand_timode_binop_builtin): New.
10027 * config/i386/i386-protos.h: Update.
10028 * config/i386/i386.h (enum ix86_builtins): Update.
10029 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
10030 Use ix86_expand_vector_move in vector move expanders.
10031 (movti_internal, movti_rex64): Add xorps alternative.
10032 (sse_clrv4sf): Rename and adjust from sse_clrti.
10033 (prefetch): Don't work so hard.
10034 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
10035 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
10036 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
10038 2002-01-11 Richard Henderson <rth@redhat.com>
10040 * config/i386/mmintrin.h: New file.
10041 * config/i386/xmmintrin.h: New file.
10042 * config.gcc (i?86-*-*): Add extra_headers.
10043 * simplify-rtx.c (simplify_unary_operation): Handle saturating
10045 (simplify_binary_operation): Handle saturating arithmetic codes.
10046 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
10047 not the lowpart subreg.
10048 (ix86_expand_builtin): Return a TImode dummy register instead of 0
10050 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
10052 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10054 * conflict.c (conflict_graph_compute): Free regsets when finished.
10055 * ssa.c (compute_coalesced_reg_partition): Likewise.
10057 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10059 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
10060 every where we allocate a register.
10062 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10064 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
10065 * lcm.c (compute_earliest, compute_farthest): Likewise.
10067 2002-01-11 Janis Johnson <janis187@us.ibm.com>
10069 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
10071 2002-01-11 Janis Johnson <janis187@us.ibm.com>
10073 * doc/rtl.texi (Insns): Fix 2 typos.
10075 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
10077 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
10078 options. Use @table @gcctabopt for MMIX options. Add index
10079 entries for MMIX options. Start new paragraph with first
10080 heading of the machine-dependent options.
10082 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
10085 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
10086 * combine.c (force_to_mode): Same.
10087 * reload1.c (clear_reload_reg_in_use): Same.
10089 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
10091 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
10094 2002-01-11 Andreas Jaeger <aj@suse.de>,
10095 Brad Lucier <lucier@math.purdue.edu>
10097 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
10100 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
10102 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
10103 Protect with IN_LIBGCC.
10104 (LINK_EH_SPEC): Add required trailing space.
10106 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
10108 * c-tree.h: Move function declarations so that they are listed
10109 under the filename which contains them.
10110 (check_identifier, finish_decl_top_level,
10111 lookup_name_current_level_global, shadow_record_fields): Remove.
10113 2002-01-11 Andreas Jaeger <aj@suse.de>
10115 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
10118 2002-01-10 Richard Henderson <rth@redhat.com>
10120 * config/alpha/alpha.c (print_operand): Add 'J'.
10121 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
10122 new operand with the sequence number for the lituse. When splitting
10123 the insns, use gen_movdi_er_high_g and generate a sequence number.
10124 (gen_movdi_er_high_g): Print the sequence number if non-zero.
10126 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
10128 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
10129 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
10131 (altivec_expand_builtin): Same.
10132 (altivec_expand_stv_builtin): New.
10134 * config/rs6000/rs6000.h (rs6000_builtins): Same.
10136 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
10137 ("altivec_lvehx"): New.
10138 ("altivec_lvewx"): New.
10139 ("altivec_lvxl"): New.
10140 ("altivec_lvx"): New.
10141 ("altivec_stvx"): New.
10142 ("altivec_stvebx"): New.
10143 ("altivec_stvehx"): New.
10144 ("altivec_stvewx"): New.
10145 ("altivec_stvxl"): New.
10147 2002-01-10 Richard Henderson <rth@redhat.com>
10149 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
10150 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
10151 care not to delete instructions twice.
10153 2002-01-10 Zack Weinberg <zack@codesourcery.com>
10155 * toplev.c: Don't declare environ (it's not used anywhere).
10156 * configure.in: Don't check for declaration of environ.
10157 * config/i386/xm-mingw32.h: Don't #define environ.
10158 * config.in, configure: Regenerate.
10160 2002-01-10 Zack Weinberg <zack@codesourcery.com>
10162 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
10163 * configure: Regenerate.
10165 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
10166 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
10167 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
10169 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
10170 LIMITS_H_TEST here, not in m68k/x-next.
10171 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
10172 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
10174 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
10175 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
10176 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
10178 * config/i386/x-djgpp: Renamed i386/t-djgpp.
10179 * config/m88k/x-dolph: Renamed m88k/t-dolph.
10180 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
10181 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
10182 replacement of quadlib.asm with quadlib.c.
10184 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
10185 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
10186 config/rs6000/xm-beos.h: Delete file.
10188 * config.gcc: Update to match above changes.
10190 2002-01-10 Kazu Hirata <kazu@hxi.com>
10192 * config/h8300/h8300.h: Fix comment typos.
10193 * config/h8300/h8300.md: Likewise.
10194 * config/h8300/lib1funcs.asm: Likewise.
10196 2002-01-10 Dale Johannesen <dalej@apple.com>
10198 PR optimization/5269
10199 * unroll.c (precondition_loop_p): Make *increment be the correct
10200 sign when n_iterations known, to avoid confusing caller.
10202 2002-01-10 Kazu Hirata <kazu@hxi.com>
10204 * doc/extend.texi (deprecated): Fix a typo.
10206 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
10208 * basic-block.h (update_br_prob_note): Declare.
10209 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
10210 (try_forward_edges): Care negative frequencies and update note.
10211 (outgoing_edges_match): Tweek conditional merging heuristics.
10212 (try_crossjump_to_edge): use update_br_prob_note.
10213 * cfglayout.c (fixup_reorder_chain): Likewise.
10214 * cfrtl.c (update_br_prob_note): New.
10215 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
10217 * i386.c (ix86_decompose_address): Return -1 if address contains
10219 (legitimate_address_p): Require ix86_decompose_address to return 1.
10221 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
10222 (cprop_insn): Likewise.
10224 2002-01-10 Kazu Hirata <kazu@hxi.com>
10226 * toplev.c: Fix formatting.
10227 * tree.c: Likewise.
10228 * tree-dump.c: Likewise.
10229 * unroll.c: Likewise.
10230 * unwind-dw2.c: Likewise.
10231 * unwind-dw2-fde.c: Likewise.
10232 * unwind-dw2-fde-glibc.c: Likewise.
10233 * unwind-sjlj.c: Likewise.
10235 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
10237 * doc/invoke.texi: Document PDP-11 options.
10239 2002-01-10 Kazu Hirata <kazu@hxi.com>
10241 * config/h8300/h8300.h: Fix formatting.
10243 2002-01-10 Ira Ruben <ira@apple.com>
10245 Add __attribute__ ((deprecated)).
10246 * extend.texi: Document __attribute__ ((deprecated)).
10247 * invoke.texi: Document -Wno-deprecated-declarations.
10248 * testsuite/g++.dg/other/deprecated.C: New C++ test.
10249 * testsuite/gcc.dg/deprecated.c: New C test.
10250 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
10251 (c_common_attribute_table): Add "deprecated" entry.
10252 (handle_deprecated_attribute): New function.
10253 * c-decl.c (deprecated_states): New enum.
10254 deprecated_state: State of "deprecated" handling.
10255 (start_decl): Set deprecated_state based on attributes.
10256 (grokdeclarator): Test for deprecated uses, propagate attribute.
10257 * c-typeck.c (build_component_ref): Test for deprecated fields.
10258 (build_external_ref): Test for deprecated primaries.
10259 * diagnostic.c (warn_deprecated_use) New function to issue
10260 warnings about __attribute__ ((depricated)) references.
10261 * flags.h (warn_deprecated_decl): Extern declared for
10262 -W[no-]deprecated-declarations option.
10263 * print-tree.c (print_node): Show deprecated flag status.
10264 * toplev.c (warn_deprecated_decl): Defined.
10265 (W_options): Added "deprecated-declaration".
10266 * toplev.h (warn_deprecated_use): Extern declared.
10267 * tree.h (struct tree_common): Define deprecated_flag.
10268 (TREE_DEPRECATED): New macro to access flag.
10269 * cp/call.c (build_call): Test for deprecated calls.
10270 * cp/class.c (add_implicitly_declared_members): Set global
10271 flag to tell grokdeclarator to not issue deprecated warnings.
10272 * cp/cp-tree.h: Add extern for adding_implicit_members.
10273 * cp/decl.c (deprecated_states): New enum.
10274 (start_decl): Set deprecated_state based on attributes.
10275 (grokdeclarator): Test for deprecated uses, propagate attribute.
10276 * cp/lex.c (do_identifier): Test for deprecated primaries.
10277 * cp/typeck.c (build_component_ref): Test for deprecated fields.
10279 2002-01-10 Ira Ruben <ira@apple.com>
10281 Fix to assign attributes to inline member functions.
10282 * cp/decl.c (start_method): Handle attrlist.
10284 2002-01-10 Kazu Hirata <kazu@hxi.com>
10286 * combine.c (expand_field_assignment): Use subreg_lsb().
10288 2002-01-10 David Edelsohn <edelsohn@gnu.org>
10290 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
10291 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
10292 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
10293 Recurse for any operand of AND as long as constant is non-zero.
10295 2002-01-10 Kazu Hirata <kazu@hxi.com>
10297 * config/h8300/h8300.md: Remove constraints from expanders.
10299 2002-01-10 Kazu Hirata <kazu@hxi.com>
10301 * varasm.c: Fix formatting.
10302 * varray.c: Likewise.
10303 * vmsdbgout.c: Likewise.
10304 * xcoffout.c: Likewise.
10306 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
10308 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
10309 update edge probabilities to match.
10311 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
10313 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
10315 * doc/languages.texi, doc/sourcebuild.texi: New files.
10316 * doc/configfiles.texi: Make a subsubsection. Update.
10317 * doc/configterms.texi: Add @node. Remove warning that this isn't
10318 instructions for building GCC.
10319 * doc/makefile.texi: Make a subsection.
10320 * doc/gccint.texi: Update.
10322 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
10324 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
10326 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
10328 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
10330 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
10332 * optabs.c (expand_fix): Look for wider integer modes first.
10334 * i386.md (mov?f): Avoid the fake const double trick for medium
10336 (min?f*/max?f*): Prohibit memory operands for i387 variant.
10337 (fop_df_4): Disable for SSE compilation.
10339 2002-01-10 Graham Stott <grahams@redhat.com>
10341 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
10342 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
10344 2002-01-10 Richard Henderson <rth@redhat.com>
10346 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
10348 2002-01-10 Richard Henderson <rth@redhat.com>
10350 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
10351 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
10353 2002-01-10 Kazu Hirata <kazu@hxi.com>
10355 * combine.c (can_combine_p): Fix a comment typo.
10357 2002-01-09 Zack Weinberg <zack@codesourcery.com>
10359 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
10360 empty list correctly. Change loop index $t to $f for
10361 consistency with rest of Makefile.
10363 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
10365 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
10366 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10368 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
10369 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
10370 (altivec_init_builtins): Same.
10371 (altivec_expand_unop_builtin): Return NULL_RTX on error.
10372 (altivec_expand_binop_builtin): Same.
10373 (altivec_expand_ternop_builtin): Same.
10376 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
10377 ("altivec_vctuxs"): Fix typo.
10378 ("altivec_vnmsubfp"): Same.
10379 ("altivec_dssall"): New.
10380 ("altivec_mfvscr"): New.
10381 ("altivec_dss"): New.
10382 ("altivec_lvsl"): New.
10383 ("altivec_lvsr"): New.
10384 ("altivec_dstt"): New.
10385 ("altivec_dstst"): New.
10386 ("altivec_dststt"): New.
10387 ("altivec_dst"): New.
10389 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
10390 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10392 2002-01-09 Richard Henderson <rth@redhat.com>
10394 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
10396 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
10398 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
10400 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
10402 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
10404 2002-01-09 Kazu Hirata <kazu@hxi.com>
10406 * read-rtl.c: Fix formatting.
10407 * real.c: Likewise.
10408 * regclass.c: Likewise.
10409 * regrename.c: Likewise.
10410 * reg-stack.c: Likewise.
10411 * reload1.c: Likewise.
10412 * reload.c: Likewise.
10415 2002-01-09 Kazu Hirata <kazu@hxi.com>
10417 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
10418 to extract items in the expr_list chain.
10420 2002-01-09 Richard Henderson <rth@redhat.com>
10422 * config/vax/vax.c (vax_rtx_cost): Never abort.
10424 * config/vax/vax.h (REAL_ARITHMETIC): Define.
10426 2002-01-09 Jan Hubicka <jh@suse.cz>
10428 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
10430 2002-01-09 Richard Henderson <rth@redhat.com>
10432 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
10433 Unify code from various alternatives.
10435 2002-01-09 Richard Henderson <rth@redhat.com>
10437 * regrename.c (copy_value): Ignore the copy if the source register
10438 is present in the value chain with a narrower mode.
10440 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10442 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
10443 for the c4x target. Also improve layout.
10445 2002-01-09 Richard Henderson <rth@redhat.com>
10447 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
10448 * config/m32r/m32r.md (and ior xor splitters): Swap operands
10449 to match insn patterns.
10451 2002-01-09 Richard Henderson <rth@redhat.com>
10453 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
10454 (copyprop_hardreg_forward_1): Likewise.
10456 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
10458 * pa.md (decrement_and_branch_until_zero): Change predicate for
10459 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
10461 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
10463 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
10464 gets undefined. For Darwin.
10466 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10468 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
10470 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10472 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
10474 2002-01-08 Richard Henderson <rth@redhat.com>
10476 * regrename.c (copy_value): Ignore overlapping copies.
10478 2002-01-08 Richard Henderson <rth@redhat.com>
10480 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
10481 as needed to avoid shared structure.
10483 2002-01-08 Kazu Hirata <kazu@hxi.com>
10485 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
10488 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10490 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
10491 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
10492 documentation of obsolete macros.
10493 * system.h: Poison these macros.
10494 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10495 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10496 config/c4x/c4x.h, config/clipper/clipper.h,
10497 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10498 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10499 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10500 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10501 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10502 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10503 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10504 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10505 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10506 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10507 config/sparc/sparc.h, config/stormy16/stormy16.h,
10508 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10509 definitions and commented out definitions of obsolete macros.
10510 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10511 of MAX_INT_TYPE_SIZE.
10513 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10515 * config/s390/s390.c (s390_preferred_reload_class): Never
10516 return ADDR_REGS if it isn't a subset of the given class.
10517 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10518 FP_REGS, but all superclasses as well.
10520 * config/s390/s390.c (s390_function_profiler): Fix thinko.
10522 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10523 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10524 must not be a const_int.
10526 2002-01-08 Richard Henderson <rth@redhat.com>
10528 * Makefile.in (toplev.o): Depend on options.h.
10529 (gcc.o): Depend on specs.h.
10531 2002-01-08 Jakub Jelinek <jakub@redhat.com>
10533 * expr.c (store_expr): Convert VOIDmode constants back to target's
10536 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10538 * doc/invoke.texi: Markup gcc as @command. Refer to
10539 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10540 of http://gcc.gnu.org/thanks.html.
10542 2002-01-08 Dale Johannesen <dalej@apple.com>
10544 * config/rs6000/rs6000.md: Add missing int register
10545 target case to movdf_low.
10547 2002-01-08 Zack Weinberg <zack@codesourcery.com>
10549 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10550 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
10551 (cppinit.o): Depend on except.h.
10552 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10553 s-specs): New rules.
10555 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10556 Don't create specs.h/options.h/gencheck.h here. Remove
10557 unnecessary variable settings from last argument of AC_OUTPUT.
10558 * config.in, configure: Regenerate.
10559 * intl.c: Hardcode package name as "gcc".
10561 * cppinit.c: Include except.h.
10562 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10564 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10565 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10566 (!)USING_SJLJ_EXCEPTIONS.
10567 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10569 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10571 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10572 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10573 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10574 documentation of obsolete macros.
10575 * system.h: Poison these macros.
10576 * config/d30v/d30v.h, config/ns32k/encore.h,
10577 config/stormy16/stormy16.h: Remove definitions and commented out
10578 definitions of obsolete macros.
10580 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
10582 * objc/objc-act.c (handle_class_ref): Mark the declaration of
10583 %sobjc_class_ref_%s as used - to prevent unwanted compiler
10586 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10588 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10589 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10590 to insn adjusting stack/frame pointer.
10591 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10592 accept operands that cause the insn to be non-splittable.
10594 2002-01-08 Graham Stott <grahams@redhat.com>
10596 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10597 (C_TYPE_FIELDS_VOLATILE): Likewise.
10598 (C_TYPE_BEING_DEFINED): Likewise.
10599 (C_IS_RESERVED_WORD): Likewise.
10600 (C_TYPE_VARIABLE_SIZE): Likewise.
10601 (C_DECL_VARIABLE_SIZE): Likewise.
10602 (C_MISSING_PROTOTYPE_WARNED): Likewise.
10603 (C_SET_EXP_ORIGINAL_CODE): Likewise.
10604 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10606 (C_DECL_ANTICIPATED): Likewise.
10607 (c_build_type_variant): Add parenthesis.
10609 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10611 * gcc.c (option_map): Remove --version.
10612 (process_command): Handle -fversion following the GNU Coding
10613 Standards. Partially addresses PR other/704.
10615 2002-01-08 Graham Stott <grahams@redhat.com>
10617 * combine.c (combine_instructions): Fix typo.
10619 2002-01-08 Graham Stott <grahams@redhat.com>
10621 * debug.h: Use "tree" and "rtx" throughout.
10623 * debug.c: Likewise.
10625 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
10627 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10628 constant pool, use the pool's version of the symbol instead.
10630 2002-01-07 Richard Henderson <rth@redhat.com>
10632 * regrename.c (find_oldest_value_reg): Ignore the value chain if
10633 the original register was copied in a mode with a fewer number of
10634 hard registers than the desired mode.
10635 (copyprop_hardreg_forward_1): Likewise.
10636 (debug_value_data): Fix loop test.
10637 * toplev.c (parse_options_and_default_flags): Reenable
10638 -fcprop-registers at -O1.
10640 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10642 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10643 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10645 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10648 * config/rs6000/rs6000.md: Add altivec predicate patterns.
10650 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
10652 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10653 (pa_output_function_prologue): Output local label at the beginning of
10654 the prologue when profiling.
10655 (hppa_profile_hook): Use the local label rather than the function label.
10656 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10658 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10660 * config/rs6000/rs6000.c (print_operand): Remove extra space.
10661 (altivec_expand_unop_builtin): Fix thinko.
10662 (altivec_expand_binop_builtin): Same.
10663 (altivec_expand_ternop_builtin): Same.
10664 (altivec_expand_builtin): Same.
10666 2002-01-07 Richard Henderson <rth@redhat.com>
10668 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10670 2002-01-07 Jason Merrill <jason@redhat.com>
10672 * unwind-dw2.c (execute_cfa_program): Use < again.
10674 2002-01-07 Jakub Jelinek <jakub@redhat.com>
10676 * predict.c (combine_predictions_for_insn): Avoid division by zero.
10678 2002-01-07 Jakub Jelinek <jakub@redhat.com>
10680 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10681 Don't allow -1 - x -> ~x simplifications in the first pass.
10683 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10685 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10687 (altivec_expand_binop_builtin): Same.
10688 (altivec_expand_unop_builtin): Same.
10689 (print_operand): Fix typo.
10690 (bdesc_1arg): Add vupk* variants.
10692 * rs6000.h (rs6000_builtins): Add vupk* enums.
10694 * rs6000.md: Add altivec_vupk* variants.
10696 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
10698 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10699 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10700 and last update dates.
10702 2002-01-07 Janis Johnson <janis187@us.ibm.com>
10704 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10706 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
10708 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10709 * config/avr/avr.h (CPP_SPEC): Likewise.
10710 (LINK_SPEC): Likewise.
10711 (CRT_BINUTILS_SPECS): Likewise.
10712 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10713 * doc/invoke.texi (AVR Options): Document them.
10715 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
10717 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10720 2002-01-07 Graham Stott <grahams@redhat.com>
10722 * config/i386/i386.h: Update copyright date.
10723 (HALF_PIC_PTR): Add parenthesis.
10724 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10725 (CONSTANT_ALIGNMENT): Add parenthesis.
10726 (DATA_ALIGNMENT): Likewise.
10727 (LOCAL_ALIGNMENT): Likewise.
10728 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10729 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10730 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10731 (HARD_REGNO_NREGS): Add paranethesis.
10732 (VALID_SSE_REG_MODE): Whitespace.
10733 (VALID_MMX_REG_MODE): Whitespace.
10734 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10735 (ix86_hard_regno_mode_ok): Add parenthesis.
10736 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10737 (RETURN_IN_MEMORY): Whitespace.
10738 (N_REG_CLASSES): Add parenthesis.
10739 (INTEGER_CLASS_P): Add parenthesis and wrap.
10740 (FLOAT_CLASS_P): Likewise.
10741 (SSE_CLASS_P): Likewise.
10742 (MMX_CLASS_P): Likewise.
10743 (MAYBE_INTEGER_CLASS_P): Likewise.
10744 (MAYBE_FLOAT_CLASS_P): Likewise.
10745 (MAYBE_SSE_CLASS_P): Likewise.
10746 (MAYBE_MMX_CLASS_P): Likewise.
10747 (Q_CLASS_P): Likewise.
10748 (GENERAL_REGNO_P): Uppercase macro parameter.
10749 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10750 (FP_REGNO_P): Likewise.
10751 (ANY_FP_REGNO_P): Uppercase macro parameter.
10752 (SSE_REGNO_P): Likewise.
10753 (SSE_REGNO): Likewise.
10754 (SSE_REG_P): Likewise.
10755 (SSE_FLOAT_MODE_P): Likewise.
10756 (MMX_REGNO_P): Likewise.
10757 (MMX_REG_P):Likewise.
10758 (STACK_REG_P): Likewise.
10759 (NON_STACK_REG_P): Likewise.
10760 (STACK_TOP_P): Likewise.
10761 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10762 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10763 (SECONDARY_MEMORY_NEEDED): Likewise.
10764 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10765 (MD_ASM_CLOBBERS): Whitespace and wrap.
10766 (MUST_PASS_IN_STACK): Whitespace and wrap.
10767 (RETURN_POPS_ARGS): Add parenthesis.
10768 (INIT_CUMULATIVE_ARGS): Likewise.
10769 (FUNCTION_ARG): Likewise.
10770 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10771 (SETUP_INCOMING_VARARGS): Likewise.
10772 (BUILD_VA_LIST_TYPE): Add parenthesis.
10773 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10775 (EXPAND_BUILTIN_VA_ARG): Likewise.
10776 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10777 (INITIALIZE_TRAMPOLINE): Add parenthesis.
10778 (INITIAL_ELIMINATION_OFFSET): Likewise.
10779 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10780 (REGNO_OK_FOR_BASE_P): Likewise.
10781 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10782 (REGNO_OK_FOR_DIREG_P): Likewise.
10783 (REG_OK_FOR_INDEX_P): Whitespace.
10784 (REG_OK_FOR_BASE_P): Whitespace.
10785 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10787 (FIND_BASE_TERM): Fix typo.
10788 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
10789 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10790 (SYMBOLIC_CONST; Whitespace.
10791 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
10792 (ENCODE_SECTION_INFO): Whitespace.
10793 (FINALIZE_PIC): Remove do { ... } while (0).
10794 (PROMOTE_MODE): Wrap in do { ... } while (0).
10795 (CONST_COSTS): Whitespace.
10796 (RTX_COSTS): Add paramethesis, whitespace and wrap.
10797 (REGISTER_MOVE_COST): Add parenthesis.
10798 (MEMORY_MOVE_COST): Likewise.
10799 (EXTRA_CC_MODES): Whitespace.
10800 (SELECT_CC_MODE): Add parenthesis and whitespace.
10801 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10802 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10803 (ASM_OUTPUT_LABEL): Add paramethesis.
10804 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10805 (ASM_OUTPUT_REG_POP): Likewise.
10806 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10807 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10809 * config/i386/i386.c: Update copyright.
10810 (CHECK_STACK_LIMIT): Add parenthesis.
10811 (AT_BP): Uppercase macro parameter.
10812 (x86_64_int_parameter_registers): Constify.
10813 (x86_64_int_return_registers): Likewise.
10814 (ix86_compare_op0): Use rtx.
10815 (construct_container): Constify INTREG parameter.
10816 (function_arg): Use rtx.
10818 * diagnostic.h: Update copyright date.
10819 (output_buffer_state): Add parenthesis.
10820 (output_buffer_format_args): Likewise.
10822 * combine.c (combine_instructions): Replace XEXP (links, 0)
10825 2002-01-06 H.J. Lu <hjl@gnu.org>
10827 * cfgcleanup.c (thread_jump): Fix 2 typos.
10829 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
10831 * config.gcc: Add support for --enable-altivec.
10833 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
10835 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10837 2002-01-06 Jakub Jelinek <jakub@redhat.com>
10839 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10840 __objc_class_name_*.
10842 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
10844 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10846 2002-01-06 Richard Henderson <rth@redhat.com>
10848 * reorg.c (emit_delay_sequence): Remove death notes, not merely
10849 nop them out. Increment label reference count for REG_LABEL.
10850 (fill_slots_from_thread): Frob label reference count around
10851 delete_related_insns.
10853 2002-01-05 Richard Henderson <rth@redhat.com>
10855 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10858 2002-01-05 Richard Henderson <rth@redhat.com>
10860 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10861 * integrate.c (output_inline_function): Likewise.
10862 * toplev.c (rest_of_compilation): Do it here instead. Move call
10863 to remove_unnecessary_notes after emitting abstract instance.
10864 Force an emitted nested function to have its parent emited as well.
10865 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10867 (rtl_for_decl_location): Do not look at reload data structures
10868 before reload has run.
10870 2002-01-05 Kazu Hirata <kazu@hxi.com>
10872 * cse.c: Fix formatting.
10873 * dwarf2asm.c: Likewise.
10874 * dwarf2out.c: Likewise.
10875 * explow.c: Likewise.
10876 * expmed.c: Likewise.
10877 * function.c: Likewise.
10878 * gcov.c: Likewise.
10879 * gencheck.c: Likewise.
10880 * genrecog.c: Likewise.
10881 * ggc-common.c: Likewise.
10882 * ggc-page.c: Likewise.
10883 * global.c: Likewise.
10885 2002-01-05 Kazu Hirata <kazu@hxi.com>
10887 * combine.c: Fix formatting.
10889 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
10892 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10894 2002-01-05 David Edelsohn <edelsohn@gnu.org>
10896 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10897 as 1 for __powerpc64__ as well.
10899 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10901 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10904 2002-01-05 Daniel Berlin <dan@dberlin.org>
10906 * lcm.c: Revert change, due to performance regression it causes on
10907 SPEC because it's slightly more conservative (sigh, I hate
10910 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
10912 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10914 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
10916 * doc/cppinternals.texi: Update.
10918 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
10920 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10921 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10923 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
10924 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10925 kludge for pre-october-14th mmix versions to handle new-found bug
10926 with PUSHJ/PUSHGO and the register stack.
10927 * config/mmix/mmix.h (struct machine_function): Rename member
10928 has_call_value_without_parameters to has_call_without_parameters.
10929 All referers changed.
10930 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10931 TARGET_MASK_BRANCH_PREDICT): New macros.
10932 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10933 -mno-reg-stack-fill-bug-workaround.
10934 * config/mmix/mmix.md ("call"): Set struct machine member
10935 has_call_without_parameters.
10937 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
10939 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10941 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
10943 * cfgcleanup.c: Include tm_p.h
10944 (mark_effect): Fix handling of hard register; fix handling of SET
10946 2002-01-04 Kazu Hirata <kazu@hxi.com>
10948 * config/h8300/h8300.md (anonymous patterns): Check that
10949 operands are registers before using REGNO on them.
10951 2002-01-03 Roland McGrath <roland@frob.com>
10953 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10955 2002-01-04 Jakub Jelinek <jakub@redhat.com>
10957 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10958 * c-common.h (genrtl_expr_stmt_value): Likewise.
10959 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10960 (expand_expr_stmt_value): Add maybe_last argument.
10961 Don't warn about statement with no effect if it is the last statement
10962 in expression statement.
10963 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10964 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10965 expand_expr_stmt_value.
10966 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10967 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10968 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10969 as maybe_last to expand_expr_stmt_value.
10971 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
10973 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10974 be passed in, do not build it.
10975 (c_begin_if_stmt): New function.
10976 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10977 * c-common.h (c_expand_start_cond): Update prototype.
10978 (c_begin_if_stmt): Prototype new function.
10979 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10980 * c-parse.in (if_prefix): Use c_begin_if_stmt,
10981 c_begin_while_stmt and c_finish_while_stmt_cond.
10983 2002-01-04 William Cohen <wcohen@redhat.com>
10985 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10986 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10987 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10988 * config/pa/som.h (ASM_FILE_START): Likewise.
10990 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
10992 * lcm.c: Include df.h.
10993 Add available_transfer_function prototype.
10994 (compute_available): Rework to use iterative dataflow framework.
10995 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10996 with bb_info in df.h
10997 (available_transfer_function): New function.
10999 * Makefile.in (lcm.o): add df.h to dependencies.
11001 2002-01-04 Richard Henderson <rth@redhat.com>
11003 * config/alpha/alpha.c (some_operand): Accept HIGH.
11004 (input_operand): Likewise; accept simple references to globals.
11005 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
11006 (alpha_const_double_ok_for_letter_p): Likewise.
11007 (alpha_extra_constraint): Likewise.
11008 (alpha_preferred_reload_class): Likewise. Do not force
11009 symbolic constants to memory.
11010 (alpha_legitimate_address_p): Accept simple references
11011 to small_symbolic_operand.
11012 (alpha_legitimize_address): New arg scratch. Be prepared to be
11013 called when no_new_pseudos. Emit simple symbolic references.
11014 Split integers into low, high, and rest.
11015 (alpha_expand_mov): Use alpha_legitimize_address.
11016 (some_small_symbolic_mem_operand): New.
11017 (split_small_symbolic_mem_operand): New.
11018 * config/alpha/alpha-protos.h: Update.
11019 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
11020 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
11021 (EXTRA_CONSTRAINT): Likewise.
11022 (PREFERRED_RELOAD_CLASS): Likewise.
11023 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
11024 (PREDICATE_CODES): Update.
11025 * config/alpha/alpha.md: New post-reload splitters to convert
11026 simplfied symbolic operands to the form that references $29.
11027 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
11028 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
11030 2002-01-03 Richard Henderson <rth@redhat.com>
11032 * local-alloc.c (function_invariant_p): Update commentary.
11034 2002-01-04 H.J. Lu <hjl@gnu.org>
11036 * toplev.c (rest_of_compilation): Fix a typo when calling
11039 2002-01-03 Kazu Hirata <kazu@hxi.com>
11041 * c-common.c: Fix formatting.
11042 * diagnostic.c: Likewise.
11043 * doloop.c: Likewise.
11044 * dwarf2out.c: Likewise.
11046 2002-01-03 Kazu Hirata <kazu@hxi.com>
11048 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
11049 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
11051 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
11053 * cpperror.c: Update comments and copyright.
11054 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
11055 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
11057 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11059 * collect2.c (main): Use strcmp when testing for "-shared".
11061 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
11063 * cppmacro.c: Don't include intl.h. Update comments.
11064 (new_number_token): Allocate enough buffer for 64-bit unsigned
11065 integers; update prototype.
11066 * cppmain.c: Update comments.
11068 2002-01-03 William Cohen <wcohen@redhat.com>
11070 * function.h (struct function): Add profile.
11071 (current_function_profile): New.
11072 doc/extend.texi: Update documentation.
11073 * final.c (final_start_function): Use current_function_profile
11074 instead of profile_flag.
11075 (profile_after_prologue): Likewise.
11076 * function.c (expand_function_start): Likewise.
11077 (expand_function_start): Likewise.
11078 * config/alpha/alpha.c (direct_call_operand):
11079 (alpha_does_function_need_gp): Likewise.
11080 (alpha_expand_prologue): Likewise.
11081 * config/arm/arm.c (arm_expand_prologue): Likewise.
11082 thumb_expand_prologue: Likewise.
11083 * config/d30v/d30v.c (d30v_stack_info): Likewise.
11084 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
11085 (fr30_expand_prologue): Likewise.
11086 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
11087 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
11088 * config/i386/i386.h (FINALIZE_PIC): Likewise.
11089 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
11090 * config/i960/i960.c (i960_output_function_prologue): Likewise.
11091 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11092 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
11093 (m32r_expand_prologue): Likewise.
11094 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
11095 (m88k_expand_prologue): Likewise.
11096 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
11097 * config/mips/mips.c (compute_frame_size): Likewise.
11098 (mips_expand_prologue): Likewise.
11099 (mips_can_use_return_insn): Likewise.
11100 * config/pa/elf.h (ASM_FILE_START): Likewise.
11101 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11102 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11103 * config/pa/som.h (ASM_FILE_START): Likewise.
11104 * config/romp/romp.c (romp_using_r14): Likewise.
11105 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
11106 (rs6000_stack_info): Likewise.
11107 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11108 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
11109 * config/v850/v850.c (compute_register_save_size): Likewise.
11111 2002-01-03 Jakub Jelinek <jakub@redhat.com>
11113 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
11114 gen_lowpart_common fails, use gen_lowpart_SUBREG.
11116 2002-01-03 Turly O'Connor <turly@apple.com>
11118 * darwin.c (machopic_output_possible_stub_label): Don't generate
11119 stub routines for pseudo-stubs which we've just defined.
11121 2002-01-03 Kazu Hirata <kazu@hxi.com>
11123 * builtins.c: Fix formatting.
11124 * c-typeck.c: Likewise.
11125 * combine.c: Likewise.
11126 * expr.c: Likewise.
11127 * loop.c: Likewise.
11129 2002-01-03 Andreas Schwab <schwab@suse.de>
11131 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
11132 and return true if _cpp_push_next_buffer pushed a new include
11134 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
11135 _cpp_pop_file_buffer did not push a new file.
11136 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
11138 2002-01-02 Eric Christopher <echristo@redhat.com>
11140 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
11141 FIND_REG_INC_NOTE call. Update copyright.
11142 * loop.c (canonicalize_condition): Ditto.
11143 * reorg.c (delete_scheduled_jump): Ditto.
11145 2002-01-03 Kazu Hirata <kazu@hxi.com>
11147 * gcse.c: Fix formatting.
11149 2002-01-03 Graham Stott <grahams@redhat.com>
11151 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
11152 forward defs for struct tags rtx_def, union_tree, rtvec_def
11153 also output corresponding typedefs for rtx, tree, and rtvec.
11155 * system.h: Move forward defs for struct tags rtx_def, union_tree,
11156 rtvec_def along with corresponding typedefs for rtx, tree, and
11157 rtvec to config.h, hconfig.h, tconfig.h.
11159 2002-01-03 Graham Stott <grahams@redhat.com>
11161 * tree.h: Update copyright date.
11162 (IS_EXPR_CODE_CLASS): Add parenthesis.
11163 (TREE_SET_CODE): Add whitespace.
11164 (TREE_CHECK): Add parenthesis.
11165 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
11166 (CST_OR_CONSTRUCTOR_CHECK):
11167 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
11168 (TREE_SYMBOL_REFERENCED): Whitespace.
11169 (INT_CST_LT): Likewise.
11170 (INT_CST_LT_UNSIGNED): Likewise.
11171 (tree_real_cst): Unwrap comment.
11172 (tree_string): Likewise.
11173 (tree_complex): Likewise.
11174 (IDENTIFIER_POINTER): correct cast.
11175 (SAVE_EXPR_CONTEXT): Whitespace.
11176 (EXPR_WFL_FILENAME_NODE): Likewise.
11177 (EXPR_WFL_FILENAME): Remove parenthesis.
11178 (DECL_ORIGIN): Add parenthesis.
11179 (DECL_FROM_INLINE): Use NULL_TREE.
11180 (build_int_2): Whitespace.
11181 (build_type_variant): Add parenthesis.
11183 * gcc/jcf-parse.c: Update copyright date.
11184 (yyparse): Constify resource_filename.
11186 2002-01-03 Graham Stott <grahams@redhat.com>
11188 * rtl.h: Update copyright date.
11189 (RTL_CHECK1): Wrap long line.
11190 (RTL_CHECK2): Likewise.
11191 (RTL_CHECKC1): Wrap long line and whitespace.
11192 (RTL_CHECKC2): Likewise.
11193 (XWINT): Whitespace.
11199 (XBITMAP): Likewise.
11201 (XBBDEF): Likewise.
11203 (X0WINT): Likewise.
11205 (X0UINT): Likewise.
11209 (X0MODE): Likewise.
11210 (X0BITMAP): Likewise.
11211 (X0TREE): Likewise.
11212 (X0BBDEF): Likewise.
11213 (X0ADVFLAGS): Likewise.
11214 (X0CSELIB): Likewise.
11215 (X0MEMATTR): Likewise.
11216 (XCWINT): Likewise.
11218 (XCUINT): Likewise.
11222 (XCMODE): Likewise.
11223 (XCBITMAP): Likewise.
11224 (XCTREE): Likewise.
11225 (XCBBDEF): Likewise.
11226 (XCADVFLAGS): Likewise.
11227 (XCCSELIB): Likewise.
11228 (XC2EXP): Likewise.
11229 (INSN_UID): Likewise.
11230 (PREV_INSN): Likewise.
11231 (PATTERN): Likewise.
11232 (INSN_CODE): Likewise.
11233 (PUT_REG_NOTE_KIND): Likewise.
11234 (CODE_LABEL_NUMBER): Likewise.
11235 (NOTE_SOURCE_FILE): Likewise.
11236 (NOTE_BLOCK): Likewise.
11237 (NOTE_EH_HANDLER): Likewise.
11238 (NOTE_RANGE_INFO): Likewise.
11239 (NOTE_LIVE_INFO): Likewise.
11240 (NOTE_BASIC_BLOCK): Likewise.
11241 (NOTE_EXPECTED_VALUE): Likewise.
11242 (NOTE_LINE_NUMBER): Likewise.
11243 (LABEL_NAME): Likewise.
11244 (LABEL_NUSES): Likewise.
11245 (LABEL_ALTERNATE_NAME): Likewise.
11246 (ADDRESSOF_DECL): Likewise.
11247 (JUMP_LABEL): Likewise.
11248 (LABEL_NEXTREF): Likewise.
11250 (ORIGINAL_REGNO: Likewise.
11251 (HARD_REGISTER_NUM_P): Add parenthesis.
11252 (SUBREG_REG): Whitespace.
11253 (SUBREG_BYTE): Likewise.
11254 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
11255 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
11256 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
11257 (ASM_OPERANDS_INPUT_VEC): Likewise.
11258 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
11259 (ASM_OPERANDS_INPUT): Likewise.
11260 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
11261 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
11262 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
11263 (ASM_OPERANDS_INPUT_MODE): Likewise.
11264 (ASM_OPERANDS_SOURCE_FILE): Likewise.
11265 (ASM_OPERANDS_SOURCE_LINE): Likewise.
11266 (MEM_SET_IN_STRUCT_P): Minor reformat.
11267 (TRAP_CONDITION): Whitespace.
11268 (TRAP_CODE): Likewise.
11269 (COND_EXEC_TEST): Likewise.
11270 (COND_EXEC_CODE): Likewise.
11271 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
11272 (PHI_NODE_P): Add parenthesis.
11273 (plus_constant): Whitespace and add parenthesis.
11275 2002-01-03 Kazu Hirata <kazu@hxi.com>
11277 * config/avr/avr.c: Fix comment typos.
11278 * config/c4x/c4x.md: Likewise.
11279 * config/dsp16xx/dsp16xx.h: Likewise.
11280 * config/dsp16xx/dsp16xx.md: Likewise.
11281 * config/i386/i386.md: Likewise.
11282 * config/ia64/ia64.c: Likewise.
11283 * config/m32r/m32r.h: Likewise.
11284 * config/m68hc11/m68hc11.md: Likewise.
11285 * config/mmix/mmix.c: Likewise.
11286 * config/mn10200/mn10200.c: Likewise.
11287 * config/romp/romp.c: Likewise.
11288 * config/sh/sh.c: Likewise.
11289 * config/stormy16/stormy16.c: Likewise.
11290 * config/stormy16/stormy16.h: Likewise.
11291 * config/stormy16/stormy16.md: Likewise.
11293 2002-01-03 Graham Stott <grahams@redhat.com>
11295 * loop.h: Update copyright date.
11296 (LOOP_MOVABLES): Fix typo.
11297 (LOOP_REGS): Likewise.
11298 (LOOP_IVS): Likewise.
11300 2002-01-03 Graham Stott <grahams@redhat.com>
11302 * cppinit.c: Update copyright date.
11303 Don't include output.h
11304 * Makefile.in: Update copyright date.
11307 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
11310 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
11311 (-pthread) Add to RS/6000 options.
11313 2002-01-02 Kazu Hirata <kazu@hxi.com>
11315 * except.c: Fix comment typos.
11316 * loop.c: Likewise.
11317 * varasm.c: Likewise.
11318 * doc/tm.texi: Fix a typo.
11320 2002-01-02 Jakub Jelinek <jakub@redhat.com>
11322 * c-typeck.c (output_init_element): Allow initializing static storage
11323 duration objects with compound literals.
11325 2002-01-02 Richard Henderson <rth@redhat.com>
11327 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
11330 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11332 * gcc.c (default_compilers): Const-ify.
11333 * mips-tdump.c (stab_names): Likewise.
11334 * mips-tfile.c (map_coff_types, map_coff_storage,
11335 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
11336 pseudo_ops_t, pseudo_ops): Likewise.
11337 * protoize.c (default_include): Likewise
11339 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
11340 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
11341 Add array size in declaration.
11342 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
11343 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
11344 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
11345 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
11346 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
11347 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
11348 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
11349 emtens, make_nan): Const-ify.
11350 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
11351 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
11353 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
11355 * config.gcc (ia64-*-*): Set extra_headers.
11356 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
11357 * config/alpha/t-osf: Remove.
11358 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
11360 2002-01-02 David Edelsohn <edelsohn@gnu.org>
11362 * config/rs6000/t-aix43: Revert previous change.
11364 2002-01-02 Jason Merrill <jason@redhat.com>
11366 * c-decl.c (c_expand_body): Call outlining_inline_function when
11367 emitting an inline function out of line.
11369 2002-01-02 Richard Henderson <rth@redhat.com>
11371 * dwarf2out.c (limbo_die_node): Add created_for member.
11372 (new_die): New argument created_for. Update all callers.
11373 (mark_limbo_die_list): New.
11374 (dwarf2out_init): Register limbo_die_list as a root.
11375 (dwarf2out_finish): Force insert limbo dies into their function
11378 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
11381 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
11383 2002-01-02 Kazu Hirata <kazu@hxi.com>
11385 * config/h8300/fixunssfsi.c: Update copyright.
11388 * config/h8300/h8300.c: Update copyright.
11389 Eliminate warnings.
11391 2002-01-02 Kazu Hirata <kazu@hxi.com>
11393 * config/romp/romp.c: Fix comment formatting.
11394 * config/romp/romp.h: Likewise.
11395 * config/romp/romp.md: Likewise.
11396 * config/s390/s390.c: Likewise.
11397 * config/stormy16/stormy16.c: Likewise.
11398 * config/stormy16/stormy16.h: Likewise.
11400 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
11402 * c-common.h (genrtl_expr_stmt_value): Declare.
11403 * c-semantics.c (genrtl_goto_stmt): Redirect to...
11404 (genrtl_goto_stmt_value): ... this new function. Pass new
11405 argument down to expand_expr_stmt_value, taking
11406 TREE_ADDRESSABLE into account.
11407 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
11408 STMT_EXPR as addressable, i.e., one whose result we want.
11409 * expr.c (expand_expr): Don't save expression statement value
11410 of labeled_blocks or loop_exprs.
11411 * stmt.c (expand_expr_stmt): Redirect to...
11412 (expand_expr_stmt_value): ... this new function. Use new
11413 argument to tell whether to save expression value.
11414 (expand_end_stmt_expr): Reset last_expr_type and
11415 last_expr_value if we don't have either.
11416 * tree-inline.c (declare_return_variable): Mark its use
11417 statement as addressable.
11418 * tree.h: Document new use of TREE_ADDRESSABLE.
11419 (expand_expr_stmt_value): Declare.
11421 2002-01-01 Tom Rix <trix@redhat.com>
11423 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
11424 rs6000_emit_allocate_stack.
11426 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
11428 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
11429 ${srcdir}/ginclude/ to every entry in extra_headers.
11430 * configure: Regenerate.
11431 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
11432 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
11433 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
11434 * ginclude/proto.h: Rename to config/convex/proto.h.
11436 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11438 * attribs.c (handle_vector_size_attribute): Use host_integerp
11439 and tree_int_cst; remove warnings.
11440 * caller-save.c (insert_restore): Add cast to get rid of warning.
11441 (insert_save): Likewise.
11442 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
11443 * regmove.c (find_matches): Add temporary var to kill a warning.
11445 2002-01-01 Douglas B Rupp <rupp@gnat.com>
11447 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
11448 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
11449 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
11450 (vms-dwarf2eh.o): Add Makefile rule.
11451 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
11452 * config/alpha/vms-dwarf2eh.asm: New file.
11454 * gcc.c (delete_if_ordinary): Delete all versions.
11456 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
11458 * config/mmix/mmix.md: Update FIXME to not mention
11460 (MMIX_rJ_REGNUM): New define_constants constant.
11461 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
11462 "*movdicc_real"): Adjust contraints formatting.
11463 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
11464 for branch prediction.
11465 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
11467 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
11468 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
11469 number. Delete related FIXMEs.
11470 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
11471 from number to MMIX_rJ_REGNUM.
11472 (TARGET_MASK_BRANCH_PREDICT): New.
11473 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
11474 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
11475 value. Add -mbranch-predict and -mno-branch-predict.
11476 (TARGET_VERSION): Drop date.
11477 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
11478 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
11479 for finding out global symbols.
11480 (mmix_asm_output_labelref): Revert condition for global symbol.
11481 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
11482 (mmix_print_operand_punct_valid_p): A '+' is valid.
11484 See ChangeLog.6 for earlier changes.