1 2002-04-26 Richard Henderson <rth@redhat.com>
3 * c-parse.in (yyoverflow): Revert.
5 2002-04-26 David Edelsohn <edelsohn@gnu.org>
6 Richard Henderson <rth@redhat.com>
8 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
9 result as temporary value.
11 2002-04-26 Richard Henderson <rth@redhat.com>
14 * c-common.c (fix_string_type): Split out of ...
15 (combine_strings): ... here. Take a varray, not a tree list.
16 (c_expand_builtin_printf): Use fix_string_type.
17 * c-common.h: Update decls.
18 * c-parse.in (string): Remove. Update all uses to use STRING
19 instead, and not call combine_strings.
22 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
23 (build_asm_stmt): Likewise.
24 * objc/objc-act.c (my_build_string): Use fix_string_type.
25 (build_objc_string_object): Build varray for combine_strings.
27 2002-04-26 Bo Thorsen <bo@suse.co.uk>
29 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
32 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
34 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
35 (HAVE_NO_R_OPERAND): Remove.
38 (UNARY): Don't alter flags.
39 (_cpp_parse_expr): want_value used to indicate whether
40 a number or unary operator is expected next. Distinguish
42 (op_as_text): Update for unary operators.
44 2002-04-25 Richard Henderson <rth@redhat.com>
47 * c-parse.in (yyoverflow): New.
49 2002-04-25 Richard Henderson <rth@redhat.com>
52 * c-common.c (shorten_compare): Simplfy conditions leading to
53 the generation of a warning.
55 2002-04-25 Richard Henderson <rth@redhat.com>
58 * expmed.c (extract_bit_field): Fall through to generic code rather
59 than aborting on subreg special case.
61 2002-04-25 David S. Miller <davem@redhat.com>
63 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
66 2002-04-25 Steve Christiansen <smc@us.ibm.com>
68 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
70 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
72 * c-decl.c (grokdeclarator): Remove outdated ??? note
73 on invalid declaration of flexible array members.
75 2002-04-25 Richard Henderson <rth@redhat.com>
77 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
79 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
81 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
82 needed by the compiler, even if they are used as global regs.
84 2002-04-25 Matt Hiller <hiller@redhat.com>
86 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
88 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
89 of the corresponding functions.
90 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
93 2002-04-25 Matt Hiller <hiller@redhat.com>
95 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
97 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
98 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
99 registers, adjust comment accordingly.
100 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
101 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
102 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
103 for coprocessor registers.
104 (ADDITIONAL_REGISTER_NAMES): Include
105 ALL_COP_ADDITIONAL_REGISTER_NAMES.
107 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
108 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
109 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
110 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
111 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
113 (mips_char_to_class): Adjust comment to include coprocessor
116 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
118 (mips_reg_names, mips_regno_to_class): Include coprocessor
120 (mips_sw_reg_names): Ditto, make non-static.
121 (mips_move_1word): Handle moves to and from coprocessor registers.
122 (mips_move_2words): Handle moves to and from coprocessor
124 (mips_class_max_nregs, mips_register_move_cost): Handle
125 coprocessor register classes.
126 (override_options): Initialize mips_char_to_class and
127 mips_hard_regno_mode_ok properly for coprocessor registers.
129 * config/mips/mips.md (movdi_internal, movdi_internal2,
130 movsi_internal1, movsi_internal2): Add constraint-sets for
131 coprocessor registers.
132 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
133 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
135 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
136 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
138 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
139 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
141 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
142 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
145 * doc/tm.texi: Document feature.
147 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
149 * integrate.c (function_attribute_inlinable_p): Simplify.
150 Check the table pointer is not NULL.
152 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
154 * doc/c-tree.texi: Fix typo in introduction.
156 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
158 * c-common.h (c_common_parse_file): Update.
159 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
160 * c-lex.c (YYDEBUG): Get from c-lex.h.
161 (c_common_parse_file): Update.
162 * c-lex.h (YYDEBUG, yydebug): New.
163 * c-parse.in (YYDEBUG): Get from c-lex.h.
164 (c_set_yydebug): Remove.
165 * c-tree.h (c_set_yydebug): Remove.
166 * langhooks-def.h (lhd_do_nothing_i): New.
167 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
168 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
169 * langhooks.c (lhd_do_nothing_i): New.
170 (lhd_set_yydebug): Remove.
171 * langhooks.h (struct lang_hooks): Update.
172 * toplev.c (set_yydebug): New.
173 (compile_file): Update call to parse_file hook.
174 (decode_d_option): Update.
176 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
178 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
180 * loop.c (load_mems): Don't change the interface of called functions.
182 * calls.c (expand_call): Take current_function_pretend_args_size
183 into account when setting argblock for sibcalls.
185 2002-04-24 Matt Hiller <hiller@redhat.com>
187 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
190 * cpplex.c (skip_line_comment): Process comment one multibyte
191 character at a time rather than one char at a time, if
193 (parse_string): Process string one multibyte character at a time
194 rather than one char at a time, if appropriate.
195 * c-lex.c (lex_string): Lex and copy multibyte strings
197 * cpplib.h (cppchar_t): Change to unsigned.
199 2002-04-24 Richard Henderson <rth@redhat.com>
202 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
205 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
207 * sh.c (sh_va_arg): If argument was passed by reference,
208 dereference the pointer.
210 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
212 * sh.md (divsi3_i4_media): Use match_operand for input values
213 rather than hard registers.
214 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
215 unnecessarily through hard registers. Keep copies of pseudo
216 registers outside of the libcall sequence.
218 * sh.md (casesi_shift_media): Add modes.
220 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
223 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
225 * attribs.c (c_common_attribute_table): Move table and handlers
227 (format_attribute_table, lang_attribute_table,
228 lang_attribute_common): Remove.
229 (init_attributes): Replace NULL pointers with pointers to the
231 (handle_packed_attribute, handle_nocommon_attribute,
232 handle_common_attribute, handle_noreturn_attribute,
233 handle_noinline_attribute, handle_always_inline_attribute,
234 handle_used_attribute, handle_unused_attribute,
235 handle_const_attribute, handle_transparent_union_attribute,
236 handle_constructor_attribute, handle_destructor_attribute,
237 handle_mode_attribute, handle_section_attribute,
238 handle_aligned_attribute, handle_weak_attribute,
239 handle_alias_attribute, handle_visibility_attribute,
240 handle_no_instrument_function_attribute, handle_malloc_attribute,
241 handle_no_limit_stack_attribute, handle_pure_attribute,
242 handle_deprecated_attribute, handle_vector_size_attribute,
243 vector_size_helper): Move to c-common.c.
244 * c-common.c (c_common_attribute_table,
245 handle_packed_attribute, handle_nocommon_attribute,
246 handle_common_attribute, handle_noreturn_attribute,
247 handle_noinline_attribute, handle_always_inline_attribute,
248 handle_used_attribute, handle_unused_attribute,
249 handle_const_attribute, handle_transparent_union_attribute,
250 handle_constructor_attribute, handle_destructor_attribute,
251 handle_mode_attribute, handle_section_attribute,
252 handle_aligned_attribute, handle_weak_attribute,
253 handle_alias_attribute, handle_visibility_attribute,
254 handle_no_instrument_function_attribute, handle_malloc_attribute,
255 handle_no_limit_stack_attribute, handle_pure_attribute,
256 handle_deprecated_attribute, handle_vector_size_attribute,
257 vector_size_helper): Move from attribs.c.
258 * c-common.h (c_common_attribute_table,
259 c_common_format_attribute_table): New.
260 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
261 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
262 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
263 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
264 (LANG_HOOKS_INITIALIZER): Update.
265 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
266 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
267 * target.h: Update comment.
268 * tree.c (default_target_attribute_table): Remove.
269 * tree.h (default_target_attribute_table, format_attribute_table,
270 lang_attribute_table, lang_attribute_common): Remove.
272 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
273 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
275 2002-04-24 Jason Merrill <jason@redhat.com>
277 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
278 * dwarf2out.c (dwarf_attr_name): Support it.
279 (gen_array_type_die): Emit it.
280 (lookup_type_die): No special handling for VECTOR_TYPE.
281 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
283 2002-04-24 Richard Henderson <rth@redhat.com>
285 * config/mips/mips.md (movdi_usd): Renumber.
287 2002-04-24 David S. Miller <davem@redhat.com>
290 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
291 32-bit Sparc and current_function_returns_struct is true.
293 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
295 * loop.c (canonicalize_condition): Use gen_int_mode.
297 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
299 * config/rs6000/altivec.h: Cleanup file. Add non individual
343 (vec_lde): Add vector float variant.
348 (vec_vmhaddshs): New.
370 (vec_vmladduhm): New.
371 (vec_vmhraddshs): New.
404 (vec_vrsqrtefp): New.
456 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
459 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
460 added literals from substracted literals.
461 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
462 (fold) [associate]: Preserve MINUS_EXPR if needed.
464 2002-04-23 Zack Weinberg <zack@codesourcery.com>
466 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
469 2002-04-23 Tom Tromey <tromey@redhat.com>
471 * gcc.c: Added --resource. For PR java/6314.
473 2002-04-23 David O'Brien <obrien@FreeBSD.org>
475 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
476 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
479 2002-04-23 David O'Brien <obrien@FreeBSD.org>
481 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
483 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
485 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
487 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
488 (ix86_expand_clrstr): Fix typo.
489 * loop.c (gen_load_of_final_value): New.
490 (loop_givs_rescan, strength_reduce, check_dbra_loop):
493 2002-04-23 Roger Sayle <roger@eyesopen.com>
495 * builtins.c (builtin_memset_gen_str): New function.
496 (expand_builtin_memset): Optimize the case of constant length, but
499 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
501 * config/rs6000/altivec.h (vec_step): Remove extraneous
503 (vec_ctu): Cast return.
505 2002-04-23 Alan Modra <amodra@bigpond.net.au>
508 * function.h: (struct function): Add profile_label_no field.
509 (current_function_profile_label_no): Define.
510 * function.c: (profile_label_no): New static var.
511 (expand_function_start): Increment it, and copy to
512 current_function_profile_label_no.
513 * output.h (profile_label_no): Delete.
514 * final.c (profile_label_no): Delete.
515 (profile_function): Use current_function_profile_label_no.
516 (final_end_function): Don't increment profile_label_no here.
517 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
518 profile_label_no with current_function_profile_label_no.
519 * config/pa/pa.c (current_function_number): Delete.
520 (pa_output_function_prologue): Don't output profile label here.
521 (hppa_profile_hook): Use label_no param rather than
522 current_function_number.
523 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
524 * config/pa/pa.h: .. here.
525 (FUNCTION_PROFILER): Output profile label here.
527 2002-04-22 Eric Christopher <echristo@redhat.com>
529 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
530 patch of 2002-04-09 due to binutils issues.
531 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
533 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
535 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
536 constraint to 'o' for m=r and r=m alternatives.
537 ("*movv8hi_internal1"): Same.
538 ("*movv16qi_internal1"): Same.
539 ("*movv4sf_internal1"): Same.
541 2002-04-22 Janis Johnson <janis187@us.ibm.com>
543 * rtl.h (RTX_FLAG): New macro.
544 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
545 * final.c (alter_subreg): Use macro to access rtx flag.
546 * integrate.c (copy_rtx_and_substitute): Use new access macro.
547 * print-rtl.c (print_rtx): Use new access macro.
549 * cse.c (insert): Check rtx code before accessing flag.
551 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
552 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
553 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
554 convert_const_symbol_ref, make_canonical, make_alternative_compare,
555 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
556 simplify_test_exp, optimize_attrs, simplify_by_exploding,
557 find_and_mark_used_attributes, unmark_used_attributes,
558 add_values_to_cover, simplify_with_current_value,
559 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
560 copy_rtx_unchanging, main): Use new access macros.
562 2002-04-22 Tom Rix <trix@redhat.com>
564 * expmed.c (init_expmed): Generate shifted constant once.
566 2002-04-22 Zack Weinberg <zack@codesourcery.com>
568 * c-lex.c (lex_charconst): Call convert to get constant in
569 proper type; don't just smash the type field.
572 * config.gcc: Add list of obsolete configurations. Disallow
573 building these without --enable-obsolete.
574 * doc/install.texi: Document --enable-obsolete and obsoletion
575 policy. Mention obsoletion of individual targets in
578 2002-04-22 Richard Henderson <rth@redhat.com>
580 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
582 2002-04-22 Mark Mitchell <mark@codesourcery.com>
585 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
586 (walk_fixup_memory_subreg): Likewise.
587 (fixup_var_refs_insn): Adjust accordingly.
588 (fixup_var_refs_1): Likewise.
590 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
592 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
593 LIBPATH_ARCH64_SPEC): Define.
594 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
595 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
596 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
597 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
599 2002-04-22 Joel Sherrill <joel@OARcorp.com>
601 * gthr-rtems.h: Correct prototypes to remove warnings.
603 2002-04-22 Richard Henderson <rth@redhat.com>
606 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
608 * gcse.c (free_insn_expr_list_list): New.
609 (clear_modify_mem_tables): Use it. Fix bit set usage.
610 (canon_list_insert): Use EXPR_LISTs for expressions.
611 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
613 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
615 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
616 file change and include code to _cpp_pop_buffer.
617 * cpphash.h (struct pending_option): Predeclare.
618 (struct cpp_reader): New member next_include_file.
619 (_cpp_pop_file_buffer): Update.
620 (_cpp_push_next_buffer): Update, rename.
621 * cppinit.c (cpp_destroy): Free include chain and pending here.
622 (cpp_finish_options): Simplify.
623 (_cpp_push_next_buffer): Rename and clean up.
624 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
626 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
628 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
630 * config/rs6000/altivec.h (vec_xor): Add variant for both args
631 being vector signed int.
633 (vec_xor): Add variant for both args being vector signed char.
634 Remove redundant variant.
637 2002-04-21 David S. Miller <davem@redhat.com>
639 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
640 compare mode in output RTL.
642 2002-04-22 David Edelsohn <edelsohn@gnu.org>
644 * config/rs6000/rs6000.c (rs6000_override_options): Correct
645 style and formatting of previous patch.
647 2002-04-22 Alan Modra <amodra@bigpond.net.au>
649 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
650 flag_pic for ABI_AIX.
652 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
654 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
655 * cppfiles.c (read_include_file): Similarly.
656 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
657 uxstrdup ustrchr, ufputs): Similarly.
658 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
659 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
660 cpp_ideq, parse_identifier, parse_number): Similarly.
661 * cpplib.c (struct directive, dequote_string, D, run_directive,
662 cpp_push_buffer): Similarly.
663 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
664 _cpp_create_definition, check_trad_stringification,
665 cpp_macro_definition): Similarly.
667 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
669 * cppmacro.c (funlike_invocation_p): Don't step back
672 2002-04-21 David Edelsohn <edelsohn@gnu.org>
674 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
677 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
679 * doc/invoke.texi: Remove Chill references.
680 * doc/gcc.texi: Update last modified date.
682 2002-04-20 Kazu Hirata <kazu@hxi.com>
684 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
685 push and pop. Replace add.l with add.w.
687 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
689 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
690 multiply instructions for H8/300H case.
692 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
694 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
695 Bum three instructions from each routine.
697 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
699 * Makefile.in: Update.
700 * decl.c (push_c_function_context, pop_c_function_context,
701 mark_c_function_context): Rename for consistency.
702 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
703 * c-tree.h (push_c_function_context, pop_c_function_context,
704 mark_c_function_context): Rename for consistency.
705 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
706 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
707 * function.c (init_lang_status, save_lang_status,
708 restore_lang_status, mark_lang_status, free_lang_status):
710 (push_function_context_to, pop_function_context_from,
711 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
713 * function.h (init_lang_status, save_lang_status,
714 restore_lang_status, mark_lang_status, free_lang_status):
716 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
717 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
718 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
719 LANG_HOOKS_FUNCTION_INITIALIZER): New.
720 (LANG_HOOKS_INITIALIZER): Update.
721 (lhd_do_nothing_f): New.
722 * langhooks.h (struct lang_hooks_for_functions): New.
723 (struct lang_hooks): New hooks.
724 * langhooks.c (lhd_do_nothing_f): New.
726 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
727 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
729 2002-04-19 David S. Miller <davem@redhat.com>
731 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
732 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
734 2002-04-19 Jakub Jelinek <jakub@redhat.com>
737 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
738 x = ((int) y < 0) ? cst1 : cst2.
740 2002-04-19 Jakub Jelinek <jakub@redhat.com>
743 * function.c: Reapply patch for c/6358.
744 (expand_function_end): Copy decl_rtl's mode, not
745 current_function_return_rtx mode.
747 2002-04-19 Joel Sherrill <joel@OARcorp.com>
749 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
752 2002-04-19 Tom Tromey <tromey@redhat.com>
754 * doc/install.texi (Specific): Update status of Solaris 2.8.
757 2002-04-19 Andreas Schwab <schwab@suse.de>
759 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
760 (PUT_REAL): Restore old definition.
762 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
763 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
765 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
766 binutils 2.11.2 and higher generate smaller binaries than Sun's
769 2002-04-19 Mark Mitchell <mark@codesourcery.com>
772 * toplev.c (rest_of_compilation): Do not defer functions for which
773 TREE_SYMBOL_REFERENCED has already been set.
775 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
777 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
780 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
782 * builtins.c: Include langhooks.h.
783 (lang_type_promotes_to): Remove.
784 (expand_builtin_va_arg): Use new hook.
785 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
786 (simple_type_promotes_to): Move to c-typeck.c.
787 * c-common.h (simple_type_promotes_to): Remove.
788 * c-decl.c (duplicate_decls, grokdeclarator): Update.
789 * c-format.c: Include langhooks.h.
790 (check_format_types): Update.
791 * c-tree.h (c_type_promotes_to): New.
792 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
793 (type_lists_compatible_p): Update.
794 * langhooks-def.h (lhd_type_promotes_to): New.
795 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
796 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
797 * langhooks.c (lhd_type_promotes_to): New.
798 * langhooks.h (struct lang_hooks_for_types): New hook.
799 * tree.h (lang_type_promotes_to): Remove.
801 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
803 2002-04-18 Richard Henderson <rth@redhat.com>
805 * function.c: Revert patch for c/6358.
807 2002-04-18 Richard Henderson <rth@redhat.com>
809 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
810 blocks. Handle multiple references to the TRAP block. Handle
811 non-adjacent THEN and OTHER blocks.
813 2002-04-18 Richard Henderson <rth@redhat.com>
815 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
816 crash with no type for by-mode libcalls.
818 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
820 2002-04-18 Bob Wilson <bob.wilson@acm.org>
822 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
823 __xtensa_nonlocal_goto): Use a syscall instructions to flush
824 the register windows.
826 2002-04-18 Zack Weinberg <zack@codesourcery.com>
828 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
829 appropriate. Document need for extended precision even when
830 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
831 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
832 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
833 instead of relying on later syntax error when REAL_WIDTH > 5.
834 * real.c: Define NE based only on whether or not we have a
835 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
836 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
837 define GET_REAL and PUT_REAL as simple memcpy operations; no
838 need to byteswap or round.
839 Use #error instead of #ifdef-ing out the entire file, for
840 prompt error detection.
842 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
844 2002-04-18 David S. Miller <davem@redhat.com>
846 * config/sparc/sparc.h (BRANCH_COST): Define.
848 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
851 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
853 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
854 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
855 propagate_block calls after relaxation loop using new variable
856 stabilized_prop_flags.
858 2002-04-18 Richard Henderson <rth@redhat.com>
860 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
861 (ia64_va_arg): Expect variable sized types by reference.
862 * config/ia64/ia64-protos.h: Update.
863 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
864 ia64_function_arg_pass_by_reference.
866 2002-04-18 Richard Henderson <rth@redhat.com>
868 * ifcvt.c: Include except.h.
869 (block_has_only_trap): Break out from find_cond_trap.
870 (find_cond_trap): Use it. Always delete the trap block.
871 (merge_if_block): Allow then block null. Be less simplistic about
872 what insns can end a block.
873 * Makefile.in (ifcvt.o): Depend on except.h.
875 * config/ia64/ia64.md (trap, conditional_trap): New.
877 2002-04-18 Jakub Jelinek <jakub@redhat.com>
880 * function.c (assign_parms): Assign hard current_function_return_rtx
882 (expand_function_end): ...not here.
884 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
886 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
887 * c-tree.h (c_incomplete_type_error): New.
888 * c-typeck.c (require_complete_type, build_component_ref): Update.
889 (incomplete_type_error): Rename.
890 * langhooks-def.h (lhd_incomplete_type_error): New.
891 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
892 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
893 * langhooks.c (lhd_incomplete_type_error): New.
894 * langhooks.h (struct lang_hooks_for_types): New hook.
895 * tree.c (size_in_bytes): Use new hook.
896 * tree.h (incomplete_type_error): Remove.
898 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
900 2002-04-18 Zack Weinberg <zack@codesourcery.com>
902 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
903 TARGET_FLOAT_FORMAT blocks.
905 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
907 * doc/install.texi (Downloading the source): Do not mention Chill
908 any longer, but mention Ada.
909 (Configuration): Do not mention Chill any longer.
911 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
913 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
915 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
917 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
920 2002-04-18 Jakub Jelinek <jakub@redhat.com>
922 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
923 instead of unsigned_type.
925 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
927 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
928 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
931 2002-04-18 Bernd Schmidt <bernds@redhat.com>
933 * attribs.c (vector_type_node_list): New static variable.
934 (handle_vector_size_attribute): Use it to avoid generating a
935 new type node each time we are called.
937 * combine.c (subst): Avoid trying to make a vector mode subreg of
939 (gen_lowpart_for_combine): Likewise.
941 2002-04-18 Roger Sayle <roger@eyesopen.com>
942 Jakub Jelinek <jakub@redhat.com>
944 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
945 for integer constant c (if x has unsigned type or sign bit is not
946 set in c). This folds the zero/sign extension into the bit-wise and
949 2002-04-18 Jakub Jelinek <jakub@redhat.com>
952 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
955 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
957 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
959 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
961 * gcc.c (read_specs): Detect and fail if an attempt is made to
962 rename a spec string to an already existing string.
964 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
966 * config/s390/s390.c (legitimize_pic_address): Do not generate
967 illegal address constant without CONST.
969 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
971 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
972 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
974 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
977 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
978 to make sure previous reloads are taken into account. Generate
979 better code if one operand is an in-range immediate constant.
981 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
983 * doc/install.texi (Building): libgcj requires GNU make.
985 2002-04-17 Jakub Jelinek <jakub@redhat.com>
988 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
989 even if hard quad and register is not floating.
990 (movtf reg<-mem split): Disallow splitting if hard quad and
991 register is floating.
992 (movtf mem<-reg split): Likewise.
993 * config/sparc/sparc.c (fp_register_operand): New predicate.
994 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
996 2002-04-17 Zack Weinberg <zack@codesourcery.com>
998 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
999 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
1000 (unprotoize.o): Ditto. Build from protoize.c. Define
1001 UNPROTOIZE on command line.
1002 * protoize.c: Include cppdefault.h. Delete include_defaults.
1003 (in_system_include_dir): Use cpp_include_defaults (defined in
1005 * unprotoize.c: Delete file.
1007 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
1009 * config/rs6000/altivec.h (vec_ld): Add array variants.
1013 2002-04-17 Alan Matsuoka <alanm@redhat.com>
1014 Aldy Hernandez <aldyh@redhat.com>
1016 * config/rs6000/altivec.h: Define __ALTIVEC__.
1023 Add parentheses to all macro arguments.
1025 2002-04-16 Richard Henderson <rth@redhat.com>
1028 * except.c (remove_eh_handler): Insert inner regions at beginning
1029 of sibling chain. Refactor expressions.
1031 2002-04-16 Richard Henderson <rth@redhat.com>
1033 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
1034 * config/sparc/sol2-gas-bi.h: New file.
1035 * config.gcc (sparc*-solaris): Add it as needed.
1036 * configure.in (AS_SPARC64_FLAG): Remove check.
1037 * config.in, configure: Regenerate.
1039 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
1041 2002-04-16 Richard Henderson <rth@redhat.com>
1043 * config/mips/mips.c (override_options): Don't override N32 for
1047 * config/mips/mips.md (can_delay): Split out of existing define_delays.
1048 (HILO_delay): Set can_delay false.
1050 2002-04-16 Dale Johannesen <dalej@apple.com>
1052 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
1053 instruction addresses.
1054 (rs6000_output_function_epilogue): Likewise.
1056 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
1058 * c-parse.in (poplevel, compstmt_start,
1059 compstmt_primary_start): Add ending ';', in accordance
1062 2002-04-16 Richard Henderson <rth@redhat.com>
1064 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
1065 Adjust tm_file order to get TARGET_DEFAULT set properly.
1066 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
1067 * doc/install.texi (sparc-solaris): Update.
1069 2002-04-16 Dale Johannesen <dalej@apple.com>
1071 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
1072 comparison operands do not match each other or if modes of
1073 conditions do not match result.
1075 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
1078 * config/s390/s390.md (mulsidi3): Set both subregs of the
1081 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
1083 * config/rs6000/altivec.h (vec_addc): Type check.
1085 2002-04-16 Jakub Jelinek <jakub@redhat.com>
1088 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
1090 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
1092 2002-04-15 Richard Henderson <rth@redhat.com>
1094 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
1095 call_really_used_regs too.
1097 2002-04-15 Richard Henderson <rth@redhat.com>
1099 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
1101 2002-04-15 David S. Miller <davem@redhat.com>
1103 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
1106 2002-04-16 Jakub Jelinek <jakub@redhat.com>
1109 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
1110 CONST_VECTOR is { 0, ... 0 }.
1112 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
1114 * doc/install.texi (Installing GCC: Configuration): Clarify
1115 the only supported ways to configure gcc.
1117 2002-04-15 Roland McGrath <roland@frob.com>
1119 * config.gcc (alpha*-*-gnu*): New target configuration.
1120 * config/alpha/gnu.h: New file for it.
1121 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
1123 2002-04-16 Mark Mitchell <mark@codesourcery.com>
1125 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
1126 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
1127 * tree.h (expand_start_stmt_expr): Update prototype.
1128 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
1129 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
1130 on the STMT_EXPR created for the inline function.
1132 2002-04-15 Richard Henderson <rth@redhat.com>
1134 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
1135 config/i386/linux-aout.h, config/i386/linux-oldld.h,
1136 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
1137 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
1138 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
1139 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
1140 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
1141 Define __gnu_linux__, not gnu_linux.
1142 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
1144 2002-04-15 Mark Mitchell <mark@codesourcery.com>
1146 Remove Chill front end.
1147 * gcc.c (default_compilers): Remove Chill entries.
1148 * ch: Remove directory.
1149 * doc/frontends.texi: Remove information about Chill.
1150 * doc/sourcebuild.texi: Likewise.
1151 * doc/standards.texi: Likewise.
1153 2002-04-15 Douglas B Rupp <rupp@gnat.com>
1155 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
1156 (LONGLONG_STANDALONE): Define.
1158 2002-04-15 David S. Miller <davem@redhat.com>
1160 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
1161 Call emit_library_call with LCT_NORMAL.
1162 (sparc_initialize_trampoline): Use LCT_foo instead of
1163 magic constant in emit_library_call invocations.
1164 (sparc64_initialize_trampoline): Likewise.
1165 (sparc_profile_hook): Likewise.
1166 * config/sparc/sparc.md: Likewise.
1168 * config/sparc/sparc.c (sparc_extra_constraint_check):
1169 Fix type of argument 'c'.
1170 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
1173 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1175 * diagnostic.h (output_buffer_state): Redefine.
1176 (output_format_decoder): New macro.
1177 (output_prefixing_rule): Likewise.
1178 (output_line_cutoff): Likewise.
1179 (diagnostic_format_decoder): Adjust.
1180 (diagnostic_prefixing_rule): Likewise.
1181 (diagnostic_line_cutoff): Likewise.
1182 (diagnostic_state): Likewise.
1183 (diagnostic_kind_count): Likewise.
1184 (diagnostic_buffer): Now a macro.
1186 * diagnostic.c (diagnostic_buffer): Remove definition.
1187 (output_is_line_wrapping): Adjust.
1188 (set_real_maximum_length): Likewise.
1189 (output_set_maximum_length): Likewise.
1190 (init_output_buffer): Likewise.
1191 (lhd_print_error_function): Likewise.
1192 (output_do_verbatim): Likewise.
1194 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
1196 * cpperror.c (print_location): Don't print include chain
1198 (cpp_begin_message): Update to use DL_ macros.
1199 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1200 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1201 cpp_notice, cpp_notice_from_errno): Remove.
1202 (cpp_error, cpp_error_with_line): Update to take a diagnostic
1205 * cppexp.c (CPP_ICE): Remove.
1206 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
1207 lex, integer_overflow, _cpp_parse_expr): Update.
1208 * cppfiles.c (read_include_file, find_include_file,
1209 handle_missing_header, _cpp_read_file, remap_filename): Update.
1210 * cpphash.h (enum error_type): Remove.
1211 (_cpp_begin_message): Update.
1212 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
1213 cpp_handle_option, cpp_post_options): Update.
1214 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
1215 skip_whitespace, parse_identifier, parse_slow, parse_string,
1216 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
1217 cpp_interpret_charconst): Update.
1218 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
1219 lex_macro_node, do_undef, glue_header_name, parse_include,
1220 do_include_common, read_flag, do_line, do_linemarker, do_ident,
1221 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
1222 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
1223 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
1224 _cpp_pop_buffer, do_diagnostic): Update.
1225 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
1226 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
1227 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1228 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1229 cpp_notice, cpp_notice_from_errno): Remove.
1230 (cpp_error, cpp_error_with_line): Update to take a diagnostic
1233 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
1234 collect_args, enter_macro_context, save_parameter, parse_params,
1235 _cpp_create_definition, check_trad_stringification,
1236 cpp_macro_definition): Update.
1237 * cppmain.c (cpp_preprocess_file): Update.
1238 * fix-header.c (read_scan_file): Update.
1240 2002-04-14 Andreas Schwab <schwab@suse.de>
1242 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
1244 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1246 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
1248 2002-04-13 Mark Mitchell <mark@codesourcery.com>
1250 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
1253 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
1255 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
1257 2002-04-13 Joel Sherrill <joel@OARcorp.com>
1259 * config/sparc/t-elf: Enable v8 multilibs. Impacts
1260 sparc-elf and sparc-rtems targets.
1262 2002-04-13 Mark Mitchell <mark@codesourcery.com>
1264 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
1265 defined, and __gnu_hurd__ wherever __GNU__ is defined.
1266 * arm/linux-elf.h: Likewise.
1267 * cris/aout.h: Likewise.
1268 * cris/linux.h: Likewise.
1269 * i370/linux.h: Likewise.
1270 * i386/gnu.h: Likewise.
1271 * i386/linux-aout.h: Likewise.
1272 * i386/linux-oldld.h: Likewise.
1273 * i386/linux.h: Likewise.
1274 * i386/linux64.h: Likewise.
1275 * ia64/linux.h: Likewise.
1276 * m68k/linux-aout.h: Likewise.
1277 * m68k/linux.h: Likewise.
1278 * mips/linux.h: Likewise.
1279 * pa/pa-linux.h: Likewise.
1280 * pj/linux.h: Likewise.
1281 * rs6000/sysv4.h: Likewise.
1282 * s390/linux.h: Likewise.
1283 * sh/linux.h: Likewise.
1284 * sparc/linux-aout.h: Likewise.
1285 * sparc/linux.h: Likewise.
1286 * sparc/linux64.h: Likewise.
1287 * xtensa/linux.h: Likewise.
1289 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
1291 * stmt.c (check_unique_operand_names): Expect operand names to
1292 be strings rather than identifiers. Use simple_cst_equal to
1294 (resolve_operand_name_1): Make same identifier to string change here.
1295 * c-parse.in (asm_operand): Convert a named operand into a string.
1296 * cp/parse.y (asm_operand): Likewise.
1298 2002-04-13 Andreas Schwab <schwab@suse.de>
1300 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
1302 2002-04-12 Mark Mitchell <mark@codesourcery.com>
1304 Revert these changes:
1306 2002-04-06 Mark Mitchell <mark@codesourcery.com>
1309 * stor-layout.c (layout_decl): Reset the RTL for the decl.
1311 2002-04-12 Richard Henderson <rth@redhat.com>
1313 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
1314 (sparc*-*-solaris): Clean up header files.
1315 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
1316 and plan on generating 64-bit code.
1317 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
1318 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
1319 * config/sparc/sol2-sld-64.h: Rename ...
1320 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
1321 for AS_SPARC64_FLAG not defined.
1322 * config/sparc/sol2-gld-bi.h: New.
1323 * config/sparc/sol2-sld.h: Remove.
1324 * config/sparc/sol26-sld.h: New.
1325 * config/sparc/sol2.h: Tidy comments.
1326 * doc/install.texi: Document sparc-solaris configury changes.
1328 2002-04-12 Richard Henderson <rth@redhat.com>
1330 * recog.c (offsettable_address_p): Match the logic in adjust_address.
1332 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
1333 in 64-bit mode only. Use only for 32-bit or MEDLOW.
1335 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1337 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
1339 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
1341 * pa.c (pa_can_combine_p): Call extract_insn before calling
1344 2002-04-12 Douglas B Rupp <rupp@gnat.com>
1346 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
1347 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
1348 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
1349 (CPP_PREDEFINES): Handle __declspec.
1350 * config/i386/t-interix (USER_H): Remove.
1352 2002-04-12 DJ Delorie <dj@redhat.com>
1354 * integrate.c (compare_blocks): Make comparisons safe for when
1355 sizeof(int) < sizeof(char *).
1356 (find_block): Likewise.
1358 2002-04-12 Jan Hubicka <jh@suse.cz>
1359 David Edelsohn <edelsohn@gnu.org>
1361 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
1363 (symbol_ref_operand): New.
1364 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
1365 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
1367 2002-04-12 Andreas Schwab <schwab@suse.de>
1369 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
1370 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
1371 overrides the definition in config/svr4.h.
1373 2002-04-12 Eric Norum <eric.norum@usask.ca>
1375 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
1376 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
1377 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
1378 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
1379 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
1380 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
1381 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
1382 definitions to config/rtems.h and make the targets more similar.
1384 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1386 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
1387 POINTERS_EXTEND_UNSIGNED.
1388 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
1389 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
1391 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
1394 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
1396 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
1397 depends on TARGET_SHMEDIA, not TARGET_SH5.
1399 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
1401 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
1402 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
1404 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
1406 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
1409 2002-04-12 Andreas Schwab <schwab@suse.de>
1411 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
1413 2002-04-12 Richard Henderson <rth@redhat.com>
1416 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
1418 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
1419 modes spanning multiple hard regs.
1421 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
1423 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1425 * pa.c (pa_output_function_prologue): Don't accumulate the total
1426 number of code bytes when using TARGET_64BIT, or gas, SOM and not
1427 the portable runtime.
1428 (output_deferred_plabels): Handle 64bit plabels.
1429 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
1430 generating pic code using the GAS assembler for object formats that
1431 are not SOM (ie., ELF32 and ELF64).
1432 (output_millicode_call): Check attribute type if attribute length is 28.
1433 Likewise use $PIC_pcrel$0. Only call get_attr_length and
1434 dbr_sequence_length once.
1435 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
1436 dbr_sequence_length once.
1437 * pa.h (TARGET_SOM): Define if not defined.
1438 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
1439 with GAS and not SOM.
1440 (jump, call_internal_reg, call_value_internal_reg): Likewise.
1441 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
1443 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1445 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
1446 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
1447 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
1448 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
1449 elfos.h and dbxelf.h values are fine now.
1450 * config/i386/freebsd.h, config/alpha/freebsd.h
1451 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
1453 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1455 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
1456 or set Acpu or Amachine. Reformat.
1457 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1459 (LINK_SPEC): Do not need to undef.
1460 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
1461 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
1462 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1464 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
1465 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
1466 (LINK_SPEC): Do not need to undef.
1467 (DONT_USE_BUILTIN_SETJMP): Do not define.
1468 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
1469 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
1470 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
1471 Remove trailing spaces.
1472 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
1473 __ELF__, or set Acpu or Amachine. Reformat.
1474 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1477 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1479 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
1480 all other *-*-freebsd* targets.
1482 2002-04-11 Richard Henderson <rth@redhat.com>
1484 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
1486 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1488 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
1489 Include {cpu}/{cpu}.h thru tm_file.
1490 (alpha*-*-linux*ecoff): Remove target.
1491 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
1492 (LINK_SPEC): Remove, is not OS independent.
1493 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
1494 (LINK_SPEC): Do not need to #undef any longer.
1495 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
1497 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
1499 (LINK_SPEC): Moved here from alpha/elf.h.
1500 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
1502 * config/alpha/linux-ecoff.h: Remove.
1503 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
1504 (CPP_SPEC): Define _POSIX_SOURCE as needed.
1505 (CPP_SUBTARGET_SPEC): Do not define.
1506 (LINK_SPEC): Do not need to #undef any longer.
1507 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
1508 * config/alpha/vms.h: Likewise.
1510 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
1512 * doc/extend.texi: Remove old claim that typedefs cannot have
1513 an alignment attribute.
1515 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1517 PR optimization/6177
1518 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
1519 bitpos is 0 and bitsize CONCAT size.
1521 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1524 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
1526 2002-04-10 David O'Brien <obrien@FreeBSD.org>
1528 * config/alpha/freebsd.h: Minor reformatting.
1529 (CPP_SPEC): Define ELF and add cpp_subtarget.
1530 (ASM_SPEC): No longer needed.
1532 2002-04-11 Richard Henderson <rth@redhat.com>
1534 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
1535 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
1536 (dimode mem/zero splitter): New.
1538 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
1540 * config/cris/cris.c (cris_override_options): Tweak error message
1541 for PIC not implemented.
1543 * config/cris/cris.h: Tweak comments related to parameter-passing.
1545 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
1547 2002-04-10 Richard Henderson <rth@redhat.com>
1549 * except.c (add_ehl_entry): Allow duplicates after landing pad
1552 2002-04-10 David Edelsohn <edelsohn@gnu.org>
1554 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
1556 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
1558 * c-decl.c (c_init_decl_processing): Move generation of
1559 decls for g77_integer_type_node and friends from here ...
1560 * c-common.c (c_common_nodes_and_builtins): ... to here.
1562 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
1564 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
1565 is only used as frame pointer when frame_pointer_needed is true.
1567 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
1570 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
1571 for the fact that the pool entry uses two words.
1572 (movdf_hard_insn): Similarly. Also, ADR instruction can span
1574 (movdf_soft_insn): Similarly.
1575 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
1576 for the fact that the pool entry uses three words.
1578 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
1580 * config/mips/mips.c (mips_va_arg): When using the struct version
1581 of the EABI va_list, allow arguments in the register save area to
1582 take up less room than a stack argument.
1584 2002-04-10 Richard Henderson <rth@redhat.com>
1586 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
1587 if EXPAND_INITIALIZER.
1589 2002-04-09 Richard Henderson <rth@redhat.com>
1591 * config/alpha/alpha.md (movdi_er_maybe_g): New.
1592 * config/alpha/alpha.c (alpha_expand_mov): Use it.
1594 2002-04-10 Alan Modra <amodra@bigpond.net.au>
1596 PR optimization/6233
1597 * rtlanal.c (pure_call_p): New function.
1598 * rtl.h (pure_call_p): Declare.
1599 * loop.c (prescan_loop): Use it to set has_nonconst_call.
1600 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
1602 2002-04-09 Eric Christopher <echristo@redhat.com>
1604 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
1605 information to .comm directive.
1607 2002-04-09 Richard Henderson <rth@redhat.com>
1610 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
1612 2002-04-09 Richard Henderson <rth@redhat.com>
1614 * basic-block.h (flow_delete_block_noexpunge): Declare.
1615 (expunge_block_nocompact): Declare.
1616 * cfg.c (expunge_block_nocompact): Split out from ...
1617 (expunge_block): ... here.
1618 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
1619 (flow_delete_block_noexpunge): Split out from ...
1620 (flow_delete_block): ... here.
1621 * cfgcleanup.c (delete_unreachable_blocks): Compact while
1622 removing dead blocks.
1623 * except.c (exception_handler_labels): Remove.
1624 (exception_handler_label_map): New.
1625 (struct eh_region): Add aka member.
1626 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
1627 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
1628 (for_each_eh_label, for_each_eh_label_1): New.
1629 (init_eh): Register exception_handler_label_map.
1630 (free_eh_status): Use free_region.
1631 (find_exception_handler_labels): Use the map, not the list.
1632 (remove_exception_handler_label): Likewise.
1633 (maybe_remove_eh_handler): Likewise.
1634 (remove_eh_handler): Use the region aka bitmap.
1635 * except.h (exception_handler_labels): Remove.
1636 (for_each_eh_label): Declare.
1637 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
1638 * loop.c (invalidate_loops_containing_label): New.
1639 (find_and_verify_loops): Use it. Use for_each_eh_label.
1640 * sched-rgn.c (is_cfg_nonregular): Use
1641 current_function_has_exception_handlers.
1643 2002-04-09 Richard Henderson <rth@redhat.com>
1645 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
1646 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
1647 Do not return changed status.
1648 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
1649 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
1650 New functions that do return changed status.
1651 * sbitmap.h: Update decls.
1652 * gcse.c, lcm.c: Use _cg functions as needed.
1654 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1656 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
1657 (sh64-*-elf*, sh-*-rtemself*): Likewise.
1658 * config/sh/embed_bb.c: New file.
1659 * config/sh/embed-elf.h: New file.
1660 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
1661 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
1662 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1664 (SUBTARGET_CPP_PTR_SPEC): Don't define.
1665 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
1666 Add subtarget_asm_endian_spec.
1667 (ASM_SPEC): Use subtarget_asm_endian_spec.
1668 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
1669 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
1670 (WCHAR_UNSIGNED): Define.
1671 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
1672 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1673 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
1675 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
1676 (sh_adjust_cost): Likewise.
1677 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1679 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
1680 (WCHAR_TYPE_SIZE): Likewise.
1681 (ASM_SPEC): Use subtarget_asm_endian_spec.
1682 (SH_ELF_WCHAR_TYPE): #undef/ #define.
1683 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
1684 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
1685 (MAX_WCHAR_TYPE_SIZE): Don't #define .
1686 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
1687 (USER_LABEL_PREFIX): Don't #undef /#define .
1688 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1689 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
1690 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
1691 (ASM_SPEC): Likewise.
1692 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
1693 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
1694 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
1695 (LIB2FUNCS_EXTRA): Define.
1696 * t-sh64 (LIB2FUNCS_EXTRA): Define.
1697 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1698 (LIB1ASMFUNCS_CACHE): Define.
1699 (LIB2FUNCS_EXTRA): Redefine empty.
1701 2002-04-08 Richard Henderson <rth@redhat.com>
1703 * reorg.c (get_branch_condition): Use reversed_comparison_code.
1705 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1707 * config/m68hc11/larith.asm (__map_data_section): Fix condition
1708 and optimize for size.
1709 (__do_global_ctors): Fix pointer comparison.
1710 (__do_global_dtors): Likewise.
1712 2002-04-09 David S. Miller <davem@redhat.com>
1714 * config/sparc/sparc.c (sparc_extra_constraint_check): New
1715 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
1716 allow reloading pseudos.
1717 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1718 * config/sparc/sparc-protos.h: Declare it.
1720 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1721 unsigned comparison warning.
1722 (output_restore_regs): Mark leaf_function as unused.
1724 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1726 * expr.c (is_aligning_offset): New function.
1727 (expand_expr, case COMPONENT_EXPR): Call it.
1729 2002-04-08 David S. Miller <davem@redhat.com>
1732 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
1734 Make init_priority work on Sparc when using GNU ld.
1735 * config/sparc/linux.h, config/sparc/linux64.h,
1736 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
1737 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
1738 * config/sparc/sol2-gld.h: New file to do the same.
1739 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1740 sparc/sol2-gld.h to tm_file.
1742 PR optimization/4328
1743 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1744 * doc/md.texi: Document it.
1745 * config/sparc/sparc.md (movdi_insn_sp64_novis,
1746 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1747 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1748 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1749 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1751 2002-04-08 Andreas Jaeger <aj@suse.de>
1753 * stmt.c (expand_asm_operands): Revert last patch from Richard
1756 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1758 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1759 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
1761 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1763 * doc/contrib.texi (Contributors): Add David O'Brien.
1765 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1767 * configure.in (auto-build.h): Use target_alias and build_alias
1768 when running configure.
1769 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1770 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1771 * configure: Regenerate.
1773 2002-04-07 David S. Miller <davem@redhat.com>
1775 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1777 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
1780 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1781 generating 32-bit pic code.
1783 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
1785 * cppinit.c (cpp_create_reader): Initialize
1786 discard_comments_in_macro_exp.
1787 (COMMAND_LINE_OPTIONS): Add "-CC" option.
1788 (cpp_handle_option): Handle "-CC" option.
1789 * cpplex.c (save_comment): If saving a C++ comment in
1790 a directive, convert it to a C comment.
1791 (_cpp_lex_direct): Pass second comment start character to
1792 save_comment to indicate comment type.
1793 * cpplib.c (_cpp_handle_directive): If processing
1794 a "#define" directive and discard_comments_in_macro_exp
1795 is false, re-enable saving of comments.
1796 (lex_macro_node): If discard_comments_in_macro_exp is false,
1797 discard any comments before the macro identifier.
1798 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1800 * cppmacro.c (cpp_get_token): If expanding a macro while
1801 processing a directive, discard any comments we might encounter.
1802 (parse_params): If discard_comments_in_macro_exp is false,
1803 ignore comments in the macro parameter list.
1804 * gcc.c (cpp_unique_options): Add "-CC" option.
1805 (option_map): Map "--comments-in-macros" to "-CC".
1806 * doc/cppopts.texi: Document "-CC" option.
1807 * f/lang-specs.h: Add "-CC" option.
1808 * testsuite/gcc.dg/cpp/maccom1.c: New test.
1809 * testsuite/gcc.dg/cpp/maccom2.c: New test.
1810 * testsuite/gcc.dg/cpp/maccom3.c: New test.
1811 * testsuite/gcc.dg/cpp/maccom4.c: New test.
1812 * testsuite/gcc.dg/cpp/maccom5.c: New test.
1813 * testsuite/gcc.dg/cpp/maccom6.c: New test.
1815 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1818 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1820 2002-04-06 Mark Mitchell <mark@codesourcery.com>
1823 * stor-layout.c (layout_decl): Reset the RTL for the decl.
1826 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1827 RTX_UNCHANGING_P for the functions arguments when a tail call
1830 2002-04-06 Jason Merrill <jason@redhat.com>
1832 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1833 (parse_options_and_default_flags): Set them appropriately.
1834 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1836 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
1838 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1841 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1844 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1845 types come in by-reference. Fix typo in comment.
1847 2002-04-05 David S. Miller <davem@redhat.com>
1849 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1850 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1851 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1852 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1854 2002-04-05 David S. Miller <davem@redhat.com>
1856 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1857 are not going to emit return instructions, emit at least a nop
1858 for the sake of sane backtraces.
1860 2002-04-05 Richard Henderson <rth@redhat.com>
1862 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1864 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
1866 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1868 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
1870 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1871 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1872 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1874 2002-04-05 Andreas Schwab <schwab@suse.de>
1876 * c-convert.c: Include c-common.h.
1877 * Makefile.in (c-convert.o): Updated.
1879 2002-04-05 Jakub Jelinek <jakub@redhat.com>
1881 * mklibgcc.in: Use separate libgcc.map for each multilib.
1882 * Makefile.in (distclean): Don't remove libgcc.map here.
1884 2002-04-05 Jakub Jelinek <jakub@redhat.com>
1886 * Makefile.in (s-mlib): Handle --disable-multilib by separate
1887 genmultilib invocation.
1889 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
1891 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1892 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
1893 to num_gprs for symmetry.
1894 * config/mips/mips.c: Adjust accordingly.
1896 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
1898 * c-common.c (truthvalue_conversion): Rename, update.
1899 * c-common.h (c_common_truthvalue_conversion): New.
1900 * c-convert.c (convert): Update.
1901 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1902 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1903 * c-typeck.c (build_binary_op, build_unary_op,
1904 build_conditional_expr): Update.
1905 * fold-const.c (constant_boolean_node, fold): Use langhook.
1906 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1907 * langhooks.h (struct lang_hooks): New hook.
1908 * stmt.c (expand_decl_cleanup): Use langhook.
1909 * tree.h (truthvalue_conversion): Remove.
1911 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1913 2002-04-05 Alan Modra <amodra@bigpond.net.au>
1915 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1916 Add rules to make null object file.
1918 2002-04-04 Jim Blandy <jimb@redhat.com>
1920 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1921 macro formal parameter names.
1923 2002-04-04 David S. Miller <davem@redhat.com>
1925 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1927 2002-04-04 Richard Henderson <rth@redhat.com>
1930 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1931 Support copies into and out of memory. Don't accept allows_reg
1932 and allows_mem as gospel.
1934 2002-04-04 Richard Henderson <rth@redhat.com>
1937 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1938 (write_dependence_p): Likewise.
1940 2002-04-04 Richard Henderson <rth@redhat.com>
1942 * predict.c (estimate_bb_frequencies): Do frequency calculation
1943 with a volatile temporary.
1945 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
1947 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1949 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1952 * final.c (final_start_function): Don't bump profile_label_no here...
1953 (final_end_function): ...but here.
1955 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1957 * config/sparc/sparc.md (pic): New attribute.
1958 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1960 (split after do_builtin_setjmp_setup): New.
1962 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1965 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1968 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1970 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1971 UNITS_PER_WORD for zero sized aggregates.
1973 2002-04-03 David S. Miller <davem@redhat.com>
1975 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1976 one-character spec for this, just use %(link_gcc_c_sequence).
1978 2002-04-03 David S. Miller <davem@redhat.com>
1980 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1983 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
1985 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1986 (DWARF_FRAME_RETURN_COLUMN): Move.
1987 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1988 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1989 * pa.c (except.h, predict.h): Include.
1991 (store_reg_modify, set_reg_plus_d): Revise prototypes.
1992 (output_ascii): Add cast.
1993 (store_reg_modify): Revise to add frame notes.
1994 (set_reg_plus_d): Likewise.
1995 (compute_frame_size): Include space for eh data registers in frame if
1996 the current function calls eh_return.
1997 (hppa_expand_prologue): Ensure register %r2 is saved if the current
1998 function calls eh_return. Save eh data registers if the current
1999 function calls eh_return. Fix code to add frame notes. Emit
2000 blockage to prevent insns with frame notes being scheduled in the
2001 delay slot of calls.
2002 (hppa_expand_epilogue): Restore eh data registers and do final stack
2003 adjustment if the current function calls eh_return. Don't add frame
2005 (output_call): Revise for change in length of call insn. Don't do
2006 return pointer adjustment for an unconditional jump in the delay slot
2007 of a call when using frame notes.
2008 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
2009 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
2010 (ARG_POINTER_CFA_OFFSET): Define.
2011 * pa.md (return_external_pic): New pattern.
2012 (prologue): Correct formatting. Use return_external_pic if current
2013 function calls eh_return.
2014 (call_internal_symref, call_value_internal_symref,
2015 sibcall_internal_symref, sibcall_value_internal_symref): Change default
2016 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
2018 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
2020 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
2021 list of targets to check using "nop" insn.
2022 * configure: Rebuilt.
2024 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2026 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
2028 2002-04-03 David S. Miller <davem@redhat.com>
2030 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
2031 library sequence passed to the linker.
2032 (LINK_COMMAND_SPEC): Use it.
2033 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
2034 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
2035 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2037 2002-04-03 Jason Merrill <jason@redhat.com>
2039 * except.c (struct eh_status): Remove protect_list.
2040 (begin_protect_partials, end_protect_partials): Remove.
2041 (add_partial_entry): Remove.
2042 * except.h: Remove prototypes.
2044 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
2045 expand_decl_cleanup_eh.
2048 * tree.h (CLEANUP_EH_ONLY): New macro.
2049 * stmt.c (expand_decl_cleanup_eh): New fn.
2050 (expand_cleanups): Check CLEANUP_EH_ONLY.
2051 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
2052 Use expand_decl_cleanup_eh.
2053 (expand_stmt): Adjust.
2054 * c-common.h: Adjust prototype.
2056 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
2058 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
2059 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
2060 (cris_target_asm_function_epilogue): Ditto.
2061 (cris_initial_frame_pointer_offset): Ditto.
2062 (cris_simple_epilogue): Ditto.
2063 (cris_expand_builtin_va_arg): Variable-size types come in
2066 2002-04-03 David S. Miller <davem@redhat.com>
2068 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
2070 (set_fast_math): Correct 'fsr' type.
2072 2002-04-03 Richard Henderson <rth@redhat.com>
2075 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
2076 * toplev.c (check_global_declarations): Use it.
2077 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
2078 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2079 (LANG_HOOKS_DECLS): Add it.
2080 * langhooks.c (lhd_warn_unused_global_decl): New.
2081 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2082 * c-objc-common.c (c_warn_unused_global_decl): New.
2083 * c-tree.h (c_warn_unused_global_decl): Declare.
2084 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2086 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
2088 * langhooks-def.h (lhd_set_decl_assembler_name,
2089 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
2090 (LANG_HOOKS_INITIALIZER): Update.
2091 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
2092 * langhooks.h (struct lang_hooks): New hook.
2093 * tree.c (set_decl_assembler_name): Move to langhooks.c.
2094 (lang_set_decl_assembler_name): Remove.
2095 (init_obstacks): Don't set hook.
2096 (decl_assembler_name): New function.
2097 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
2098 (decl_assembler_name): New.
2099 (lang_set_decl_assembler_name): Remove.
2101 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2103 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
2104 works properly with .hidden symbols.
2105 * configure: Rebuilt.
2106 * config.in: Rebuilt.
2107 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
2108 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
2109 properly with .hidden symbols.
2111 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2114 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
2117 2002-04-03 Richard Henderson <rth@redhat.com>
2120 * sched-rgn.c (sets_likely_spilled): New.
2121 (sets_likely_spilled_1): New.
2122 (add_branch_dependences): Use it.
2124 2002-04-02 Richard Henderson <rth@redhat.com>
2127 * loop.h (LOOP_FIRST_PASS): New.
2128 * loop.c (strength_reduce): Mind it when deciding to unroll.
2129 * toplev.c (rest_of_compilation): Set it.
2131 2002-04-02 David S. Miller <davem@redhat.com>
2133 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
2134 mems_ok_for_ldd_peep when the order of the loads being examined
2136 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
2137 existing comment to increase comprehension of this situation.
2139 2002-04-02 Zack Weinberg <zack@codesourcery.com>
2141 * config/sh/sh.md: Don't use union real_extract.
2143 2002-04-02 Richard Henderson <rth@redhat.com>
2145 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
2147 2002-04-02 David O'Brien <obrien@FreeBSD.org>
2149 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
2150 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
2151 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
2152 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
2153 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
2154 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
2155 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
2156 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
2157 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
2158 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
2159 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
2160 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
2161 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
2162 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
2163 Include as many configury headers via tm_file as possible. This
2164 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
2165 * config/openbsd-oldgas.h: New file.
2166 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
2167 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
2168 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
2169 config/i386/i386-coff.h, config/i386/i386-interix.h,
2170 config/i386/iscdbx.h, config/i386/linux-aout.h,
2171 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
2172 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
2173 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
2174 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
2175 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
2176 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
2177 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
2178 config/i386/vxi386.h: Do not directly include configury headers.
2179 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
2180 Directly include configury headers that are no longer automatically
2181 included by the above headers.
2182 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
2183 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
2184 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
2185 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
2186 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
2187 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
2188 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
2189 (TARGET_VERSION): Define.
2190 * config/i386/beos-elf.h, config/i386/freebsd.h,
2191 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
2192 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2193 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
2194 config/i386/sco5.h, config/i386/sysv4.h
2195 (TARGET_VERSION): Do not need to protect.
2196 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
2197 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
2198 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
2199 config/i386/i386-interix.h, config/i386/linux-aout.h,
2200 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
2201 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
2202 (YES_UNDERSCORES): Do not define - not needed.
2203 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
2204 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2205 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
2206 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
2207 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2208 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
2209 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
2210 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
2212 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
2213 Richard Henderson <rth@redhat.com>
2216 * function.c (assign_temp): Accept either type or decl argument.
2217 Detect variables whose size is too large to fit into an integer.
2218 * stmt.c (expand_decl): Pass the decl, not the type.
2220 2002-04-02 David O'Brien <obrien@FreeBSD.org>
2222 * protoize.c: Match include directory usage with cppdefault.c.
2224 2002-04-03 Jeffrey A Law (law@redhat.com)
2225 Hans-Peter Nilsson <hp@bitrange.com>
2227 * combine.c (simplify_comparison): Avoid narrowing a comparison
2228 with a paradoxical subreg when doing so would drop signficant bits.
2230 2002-04-02 Steve Ellcey <sje@cup.hp.com>
2232 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
2233 if POINTERS_EXTEND_UNSIGNED is defined.
2235 2002-04-02 Richard Henderson <rth@redhat.com>
2238 * local-alloc.c (contains_replace_regs): LO_SUM may contain
2241 2002-04-02 Richard Henderson <rth@redhat.com>
2243 * doc/standards.texi: Document required freestanding libc entry points.
2245 2002-04-02 Alan Modra <amodra@bigpond.net.au>
2247 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
2248 associated splitter. Remove MQ constraint.
2249 (ctrdi_internal4): Correct CCmode clobber.
2251 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
2253 * milli64.S ($$dyncall): New function.
2254 * t-linux (LIB1ASMFUNCS): Revise module list.
2255 (LIB1ASMSRC): Use pa/milli64.S.
2257 2002-04-02 Richard Henderson <rth@redhat.com>
2259 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
2260 rename solaris_sys_varargs_h.
2262 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2264 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
2265 the same mode as its component.
2267 2002-04-02 Richard Henderson <rth@redhat.com>
2270 * final.c (this_is_asm_operands): Export.
2271 * output.h (this_is_asm_operands): Declare.
2272 * config/i386/i386.c (print_operand): Error odd asm operands.
2274 2002-04-02 Richard Henderson <rth@redhat.com>
2277 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
2279 2002-04-01 Richard Henderson <rth@redhat.com>
2282 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
2283 * fixinc/fixincl.x: Rebuild.
2285 2002-04-01 Richard Henderson <rth@redhat.com>
2287 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
2288 (atomic_alloc, atomic_free): New.
2289 (SIZE, MASK_FOR, PTR_IN): New.
2290 (emergency_reg_state, emergency_reg_state_free): New.
2291 (emergency_labeled_state, emergency_labeled_state_free): New.
2292 (reg_state_alloced, labeled_state_alloced): New.
2293 (alloc_reg_state, free_reg_state): New.
2294 (alloc_label_state, free_label_state, free_label_states): New.
2295 (push, pop, dup_state_stack, free_state_stack): Use them.
2296 (desc_label_state): Likewise.
2297 (uw_frame_state_for): Free label states and state stack.
2298 (uw_update_reg_address): Eliminate warnings.
2300 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
2302 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
2303 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
2305 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2307 * c-decl.c (grokdeclarator): Update.
2308 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2309 * c-tree.h (c_mark_addressable): New.
2310 * c-typeck.c (default_function_array_conversion, build_unary_op,
2311 build_array_ref, convert_for_assignment): Update.
2312 (mark_addressable): Rename.
2313 * calls.c (try_to_integrate, expand_call): Use langhook.
2314 * expr.c (expand_expr): Use langhook.
2315 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
2316 * langhooks.h (struct lang_hooks): New hook.
2317 * stmt.c (expand_asm_operands): Use langhook.
2318 * tree.h (mark_addressable): Remove.
2320 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2322 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2324 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
2327 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2329 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
2330 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
2332 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2334 * c-common.c (unsigned_conversion_warning, convert_and_check,
2335 unsigned_type, signed_type, shorten_compare,
2336 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
2337 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
2338 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
2340 * c-decl.c (grokdeclarator): Update.
2341 * c-format.c (check_format_types): Update.
2342 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2343 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2344 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
2345 * convert.c (convert_to_integer): Use new hooks.
2346 * expmed.c (make_tree): Use new hooks.
2347 * expr.c (store_expr): Use new hooks.
2348 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
2349 all_ones_mask_p, unextend, fold): Use new hooks.
2350 * langhooks.h (struct lang_hooks_for_types): New hooks.
2351 * tree.h (signed_or_unsigned_type, signed_type,
2352 unsigned_type): Remove.
2354 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2355 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2357 2002-03-31 Richard Henderson <rth@redhat.com>
2359 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
2360 (desc_frgr_mem): Fix reference to f16-f31.
2362 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2364 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
2365 RTVEC_ELT): Const-ify.
2366 * varray.h (VARRAY_CHECK): Const-ify.
2367 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
2368 ggc_mark_rtvec, ggc_mark): Const-ify.
2370 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2372 * diagnostic.c: Include langhooks-def.h.
2373 * Makefile.in (diagnostic.o): Update.
2375 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
2377 * c-common.c (c_unsafe_for_reeval): Rename.
2378 * c-common.h (c_unsafe_for_reeval): Rename.
2379 * c-decl.c (finish_incomplete_decl): Rename.
2380 (c_init_decl_processing): Don't set langhook.
2381 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2382 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2383 * c-objc-common.c (c_objc_common_init): Don't set langhook.
2384 * c-tree.h (finish_incomplete_decl): Rename.
2385 * langhooks-def.h (lhd_unsafe_for_reeval): New.
2386 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
2387 (LANG_HOOKS_INITIALIZER): Update.
2388 * langhooks.c (lhd_unsafe_For_reeval): New.
2389 * langhooks.h (struct langhooks): New hooks.
2390 * toplev.c (incomplete_decl_finalize_hook): Remove.
2391 (wrapup_global_declarations): Update.
2392 * tree.c (lang_unsafe_for_reeval): Remove.
2393 (unsafe_for_reeval): Update.
2394 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
2397 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2398 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2400 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
2402 * diagnostic.c (print_error_function): Remove.
2403 (default_print_error_function): Rename.
2404 (report_error_function): Update.
2405 * diagnostic.h (print_error_function): Remove.
2406 (default_print_error_function): Remove.
2407 * langhooks-def.h (struct diagnostic_context): Predeclare.
2408 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
2409 (LANG_HOOKS_INITIALIZER): Update.
2410 * langhooks.h (struct diagnostic context): Predeclare.
2411 (struct lang_hooks): New hook.
2413 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2415 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
2416 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
2418 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
2419 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
2420 of PIC_OFFSET_TABLE_REGNUM thruout.
2421 * config/rs6000/rs6000.md: Likewise.
2422 * config/rs6000/darwin.h: Likewise.
2424 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2426 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
2427 unsigned HOST_WIDE_INT, not unsigned int.
2429 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2431 PR middle-end/6096, middle-end/6098, middle-end/6099
2432 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
2434 (fill_slots_from_thread): Likewise.
2436 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2438 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
2439 floating fields in float regs.
2440 (function_arg_record_value_2): Likewise.
2442 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
2444 * config/mmix/mmix.md (define_constants): Remove misleading
2445 FIXME. Add MMIX_fp_rO_OFFSET.
2446 ("nonlocal_goto_receiver"): Don't have stack-frame address of
2447 saved rO as part of the pattern. Remove FIXME.
2448 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
2449 here, at output-time.
2451 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2454 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
2456 (output_v9branch): Likewise.
2458 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
2460 * gcc.c: Revert previous patch for now.
2461 * config/i386/djgpp.h: Likewise.
2463 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
2465 * config/mmix/crti.asm (_init): Register _fini with atexit.
2466 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
2468 2002-03-31 Richard Henderson <rth@redhat.com>
2471 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
2472 (ASM_OUTPUT_DEF_FROM_DECLS): New.
2474 2002-03-31 Richard Henderson <rth@redhat.com>
2476 * libgcc2.c (__bb_exit_func): Make static.
2478 * config/alpha/alpha.md (trap): New.
2480 2002-03-31 Richard Henderson <rth@redhat.com>
2482 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
2483 promoted argument types; build trap.
2484 (expand_builtin_trap): New.
2485 (expand_builtin): Use it.
2486 * stmt.c (expand_nl_goto_receivers): Likewise.
2487 * expr.h (expand_builtin_trap): Declare.
2488 * libfuncs.h (LTI_abort, abort_libfunc): New.
2489 * optabs.c (init_optabs): Init abort_libfunc.
2491 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
2493 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
2494 (LINK_COMMAND_SPEC): ... from here.
2495 (init_gcc_specs): Duplicate it here too, omitting
2496 shared_name in the second copy.
2497 (init_spec): Test for duplicate
2498 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
2500 2002-03-30 David S. Miller <davem@redhat.com>
2502 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2503 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
2505 2002-03-30 Roger Sayle <roger@eyesopen.com>
2506 Richard Henderson <rth@redhat.com>
2508 * regmove.c (combine_stack_adjustments_for_block): Avoid
2509 emitting a stack adjustment of zero bytes. Let delete_insn
2512 2002-03-30 Richard Henderson <rth@redhat.com>
2514 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
2515 (sparc_emitting_epilogue): New.
2516 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
2517 * config/sparc/sparc-protos.h: Update.
2518 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
2519 (TARGET_SWITCHES): Update.
2520 * config/sparc/sparc.md (return): Remove.
2521 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
2522 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
2523 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
2524 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
2525 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
2526 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
2527 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
2528 Remove MASK_EPILOGUE.
2529 * doc/invoke.texi: Update.
2531 2002-03-30 Daniel Berlin <dan@dberlin.org>
2533 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
2534 CPP will start the file for us.
2536 2002-03-30 Richard Henderson <rth@redhat.com>
2539 * config/ia64/ia64.c (group_barrier_needed_p): Special case
2540 prologue_allocate_stack.
2541 (ia64_single_set): Use insn codes for recognition of special
2542 cases, not rtl matching.
2543 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
2545 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
2547 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
2549 2002-03-30 Richard Henderson <rth@redhat.com>
2552 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
2553 or -fomit-frame-pointer with profiling.
2554 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2555 (FUNCTION_PROFILER): Do nothing.
2556 (PROFILE_HOOK): New.
2557 * config/sparc/sparc.c (sparc_override_options): Don't check
2558 code models for profiling.
2559 (sparc_function_profiler): Remove.
2560 (sparc_profile_hook): New.
2561 * config/sparc/sparc-protos.h: Update.
2563 2002-03-30 Jakub Jelinek <jakub@redhat.com>
2565 PR optimization/6086
2566 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
2567 of SUBREG of volatile MEM or because the MEM was mode dependent,
2568 return CLOBBER instead of unmodified SUBREG.
2570 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
2572 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
2573 when not optimizing.
2575 * toplev.c (rest_of_compilation): Cann mark_constant_function
2576 only when optimizing.
2578 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
2581 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
2582 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
2583 (try_optimize_cfg): clear all AUX fields.
2585 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
2586 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
2587 (ix86_address_cost): Be prepared for SUBREGed registers.
2588 (legitimate_address_p): Accept SUBREGed registers.
2590 2002-03-29 Richard Henderson <rth@redhat.com>
2593 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
2595 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2597 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
2598 for aggregate and TFmode types.
2600 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
2602 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
2604 2002-03-29 Richard Henderson <rth@redhat.com>
2607 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
2608 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
2610 2002-03-29 Richard Henderson <rth@redhat.com>
2613 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
2614 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
2615 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
2616 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
2618 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
2620 2002-03-29 Dale Johannesen <dalej@apple.com>
2622 * loop.c (combine_movables): Do allow combination of pseudos.
2624 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
2626 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
2627 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
2628 No functional change except ...
2629 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
2630 * doc/install.texi (*-*-freebsd*): Document port configuration.
2632 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
2634 * Makefile.in (convert.o, calls.o, expmed.o): Update.
2635 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
2637 * builtin-types.def (BT_PTRMODE): Update.
2638 * c-common.c (type_for_size): Rename c_common_type_for_size.
2639 (type_for_mode): Similarly.
2640 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
2642 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
2643 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
2644 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
2646 * c-typeck.c (common_type, comptypes, default_conversion):
2648 * calls.c: Include langhooks.h.
2649 (emit_library_call_value_1): Use new hooks. Avoid redundant
2651 * convert.c: Include langhooks.h
2652 (convert_to_pointer, convert_to_integer): Use new hooks.
2653 * except.c (init_eh): Similarly.
2654 * expmed.c: Include langhooks.h.
2655 (expand_mult_add): Use new hooks.
2656 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
2657 try_casesi): Similarly.
2658 * fold-const.c (optimize_bit_field_compare, make_range,
2659 decode_field_reference, fold_truthop, fold): Similarly.
2660 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
2661 put_var_into_stack): Similarly.
2662 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
2663 LANG_HOOKS_TYPE_FOR_SIZE): New.
2664 (LANG_HOOKS_TYPES_INITIALIZER): Update.
2665 * langhooks.h (lang_hooks_for_types): New hooks.
2666 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
2667 * tree.c (get_unwidened, get_narrower): Similarly.
2668 * tree.h (type_for_mode, type_for_size): Remove.
2669 * varasm.c (force_const_mem): Use new hooks.
2670 * utils2.c (nonbinary_modular_operation): Update.
2672 * objc-act.c (handle_impent): Update.
2673 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
2676 2002-03-29 Steve Ellcey <sje@cup.hp.com>
2678 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
2679 * config/ia64/ia64.c (basereg_operand): New.
2680 * config/ia64/ia64-protos.h (basereg_operand): Declare.
2681 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
2683 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
2685 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
2686 unwind information when frame_pointer_needed.
2687 (mmix_assemble_integer): Tweak wording in comment.
2689 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
2691 * Makefile.in (except.o): Update.
2692 * except.c: Include langhooks.h.
2693 (init_eh): Use langhook.
2694 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
2695 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2696 (LANG_HOOKS_INITIALIZER): Update.
2697 * langhooks.h (lang_hooks_for_types): New.
2698 (struct lang_hooks): Add it.
2699 * tree.c (make_lang_type_fn, make_lang_type): Remove.
2700 * tree.h (make_lang_type_fn, make_lang_type): Remove.
2702 * alpha/alpha.c: Include langhooks.h.
2703 (alpha_build_va_list): Use langhook.
2704 * d30v/d30v.c: Include langhooks.h.
2705 (d30v_build_va_list): Use langhook.
2706 * i386/i386.c: Include langhooks.h.
2707 (ix86_build_va_list): Use langhook.
2708 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2709 * s390/s390.c: Include langhooks.h.
2710 (s390_build_va_list): Use langhook.
2711 * stormy16/stormy16.c: Include langhooks.h.
2712 (stormy16_build_va_list): Use langhook.
2714 2002-03-29 Jakub Jelinek <jakub@redhat.com>
2717 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2719 (length): Compute variable length for branches/calls/jumps here.
2720 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2721 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2722 define branch_type attribute.
2723 (divsi3_sp32): Maximum length is 6 not 7.
2724 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2725 call_address_untyped_struct_value_sp32,
2726 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2727 * config/sparc/sparc.c (empty_delay_slot): New function.
2728 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2729 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
2731 2002-03-29 Jakub Jelinek <jakub@redhat.com>
2733 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
2734 nonzero_bits if not needed.
2735 (nonzero_bits) [XOR]: Likewise.
2736 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
2737 reg_last_set_mode and mode are both MODE_INT, but not equal.
2738 (record_value_for_reg): Compute reg_last_set_nonzero_bits
2739 in nonzero_bits_mode for MODE_INT modes.
2741 2002-03-28 Richard Henderson <rth@redhat.com>
2744 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2745 to GAS. Correct drift between alternatives.
2747 2002-03-28 Richard Henderson <rth@redhat.com>
2750 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2752 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
2754 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2755 emulation to the linker.
2757 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
2759 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2760 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2762 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
2764 * combine.c (simplify_and_const_int): Make sure to apply mask
2765 when force_to_mode returns a constant integer. PR3311.
2767 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2769 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2771 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2773 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2774 and Objective-C Dialect Options.
2776 2002-03-28 Richard Henderson <rth@redhat.com>
2778 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2779 comparison should be done vs !=0 not >0 return code. Tidy cases.
2781 2002-03-28 Richard Henderson <rth@redhat.com>
2783 * c-decl.c (finish_function): New arg can_defer_p. Pass it
2784 on to c_expand_body.
2785 * c-tree.h (finish_function): Update decl.
2786 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2788 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
2790 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2792 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
2794 * rtlanal.c: Include flags.h
2795 (may_trap_p): Do not mark FP operations if trapping
2796 if !flag_trapping_math
2797 * Makefile.in (rtlanal.o): Add dependency on flag.h
2798 * ifcvt.c (noce_operand_ok): Avoid the lameness.
2800 2002-03-27 Zack Weinberg <zack@codesourcery.com>
2802 * mips.md: Use dconst1, not 1.0, as first argument of
2803 REAL_VALUE_LDEXP. Don't use union real_extract.
2805 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2807 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2808 rather than $target. Heed program_prefix and
2809 program_transform_name. Search for gas in cross-compiler case too.
2810 "test -x" rather than "test -f".
2811 (gcc_cv_ld): Likewise.
2812 (gcc_cv_nm): Heed program_prefix and program_transform_name.
2813 (gcc_cv_objdump): Likewise.
2814 * configure: Regenerate.
2816 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2818 * Makefile.in (attribs.o): Update.
2819 * attribs.c: Include langhooks.h.
2820 (decl_attributes): Use langhook.
2821 * c-decl.c (insert_default_attributes): Rename.
2822 * c-tree.h (c_insert_default_attributes): New.
2823 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2824 (LANG_HOOKS_INITIALIZER): Update.
2825 * langhooks.h (struct lang_hooks): New hook.
2826 * tree.h (insert_default_attributes): Remove.
2828 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2830 2002-03-27 Andreas Schwab <schwab@suse.de>
2832 * config/i386/i386.c (classify_argument): Also check for
2835 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2837 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2840 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
2842 * i960.md (ret): Set PC.
2843 (nonlocal_goto): Fix expander.
2844 * builtins.c (epxand_builin_longjmp): Check that we've emitted
2847 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
2849 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2852 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2854 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2855 assigning to BLOCK_FOR_INSN directly.
2857 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
2859 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2861 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2863 * c-common.c (c_expand_expr): Fix prototype.
2864 * c-common.h (c_expand_expr): Always declare, update.
2865 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2866 * c-objc-common.c (c_objc_common_init): No global hook.
2867 * expr.c (expand_expr): Use langhook.
2868 * expr.h (enum expand_modifier): Conditionally declare.
2869 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2870 (LANG_HOOKS_INITIALIZER): Update.
2871 * langhooks.c (lhd_expand_expr): New.
2872 * langhooks.h (struct lang_hooks): New hook.
2873 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2874 (lang_independent_init): Don't default hook.
2876 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2878 2002-03-27 Richard Henderson <rth@redhat.com>
2881 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2882 TARGET_CONST_GP. Simplify conditions.
2884 2002-03-27 Richard Henderson <rth@redhat.com>
2886 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2887 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2888 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2890 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
2892 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2893 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2894 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2895 Remove unnecessary masks.
2896 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2897 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2898 -mwindows, -mdll switches and their negations.
2900 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2902 * gcc-common.c (lang_mark_false_label_stack): Remove.
2903 * ggc.h (lang_mark_false_label_stack): Similarly.
2905 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
2907 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2909 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2910 or __rtems_ is defined.
2912 2002-03-26 Richard Henderson <rth@redhat.com>
2914 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2915 if a non-trivial load was emitted.
2916 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
2917 in high+extra+low case.
2919 2002-03-26 Richard Henderson <rth@redhat.com>
2921 * config.gcc (sparc*-solaris): Use float_format=sparc.
2923 2002-03-26 Richard Henderson <rth@redhat.com>
2925 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2926 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2927 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2928 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2929 (WINT_TYPE_SIZE): Fix at 32.
2931 2002-03-26 Richard Henderson <rth@redhat.com>
2933 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2934 until after eh landing pad generation.
2935 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2936 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2938 2002-03-26 Richard Henderson <rth@redhat.com>
2940 * expr.h (ADD_PARM_SIZE): One more convert for INC.
2942 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
2944 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
2945 and warning switches.
2946 (cc1_options): Likewise.
2948 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
2950 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2951 Restore more of the signal context. Set no_reg_stack_frame.
2952 * config/ia64/unwind-ia64.c (unw_state_record):
2953 Add no_reg_stack_frame, comments.
2954 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2955 (uw_update_context): Adjust bsp when unwinding from leaf,
2956 but not signal frame.
2958 2002-03-26 David Edelsohn <edelsohn@gnu.org>
2960 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2962 2002-03-26 Bob Wilson <bob.wilson@acm.org>
2964 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2966 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
2969 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2970 "Add a pool_range attribute", which was lost during the ARM/Thumb
2973 2002-03-26 Bob Wilson <bob.wilson@acm.org>
2975 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2976 a register into the MAC16 accumulator.
2978 2002-03-26 Andrew Cagney <ac131313@redhat.com>
2980 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2981 (Warning Options): Document -Wswitch-enum.
2982 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
2984 (warn_switch_enum): Define variables.
2985 * flags.h (warn_switch_enum): Declare variables.
2986 * stmt.c (expand_end_case_type): When warn_switch_enum /
2987 -Wswitch-enum, perform switch checks.
2990 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
2992 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2993 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2994 (reload_muladdsi_compare0_scratch): Delete.
2996 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
2998 * doc/install.texi (*-*-freebsd*): Update.
3000 2002-03-26 Richard Henderson <rth@redhat.com>
3002 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
3003 (SUB_PARM_SIZE): Cast DEC to ssizetype.
3005 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
3006 types from the normal argument frame.
3008 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
3009 variable sized objects by reference.
3010 (sparc_va_arg): Receive them by reference too.
3012 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
3014 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
3015 code to not restoring global registers.
3017 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
3019 * Makefile.in (ggc-common.o): Update.
3020 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
3021 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3022 * c-tree.h (c_mark_tree): New.
3023 * ggc-common.c: Include langhooks.h.
3024 (gcc_mark_trees): Use new langhook.
3025 * ggc-callbacks.c: Delete file.
3026 * ggc.h (lang_mark_tree): Remove.
3027 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
3028 (LANG_HOOKS_INITIALIZER): Update.
3029 * langhooks.h (struct lang_hooks): New hook.
3031 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3033 2002-03-25 Zack Weinberg <zack@codesourcery.com>
3035 * doc/cpp.texi: Exclude entire Top node from printed manual.
3036 Move option index after directive index. Insert page breaks
3037 before GFDL and concept index. Index environment variables
3038 with command line options.
3039 * doc/cppenv.texi: Use @vtable for environment variable list.
3040 Add paragraph explaining semantics of empty elements in path
3041 variables. Exclude a cross-reference to Fishkill from the
3042 manpage. Remove an unnecessary cross-reference of the entry
3043 right above the referer. Don't use @anchor in text that goes
3045 * doc/cppopts.texi: Cross-reference the environment variables
3046 section, not the specific environment variable, for consistency.
3048 2002-03-25 Richard Henderson <rth@redhat.com>
3050 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
3051 anywhere in the block. Don't refer to insns that have been
3052 removed from the chain. Iterate backward through the new insns.
3053 Don't refer to edges that have been removed.
3055 2002-03-26 Alan Modra <amodra@bigpond.net.au>
3057 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
3058 test for overflow of constant.
3060 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
3063 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
3064 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
3065 these patterns on arm_archv4.
3067 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
3069 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
3072 2002-03-25 Zack Weinberg <zack@codesourcery.com>
3074 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
3075 float_handled, float_handler, float_signal, set_float_handler,
3076 and do_float_handler. Set handler for SIGFPE to crash_signal.
3077 * toplev.h: Don't prototype do_float_handler.
3079 * c-lex.c: Fold parse_float into lex_number. Make warning
3080 about portability of hex float constants more informative, and
3081 don't issue it on top of a syntax error.
3082 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
3084 * real.h: Define REAL_VALUE_ABS here...
3085 * simplify-rtx.c: ... not here. Fold check_fold_consts,
3086 simplify_unary_real, simplify_binary_real, and
3087 simplify_binary_is2orm1 into their callers.
3088 * tree.c: Fold build_real_from_int_cst_1 into caller.
3090 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
3092 * tsystem.h: Include float.h here...
3093 * libgcc2.c: ... not here.
3095 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
3097 Fixes for: PR bootstrap/3591, target/5676
3098 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
3099 defined. Do not disable exceptions or rtti.
3100 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
3101 mcore.h. Disable exceptions and rtti, since they are not
3104 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
3106 * c-decl.c (maybe_build_cleanup): Remove.
3107 * expr.c (expand_expr): Use langhook.
3108 * langhooks-def.h (lhd_return_null_tree,
3109 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
3110 (LANGHOOKS_INITIALIZER): Update.
3111 * langhooks.c (lhd_return_null_tree): New.
3112 * langhooks.h (struct lang_hooks): New hook.
3113 * tree-inline.c (initialize_inlined_parameters): Use langhook.
3114 * tree.h (maybe_build_cleanup): Remove.
3116 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3118 * regrename.c (build_def_use): Move recog_memoized
3119 before extract_insn.
3121 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3124 * expr.c (emit_group_store): Handle storing into CONCAT.
3126 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3128 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
3129 corresponding MATCH_DUP.
3131 2002-03-24 Richard Henderson <rth@redhat.com>
3133 * unroll.c (unroll_loop): Zero label_map.
3135 * gcse.c: Include except.h.
3136 * Makefile.in (gcse.o): Update.
3138 2002-03-24 Richard Henderson <rth@redhat.com>
3140 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
3141 Do resolve_unique_section before shared data clause.
3143 2002-03-24 Richard Henderson <rth@redhat.com>
3145 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
3147 2002-03-24 Richard Henderson <rth@redhat.com>
3149 * recog.c (peephole2_optimize): Split blocks when EH insns are
3150 generated in the middle of a block. Do global life update if
3153 2002-03-24 Richard Henderson <rth@redhat.com>
3155 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
3157 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3160 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3161 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
3162 (init_dependency_output): Don't make no_output decision here.
3164 2002-03-24 Andrew Cagney <ac131313@redhat.com>
3166 * stmt.c (check_for_full_enumeration_handling): Remove tests of
3167 warn_switch. Update description.
3168 (expand_end_case_type): Call check_for_full_enumeration_handling
3171 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3173 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
3174 (m68hc11_split_move): Call it to see if the source and destination
3175 operands use the same direction auto inc/dec mode, otherwise make the
3176 source an offsetable memory operand and generate an add.
3178 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3180 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
3181 register for operand 2.
3182 ("*subsi3_zero_extendqi"): Likewise.
3183 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
3184 bits so that it is compatible with a pop.
3185 ("*andhi3_gen"): Likewise.
3186 ("xorhi3"): Likewise.
3188 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3190 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
3192 (cpp_post_options): ... not here.
3194 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3195 Aldy Hernandez <aldyh@redhat.com>
3197 Removal of separate preprocessor cpp0.
3199 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
3200 cpp0, install-common): Update.
3201 * c-common.c (flag_preprocess_only): New.
3202 (c_common_init): Preprocess for -E.
3203 * c-common.h (flag_preprocess_only): New.
3204 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
3205 * c-objc-common.c (c_init_decl_processing): Exit quickly
3206 for NULL return from c_common_init.
3207 * cpplib.h (cpp_preprocess_file): New.
3208 * cppmain.c (main, general_init, pfile, progname): Remove.
3209 (do_preprocessing): Rename cpp_preprocess_file, don't call
3210 cpp_finish. Don't close stdout here.
3211 (setup_callbacks): Update prototype.
3212 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
3214 * tradcpp.c (main): Ignore -quiet.
3216 * lang-specs.h (default_compilers): Preprocess with cc1obj.
3218 2002-03-24 Richard Henderson <rth@redhat.com>
3220 PR optimization/5742
3221 * machmode.def: Add inner mode field to complex modes.
3222 * config/mips/mips.c (mips_function_value): Always define. Add
3223 new argument to handle libcalls.
3224 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
3225 (FUNCTION_VALUE): Likewise.
3226 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
3227 * config/mips/mips-protos.h: Update.
3229 2002-03-23 Richard Henderson <rth@redhat.com>
3231 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
3232 * config/sparc/sparc-protos.h: Update.
3233 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
3235 2002-03-23 Richard Henderson <rth@redhat.com>
3237 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
3238 _start or _init begins the text segment.
3240 2002-03-23 David Edelsohn <edelsohn@gnu.org>
3242 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
3243 not HOST_WIDEST_INT.
3244 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
3246 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
3249 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
3250 operand argument to output_return_instruction.
3251 * arm.c (arm_print_operand, case 'd'): If the operand is
3252 const_true_rtx then just return.
3253 (arm_print_operand, case 'D'): If the operand is const_true_rtx
3256 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3258 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
3259 (Warning Options): Document -Wswitch-default.
3260 * toplev.c (W_options): Add -Wswitch-default. Update comment on
3262 (warn_switch_default): Define variable.
3263 (warn_switch): Update comment.
3264 * flags.h (warn_switch_default): Declare variable.
3265 (warn_switch): Update comment.
3266 * stmt.c (expand_end_case): Check for and, when
3267 warn_switch_no_default, warn of a missing default case.
3269 2002-03-23 Alan Modra <amodra@bigpond.net.au>
3271 * real.h (N): Special case 128 bit doubles.
3273 * combine.c (simplify_comparison): When widening modes, ignore
3274 sign extension on CONST_INTs.
3276 2002-03-22 Bob Wilson <bob.wilson@acm.org>
3278 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
3279 passed to adjust_address. Fix comment formatting.
3282 2002-03-22 Zack Weinberg <zack@codesourcery.com>
3284 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
3285 Always make REAL_VALUE_TYPE a struct containing an array of
3286 HOST_WIDE_INT, not a double. Tidy up the code deciding how
3287 big it is. Don't declare or use union real_extract.
3289 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
3290 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
3291 (print_operand), config/arm/arm.c (output_move_double),
3292 config/arm/arm.md (consttable_4, consttable_8),
3293 config/romp/romp.c (output_fpops), config/s390/s390.h
3294 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
3295 (xtensa_output_literal): Don't use union real_extract.
3297 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
3298 (sfmode_constant_to_ulong), config/ns32k/merlin.h
3299 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
3300 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
3301 (PRINT_OPERAND): Don't use local version of union
3304 * config/convex/convex.c (check_float_value), config/vax/vax.c
3305 (vax_float_literal), config/m88k/m88k.md (divdf3),
3306 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
3307 config/pdp11/pdp11.c (output_move_quad): Don't do host
3308 arithmetic on target floating point quantities.
3310 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
3311 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
3313 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
3314 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
3316 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
3317 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
3319 * print-rtl.c (print_rtx): Disable code which needs
3320 floating-point emulator.
3321 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
3322 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
3323 depending on HOST_FLOAT_FORMAT to be defined properly.
3325 * config/1750a/1750a.c (get_double, float_label): Delete.
3326 (print_operand): Delete huge commented-out chunk. Use
3327 REAL_VALUE_TO_DECIMAL.
3328 * config/1750a/1750a-protos.h: Delete prototypes of deleted
3330 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
3332 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
3333 Use REAL_VALUE_TO_DECIMAL as ELF version does.
3334 * config/m88k/m88k.c (real_power_of_2_operand,
3335 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
3336 real_extract out of the union; run the input through
3337 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
3338 from that into the union.
3339 * config/pdp11/pdp11.c (output_move_double): Rearrange
3340 parentheses to make automatic indenter happy.
3342 * doc/tm.texi (Cross-compilation): Rename node to "Floating
3343 Point" and rewrite to describe current situation. Also adjust
3344 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
3346 * doc/rtl.texi: Adjust cross reference.
3348 2002-03-22 Bob Wilson <bob.wilson@acm.org>
3350 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
3351 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
3352 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
3353 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
3354 prevent use of sp as a reload register.
3355 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
3356 non_acc_reg_operand.
3357 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
3358 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
3359 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
3360 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
3362 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
3364 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
3365 * cpplex.c (unterminated): Delete.
3366 (parse_string): No string literal may extend over multiple
3367 lines. Suppress the error when preprocessing assembly.
3368 * cppmain.c (scan_translation_unit): Strings are single-line.
3370 * doc/cpp.texi: Update to match.
3372 2002-03-22 Jakub Jelinek <jakub@redhat.com>
3374 PR optimization/5854
3375 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
3377 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
3378 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
3379 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
3380 const0 if scratch register was not allocated.
3381 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
3382 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
3384 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
3385 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
3386 with GEN_INT (...) everywhere. Remove constraints in define_split
3388 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
3389 require scratch register for setting 0 into regs/non-pushable memory.
3391 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
3393 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
3394 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
3396 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
3398 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
3399 * cppinit.c (cpp_create_reader): On by default.
3400 (cpp_handle_option): Handle -W[no-]endif-labels.
3401 (cpp_post_options): Also enable if -pedantic.
3402 * cpplib.c (do_else): Use it.
3403 (do_endif): Likewise.
3404 * doc/cppopts.texi: Document new option.
3405 * doc/invoke.texi: Document new option.
3407 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
3409 * config/i386/i386.c, config/i386/i386.md: Change all occurences
3410 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
3412 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
3414 * flow.c (calculate_global_regs_live): Clear aux fields of
3417 2002-03-22 Jakub Jelinek <jakub@redhat.com>
3419 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
3420 REG or MEM subregs, pass rtx * instead of rtx to it.
3421 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
3422 rtx * instead of rtx to alter_subreg.
3423 * config/m32r/m32r.c (gen_split_move_double): Likewise.
3424 * config/pj/pj.c (pj_output_rval): Likewise.
3426 2002-03-22 Richard Henderson <rth@redhat.com>
3429 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
3430 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
3431 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
3432 (ia64_expand_prologue): Look at int_regs, not words, for number
3433 of incomming int regs.
3435 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
3437 * expr.c (expand_expr): A RESULT_DECL is part of a call.
3439 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
3441 * toplev.c (flag_loop_optimize, flag_crossjumping):
3442 New static variables.
3443 (rest_of_compilation): Conditionalize crossjumping and
3445 (parse_options_and_default_flags): Default loop_optimize and
3447 (lang_independent_options): Add -fcrossjumping and -floop-optimize
3448 * invoke.texi (crossjumping, loop-optimize): Document.
3450 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3452 * real.c (eiisneg): Move outside #ifdef NANS.
3454 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
3456 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
3457 frequencies match; avoid match on different loop depths.
3458 (try_crossjump_to_bb): Kill tests that no longer brings time
3460 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
3462 (split_edge): Likewise.
3464 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
3467 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
3468 * cfgrtl.c: Include insn-config.h
3469 (split_block) Dirtify block in presence of conditional execution
3471 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3473 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
3474 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
3475 (function_arg): Constify CUMULATIVE_ARGS.
3476 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
3477 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
3478 (UNITS_PER_DOUBLE): New macro.
3479 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
3480 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
3481 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
3482 fp_regs and stack_words.
3483 (EABI_FLOAT_VARARGS_P): New macro.
3484 * config/mips/mips.c (struct mips_arg_info): New.
3485 (mips_arg_info): New function.
3486 (function_arg_advance): Use it. Add adjustment instructions here
3487 rather than in function_arg.
3488 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
3489 for VOIDmode at the beginning of the function.
3490 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
3491 (function_arg_pass_by_reference): Likewise.
3492 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
3493 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
3494 (mips_va_start): Likewise. Use the new stack_words field of
3495 CUMULATIVE_ARGS to set up overflow area. Reformat.
3496 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
3497 doubles and other types, aligning the overflow pointer for non-doubles
3498 too. Remove some code duplication. Replace hard-coded constants.
3500 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3502 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
3503 (CLASS_UNITS): Undefine.
3504 (CLASS_MAX_NREGS): Use FP_INC.
3505 * config/mips/mips.c (compute_frame_size): Likewise.
3506 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
3508 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
3510 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
3511 prototype, and handle lexing numbers and identifiers.
3512 (parse_identifier): Update to new form of parse_slow.
3513 (parse_number): Fast path only, use parse_slow otherwise.
3514 (_cpp_lex_direct): Update calls to parse_number.
3516 2002-03-21 DJ Delorie <dj@redhat.com>
3518 * bb-reorder.c (make_reorder_chain_1): Protect against
3519 when redundant edges are omitted.
3520 * predict.c (dump_prediction): Likewise.
3522 2002-03-21 Richard Henderson <rth@redhat.com>
3525 * fixinc/inclhack.def (solaris_stdio_tag): New.
3526 * fixinc/fixincl.x: Regenerate.
3528 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
3531 * c-typeck.c (process_init_element): Flag non-static
3532 initialization of a flexible array member as illegal.
3534 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3536 * config/rs6000/t-linux64: New.
3537 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
3538 t-ppccomm. Use t-rs6000 and t-linux64.
3539 (powerpc64-*-gnu* <tmake_file>): Likewise.
3540 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
3541 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
3542 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
3544 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
3546 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
3547 flag_really_no_inline instead of optimize == 0.
3549 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
3551 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
3553 * flags.h (flag_really_no_inline): New.
3555 * c-common.c (c_common_post_options): Initialize
3556 flag_really_no_inline.
3558 * toplev.c (flag_really_no_inline): New.
3560 2002-03-21 Jakub Jelinek <jakub@redhat.com>
3562 * config/avr/avr.md (length): Fix length computation for
3563 conditional branches.
3565 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
3567 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
3568 sdbout.o, profile.o): Update.
3569 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
3571 * c-common.h (gettags): Move here from tree.h.
3572 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
3573 insert_block, getdecls, kept_level_p, global_bindings_p): New.
3574 * dbxout.c (dbxout_init): Use getdecls langhook.
3575 * expr.c (expand_expr): Use insert_block langhook.
3576 * fold-const.c: Include langhooks.h.
3577 (fold_range_test, fold_binary_op_with_conditional_arg,
3578 fold): Use global_bindings_p langhook.
3579 * integrate.c (expand_inline_function): Use insert_block langhook.
3580 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
3581 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
3582 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
3583 LANG_HOOKS_GETDECLS): New.
3584 (LANG_HOOKS_INITIALIZER): Update.
3585 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
3587 * langhooks.h (struct lang_hooks_for_decls): New.
3588 (struct lang_hooks): Update.
3589 * profile.c: Include langhooks.h.
3590 (output_func_start_profiler): Use new langhooks.
3591 * sdbout.c: Include langhooks.h.
3592 (sdbout_init, sdbout_finish): Use getdecls langhook.
3593 * stmt.c: Include langhooks.h.
3594 (expand_fixup, fixup_gotos): Use new langhooks.
3595 * stor-layout.c: Include langhooks.h.
3596 (variable_size): Use global_bindings_p langhook.
3597 * toplev.c (compile_file): Use getdecls langhook.
3598 * tree-inline.c (remap_block): Use insert_block langhook.
3599 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
3600 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
3602 2002-03-21 Richard Henderson <rth@redhat.com>
3604 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
3605 constants in .data when -fpic.
3607 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3609 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
3612 2002-03-21 Tom Tromey <tromey@redhat.com>
3614 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
3616 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3618 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
3620 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
3622 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
3623 Richard Henderson <rth@redhat.com>
3626 * c-common.c (c_expand_expr): Preserve result of a statement
3627 expression if needed.
3629 2002-03-21 Jakub Jelinek <jakub@redhat.com>
3632 * genrecog.c (maybe_both_true_mode): Remove.
3633 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
3634 * machmode.def (Pmode): Likewise.
3636 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
3638 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
3639 (nonlocal_mentioned_p_1): New function.
3640 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
3641 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
3642 (mark_constant_function): Recognize pure functions.
3643 * rtl.h (global_reg_mentioned_p): New prototype.
3644 * rtlanal.c (global_reg_mentioned_p,
3645 global_reg_mentioned_p_1): New function.
3647 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3649 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
3651 * fixinc/fixincl.x: Regenerate.
3653 2002-03-20 Jason Merrill <jason@redhat.com>
3655 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
3657 2002-03-20 Michael Meissner <meissner@redhat.com>
3659 * doc/invoke.texi (Optimize Options): Document that -O2 sets
3662 2002-03-20 Bob Wilson <bob.wilson@acm.org>
3664 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
3665 ".literal_position" directive before the constant pool.
3667 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3669 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
3670 Add Craig Rodrigues.
3671 Add Brad Lucier to testers.
3673 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3676 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
3678 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
3679 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
3680 instead of insn_extract.
3682 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3685 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
3687 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
3688 stmt if some case has been output.
3690 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3693 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
3694 movsfcc_1, movdfcc_1): Add %O2.
3695 * config/i386/i386.c (print_operand): Handle %ON.
3696 Print . before float condition codes in Sun as cmov syntax.
3697 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3698 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3701 2002-03-20 Philip Blundell <pb@nexus.co.uk>
3703 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3704 return instruction if PC was popped.
3706 2002-03-20 Bob Wilson <bob.wilson@acm.org>
3708 * config/xtensa/xtensa.md: Remove unused type attributes.
3709 (adddi_carry, subddi_carry): Change type attribute to "multi".
3711 2002-03-19 Dale Johannesen <dalej@apple.com>
3713 PR optimization/5999, middle-end/5731
3714 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3715 multiplications by reciprocals.
3717 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
3719 * Makefile.in: Update.
3720 * c-common.c: Include langhooks.h.
3721 (inline_forbidden_p): Use new hook.
3722 * diagnostic.c: Include langhooks.h.
3723 (format_with_decl, announce_function,
3724 default_print_error_function): Use new hook.
3725 * dwarf2out.c (dwarf2_name): Use new hook.
3726 * function.c: Include langhooks.h.
3727 (init_function_start): Use new hook.
3728 * langhooks-def.h (lhd_decl_printable_name): New.
3729 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
3730 (LANGHOOKS_INITIALIZER): Update.
3731 * langhooks.c (lhd_decl_printable_name): New.
3732 * langhooks.h (struct lang_hooks): New hook.
3733 * toplev.c (decl_name, decl_printable_name): Remove.
3734 (open_dump_file): Use new hook.
3735 (process_options): Remove old hook.
3736 * tree.h (decl_printable_name): Remove.
3738 * objc-act.c (objc_init): Remove old hook.
3739 (objc_printable_name): Export.
3740 * objc-act.h (objc_printable_name): New.
3741 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3743 2002-03-19 Jim Blandy <jimb@redhat.com>
3745 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3746 the start_source_file debug hook, not the current line number.
3748 2002-03-19 Richard Henderson <rth@redhat.com>
3750 * flow.c (EH_USES): Provide default.
3751 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3752 * doc/tm.texi (EH_USES): New.
3754 * config/ia64/ia64.c (ia64_eh_uses): New.
3755 * config/ia64/ia64-protos.h: Update.
3756 * config/ia64/ia64.h (EH_USES): New.
3758 2002-03-19 Richard Henderson <rth@redhat.com>
3760 * varasm.c (output_constant_def): Fix stupid typo.
3762 2002-03-19 Richard Henderson <rth@redhat.com>
3765 * except.c (current_function_has_exception_handlers): New.
3766 * except.h: Declare it.
3767 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3768 Combine tests that disable all sibcalls for the function.
3770 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
3772 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3775 2002-03-19 Richard Henderson <rth@redhat.com>
3778 * config/ia64/ia64.c: Revert 2002-03-01 patch.
3779 * config/ia64/ia64.h (INIT_EXPANDERS): New.
3781 2002-03-19 Jim Blandy <jimb@redhat.com>
3783 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3784 name, even if the replacement list contains no tokens, as required
3787 2002-03-19 Jason Merrill <jason@redhat.com>
3789 * varasm.c (globalize_decl): Get the name from the RTL, not
3790 DECL_ASSEMBLER_NAME.
3792 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3794 2002-03-19 Bob Wilson <bob.wilson@acm.org>
3796 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3797 subdi_carry): Define.
3799 2002-03-19 David Edelsohn <edelsohn@gnu.org>
3801 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3802 about -fpic/-fPIC if extra_warnings set.
3804 2002-03-19 David Edelsohn <edelsohn@gnu.org>
3806 * expr.c (expand_expr): Sign-extend CONST_INT generated from
3807 TREE_STRING_POINTER.
3808 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3810 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3812 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3813 in favor of SP if FRAME_POINTER_REQUIRED is false.
3815 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
3817 * emit-rtl.c (gen_int_mode): New function.
3818 * rtl.h: Prototype for it.
3819 * combine.c (make_extraction, simplify_comparison), expmed.c
3820 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3821 (convert_modes, store_field), optabs.c (expand_fix),
3822 simplify-rtx.c (neg_const_int, simplify_unary_real),
3824 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3825 Use it instead of GEN_INT (trunc_int_for_mode (...)).
3827 2002-03-19 Jakub Jelinek <jakub@redhat.com>
3830 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3831 convert_parm_for_inlining.
3832 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3834 * langhooks-def.h: Likewise.
3835 * objc/objc-lang.c: Likewise.
3836 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3838 * tree-inline.c (initialize_inlined_parameters):
3839 Call convert_parm_for_inlining lang hook if needed.
3840 * c-typeck.c (c_convert_parm_for_inlining): New function.
3841 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3843 2002-03-18 Mark Mitchell <mark@codesourcery.com>
3845 * calls.c (precompute_arguments): Do not assume that temporaries
3846 can be destroyed after expanding the argument.
3847 (expand_call): Likewise.
3849 2002-03-15 Eric Christopher <echristo@redhat.com>
3851 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3852 Fix register preference on last change.
3853 * config/mips/mips.c (mips_return_in_memory): New function.
3854 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3855 * config/mips/mips-protos.h: Declare.
3856 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3857 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3859 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3861 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3863 (anddi3, iorsi3): Likewise.
3865 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3866 use %gprel for symbols that are going to be placed in linkonce
3869 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3870 RETURN_ADDRESS_POINTER_REGNUM to $ra.
3871 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3872 not needed. Disregard leaf_function_p().
3873 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3874 mips16 frame pointer.
3875 * config/mips/mips.md (store ra): Only to small SP offsets.
3876 2001-08-22 Graham Stott <grahams@redhat.com>
3877 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3878 return a REG rtx for the return address register.
3880 2002-03-18 Bob Wilson <bob.wilson@acm.org>
3882 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3883 constant-pool addresses as "mode-dependent".
3884 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3886 2002-03-18 Jakub Jelinek <jakub@redhat.com>
3889 * expr.c (emit_group_load): Use extract_bit_field if
3890 needed for CONCAT arguments.
3892 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
3895 * arm.md (tablejump): Make this a define_expand. For PIC add the
3896 offset to the base of the table.
3897 (thumb_tablejump): Matcher for Thumb tablejump insn.
3898 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3899 as the difference of two labels.
3900 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3901 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3903 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3904 * arm.c (get_jump_table_size): If the table is not in the text
3905 section, return zero.
3907 2002-03-18 Bernd Schmidt <bernds@redhat.com>
3909 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3911 (arm_reload_out_hi): Use gen_lowpart instead of
3912 gen_rtx_SUBREG to access QImode components.
3913 * config/arm/arm.md: Disable zero_extend split for QImode
3914 subregs in BIG_ENDIAN mode.
3915 (storehi_bigend): Match use of least significant byte.
3916 (storeinthi): Remove extraneous SUBREG.
3917 Add missing construction of operands[2].
3918 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3919 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3920 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3922 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
3924 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3927 2002-03-17 Richard Henderson <rth@redhat.com>
3929 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3932 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
3934 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3935 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3937 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3939 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3941 * predict.c (estimate_bb_frequencies): Delete unused variables.
3943 2002-03-17 Richard Henderson <rth@redhat.com>
3945 * config/ia64/ia64.c (ia64_attribute_table): Move before
3946 targetm definition. Make static.
3948 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
3950 * c-common.h (yyparse, c_common_parse_file): New.
3951 * c-lang.c: Include c-common.h.
3952 (LANG_HOOKS_PARSE_FILE): Redefine.
3953 * c-lex.c: Include c-common.h.
3954 (yyparse): Rename c_common_parse_file. Call yyparse.
3955 * c-parse.in (yyparse): Remove macro.
3956 * c-tree.h (yyparse_1): Remove.
3957 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3958 (LANG_HOOKS_INITIALIZER): Update.
3959 * langhooks.h (struct lang_hoooks): New hook parse_file.
3960 * toplev.c (compile_file): Use parse_file hook.
3961 * tree.h (yyparse): Remove.
3962 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3964 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
3966 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3967 float_truncate, not fix.
3968 ("*truncdfsf2_real"): Ditto.
3969 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3971 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3973 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
3975 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3976 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
3977 where appropriate. Make the second reference to
3978 leaf_function_p a function call, as intended. Reindented.
3980 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3981 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3983 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3984 add register to non-constant into sp.
3986 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3987 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3988 (mips16_gp_pseudo_rtx): Lose.
3989 (INIT_EXPANDERS): Deleted.
3990 * config/mips/mips.c (mips_init_machine_status): New.
3991 (mips_free_machine_status): New.
3992 (mips_mark_machine_status): New.
3993 (override_options): Set them.
3994 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3995 (struct machine_function): ... new. Replaced all references.
3996 (mips_add_gc_roots): Don't mark them.
3997 (embedded_pic_fnaddr_reg): New, extracted from...
3998 (embedded_pic_offset): ... here.
3999 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
4002 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
4004 * cppinit.c: Revert -MD removal.
4006 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4008 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
4009 soft registers by default for 68HC12.
4010 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
4011 when compiling with -fomit-frame-pointer.
4012 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
4013 (expand_epilogue): Likewise.
4014 (m68hc11_gen_rotate): Use exg when rotating by 8.
4016 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4018 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
4019 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
4020 (splits): Remove unused add splits.
4021 ("*addhi3_68hc12"): Tune constraints.
4022 ("addhi_sp"): Try to use X instead of Y in all cases and if the
4023 constant fits in 8-bits and D is dead use abx/aby instructions.
4024 ("*addhi3"): Remove extern declaration of ix_reg.
4025 ("*subsi3"): Optimize and provide new split.
4026 ("subhi3"): Cleanup.
4027 ("*subhi3_sp"): Avoid saving X if we know it is dead.
4028 (arith splits): For 68hc12 save the address register on the stack
4029 and do the arithmetic operation with a pop.
4031 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4033 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
4034 allocating QImode in address registers.
4035 ("*movqi_m68hc11"): Likewise.
4037 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
4039 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
4041 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
4043 * cppinit.c (print_help): Display -MD and -MMD.
4044 Don't display usage string. Update assertion syntax and
4046 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
4047 (cpp_handle_option): Update.
4049 2002-03-15 Chris Demetriou <cgd@broadcom.com>
4051 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
4052 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
4053 and define it so that regardless of target CPU size,
4054 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
4055 of "int" rather than "long."
4057 2002-03-15 Richard Henderson <rth@redhat.com>
4059 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
4062 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4064 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
4065 ("tstqi" split): Avoid using memory for tstqi on address register.
4066 (splits): Remove constraints.
4067 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
4068 ("cmpdf", "cmpsf"): Remove since not used.
4069 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
4070 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
4072 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4074 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
4075 ("neghi2"): Tighten constraints.
4076 ("one_cmplsi2"): Optimize and simplify split.
4077 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
4079 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4081 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
4082 and split of AND operation to clear the upper bits.
4083 ("*logicalsi3_zextqi"): Likewise.
4084 ("*logicallhi3_zexthi_ashift8"): Likewise.
4085 ("*logicalsi3_silshr16"): Likewise.
4086 ("logicalsi3_silshl16"): Likewise.
4087 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
4089 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4091 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
4092 (m68hc11_indirect_p): New function.
4093 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
4094 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
4096 (asm_print_register): Likewise.
4097 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
4098 (m68hc11_indirect_p): Declare.
4099 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
4100 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
4101 (TARGET_SWITCHES): New option -mrelax.
4102 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
4104 ("iorsi3", "xorsi3"): Likewise.
4105 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
4106 ("*andhi3_mem"): New to handle destination in memory with bclr
4107 and a scratch register.
4108 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
4109 ("*andhi3_const"): New when operand2 is constant.
4110 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
4111 ("*andhi3_gen"): Cleanup of the old "andhi3".
4112 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
4113 ("xorqi3"): Update constraints.
4115 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4117 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
4118 for reg_equiv_memory_loc when the operand is a register that does
4119 not get a hard register (stack location).
4120 (tst_operand): After reload, accept all memory operand.
4121 (symbolic_memory_operand): Fix detection of symbolic references.
4122 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
4123 accept symbols and any constant.
4125 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4127 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
4128 note on the insn that sets the soft frame register.
4129 (must_parenthesize): ix and iy are also reserved names.
4130 (print_operand_address): One more place where parenthesis are required
4131 to avoid confusion with register names.
4132 (m68hc11_gen_movhi): Allow push of stack pointer.
4133 (m68hc11_check_z_replacement): Fix handling of parallel with a
4135 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
4136 the replacement register is.
4137 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
4138 and D8_REGS classes.
4139 (MODES_TIEABLE_P): All modes are tieable except QImode.
4141 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4143 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
4144 (___subdi3): Likewise.
4145 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
4146 (__map_data_section): Optimize 68hc11 case.
4148 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4150 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
4151 than a shift to avoid adding a register with itself.
4152 (m68hc11_memory_move_cost): Take into account NO_REGS.
4153 (m68hc11_register_move_cost): Update and use memory move cost
4155 (m68hc11_address_cost): Make cost of valid offset not 0 so that
4156 it gives more opportunities to cse to optimize.
4157 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
4158 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
4160 2002-03-15 Mark Mitchell <mark@codesourcery.com>
4162 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
4163 * c-common.def (CLEANUP_STMT): New tree node.
4164 * c-common.h (CLEANUP_DECL): New macro.
4165 (CLEANUP_EXPR): Likewise.
4166 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
4167 * expr.c (expand_expr): Tidy.
4168 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
4169 * tree-inline.c (initialize_inlined_parameters): Clean up
4170 new local variables.
4172 2002-03-15 Jakub Jelinek <jakub@redhat.com>
4175 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
4176 before movrXX only, use reg_overlap_mentioned_p.
4177 Only special case NE if just one insn can be generated.
4179 2002-03-15 Jason Merrill <jason@redhat.com>
4181 * varasm.c (assemble_variable): Call resolve_unique_section before
4182 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
4185 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
4188 * arm.md (split pattern for thumb shiftable immediates): Add comment
4189 explaining non-obvious test.
4191 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
4194 * arm.md (movaddr, movaddr_insn): Delete.
4196 2002-03-15 Jason Merrill <jason@redhat.com>
4198 * toplev.c (wrapup_global_declarations): Clarify variable handling.
4199 -fkeep-static-consts doesn't apply to comdats.
4201 2002-03-14 Richard Henderson <rth@redhat.com>
4203 * c-decl.c: Include c-pragma.h.
4204 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
4205 (finish_function): Tidy.
4206 * c-pragma.c: Include c-common.h.
4207 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
4208 (handle_pragma_weak): Use them.
4209 (init_pragma): Register pending_weaks.
4210 * c-pragma.h (maybe_apply_pragma_weak): Declare.
4211 * print-tree.c (print_node): Print DECL_WEAK.
4212 * varasm.c (mark_weak_decls): Remove.
4213 (remove_from_pending_weak_list): Remove.
4215 (asm_emit_uninitialised): Call globalize_decl for weak commons.
4216 (weak_decls): Make a tree_list.
4217 (declare_weak): Cons weak_decls directly.
4218 (globalize_decl): Remove weak_decls elements directly.
4219 (weak_finish): Simplify weak_decls walk. Don't weaken unused
4220 symbols. Don't pretend to handle aliases.
4221 (init_varasm_once): Update weak_decls registry.
4222 * Makefile.in: Update dependencies.
4224 2002-03-14 Richard Henderson <rth@redhat.com>
4227 * config/ia64/ia64.c: Include tm_p.h last.
4228 (gen_nop_type): Remove duplicate definition.
4229 (cycle_end_fill_slots): Set sched_data for second L slot.
4230 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
4231 (nop_cycles_until): Fix typos.
4233 2002-03-15 Jakub Jelinek <jakub@redhat.com>
4235 PR optimization/5891
4236 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
4238 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
4240 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
4241 descriptors correctly.
4243 2002-03-14 Michael Meissner <meissner@redhat.com>
4245 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
4246 100, allowing MAX_UNROLLED_INSNS to be overridden.
4248 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
4251 * unroll.c (params.h): Include.
4252 (MAX_UNROLLED_INSNS): Delete, now in params.h.
4254 * doc/invoke.texi (--param max-unroll-insns): Document.
4256 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
4258 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
4260 * arm.md: Fix warnings about constraints in peepholes and splits.
4262 2002-03-14 Zack Weinberg <zack@codesourcery.com>
4264 * cpphash.h (struct lexer_state): Remove line_extension member.
4265 * cpplib.c (dequote_string, do_linemarker): New functions.
4266 (linemarker_dir): New data object.
4267 (DIRECTIVE_TABLE): No longer need to interpret #line in
4268 preprocessed source. Delete obsolete comment about return
4270 (end_directive, directive_diagnostics, _cpp_handle_directive):
4271 Don't muck with line_extension.
4272 (directive_diagnostics): No need to issue warnings for
4274 (_cpp_handle_directive): Issue warnings for linemarkers here,
4275 when appropriate. Dispatch linemarkers to do_linemarker, not
4277 (do_line): Code to handle linemarkers split out to do_linemarker.
4278 Convert escape sequences in filename argument, both places.
4280 * cppmacro.c (quote_string): Rename cpp_quote_string and
4281 export. All callers changed.
4282 * cpplib.h (cpp_quote_string): Prototype.
4283 * cppmain.c (print_line): Call cpp_quote_string on to_file
4286 * doc/cpp.texi: Document that escapes are now interpreted in
4287 #line and in linemarkers, and that non-printing characters are
4288 converted to octal escapes when linemarkers are generated.
4290 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
4292 * emit-rtl.c (try_split): Use delete_insns.
4293 * recog.c (split_all_insns): Fix terminating condition.
4295 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
4296 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4299 * arm.c (arm_output_epilogue): Fix floating-point register save
4300 adjustment when using a frame pointer.
4302 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
4304 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
4305 * config/mips/mips.c (compute_frame_size): Retrofit them here.
4306 (save_restore_insns, mips_expand_epilogue): And here.
4307 (build_mips16_call_stub): And here.
4308 (mips_function_value): Use the new macros to decide whether a single
4309 or complex float can be returned in floating-point registers. Return
4310 a parallel rtx in the complex case.
4312 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
4314 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
4315 call after liveness analysis.
4317 * recog.c (split_insn): Use delete_insn_and_edges.
4319 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
4320 instructions to have branch prediction notes.
4321 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
4323 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
4325 * configure.in: Don't pass -Wno-long-long to a ADA compiler
4326 that doesn't support it.
4327 * configure: Regenerate.
4329 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4332 * config/sparc/sparc.md (normal_branch, inverted_branch,
4333 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
4334 inverted_fp_branch): Adjust calls to output_cbranch.
4335 Set length attribute.
4336 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
4337 output_v9branch. Set length attribute.
4338 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
4340 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
4341 (output_cbranch): Likewise. Handle far branches.
4342 (output_v9branch): Handle far branches.
4343 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
4345 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
4346 noov_compare64_op predicates.
4348 2002-03-13 Jason Merrill <jason@redhat.com>
4350 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
4351 into the function and constify it.
4352 * gthr-dce.h, gthr-solaris.h: Likewise.
4354 2002-03-13 David Edelsohn <edelsohn@gnu.org>
4356 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
4357 * config/rs6000/rs6000.c (rs6000_va_arg): Use
4358 std_expand_builtin_va_arg if not ABI_V4.
4360 2002-03-13 Jason Merrill <jason@redhat.com>
4362 * varasm.c (globalize_decl): New fn.
4363 (assemble_start_function): Use it.
4364 (asm_emit_uninitialized): Use it.
4365 (assemble_alias): Use it.
4366 (assemble_variable): Use it.
4368 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
4370 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
4371 2002-03-12 internal visibility change.
4372 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
4373 visibility into SYMBOL_REF_FLAG.
4375 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
4377 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
4378 VOIDmode operand. Add compile-time optimization for constant results.
4380 2002-03-12 Jason Merrill <jason@redhat.com>
4382 * c-typeck.c (convert_for_assignment): Don't allow conversions
4383 between pointers and references. Only allow lvalues to convert to
4386 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
4388 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
4389 before prologue, to avoid scheduling problems.
4391 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4393 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4394 (ELIMINABLE_REGS): Add sfp->sp.
4395 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
4397 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4399 PR optimization/5892
4400 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
4402 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4404 * loop.c (basic_induction_var): Don't call convert_modes if mode
4405 classes are different.
4407 2002-03-12 Richard Henderson <rth@redhat.com>
4409 PR optimization/5901
4410 * function.c (reposition_prologue_and_epilogue_notes): Position
4411 the markers after/before the last/first insn not deleted.
4413 2002-03-12 Richard Henderson <rth@redhat.com>
4415 PR optimization/5878
4416 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
4417 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
4418 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
4420 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
4421 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
4422 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
4424 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
4425 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
4426 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
4427 also. Don't set it if not flag_pic.
4428 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
4429 to be INVALID_REGNUM when not used.
4431 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
4433 * expmed.c (store_bit_field): Reset alias set for memory.
4434 (extract_bit_field): Same.
4436 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4438 * c-common.c (c_tree_code_type, c_tree_code_length,
4439 c_tree_code_name, add_c_tree_codes): Delete.
4440 * c-common.h (add_c_tree_codes): Delete.
4441 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
4443 * c-objc-common.c (c_objc_common_init): Don't call
4444 add_c_tree_codes, instead set lang_unsafe_for_reeval.
4445 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
4446 objc_tree_code_name, add_objc_tree_codes): Delete.
4447 (objc_init): Don't call add_objc_tree_codes.
4448 * objc/objc-lang.c (tree_code_type, tree_code_length,
4449 tree_code_name): Define.
4450 * toplev.c (lang_independent_init): Don't set
4451 tree_code_length[IDENTIFIER_NODE].
4452 * tree.c (tree_code_type, tree_code_length, tree_code_name):
4453 Delete definitions, moved to language front-ends.
4454 * tree.def (IDENTIFIER_NODE): Hardwire the length.
4455 * tree.h (tree_code_type, tree_code_length, tree_code_name):
4457 (tree_code_length): Change type to unsigned char.
4459 2002-03-12 Richard Henderson <rth@redhat.com>
4461 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
4462 internal visibility change.
4464 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4466 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
4467 validize_mem() instead of change_address to avoid clobbering
4470 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
4472 * c-lex.h (position_after_whitespace): Remove.
4474 2002-03-12 Jakub Jelinek <jakub@redhat.com>
4476 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
4477 (lex_string): Use unsigned char pointers.
4479 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
4481 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
4482 is not a valid memory_operand.
4484 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4486 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
4487 * config/xtensa/lib1funcs.asm: Fix copyright to include
4488 special case for libgcc files.
4489 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
4490 (__divsi3): Likewise.
4491 (__umodsi3): Likewise.
4492 (__modsi3): Likewise.
4493 * config/xtensa/lib2funcs.S: Fix copyright to include
4494 special case for libgcc files.
4496 2002-03-12 Tom Rix <trix@redhat.com>
4498 * collect2.c (resolve_lib_name): Move outside of
4499 OBJECT_FORMAT_COFF ifdef.
4500 (ignore_library): Same.
4502 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4504 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
4506 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4508 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
4509 to function_section before writing out the constant pool.
4511 2002-03-12 David Edelsohn <edelsohn@gnu.org>
4513 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
4515 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
4517 2002-03-12 Alan Modra <amodra@bigpond.net.au>
4519 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
4523 (cmpsi splitter): Likewise.
4524 (modsi3): Fail if <= 0.
4525 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
4526 redundant test when HOST_BITS_PER_WIDE_INT != 32.
4527 (reg_or_sub_cint64_operand): Likewise.
4528 (num_insns_constant_wide): Optimize sign extension.
4529 (rs6000_legitimize_address): Likewise.
4531 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
4533 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4534 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4536 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
4538 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
4539 address calculation.
4541 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
4543 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
4544 scratch register to DImode / TImode.
4545 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
4546 register used does not overlap the target.
4548 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4550 * Makefile.in (debug.o): Depend on debug.h.
4551 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
4552 * debug.c (do_nothing_debug_hooks): Likewise.
4553 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
4554 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
4555 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
4556 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
4557 * dwarfout.c (dwarf_debug_hooks): Likewise.
4558 * integrate.c (output_inline_function): Likewise.
4559 * objc/objc-act.c (synth_module_prologue): Likewise.
4560 * sdbout.c (sdb_debug_hooks): Likewise.
4561 * toplev.c (debug_hooks): Likewise.
4562 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4564 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4566 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
4567 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
4568 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
4569 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
4570 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
4571 * defaults.h (POINTER_SIZE): Define.
4572 * doc/tm.texi (POINTER_SIZE): Document default.
4574 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4576 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
4578 2002-03-11 Richard Henderson <rth@redhat.com>
4580 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
4581 if rebuild_label_notes_after_reload.
4583 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
4585 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
4586 emit pic register load if "internal" visibility.
4587 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
4588 (cris_expand_builtin_va_arg): Do all computations on trees.
4590 2002-03-11 Richard Henderson <rth@redhat.com>
4592 * rtlanal.c: Include recog.h.
4593 (keep_with_call_p): Fix thinko.
4594 * Makefile.in (rtlanal.o): Update dependencies.
4596 2002-03-11 Chris Meyer <cmeyer@gatan.com>
4598 * genflags.c (gen_insn): Use IS_VSPACE.
4599 * genoutput.c (output_insn_data): Likewise.
4600 (process_template): Likewise.
4602 2002-03-11 Richard Henderson <rth@redhat.com>
4604 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
4606 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
4608 * Makefile.in: Update.
4609 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
4610 Update documentation.
4611 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
4612 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
4614 2002-03-11 Zack Weinberg <zack@codesourcery.com>
4616 * Makefile.in: Give texi2pod its input file as a command line
4617 argument, not on stdin.
4619 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
4620 Daniel Berlin <dan@dberlin.org>
4622 C++ alias analysis improvement.
4623 * alias.c (record_component_aliases): Record aliases for base
4626 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
4628 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
4630 2002-03-11 Douglas B Rupp <rupp@gnat.com>
4632 * toplev.c (vms_fopen): Remove, not needed.
4634 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
4636 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
4638 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
4639 for FP, already done later.
4641 * toplev.c (debug_args): Add entry for VMS_DEBUG.
4642 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
4644 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
4646 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
4647 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
4648 LARGEST_EXPONENT_IS_NORMAL for the given mode.
4649 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
4650 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
4651 (ediv, emul, eldexp, esqrt): Likewise.
4652 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
4653 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
4654 (saturate): New function.
4655 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
4656 (make_nan): Use a saturation value instead of a NaN if
4657 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
4658 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
4659 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
4660 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
4661 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
4662 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
4663 !ROUND_TOWARDS_ZERO.
4664 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
4665 (ROUND_TOWARDS_ZERO): Document.
4667 2002-03-11 Andreas Jaeger <aj@suse.de>
4669 * cfg.c (dump_flow_info): Remove unused variable.
4671 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
4673 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
4674 computations on trees.
4676 2002-03-10 Richard Henderson <rth@redhat.com>
4679 * reload.c (copy_replacements_1): New.
4680 (copy_replacements): Use it to recurse through the rtx.
4682 2002-03-10 Richard Henderson <rth@redhat.com>
4684 * loop.c (strength_reduce): Compute number of iterations as
4685 unsigned HOST_WIDE_INT.
4687 2002-03-10 Richard Henderson <rth@redhat.com>
4689 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
4690 to move away from the end of the block.
4692 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
4694 PR preprocessor/5899
4695 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4697 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4699 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4701 * attribs.c (decl_attributes): Fix signed/unsigned warning.
4703 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
4705 * config/mmix/mmix.c: Improve comments.
4706 (mmix_target_asm_function_prologue): Drop variable
4707 empty_stack_frame. Don't allocate unused slot above fp.
4708 (mmix_target_asm_function_epilogue): Mirror prologue changes.
4709 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4710 brace in first column.
4711 (enum reg_class): Ditto.
4712 (FIRST_PARM_OFFSET): Now 0.
4713 (USER_LABEL_PREFIX): Remove #if 0:d definition.
4715 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4717 * combine.c (make_extraction): Fix error in last change.
4719 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4721 * c4x.c (c4x_fp_reglist): Const-ify.
4722 * cris.c (cris_print_operand): Likewise.
4723 * i386.c (ix86_va_arg): Likewise.
4724 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4725 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4726 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4727 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4728 * mcore.h (regno_reg_class): Likewise.
4729 * mips.c (gen_int_relational): Likewise.
4730 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
4731 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
4732 * pdp11.c (move_costs): Likewise.
4733 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
4734 * s390.c (s390_branch_condition_mnemonic, regclass_map):
4736 * s390.h (regclass_map): Likewise.
4737 * sh.c (shift_amounts): Likewise.
4738 * sh.md (rotlsi3): Likewise.
4740 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
4742 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4743 (ne0+5): Use new clobber to generate proper shift pattern.
4744 Patch by Michael Matz <matz@kde.org>.
4746 2002-03-09 Andreas Schwab <schwab@suse.de>
4748 * gcc.c (validate_all_switches): Also handle `%W{...}'.
4750 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
4752 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4754 2002-03-09 Jakub Jelinek <jakub@redhat.com>
4757 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4758 even for non-representable constants.
4760 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4762 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4763 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4764 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4765 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4766 (pop_function_context): Compute MAY_SHARE parameter for
4768 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4769 (gen_mem_addressof): Call fixup_var_refs with new parm.
4771 * combine.c (make_extraction): Don't make extension of CONST_INT.
4773 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
4775 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4776 in o32 and o64 ABIs.
4777 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4778 but getting fixed-size structs passed in registers regardless of
4779 padding in o32 and o64 ABIs.
4781 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4782 offset before loading address of argument passed by transparent
4785 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
4787 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4789 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
4791 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4792 marker such that registers after it are saved.
4794 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4796 * sparc.c (arith_4096_operand): Fix error in last change.
4798 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
4800 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4803 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
4805 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4808 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
4810 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4812 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
4814 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4815 removed; fix return value.
4816 * combine.c (combine_instructions): Dirtify blocks where we failed to
4817 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4818 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4820 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4822 * gcse.c (insert_insn_end_bb): Fix typo in last change.
4824 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
4826 * recog.c (peephole2_optimize): Re-distribute EH edges.
4828 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
4830 * expr.c (expand_expr): Use unsave lang hook.
4831 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4832 (LANG_HOOKS_INITIALIZER): Update.
4833 * langhooks.h (struct lang_hooks): New hook unsave.
4834 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4835 (unsave_expr_1): Remove unused lang_unsave_expr_now.
4836 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
4837 (unsave_expr_now): Remove.
4838 * tree.h (unsave_expr_now, lang_unsave,
4839 lang_unsave_expr_now): Remove.
4842 2002-03-08 Andreas Jaeger <aj@suse.de>
4844 * flow.c (propagate_block_delete_insn): Remove unused variable.
4846 2002-03-08 Kazu Hirata <kazu@hxi.com>
4848 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4849 insn length for memory load/store.
4851 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
4853 * doc/install.texi (--with-libiconv-prefix): Document.
4855 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
4857 * doc/sourcebuild.texi: Fix typo.
4859 2002-03-08 Jakub Jelinek <jakub@redhat.com>
4862 * builtins.c (std_expand_builtin_va_arg): Do all computations on
4865 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4867 * rtl.c (copy_most_rtx): Move from here ...
4868 * emit-rtl.c (copy_most_rtx): ... to here.
4870 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
4872 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4873 SUBTARGET_CPP_SIZE_SPEC.
4874 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4876 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4878 2002-03-07 Matt Hiller <hiller@redhat.com>
4880 * gensupport.c (first_dir_md_include): Renamed from include;
4881 change all references.
4882 (last_dir_md_include): Renamed from last_include; change all
4884 (init_md_reader): Unconditionally initialize base_dir whether or
4885 not filename is a relative path.
4887 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
4889 * config/fp-bit.c (_unord_f2): Compile it in even if
4890 US_SOFTWARE_GOFAST is enabled.
4892 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4893 NULL_RTX. Set all HFmode operations as NULL_RTX.
4894 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4895 NULL_RTX, try reversing the comparison and the operands.
4897 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
4899 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4900 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4903 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
4905 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4907 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
4909 * basic-block.h (fixup_abnormal_edges): Declare.
4910 * reload1.c (fixup_abnormal_edges): New function.
4911 * reg-stack.c (convert_regs): Use it.
4913 * gcse.c (insert_insn_end_bb): Handle trapping insns.
4915 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4917 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
4919 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4920 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4921 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4922 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4923 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4924 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4925 unless x and y could be infinite.
4926 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4927 Check that the common type of both arguments is a real, even for
4928 targets without unordered comparisons. Allow an integer argument
4929 to be compared against a real.
4930 (expand_tree_builtin): Use expand_unordered_cmp.
4931 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4932 * cse.c (fold_rtx): Likewise. Fix indentation.
4933 * fold-const.c (fold_real_zero_addition_p): New.
4934 (fold): Use it, and the new HONOR_... macros.
4935 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4936 * jump.c (reversed_comparison_code_parts): After searching for
4937 the true comparison mode, use HONOR_NANS to decide whether it
4938 can be safely reversed.
4939 (reverse_condition_maybe_unordered): Remove IEEE check.
4940 * simplify-rtx.c (simplify_binary_operation): Use the new macros
4941 to decide which simplifications are valid. Allow the following
4942 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4943 and (a - -b) to (a + b).
4944 (simplify_relational_operation): Use HONOR_NANS.
4945 * doc/tm.texi: Document the MODE_HAS_... macros.
4947 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
4949 * combine.c (simplify_comparison): If simplifying a logical shift
4950 right and compare with constant, force the comparison to unsigned.
4952 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
4954 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4956 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4958 (alt_reg_names): Remove % for vrsave.
4960 2002-03-06 Richard Henderson <rth@redhat.com>
4962 PR optimization/5844
4963 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
4964 if used indicates we've already emitted one copy of an operand.
4965 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4966 (gen_split): Supply a non-null used.
4968 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
4970 * reload1.c (reload): Unshare all rtl after reload is done.
4972 * simplify-rtx.c (simplify_plus_minus): Do not abort,
4973 but simply fail if the expression is too complex to simplify.
4974 (simplify_gen_binary): Handle simplify_plus_minus failures.
4976 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
4978 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4979 consistently call delete_trivially_dead_insns after CSE and GCSE;
4980 fix DFI_life dumping; do jump threading after liveness; do crossjumping
4981 after liveness2; update comment in last crossjumping.
4982 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4984 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
4986 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4987 after completing fast dead code elimination.
4989 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4992 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
4994 * version.c: Fix misplaced leading blanks on first line.
4996 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
4998 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
5000 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
5002 * cfgcleanup.c (mentions_nonequal_regs): New function.
5003 (thread_jump): Use it.
5004 * toplev.c (rest_of_compilation): Run jump threading after
5007 2002-03-06 Jakub Jelinek <jakub@redhat.com>
5009 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
5012 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
5014 * predict.c (estimate_bb_frequencies): Do not reload the
5015 frequencies from notes.
5017 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
5019 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
5020 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
5022 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
5023 delete_noop_moves): Return indeger.
5024 * flow.c (ndead): New variable.
5025 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
5026 BB argument; update callers.
5027 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
5028 (life_analysis): Do not call purge_all_dead_edges.
5029 (update_life_info): Return number of deleted insns; print statistics.
5030 (update_life_info_in_dirty_blocks): likewise.
5031 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
5032 return number of insns deleted.
5034 * cse.c: Include timevar.h
5035 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
5036 iterate until stabilizes; print statistics; return number of killed
5038 * Makefile.in: (cse.o): Add timevar.h dependency
5039 * rtl.h (delete_trivially_dead_insns): New.
5040 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
5041 * toplev.c (rest_of_compilation): Update callers.
5043 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
5044 (try_optimize_cfg): Do not update liveness.
5045 (cleanup-cfg): Loop until try_optimize_cfg and dead code
5046 removal stabilizes; use delete_trivially_dead_insns.
5048 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
5050 2002-03-05 Zack Weinberg <zack@codesourcery.com>
5052 * cppmain.c (setup_callbacks): Disable #pragma and #ident
5053 callbacks when processing assembly language.
5055 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5057 * pa.h (ASM_FILE_END): Define.
5058 * som.h (ASM_FILE_END): Delete.
5060 * pa.c (function_arg): Don't pass floats in general registers in
5061 indirect calls if TARGET_ELF32.
5063 2002-03-05 Richard Henderson <rth@redhat.com>
5065 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
5067 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
5069 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
5071 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5073 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
5074 -r command line. Don't hide any symbols if not building
5077 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
5079 * cfg.c (dump_flow_info): Warn about profile mismatches.
5080 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
5081 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
5083 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5085 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
5086 wide volatile memory by parts.
5088 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5090 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
5093 2002-03-05 Richard Henderson <rth@redhat.com>
5095 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
5097 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
5099 * toplev.c (documented_lang_options): Document more
5100 language-specific options.
5101 * doc/invoke.texi (Warning Options): Correct documentation for
5102 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
5103 * c-decl.c (c_decode_option): Use a table to handle warning options.
5105 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
5107 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
5108 parameter to mmix_encode_section_info.
5109 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
5110 relocatably. Always produce ELF, not mmo if linking relocatably.
5111 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
5112 first is non-zero, don't add symbol prefix.
5113 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
5114 prototype accordingly.
5116 2002-03-04 Krister Walfridsson <cato@df.lth.se>
5118 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
5120 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
5122 * configure.in: Increase required makeinfo version to 4.1.
5123 * configure: Regenerate.
5125 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
5127 * .cvsignore: Remove *.info* and genrtl*; these files are generated
5130 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
5132 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
5133 * doc/invoke.texi: Fix @math uses.
5135 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
5137 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
5140 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
5142 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
5143 (powerpc-*-eabisimaltivec*): Same.
5145 * config/rs6000/t-ppcendian: New.
5147 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5149 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
5150 nonimmediate_src_operand and nonimmediate_lsrc_operand to
5151 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
5153 2002-03-03 Richard Henderson <rth@redhat.com>
5155 * toplev.c (rest_of_decl_compilation): Revert last two changes.
5157 2002-03-03 Zack Weinberg <zack@codesourcery.com>
5159 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
5160 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
5161 tree.c, config/m68k/m68k.c:
5162 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
5163 REAL_ARITHMETIC blocks unconditional. Delete some further
5164 #ifdef blocks predicated on REAL_ARITHMETIC.
5165 * flags.h, toplev.c: Delete remaining references to
5168 * doc/invoke.texi: Remove documentation of -fpretend-float.
5169 * doc/tm.texi: Describe the various REAL_* macros as provided by
5170 real.h, not by the target configuration files.
5172 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
5173 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
5174 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
5175 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
5176 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
5177 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
5178 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
5179 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
5180 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5181 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
5182 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5183 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5184 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
5185 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
5186 config/xtensa/xtensa.h:
5187 Do not define, undefine, or mention in comments any of
5188 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
5189 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
5190 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
5191 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
5192 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
5193 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
5194 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
5195 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
5196 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
5198 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5200 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
5201 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
5202 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
5203 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
5204 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
5205 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
5207 * defaults.h (BITS_PER_WORD): Define.
5208 * doc/tm.texi (BITS_PER_WORD): Document default value.
5210 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
5211 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
5212 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
5214 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5216 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
5217 lieu of explicit sizeof/sizeof.
5218 * i386.c (override_options, ix86_init_mmx_sse_builtins,
5219 ix86_expand_builtin): Likewise.
5220 * mips.c (mips_add_gc_roots): Likewise.
5221 * mmix.c (mmix_output_condition): Likewise.
5222 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
5223 altivec_init_builtins): Likewise.
5224 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
5225 * cppexp.c (Nsuff, parse_number): Likewise.
5226 * cppinit.c (builtin_array_end): Likewise.
5227 * gcc.c (n_default_compilers, process_command): Likewise.
5228 * genpreds.c (output_predicate_decls): Likewise.
5229 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
5230 * lcm.c (N_ENTITIES): Likewise.
5231 * stor-layout.c (set_sizetype): Likewise.
5233 2002-03-03 Richard Henderson <rth@redhat.com>
5235 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
5236 for types or labels.
5238 2002-03-03 Richard Henderson <rth@redhat.com>
5240 * c-decl.c (start_decl): Initialized variables are not common.
5242 2002-03-02 Per Bothner <per@bothner.com>
5244 * gcc.c (option_map): Suport new --bootclasspath option.
5245 --CLASSPATH is now just an alias for --classpath.
5247 2002-03-02 Richard Henderson <rth@redhat.com>
5249 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
5250 load if "internal" visibility.
5251 * doc/extend.texi: Document visibility meanings.
5253 2002-03-02 Richard Henderson <rth@redhat.com>
5255 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
5256 to functions as well.
5258 2002-03-02 Richard Henderson <rth@redhat.com>
5260 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
5261 (handle_visibility_attribute): Don't call assemble_visibility.
5262 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
5263 without asmspec. Invoke assemble_alias when needed.
5264 * varasm.c (maybe_assemble_visibility): New.
5265 (assemble_start_function, assemble_variable, assemble_alias): Use it.
5267 2002-03-02 Richard Henderson <rth@redhat.com>
5269 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
5270 invoke ENCODE_SECTION_INFO with first call flag.
5272 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
5273 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
5274 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
5275 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
5276 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
5277 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
5278 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
5279 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
5280 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
5281 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
5282 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
5283 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
5284 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
5285 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
5286 config/mcore/mcore-protos.h, config/mcore/mcore.c,
5287 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
5288 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
5289 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
5290 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
5291 config/sh/sh.h, config/sparc/sparc.h,
5292 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
5293 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
5294 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
5295 FIRST argument. As needed, examine it and do nothing.
5297 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
5298 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
5299 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
5301 * config/arm/t-pe (pe.o): Add dependencies.
5303 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5305 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
5306 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
5307 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
5308 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
5309 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
5310 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
5311 * defaults.h (BITS_PER_UNIT): Define.
5312 * doc/tm.texi (BITS_PER_UNIT): Document default value.
5314 2002-03-02 Kazu Hirata <kazu@hxi.com>
5316 * config/h8300/h8300-protos.h: Add a prototype for
5317 compute_a_shift_length.
5318 * config/h8300/h8300.c (h8300_asm_insn_count): New.
5319 (compute_a_shift_length): Likewise.
5320 (h8300_adjust_insn_length): Do not adjust insn length of shift
5322 * config/h8300/h8300.md (anonymous shift patterns): Use
5323 compute_a_shift_length.
5325 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5327 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
5330 * emit-rtl.c (offset_address): Call update_temp_slot_address.
5332 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5334 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
5335 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
5336 * flags.h (flag_zero_initialized_in_bss): Declare.
5337 * toplev.c (flag_zero_initialized_in_bss): New flag.
5338 (lang_independent_options): Add flag_zero_initialized_in_bss.
5339 * tree.c (initializer_zerop): New function.
5340 * tree.h (initializer_zerop): Declare.
5341 * varasm.c (assemble_variable): If we can emit bss, put zero
5342 initializers in the bss section.
5344 2002-03-02 Alan Modra <amodra@bigpond.net.au>
5346 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
5347 like more than one symbol per .weak directive.
5349 2002-03-01 Richard Henderson <rth@redhat.com>
5351 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
5352 adjust argument_pointer by pretend_args_size.
5353 (ia64_va_start): Adjust va_start address by -pretend_args_size.
5355 2002-03-01 Kazu Hirata <kazu@hxi.com>
5357 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
5359 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
5361 * toplev.c (rest_of_compilation): Delete dead jumptables before
5363 * flow.c (delete_dead_jumptables): Make global.
5364 * rtl.h (delete_dead_jumptables): Declare.
5366 2002-03-01 David Edelsohn <edelsohn@gnu.org>
5368 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
5369 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
5370 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
5372 2002-03-01 Kazu Hirata <kazu@hxi.com>
5374 * config/h8300/h8300-protos.h: Fix formatting.
5375 * config/h8300/h8300.c: Likewise.
5376 * config/h8300/h8300.h: Likewise.
5378 2002-03-01 Kazu Hirata <kazu@hxi.com>
5380 * config/h8300/h8300.c (print_operand): Support 16-bit
5382 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
5384 2002-02-28 Richard Henderson <rth@redhat.com>
5386 * expmed.c (store_bit_field): Prevent generation of CONCATs;
5387 pun complex values as integers; use gen_lowpart instead of
5389 (extract_bit_field): Likewise.
5391 2002-03-01 Alan Modra <amodra@bigpond.net.au>
5392 David Edelsohn <edelsohn@gnu.org>
5394 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
5395 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
5396 (SUPPORTS_WEAK): Likewise.
5397 * output.h (add_weak): Add tree param.
5398 * varasm.c (add_weak): Likewise. Save decl.
5399 (struct weak_syms): Add decl field.
5400 (mark_weak_decls): New function.
5401 (init_varasm_once): ggc_add_root mark_weak_decls.
5402 (assemble_start_function): Use ASM_WEAKEN_DECL.
5403 (assemble_variable): Likewise.
5404 (assemble_alias): Likewise.
5405 (declare_weak): Pass decl to add_weak.
5406 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
5407 (remove_from_pending_weak_list): Declare and define for
5409 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
5410 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
5411 * defaults.h (SUPPORTS_WEAK): Likewise.
5412 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5413 .weak for code sym. Do emit .size for descriptor sym.
5414 (ASM_DECLARE_FUNCTION_SIZE): Define.
5415 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
5416 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
5417 .lglobl unless TARGET_XCOFF. Formatting fixes.
5418 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5420 (HANDLE_PRAGMA_WEAK): Remove.
5421 (ASM_WEAKEN_LABEL): Remove.
5422 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
5424 2002-03-01 Jason Merrill <jason@redhat.com>
5426 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
5427 (TARGET_EXPR_CLEANUP): New macro.
5429 2002-02-28 Steve Ellcey <sje@cup.hp.com>
5431 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
5432 to take ptr_extend into account as third type of extension.
5433 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
5434 fields used by SUBREG_PROMOTED_UNSIGNED_P.
5435 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
5436 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
5437 * calls.c (precompute_arguments): Use new macro.
5438 (expand_call): Ditto.
5439 * combine.c (nonzero_bits): Ditto.
5440 (record_promoted_value): Ditto.
5441 * expr.c (store_expr): Ditto.
5442 (expand_expr): Ditto.
5443 * function.c (assign_parms): Ditto.
5445 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
5447 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
5448 override -shared and -shared-libgcc.
5450 2002-02-28 David O'Brien <obrien@FreeBSD.org>
5452 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
5454 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
5457 2002-02-28 Richard Henderson <rth@redhat.com>
5459 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
5460 4 cycle latency from MM producers.
5461 (ia64_internal_sched_reorder): Likewise with pipeline flush.
5463 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5465 * mklibgcc.in: Don't use GNU make extension.
5467 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
5469 * c-parse.in (STATIC): New terminal.
5470 (scspec): New non-terminal. Update productions accordingly.
5471 (program): Remove bogus ifc / end ifc.
5472 (array_declarator): Simplify production using STATIC.
5474 2002-02-28 Jim Meyering <meyering@lucent.com>
5476 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
5477 \a still means TARGET_BELL.
5479 2002-02-28 Richard Henderson <rth@redhat.com>
5481 * haifa-sched.c (sched_emit_insn): New.
5482 (schedule_block): Use last_scheduled_insn to track last insn.
5483 * sched-int.h (sched_emit_insn): Prototype.
5484 * config/ia64/ia64.c (last_issued): Remove.
5485 (ia64_variable_issue): Don't set it.
5486 (nop_cycles_until): Use sched_emit_insn.
5488 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
5490 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
5493 2002-02-28 Kazu Hirata <kazu@hxi.com>
5495 * config/h8300/h8300.c: Fix formatting.
5496 * config/h8300/h8300.h: Likewise.
5498 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
5500 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
5501 which may overwrite the high byte of the frame pointer.
5503 2002-02-28 Bo Thorsen <bo@suse.de>
5505 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
5506 (STARTFILE_SPEC): Add 64 bit files.
5507 (ENDFILE_SPEC): Likewise.
5509 2002-02-28 Jason Merrill <jason@redhat.com>
5511 * c-decl.c (finish_function): Only warn about missing return
5512 statement with -Wreturn-type.
5514 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
5516 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
5518 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
5519 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
5521 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
5523 * basic-block.h (BB_REACHABLE): Renumber.
5524 (BB_DIRTY, BB_NEW): New flags.
5525 (clear_bb_flags): Declare.
5526 (update_life_info_in_dirty_blocks): Declare.
5527 * cfg.c (clear_bb_flags): New function.
5528 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
5529 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
5530 reorder_insns, emit_insn_after): Mark block as dirty.
5531 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
5532 (update_life_info_in_dirty_blocks): New function.
5533 * recog.c (apply_change_group): Dirtify block.
5535 * cse.c (cse_insn): Reorder emitting of jump insn to keep
5537 * gcse.c (delete_null_pointer_checks): Likewise.
5539 * toplev.c (dump_file_index): Move cse2 after bp,
5541 (dump_file_info): Similary.
5542 (rest_of_compilation): Avoid most of CFG rebuilds;
5543 do first if converision after null pointer checks, do cse2
5544 after branch prediction; avoid full liveness rebuild after
5545 initializing subregs.
5546 * invoke.texi (-d options): Document -du, renumber.
5548 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
5549 (notice_new_block): Do not set BB_UPDATE_LIFE.
5550 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
5551 merge_blocks_move_successor_nojumps, merge_blocks,
5552 try_crossjump_to_edge): Likewise.
5553 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
5554 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
5555 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
5556 (merge_of_block): Do not use life_data_ok.
5557 (find_if_case_1): Do not use SET_UPDATE_LIFE.
5558 (if_convert): Use BB_DIRTY mechanizm to update life.
5559 * lcm.c (optimize_mode_switching): Update
5560 update_life_info_in_dirty_blocks
5562 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
5564 * Makefile.in (integrate.o): Update.
5565 * c-decl.c (copy_lang_decl): Rename.
5566 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5567 * integrate.c: Include langhooks.h.
5568 (copy_decl_for_inlining): Update to use langhook.
5569 * langhooks-def.h (lhd_do_nothing_t,
5570 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
5571 (LANG_HOOKS_INITIALIZER): Update.
5572 * langhooks.c (lhd_do_nothing_t): New.
5573 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
5574 * tree.h (copy_lang_decl): Remove.
5576 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5578 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
5580 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
5581 POST_DEC, and POST_MODIFY.
5583 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5585 * c-typeck.c (digest_init): Remove unused parameter; all
5588 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
5590 * expmed.c (expand_shift): Correctly test for low part of a
5593 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
5595 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
5596 insn UIDs with insn addresses.
5598 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5600 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
5601 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
5602 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
5603 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
5604 gcc.c, toplev.c: Delete code implementing -traditional mode.
5606 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
5607 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
5608 Document removal of -traditional mode for compilation, and
5609 remove documentation only relevant to that mode.
5611 * config/nextstep.h, config/ptx4.h, config/svr4.h,
5612 config/convex/convex.h, config/d30v/d30v.h,
5613 config/i386/dgux.h, config/i386/osf1elf.h,
5614 config/i386/osfelf.h, config/i386/osfrose.h,
5615 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
5616 config/m68k/hp310.h, config/m88k/dgux.h,
5617 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
5618 config/m88k/m88k.h, config/m88k/openbsd.h,
5619 config/mips/abi64.h, config/mips/osfrose.h,
5620 config/mips/svr4-5.h, config/mips/svr4-t.h,
5621 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5622 config/stormy16/stormy16.h: Remove all references to
5623 -traditional from target specs. Delete all mention of the
5624 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
5625 delete a couple of commented-out definitions of
5626 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
5629 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
5630 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
5632 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5634 * mklibgcc.in: Don't use \n in a line subject to
5635 interpretation by echo.
5637 2002-02-27 Graham Stott <grahams@redhat.com>
5639 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
5642 * loop.c (prescan_loop): Handle PARALLEL.
5644 * unroll.c (loop_iterations): Return 0 if the add_val for
5647 * final.c (output_operand_lossage): Constify PFX_STR.
5649 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
5651 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
5653 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
5654 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
5656 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
5658 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5660 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
5662 * cpplex.c (_cpp_lex_token): Handle directives in macro
5664 * cpplib.c (_cpp_handle_directive): Save and restore state
5665 if parsing macro args when entering a directive.
5666 * cppmacro.c (collect_args): No need to handle directives
5668 (enter_macro_context, replace_args): Use the original macro
5669 definition in case it was redefined whilst collecting arguments.
5673 2002-02-26 David Edelsohn <edelsohn@gnu.org>
5675 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
5676 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
5677 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
5679 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
5680 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
5681 (load_toc_v4_PIC_2): Same.
5683 2002-02-26 Alan Modra <amodra@bigpond.net.au>
5685 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
5687 2002-02-26 Richard Henderson <rth@redhat.com>
5689 * config/alpha/alpha.md (ashldi_se): Re-enable.
5691 2002-02-26 Richard Henderson <rth@redhat.com>
5693 * config/alpha/alpha.c (alpha_encode_section_info): Examine
5694 MODULE_LOCAL_P; improve commentary.
5696 2002-02-26 Zack Weinberg <zack@codesourcery.com>
5698 * doc/cpp.texi: Clarify documentation of relationship between
5701 2002-02-26 Kazu Hirata <kazu@hxi.com>
5703 * config/h8300/h8300-protos.h: Update the prototype for
5704 compute_logical_op_length. Add the prototype for
5705 compute_logical_op_cc.
5706 * config/h8300/h8300.c (compute_logical_op_length): Figure out
5708 (compute_logical_op_cc): New.
5709 * config/h8300/h8300.md: Combine all the logical op patterns
5710 in HImode and SImode. Use compute_logical_op_cc.
5712 2002-02-26 Kelley Cook <kelleycook@comcast.net>
5714 * config/i386/i386.c (print_operand): Don't append ATT-style
5715 length suffixs to x87 opcodes when in Intel mode.
5717 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
5719 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5720 (init_emit_once): Update calls.
5721 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5722 (init_syntax_once): Prototype.
5724 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5726 * pa-linux.h (LIB_SPEC): Update definition.
5727 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5729 2002-02-26 Richard Henderson <rth@redhat.com>
5731 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5732 if we emitted a stop bit.
5734 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5736 * configure.in (libgcc_visibility): Substitute.
5737 * configure: Rebuilt.
5738 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5739 defined symbols .hidden.
5741 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5743 * attribs.c (c_common_attribute_table): Add visibility.
5744 (handle_visibility_attribute): New function.
5745 * varasm.c (assemble_visibility): New function.
5746 * output.h (assemble_visibility): Add prototype.
5747 * tree.h (MODULE_LOCAL_P): Define.
5748 * crtstuff.c (__dso_handle): Use visibility attribute.
5749 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5750 for MODULE_LOCAL_P symbols too.
5751 * config/ia64/ia64.c (ia64_encode_section_info): Handle
5752 MODULE_LOCAL_P symbols the same way as local symbols.
5753 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5754 into .sdata/.sbss by the user.
5755 * doc/extend.texi (Function Attributes): Document visibility
5758 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5761 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5762 STRING_CST initializer spanning the whole variable without
5764 If expand_expr returned MEM, don't use it.
5766 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
5768 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5769 generate a die for the lexical block.
5771 2002-02-26 Kazu Hirata <kazu@hxi.com>
5773 * config/h8300/h8300-protos.h: Add a prototype for
5774 compute_logical_op_length.
5775 * config/h8300/h8300.c (compute_logical_op_length): New.
5776 * config/h8300/h8300.md (anonymous logical patterns): Use
5777 compute_logical_op_length for length.
5779 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5781 * dwarf2out.c (modified_type_die): Do not call type_main_variant
5783 (gen_type_die): Same.
5785 * attribs.c (handle_vector_size_attribute): Set debug information.
5787 2002-02-26 Daniel Egger <degger@fhm.edu>
5789 * config/rs6000/rs6000.md: Swap define_insn attributes to
5790 fix incorrect generation of merge high instructions instead
5793 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5795 * c-typeck.c (really_start_incremental_init): Use
5796 bitsize_zero_node for vectors.
5798 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5800 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5801 ("*set_vrsave_internal"): Same.
5803 2002-02-25 Richard Henderson <rth@redhat.com>
5805 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5806 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
5808 2002-02-25 Jakub Jelinek <jakub@redhat.com>
5811 * config/i386/i386.c (ix86_return_pops_args): Only pop
5812 fake structure return argument if it was passed on the stack.
5814 2002-02-25 Jason Merrill <jason@redhat.com>
5816 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5819 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
5821 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5822 link with shared_name only.
5823 * doc/invoke.texi (Link Options): Document new behavior.
5825 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
5827 * c-typeck.c (push_init_level): Handle vectors.
5829 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
5831 * config/sparc/sparc.c (const64_high_operand): Zero-extend
5832 operands of SPARC_SETHI_P.
5833 (input_operand): Likewise.
5834 (sparc_emit_set_const32): Likewise.
5835 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5836 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5837 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
5838 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5839 (movdi_insn_sp64_vis): Likewise.
5840 (movdi split, movdf split): Use SETHI32.
5841 * doc/md.texi: Document SPARC constraints L, M and N.
5843 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
5845 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5846 ("*set_vrsave_internal"): use mfspr for Darwin.
5848 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5849 gen_get_vrsave_internal.
5851 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5853 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5855 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
5857 * cpplex.c (cpp_interpret_charconst): Get signedness or
5858 otherwise of wide character constants correct.
5859 * cppexp.c (lex): Get signedness of wide charconsts correct.
5861 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5863 * optabs.c (widen_operand): Only call convert_modes for
5864 promoted SUBREG if signedness matches.
5865 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5867 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5869 * cpplib.c (glue_header_name): Use local buffer to build up
5872 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5874 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5876 2002-02-23 Kazu Hirata <kazu@hxi.com>
5878 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5879 H8/300[HS] separately.
5880 * config/h8300/h8300.md: Remove the early clobber constraint
5881 from bit field patterns.
5883 2002-02-23 Kazu Hirata <kazu@hxi.com>
5885 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5887 (mulhisi3): Likewise.
5888 (umulqisi3): Likewise.
5889 (umulhisi3): Likewise.
5891 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5893 * cppinit.c (output_deps): Correct test for stdout output.
5894 (init_dependency_output): Cure warning.
5896 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5898 * expr.c (store_expr): When converting expression to promoted
5899 equivalent type, allow using SUBREG_REG of TARGET as the target
5900 of the expansion of EXP.
5901 * loop.c (basic_induction_var, case SUBREG): Always look inside.
5902 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5903 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5904 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5905 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5907 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
5909 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5910 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5911 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5913 2002-02-23 Jakub Jelinek <jakub@redhat.com>
5915 PR optimization/5747
5916 * loop.c (scan_loop): Update reg info if move_movables created new
5919 2002-02-23 David Edelsohn <edelsohn@gnu.org>
5921 * gcc.c (init_gcc_spec): Revert last change.
5923 2002-02-23 David Edelsohn <edelsohn@gnu.org>
5925 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5926 gpc_reg_operand constraint.
5928 2002-02-23 Alan Modra <amodra@bigpond.net.au>
5930 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5931 Simplify comparison of `low'.
5932 (add_operand): Fix formatting.
5933 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5934 (mask_operand): Disallow mask to wrap in 64-bit mode.
5935 (rs6000_stack_info): Remove redundant test setting push_p.
5936 (output_toc): Fix formatting.
5937 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5938 cc_reg_not_cr0_operand constraint.
5939 (booldi3, boolcdi3 splitters): Same.
5941 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
5943 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5945 2002-02-22 David Edelsohn <edelsohn@gnu.org>
5947 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5948 gcc invoked with -shared-libgcc.
5950 2002-02-22 Jakub Jelinek <jakub@redhat.com>
5953 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5954 decl if any of elements was TREE_USED.
5956 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
5958 * config/sparc/sol2.h: Don't include sys/mman.h.
5959 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5960 (arith_4096_operand): Don't throw high bits away.
5961 (const64_operand): Take sign extension of CONST_INTs into account.
5962 (const64_high_operand, sparc_emit_set_const32): Likewise.
5963 (GEN_HIGHINT64): Likewise.
5964 (sparc_emit_set_const64_quick1): Likewise.
5965 (const64_is_2insns): Likewise.
5966 (print_operand): Use trunc_int_for_mode for sign extension.
5967 * config/sparc/sparc.h (SMALL_INT32): Likewise.
5968 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5969 chars. Assume CONST_INT is already properly sign-extended.
5970 (movdi split): Sign-extend each SImode part.
5971 (andsi3 split): Don't mask high bits off, so that result
5972 remains properly sign-extend.
5973 (iorsi3 split): Likewise.
5974 (xorsi3 split): Likewise.
5976 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
5978 * fold-const.c (fold): Fix typo in comments.
5980 2002-02-21 Diego Novillo <dnovillo@redhat.com>
5982 * Makefile.in (langhooks.o): Update dependencies.
5984 2002-02-21 Diego Novillo <dnovillo@redhat.com>
5986 * langhooks.c: Include flags.h.
5988 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
5990 * testsuite/gcc.dg/attr-alwaysinline.c: New.
5992 * c-common.c (c_common_post_options): Set inline trees by
5995 * doc/extend.texi (Function Attributes): Document always_inline
5997 Update documentation about inlining when not optimizing.
5999 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
6001 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
6002 unless DECL_ALWAYS_INLINE.
6004 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
6005 unless DECL_ALWAYS_INLINE.
6006 (c_disregard_inline_limits): Disregard if always_inline set.
6008 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
6009 Disregard if always_inline set.
6010 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
6011 unless DECL_ALWAYS_INLINE.
6013 * attribs.c (handle_always_inline_attribute): New.
6014 (c_common_attribute_table): Add always_inline.
6016 * config/rs6000/altivec.h: Add prototypes for builtins
6017 requiring the always_inline attribute.
6019 2002-02-21 Eric Christopher <echristo@redhat.com>
6021 * expmed.c (store_bit_field): Try to simplify the subreg
6022 before generating a new one when when the mode size of
6023 value is less than maxmode.
6025 2002-02-21 Richard Henderson <rth@redhat.com>
6027 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
6028 than gen_rtx_PLUS to form the sum.
6029 * explow.c (force_reg): Rearrange to not allocate new pseudo
6030 when force_operand returns a register.
6031 * expr.c (expand_assignment): Allow offset_rtx expansion to
6032 return a sum. Do not force addresses into registers.
6033 (expand_expr): Likewise.
6034 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
6035 to canonicalize arithmetic that didn't simpify.
6036 (simplify_plus_minus): New argument force; update
6037 all callers. Don't split CONST unless we can do something with it,
6038 and wouldn't lose the constness of the operands.
6040 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
6041 that we generated earlier.
6043 2002-02-21 Tom Tromey <tromey@redhat.com>
6045 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6046 (output_line_info): Use constant `1', with a long explanatory
6048 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
6050 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
6052 * jump.c (redirect_jump): If old label has no UID, don't try to
6055 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
6057 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
6058 If input is constant, do shifts at compile time.
6060 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
6062 * doc/extend.texi: Fix some more overfull hboxes.
6064 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6066 PR optimization/4994
6067 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
6070 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6073 * expr.h (expand_and): Add mode argument.
6074 * expmed.c (expand_and): Add mode argument.
6075 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
6076 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
6077 * except.c (expand_builtin_extract_return_addr): Likewise.
6078 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6079 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6080 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
6081 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
6082 * config/c4x/c4x.md: Use GEN_INT (x) instead of
6083 gen_rtx (CONST_INT, VOIDmode, x).
6085 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6088 * stmt.c (warn_if_unused_value): Move side effects test once more.
6090 2002-02-20 Torbjorn Granlund <tege@swox.com>
6092 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
6093 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
6095 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
6097 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
6098 SUBREG or ZERO_EXTEND.
6100 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
6102 * sh.h (current_function_anonymous_args): Remove.
6103 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
6104 of current_function_varargs and current_function_stdarg is set.
6105 * sh.c (sh_expand_prologue): Check current_function_varargs /
6106 current_function_stdarg / TARGET_SH5 instead of
6107 current_function_anonymous_args.
6109 * sh64.h (TARGET_VERSION): Define.
6111 2002-02-20 David Edelsohn <edelsohn@gnu.org>
6113 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
6114 VRSAVE_REGNO on TARGET_ALTIVEC.
6116 2002-02-20 Alan Modra <amodra@bigpond.net.au>
6118 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
6119 bits of SImode const_int.
6120 (includes_rshift_p): Likewise.
6121 (print_operand): Call mask_operand and mask64_operand with correct
6123 (rs6000_output_function_epilogue): Pad traceback table to word.
6124 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
6125 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
6126 mask64_operand with correct mode.
6127 (FUNCTION_ARG_REGNO_P): Correct parentheses.
6129 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6132 * varasm.c (get_pool_constant_mark): New.
6133 * rtl.h (get_pool_constant_mark): Add prototype.
6134 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
6135 be represented if it has not been output.
6137 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
6139 * combine.c (do_SUBST): Sanity check substitutions of
6140 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
6141 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
6142 CONST_INT into its operand.
6143 (known_cond): Likewise, for ZERO_EXTEND.
6144 * simplify-rtx.c (simplify_unary_operation): Fix condition to
6145 allow for simplification of wide modes. Reject CONST_INTs in
6146 ZERO_EXTEND when their actual mode is not given.
6148 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
6150 * c-decl.c (pushdecl): If no global declaration is found for an
6151 extern declaration in block scope, try a limbo one.
6153 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6156 * c-common.c (pointer_int_sum): Moved from...
6157 * c-typeck.c (pointer_int_sum): ...here.
6158 * c-common.h (pointer_int_sum): Add prototype.
6160 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6163 * c-decl.c (duplicate_decls): Return 0 if issued error about
6166 2002-02-20 Roger Sayle <roger@eyesopen.com>
6167 Jakub Jelinek <jakub@redhat.com>
6170 * tree.c (host_integerp): Ensure that the constant integer is
6171 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
6172 when pos is zero or non-zero respectively. Clarify comment.
6173 * c-format.c (check_format_info_recurse): Fix host_integerp
6174 usage; the pos argument should be zero when assigning to a
6175 signed HOST_WIDE_INT.
6177 2002-02-20 Richard Henderson <rth@redhat.com>
6179 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
6180 of the operand, rather than assuming TImode.
6181 (ix86_expand_binop_builtin): Cope with commutative patterns
6182 using nonimmediate_operand for both operands.
6183 (ix86_expand_timode_binop_builtin): Likewise.
6184 (ix86_expand_store_builtin): Validate operand 1.
6185 (ix86_expand_unop1_builtin): Likewise.
6187 2002-02-20 Philip Blundell <philb@gnu.org>
6190 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
6192 2002-02-20 Richard Henderson <rth@redhat.com>
6195 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
6197 2002-02-20 Tom Tromey <tromey@redhat.com>
6199 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6200 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6201 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6202 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6203 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
6206 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
6208 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
6209 for (const_int 0) in X not just INTVAL.
6211 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
6213 * doc/extend.texi: Avoid or reduce overfull hboxes.
6215 2002-02-20 Diego Novillo <dnovillo@redhat.com>
6217 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
6218 operations if the field does not start at a mode boundary.
6220 2001-02-20 Joel Sherrill <joel@OARcorp.com>
6222 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
6223 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
6224 Also done for -Acpu and -Amachine.
6226 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
6228 * cppinit.c (init_dependency_output): Take deps output file
6229 from -o if none given with -MF. Suppress normal output.
6230 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
6231 * doc/cpp.texi, doc/invoke.texi: Update.
6233 2002-02-19 Zack Weinberg <zack@codesourcery.com>
6235 * toplev.c (output_quoted_string): Write unprintable
6236 characters with octal escapes.
6238 2002-02-19 David Edelsohn <edelsohn@gnu.org>
6240 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
6241 really_call_used[VRSAVE_REGNO] if not Altivec.
6243 2002-02-19 Alan Modra <amodra@bigpond.net.au>
6245 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
6247 (constant_pool_expr_1): Fix formatting.
6248 (rs6000_legitimize_reload_address): Likewise.
6250 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6252 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
6253 now that we have one.
6255 2002-02-19 Zack Weinberg <zack@codesourcery.com>
6257 * tree.h (struct tree_common): Remove aux. Add unused_0 at
6258 end of first block of bitfields (which was only seven bits);
6259 rename dummy to unused_1; remove comment which is no longer true.
6261 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
6263 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
6265 2002-02-19 Philip Blundell <pb@nexus.co.uk>
6268 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
6272 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
6273 arm_is_longcall_p rather than inspecting call-type cookie
6275 (call_value_insn) [TARGET_THUMB]: Likewise.
6277 2002-02-19 Graham Stott <grahams@redhat.com>
6279 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
6281 2002-02-19 David Edelsohn <edelsohn@gnu.org>
6283 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
6284 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6285 (FP_SAVE_INLINE): Delete.
6287 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
6288 * config/rs6000/eabi.asm: Remove ABI save restore routines.
6289 * config/rs6000/t-ppccomm: Build crtsavres.o.
6290 * config/rs6000/crtsavres.asm: New file.
6292 2002-02-19 Philip Blundell <philb@gnu.org>
6294 * config/arm/arm.c (use_return_insn): Don't reject interrupt
6296 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
6297 (output_return_instruction): Allow interrupt functions to return with
6298 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
6299 (arm_expand_prologue): Subtract 4 before stacking LR in an
6302 2002-02-19 Philip Blundell <pb@nexus.co.uk>
6304 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
6305 decl, not just FUNCTION_DECL.
6306 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
6307 (arm_assemble_integer): Likewise.
6308 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
6311 2002-02-19 matthew green <mrg@eterna.com.au>
6313 * config.gcc (sparc-*-netbsdelf*): Enable target.
6314 (sparc64-*-netbsd*): New target.
6315 * config/sparc/netbsd-elf.h: New file.
6316 * config/sparc/t-netbsd64: New file.
6318 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
6320 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
6322 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
6324 * doc/invoke.texi: explicitly list the style guidelines that
6325 -Weffc++ checks for.
6327 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
6329 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
6331 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
6334 * gcc.c (cpp_unique_options): Treat -o as indicating object file
6335 only if not -E. If -E, pass -o through to the preprocessor.
6337 2002-02-19 Kazu Hirata <kazu@hxi.com>
6339 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
6340 register number with an appropriate macro.
6342 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6344 * doc/rtl.texi (Constants): Close @code tag.
6346 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
6348 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
6349 ("mmx_uavgv4hi3"): Same.
6350 ("pmulhrwv4hi3"): Same.
6352 * tree-inline.c (walk_tree): Handle vectors.
6354 * c-common.c (constant_expression_warning): Handle vectors.
6355 (overflow_warning): Same.
6357 * sched-deps.c (sched_analyze_2): Handle vectors.
6359 * rtlanal.c (rtx_unstable_p): Handle vectors.
6360 (rtx_varies_p): Same.
6361 (count_occurrences): Same.
6362 (regs_set_between_p): Same.
6363 (modified_between_p): Same.
6364 (modified_in_p): Same.
6365 (volatile_insn_p): Same.
6366 (volatile_refs_p): Same.
6367 (side_effects_p): Same.
6369 (inequality_comparisons_p): Same.
6370 (replace_regs): Same.
6371 (computed_jump_p_1): Same.
6373 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
6375 (inner_mode_array): New.
6376 (copy_rtx): Handle vectors.
6377 (copy_most_rtx): Same.
6378 (rtx_equal_p): Same.
6379 (get_mode_alignment): Adjust for vectors.
6381 * resource.c (mark_referenced_resources): Handle vectors.
6382 (mark_set_resources): Same.
6384 * reload1.c (eliminate_regs): Handle vectors.
6385 (elimination_effects): Same.
6386 (scan_paradoxical_subregs): Same.
6388 * reload.c (subst_reg_equivs): Handle vectors.
6390 * regrename.c (scan_rtx): Handle vectors.
6392 * regclass.c (reg_scan_mark_refs): Handle vectors.
6394 * recog.c (find_single_use_1): Handle vectors.
6396 * local-alloc.c (equiv_init_varies_p): Handle vectors.
6397 (contains_replace_regs): Same.
6398 (memref_referenced_p): Same.
6400 * integrate.c (copy_rtx_and_substitute): Handle vectors.
6401 (subst_constants): Same.
6403 * genattrtab.c (attr_copy_rtx): Handle vectors.
6404 (encode_units_mask): Same.
6405 (clear_struct_flag): Same.
6406 (count_sub_rtxs): Same.
6408 * gcse.c (want_to_gcse_p): Handle vectors.
6409 (oprs_unchanged_p): Same.
6410 (hash_expr_1): Same.
6411 (oprs_not_set_p): Same.
6412 (expr_killed_p): Same.
6413 (compute_transp): Same.
6414 (store_ops_ok): Same.
6416 * function.c (purge_addressof_1): Do not allow paradoxical subregs
6418 (fixup_var_refs_1): Same.
6419 (instantiate_virtual_regs_1): Same.
6421 * fold-const.c (operand_equal_p): Handle vectors.
6423 (rtl_expr_nonnegative_p): Same.
6425 * flow.c (mark_used_regs): Handle vectors.
6427 * df.c (df_uses_record): Handle vectors.
6429 * cselib.c (cselib_subst_to_values): Handle vectors.
6430 (cselib_mem_conflict_p): Same.
6433 * cse.c (canon_reg): Handle vectors.
6435 (cse_process_notes): Same.
6436 (count_reg_usage): Same.
6439 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
6441 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
6443 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
6444 (gen_rtx): Handle CONST_VECTOR.
6445 (gen_const_vector_0): New.
6446 (copy_rtx_if_shared): CONST_VECTORs can be shared.
6447 (reset_used_flags): Same.
6448 (copy_insn_1): Same.
6449 (initializer_constant_valid_p): Handle VECTOR_CST.
6451 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
6453 * doc/rtl.texi (Constants): Document const_vector.
6454 (CONST0_RTX): Update for vectors.
6455 (RTL sharing): Same.
6457 * print-tree.c (print_node): Add case for VECTOR_CST.
6459 * tree.h (TREE_VECTOR_CST_ELTS): New.
6460 (struct tree_vector): New.
6461 (union tree_node): Add vector node.
6462 (build_vector): Add prototype.
6464 * tree.def (VECTOR_CST): New.
6466 * tree.c (build_vector): New.
6468 * expmed.c (make_tree): Handle CONST_VECTOR.
6470 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
6471 (CONST_VECTOR_ELT): New.
6472 (CONST_VECTOR_NUNITS): New.
6474 * machmode.h (GET_MODE_INNER): New.
6475 (DEF_MACHMODE): Accept 8th arg.
6477 * machmode.def: Add 8th argument for vector inner mode.
6478 Add inner vector modes for vectors.
6480 * rtl.def (VEC_CONST): Remove.
6481 (CONST_VECTOR): New.
6483 * expr.c (clear_storage): Allow vectors.
6484 (is_zeros_p): Handle VECTOR_CST.
6486 * varasm.c (output_constant_pool): Handle vectors.
6487 (rtx_const): Add veclo and vechi fields.
6488 (kind): Add RTX_VECTOR.
6489 (decode_rtx_const): Add case for vector.
6491 * config/rs6000/rs6000-protos.h: Add zero_constant.
6493 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
6494 constants. Force easy vector constants into memory.
6495 (easy_vector_constant): New.
6496 (emit_easy_vector_constant): New.
6497 (rs6000_legitimize_reload_address): Do not generate bad reloads on
6500 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
6502 ("altivec_lvxl"): Same.
6503 (altivec_lvebx): Same.
6504 (altivec_lvehx): Same.
6505 (altivec_lvewx): Same.
6506 ("*movv4si_const0"): New.
6507 ("*movv4sf_const0"): New.
6508 ("*movv8hi_const0"): New.
6509 ("*movv16qi_const0"): New.
6511 2002-02-18 Kazu Hirata <kazu@hxi.com>
6513 * config/h8300/h8300.c (notice_update_cc): Use
6516 2002-02-18 Kazu Hirata <kazu@hxi.com>
6518 * config/h8300/h8300.md (divmod patterns): Change the
6519 constraints for operands[1] to register_operand.
6521 2002-02-18 Kazu Hirata <kazu@hxi.com>
6523 * config/h8300/h8300-protos.h: Remove the prototype for
6525 * config/h8300/h8300.c (p_operand): Remove.
6526 * config/h8300/h8300.md: Replace p_operand with
6529 2002-02-18 Philip Blundell <pb@nexus.co.uk>
6531 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
6533 (output_return_instruction): Allow use of LDR to unstack
6534 return addresss even for interrupt handlers or when
6535 interworking. If compiling for ARMv5, use interworking-safe
6536 return instructions by default. Remove duplicated code and
6537 lengthy "strcat" sequences.
6539 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6541 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
6542 (LINK_EH_SPEC): Define.
6543 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
6545 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
6547 * config/s390/s390.c (s390_emit_prologue): Do not set the
6548 frame_related flag for call-clobbered registers.
6550 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
6552 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
6553 (construct_container): Fix handling of SSE operands.
6554 (ix86_expand_builtin): Fix handling of 64bit pointers.
6555 (mmx_maskmovq_rex): New pattern.
6557 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
6559 * regrename.c (kill_set_value): Handle subregs properly.
6561 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
6563 * objc/objc-act.c (handle_impent): Remove leading '*'
6564 from objc_class_name.
6566 2002-02-17 Richard Henderson <rth@redhat.com>
6568 * config/alpha/alpha.c (some_small_symbolic_operand,
6569 some_small_symbolic_operand_1, split_small_symbolic_operand,
6570 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
6571 Handle small SYMBOL_REFs anywhere, not just inside memories.
6572 * config/alpha/alpha-protos.h: Update.
6573 * config/alpha/alpha.h (PREDICATE_CODES): Update.
6574 * config/alpha/alpha.md (small symbolic operand splitter): Update.
6576 2002-02-17 Roland McGrath <roland@frob.com>
6578 * config.gcc (powerpc-*-gnu-gnualtivec*,
6579 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
6580 * config/rs6000/gnu.h: New file.
6581 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
6582 Grok "gnu" in rs6000_abi_name.
6583 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
6584 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
6585 Grok -mcall-gnu analogous to -mcall-linux et al.
6586 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6587 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
6588 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
6590 2002-02-17 Jakub Jelinek <jakub@redhat.com>
6593 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
6596 2002-02-17 Philipp Thomas <pthomas@suse.de>
6598 * config/cris/cris.h: Undefine STARTFILE_SPEC and
6599 ENDFILE_SPEC before (re)defining them.
6601 2002-02-17 Kazu Hirata <kazu@hxi.com>
6603 * config/h8300/h8300.c: Fix formatting.
6604 * config/h8300/h8300.h: Likewise.
6606 2002-02-17 Philipp Thomas <pthomas@suse.de>
6608 * doc/tm.texi: Explain why empty strings should not be
6609 marked for translation.
6611 2002-02-17 Philipp Thomas <pthomas@suse.de>
6613 * final.c (output_operand_lossage): Changed to accept
6614 printf style arguments. Change calls where necessary.
6615 * output.h (output_operand_lossage): Change declaration
6616 accordingly. Update copyright.
6617 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
6618 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
6619 Update copyright date where necessary.
6621 * config/i386/i386.c (print_operand): Likewise. Remove use of
6624 * config/cris/cris.c (cris_operand_lossage): Likewise.
6625 Rename parameter so that exgettext recognizes it as
6626 translatable message.
6627 (LOSE_AND_RETURN): Rename parameter to msgid.
6629 2002-02-17 Kazu Hirata <kazu@hxi.com>
6631 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
6632 hard coded register number with an appropriate macro.
6633 (HARD_REGNO_MODE_OK): Likewise.
6634 (ARG_POINTER_REGNUM): Likewise.
6635 (STATIC_CHAIN_REGNUM): Likewise.
6636 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6637 * config/h8300/h8300.md (define_constants): Define more
6640 2002-02-17 Philipp Thomas <pthomas@suse.de>
6642 * config/i386/i386.h: Don't mark empty strings for translation.
6644 2002-02-16 H.J. Lu <hjl@gnu.org>
6646 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
6648 2002-02-16 Zack Weinberg <zack@codesourcery.com>
6650 * cppinit.c (merge_include_chains): Check for brack being
6651 NULL before attempting to merge it with qtail.
6653 2002-02-16 Andrew Cagney <ac131313@redhat.com>
6655 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
6658 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
6660 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
6662 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
6664 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
6665 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
6666 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
6668 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6670 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
6671 now only if !TARGET_FIX.
6672 (*movsi_nt_vms_fix): New pattern.
6674 2002-02-16 Douglas B Rupp <rupp@gnat.com>
6676 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
6677 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
6678 (alpha_sa_mask, alpha_sa_size): Reflect above change.
6679 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
6680 (alpha_start_function, alpha_expand_epilogue): Likewise.
6681 (unicosmk_gen_dsib): Likewise.
6683 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6685 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
6687 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
6689 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
6690 check_and_change_labels, s390_final_chunkify): Delete.
6691 (s390_split_branches, s390_chunkify_pool): New functions.
6692 (s390_function_prologue): Call them.
6694 * config/s390/s390.h (S390_REL_MAX): Delete.
6695 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6697 * config/s390/s390.md (cjump, icjump, jump): Fix length
6698 attribute calculation.
6701 2002-02-15 David Edelsohn <edelsohn@gnu.org>
6703 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6704 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6706 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
6708 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6709 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6710 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6712 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
6714 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6716 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
6718 * reload.c (find_dummy_reload): Check that an output register
6719 is valid for its mode.
6721 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
6723 * combine.c (known_cond): After replacing the REG of a SUBREG, try
6726 * function.c (assign_parms): Demote promoted argument passed by
6727 transparent reference.
6729 2001-02-14 Joel Sherrill <joel@OARcorp.com>
6731 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6732 -Acpu() and -Amachine() to eliminate warnings.
6734 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
6736 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6738 2002-02-14 Kazu Hirata <kazu@hxi.com>
6740 * config/h8300/h8300-protos.h: Update the prototype for
6742 * config/h8300/h8300.c (const_costs): Treat SET as a little
6743 more expensive operation.
6744 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6745 reference to const_costs.
6747 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
6749 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6751 2002-02-14 Jakub Jelinek <jakub@redhat.com>
6754 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6755 use arguments from newtype.
6757 2002-02-13 Eric Christopher <echristo@redhat.com>
6759 * config/mips/mips.c (override_options): Add check for march/mipsX
6760 on the same command line. Fix error message in cpu processing.
6761 Remove architecture and ISA checks.
6763 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
6765 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6767 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6769 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
6771 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6773 ("*movv8hi_internal1"): Same.
6774 ("*movv16qi_internal1"): Same.
6775 ("*movv4sf_internal1"): Same.
6777 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6778 not push_reload for altivec modes.
6780 2002-02-13 Joel Sherrill <joel@OARcorp.com>
6782 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6783 all RTEMS targets including removal of #includes from config/*/rtems*.h
6784 file and adding them to tm_file setting. Added xm_defines=POSIX to
6786 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6787 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6788 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6789 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6790 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6791 config/m68k/rtemself.h: Ditto.
6792 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6793 config/mips/rtems64.h: Ditto.
6794 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6795 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6797 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6798 config/sparc/rtemself.h: Ditto.
6799 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6800 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6801 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6803 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6804 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6805 target made more similar to i386-elf.
6806 * config/i386/t-rtems-i386: Added soft float support and multilibs.
6807 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6808 be similar to config/m68k/t-m68kelf.
6809 * gthr-rtems.h: Encapsulate with extern "C" for C++.
6811 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
6813 * regmove.c (kill_value): Handle subregs.
6815 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
6817 * i386.md (mul patterns): Allow memory operand to be first;
6818 add expanders where needed; fix constraints.
6819 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6820 Allow memory operand to be the first.
6822 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6825 2002-02-13 Jakub Jelinek <jakub@redhat.com>
6828 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6831 2002-02-13 Jakub Jelinek <jakub@redhat.com>
6833 PR optimization/5547:
6834 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6835 all valid IA-32 address modes involving non-scaled %ebx and
6836 GOT/GOTOFF as displacement.
6838 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
6840 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6841 after emitting ltorg insns.
6843 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6844 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6845 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6846 *abssf2): Fix "op_type" attribute.
6848 2002-02-13 Douglas B Rupp <rupp@gnat.com>
6850 * mkconfig.sh: Avoid using a subshell redirect.
6851 ($output.T): Change to $(output)T.
6852 (ENABLE_NLS): Remove unneeded undef.
6854 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6855 * config/alpha/x-vms (libsubdir): Define.
6857 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6858 register frame procedures. Optimize retrieving context.
6860 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6861 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6862 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6864 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6866 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6867 Make same change as for find_base_value.
6869 2002-02-13 Kazu Hirata <kazu@hxi.com>
6871 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6872 of QImode and SImode.
6874 2002-02-13 Kazu Hirata <kazu@hxi.com>
6876 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6877 length computation of movsi.
6878 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6880 2002-02-13 Kazu Hirata <kazu@hxi.com>
6882 * config/h8300/h8300.md (subqi3): Tighten the predicate for
6883 operands[2] to register_operand.
6885 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
6887 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6889 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
6891 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6892 for altivec_lvx* and altivec_stvx*.
6893 ("*movv4si_internal"): Add constraint for loading from GPRs.
6894 ("*movv8hi_internal1"): Same.
6895 ("*movv16qi_internal1"): Same.
6896 ("*movv4sf_internal1"): Same.
6898 * config/rs6000/rs6000.c (altivec_register_operand): New.
6900 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6901 altivec_register_operand.
6903 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
6905 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6908 2002-02-13 Stan Shebs <shebs@apple.com>
6910 * c-typeck.c (digest_init): Handle vectors.
6911 (really_start_incremental_init): Same.
6912 (pop_init_level): Same.
6913 (process_init_element): Same.
6915 * varasm.c (output_constant): Same.
6917 * expr.c (clear_storage): Same.
6918 (store_constructor): Same.
6920 2002-02-12 Eric Christopher <echristo@redhat.com>
6922 * explow.c (hard_function_value): Add comment explaining
6923 signed/unsigned comparison.
6925 2002-02-12 Jakub Jelinek <jakub@redhat.com>
6927 * jump.c (never_reached_warning): Add finish argument.
6928 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6929 real insn after end.
6930 * rtl.h (never_reached_warning): Adjust prototype.
6931 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6932 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6933 never_reached_warning.
6935 2002-02-12 Graham Stott <grahams@redhat.com>
6937 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6939 2002-02-12 Kazu Hirata <kazu@hxi.com>
6941 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6942 logical shifts on H8/300.
6943 (shift_alg_si): Improve several shifts on H8/300.
6944 (get_shift_alg): Likewise.
6946 2002-02-12 Graham Stott <grahams@redhat.com>
6948 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6950 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6952 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6953 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6955 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
6957 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6958 non-CONST_INT through default_assemble_integer.
6959 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6960 <case 8>: Abort for CONST_DOUBLE.
6962 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6964 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6966 * config/pa/pa-linux.h (LIB_SPEC): Delete.
6967 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6969 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
6971 * config/stormy16/stormy16.md (zero_extendqihi2): New.
6973 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
6975 * regrename.c (regrename_optimize): Don't accept a
6976 part-clobbered register if the replaced register is not part
6979 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6980 take padding into account when computing the argument value.
6982 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6984 * combine.c (try_combine): Apply substitutions in
6985 CALL_INSN_FUNCTION_USAGE too.
6987 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
6989 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6990 __builtin_altivec_abs*.
6993 * config/rs6000/rs6000.h (rs6000_builtins): Add
6994 ALTIVEC_BUILTIN_ABS*.
6996 * config/rs6000/altivec.h: Use const char for builtins expecting
6998 (vec_abs): New versions for C and C++.
7001 2002-02-10 Kazu Hirata <kazu@hxi.com>
7003 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
7006 2002-02-10 Kazu Hirata <kazu@hxi.com>
7008 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
7009 constant definition from h8300.md.
7010 (FRAME_POINTER_REGNUM): Likewise.
7011 * config/h8300/h8300.md (define_constants): Add FP_REG.
7013 2002-02-10 Kazu Hirata <kazu@hxi.com>
7015 * config/h8300/h8300.c (print_operand): Remove redundant code.
7017 2002-02-10 Kazu Hirata <kazu@hxi.com>
7019 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
7020 * config/h8300/h8300.c (byte_reg): Make it static.
7022 2002-02-10 Richard Henderson <rth@redhat.com>
7025 * c-typeck.c (incomplete_type_error): Handle flexible array members.
7027 2002-02-10 Richard Henderson <rth@redhat.com>
7030 * tree.c (append_random_chars): Don't abort if main_input_filename
7033 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
7035 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
7037 2002-02-10 Kazu Hirata <kazu@hxi.com>
7039 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
7040 (pushhi1): Likewise.
7042 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
7044 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
7045 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
7047 2002-02-09 David O'Brien <obrien@FreeBSD.org>
7049 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
7051 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
7053 2002-02-09 Kazu Hirata <kazu@hxi.com>
7055 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
7056 a half of an SImode register on H8/300.
7058 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
7060 * i386.md (movdi_2): Add missing '!'.
7062 2002-02-09 Kazu Hirata <kazu@hxi.com>
7064 * config/h8300/h8300.h: Fix formatting. Remove commented-out
7067 2002-02-09 Kazu Hirata <kazu@hxi.com>
7069 * config/h8300/h8300.md (length): Correct the distance valid
7070 for the short branch.
7072 2002-02-09 Kazu Hirata <kazu@hxi.com>
7074 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
7076 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
7078 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
7079 registers in SImode.
7080 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
7083 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
7086 Contribute sh64-elf.
7087 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
7088 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
7089 (sh_cannot_modify_jumps_p): New function.
7090 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
7091 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
7092 (sh_ms_bitfield_layout_p): New function.
7093 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
7094 Zack Weinberg <zack@codesourcery.com>
7095 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
7096 expand_simple_binop instead of expand_binop.
7097 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
7098 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
7099 use of .quad and .uaquad.
7100 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
7101 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
7102 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7103 * config/sh/sh.md (movdi_const, movdi_const_32bit,
7104 movdi_const_16bit): Make sure all CONSTs have modes.
7105 (sym2PIC): Ditto, but by adjusting all callers.
7106 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
7107 if the prologue calls the SHmedia argument decoder or register
7109 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7110 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
7111 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
7112 (sh_expand_epilogue): Don't emit USE of return target register.
7113 (prepare_move_operands): Legitimize DImode PIC addresses.
7114 (sh_media_register_for_return): Skip tr0, used to initialize the
7116 (sh_expand_prologue): Remove explicit USE of return register.
7117 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
7118 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
7119 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
7120 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
7121 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
7123 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
7124 (MOVI_SHORI_BASE_OPERAND_P): New.
7125 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
7126 (EXTRA_CONSTRAINT_T): Define in terms of them.
7127 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
7128 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
7129 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
7130 alternatives supporting TARGET_REGS.
7131 (UNSPEC_GOTPLT): New constant.
7132 (movdi split): Move incrementing of LABEL_NUSES...
7133 (movdi_const, movdi_const_32bit): Here. Use
7134 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
7135 (movdi_const_16bit): New.
7136 (call, call_value) [flag_pic]: Use GOTPLT.
7137 (call_pop, call_value_pop): New expands.
7138 (call_pop_compact, call_pop_rettramp): New insns.
7139 (call_value_pop_compact, call_value_pop_rettramp): New insns.
7140 (sibcall) [flag_pic]: Use GOT.
7141 (builtint_setjmp_receiver): Remove bogus, unused expand.
7142 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
7143 (*pt, *ptb, ptrel): New insns.
7144 (sym2GOT): Handle DImode GOT.
7145 (sym2GOTPLT, symGOTPLT2reg): New expands.
7146 (sym2PIC): New expand.
7147 (shcompact_return_tramp): Use GOTPLT to return trampoline.
7148 (shcompact_return_tramp_i): Use return register explicitly.
7149 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
7150 disable flag_reorder_blocks.
7151 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
7152 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
7153 clobbers, for clarity.
7154 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
7155 restoring of r0 in macl as MAYBE_DEAD.
7156 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
7157 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
7158 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
7159 alter_subreg all over.
7160 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
7161 reload, instead of emitting instructions that would require
7163 (casesi_load_media): Add missing modes.
7164 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
7165 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
7166 as used if the argument decoder is called.
7167 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
7168 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
7169 Pmode, then extend it to DImode if necessary.
7170 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
7171 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
7172 constants in FPU-enabled SHmedia, let them be loaded from memory.
7173 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
7174 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
7175 Adjust whitespace in assembly output templates.
7176 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
7177 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
7178 mode of if_then_else.
7179 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
7180 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
7182 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
7183 Joern Rennecke <amylaar@redhat.com>
7184 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
7185 (SUBTARGET_CPP_PTR_SPEC): New.
7186 (SUBTARGET_CPP_SPEC): Remove.
7187 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
7188 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7189 Fix typo in previous checkin.
7190 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
7191 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
7192 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
7193 Alexandre Oliva <aoliva@redhat.com>
7194 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
7195 what single FP register can hold for SHmedia target.
7196 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
7197 Alexandre Oliva <aoliva@redhat.com>
7198 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7199 Do not split into SUBREG.
7200 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
7201 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
7202 and added new functions as specified in SH5 ABI r9.
7203 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
7204 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
7206 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
7207 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
7208 gen_consttable_4 and gen_consttable_8. Emit multiple labels
7209 and consttable_window_ends.
7210 2001-06-03 Graham Stott <grahams@redhat,com>
7211 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
7212 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
7213 * config/sh/sh.c (print_operand): Handle floating-point pair,
7214 vector and matrix registers.
7215 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
7216 vector modes into account.
7217 * config/sh/sh.md (movv2sf): Split move between registers into
7219 (movv4sf, movv16sf): Introduce insns that get split only after
7221 * config/sh/shmedia.h: Fix Copyright dates.
7222 * config/sh/ushmedia.h: Likewise. Move loop counter
7223 declarations into conditionals that uses them.
7224 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
7226 * config/sh/sshmedia.h: Fix Copyright dates.
7227 (sh_media_PUTCFG): Fix constraints.
7228 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
7229 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
7230 ptrmemfunc_vbit_in_delta for SH5.
7231 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
7232 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
7233 * invoke.texi: Likewise.
7234 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
7235 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
7236 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
7237 GCC_pop_shmedia_regs_nofpu): New global symbols.
7238 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
7239 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
7240 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
7241 compact function with nonlocal labels.
7242 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
7243 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
7244 (initial_elimination_offset): Account for their stack space.
7245 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
7246 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
7247 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
7248 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
7249 least one of the operands to be a register.
7250 (movv2sf): Likewise. Renamed to movv2sf_i.
7251 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
7252 prepare_move_operands() before emitting SHmedia insns.
7253 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
7254 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
7255 Don't save nor initialize r12. Don't mis-align the stack.
7256 Pad the code with a nop.
7257 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
7259 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
7260 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
7261 [__SHMEDIA__]: Implement.
7262 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
7263 * config/sh/sh.md: Set latency of `pt' closer to reality.
7264 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
7265 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
7266 Set move, load and store type attributes.
7267 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
7268 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
7270 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
7271 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
7272 * config/sh/sh.c (sh_media_register_for_return): New function.
7273 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
7274 branch-target register.
7275 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
7276 * config/sh/sh.md (return_media_i): Use any call-clobbered
7277 branch-target register.
7278 (return_media): If r18 wasn't copied in the prologue, copy it
7280 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
7281 Clear class FP0_REGS.
7282 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
7284 2001-03-08 DJ Delorie <dj@redhat.com>
7285 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
7286 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
7287 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
7288 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
7289 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
7290 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
7291 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
7292 return value correctly for call_cookie.
7293 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
7294 * config/sh/crt1.asm (start): Modified so as to call
7295 ___setup_argv_and_call_main.
7296 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
7297 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
7299 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
7300 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
7301 (STRIP_NAME_ENCODING): Use it.
7302 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
7303 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
7304 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
7305 prepare_scc_operands().
7306 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
7307 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
7308 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
7309 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
7310 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
7311 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
7312 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
7313 used in shcompact_incoming_args.
7314 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
7316 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
7318 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
7320 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
7321 Simplify. Adjust. Add sanity check.
7322 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
7324 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
7326 (udivsi3, divsi3): Use them.
7327 (force_mode_for_call): New insn.
7328 (call, call_value, sibcall_value): Emit it before SHcompact
7330 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
7331 * config/sh/sh.md (call, call_value, sibcall): Make sure the
7332 call cookie is non-NULL before taking its value.
7333 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
7334 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
7335 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
7336 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
7338 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
7339 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
7340 temporary for stack adjusts. Use MACL and MACH to pass
7341 arguments to shcompact_incoming_args.
7342 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
7344 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
7345 (nested_trampoline): Load static chain address into r1.
7346 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
7347 2001-01-07 Alexandre Oliva <aoliva@redhat.com
7348 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
7349 fp_arith_reg_operand().
7350 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
7351 * config/sh/sh.md (casesi): Sign-extend the first two operands,
7352 and use signed compares for them.
7353 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
7354 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
7355 ones properly aligned.
7356 (find_barrier): Account for extra alignment needed for 8-byte wide
7358 (machine_dependent_reorg): Require a label for the second 4-byte
7359 constant after an 8-byte one.
7360 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
7362 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
7363 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
7364 last_float when switching float modes.
7365 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
7366 auto-increment for general-purpose registers.
7367 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
7369 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
7371 * config/sh/sh.c (sh_builtin_saveregs): Support using all
7372 registers for varargs.
7373 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
7374 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
7375 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
7376 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
7377 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
7378 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
7379 call_cookie accordingly.
7380 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
7381 (SHCOMPACT_BYREF): Likewise.
7382 (SHCOMPACT_FORCE_ON_STACK): New macro.
7383 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
7384 (sh_builtin_saveregs): Likewise.
7385 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7386 shcompact_incoming_args): Use new shift values. Support
7387 sequences of consecutive and non-consecutive pushes/pops.
7388 * config/sh/sh.md (return): Don't explicitly use PR_REG.
7389 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
7390 * config/sh/sh.h (TEXT_SECTION): Define.
7391 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
7392 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
7393 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
7394 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
7395 return values on FPU-enabled SHmedia.
7396 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
7397 FPU-enabled SHmedia.
7398 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
7399 value is returned in a non-FP reg and is not returned by
7401 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
7403 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
7404 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
7405 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
7406 quad-aligned to be passed by callee-copy reference.
7407 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
7408 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
7409 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
7410 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
7411 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
7412 copying low-numbered FP regs to r7 and r8.
7413 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
7414 FP regs to general-purpose regs only if the copy was passed on the
7416 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
7417 copying FP reg to r9.
7418 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
7419 copy FP regs to general-purpose regs only in outgoing calls.
7420 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
7421 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
7423 * config/sh/sh.h (struct sh_args): Document all fields.
7424 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
7425 passed partially on the stack should not consider making
7427 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
7428 stack_regs only for incoming calls. When passing FP args,
7429 make sure there are FP regs available before modifying
7431 (SHCOMPACT_BYREF): Pass double args in general-purpose
7432 registers by reference.
7433 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
7434 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
7435 attempt to generate sibcalls if the caller got any arguments
7437 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
7438 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
7439 to 8-byte boundaries.
7440 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
7441 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
7442 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
7443 stored in the stack.
7444 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
7445 for the offsets to have the ISA bit set.
7446 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
7447 invocation. Use beq instead of bgt to mark end of sequence of
7449 (shcompact_incoming_args): Fix store of r2. Use beq instead of
7450 bgt to mark end of sequence of stores.
7451 * config/sh/sh.c (arith_operand): Don't check whether
7452 CONST_OK_FOR_J for now.
7453 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
7454 instead of long for conversion.
7455 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
7456 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
7457 before passing it to fprintf.
7458 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
7459 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
7460 Call set_fpscr before reading/writing SR.
7461 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
7463 * config/sh/lib1funcs.asm: Add `.align 2' directives before
7465 (FMOVD_WORKS): Define on SH5 with FPU.
7466 (set_fpscr): Define on SH5. Remove separate _fpscr_values
7468 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
7470 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
7471 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
7473 (ia_main_table): Ditto.
7474 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
7475 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7476 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
7477 the definitions from sh.h.
7478 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
7480 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
7481 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
7482 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7483 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
7484 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
7485 Increment LABEL_NUSES.
7487 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
7489 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
7491 * config/sh/elf.h (SIZE_TYPE): Likewise.
7492 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7493 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7494 shcompact_incoming_args): Load switch table addresses using
7496 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7497 (NO_BUILTIN_SIZE_TYPE): Define.
7498 (SIZE_TYPE): Don't define.
7499 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7500 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
7501 definition of __SH5__=32 for -m5-compact-nofpu.
7502 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
7504 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
7505 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
7506 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
7507 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
7508 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
7509 (INSN_LENGTH_ALIGNMENT): Likewise.
7510 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7511 * config/sh/sh.md (call, call_value, sibcall): Simplify
7512 copying of non-branch-target register.
7513 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7514 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
7515 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
7516 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7517 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
7518 floating-point values as structs.
7519 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
7520 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
7521 general-purpose register.
7522 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
7523 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
7524 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
7525 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
7526 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
7527 (ENCODE_SECTION_INFO): Enclose variables and constants in
7529 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
7530 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
7531 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
7532 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
7533 only for LABEL_REFs. For SYMBOL_REFs, prepend
7534 SH_DATALABEL_ENCODING to the symbol name.
7535 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
7537 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
7538 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
7540 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
7541 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
7542 (DATALABEL_REF_P): Don't require CONST.
7543 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
7545 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
7546 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
7548 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
7549 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
7550 Use shallow_copy_rtx and PUT_MODE to change the mode of
7551 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
7552 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
7553 on SHmedia using GENERAL_REGs.
7554 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7555 bltu_media_i): Fix reversion of conditions.
7556 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
7557 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
7558 * config/sh/sh.c (output_far_jump): Save r13 in macl.
7559 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
7560 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
7561 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
7562 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
7563 (GCC_nested_trampoline): Likewise.
7564 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
7565 * config/sh/sh.c (gen_datalabel_ref): Define.
7566 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
7567 (INITIALIZE_TRAMPOLINE): Likewise.
7568 (TRAMPOLINE_ADJUST_ADDRESS): Define.
7569 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
7570 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
7571 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
7572 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
7573 (ic_invalidate): Adjust for SH5.
7574 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
7575 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
7577 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
7578 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
7579 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
7580 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
7581 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
7582 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
7583 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
7584 * config/sh/sh.c (target_reg_operand): Match only target-branch
7585 registers and pseudos that aren't virtual registers.
7586 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7587 Copy operands that don't match target_reg_operand to pseudos.
7588 (call_media, call_value_media, sibcall_media): Use
7589 target_reg_operand instead of target_operand.
7590 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
7591 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
7592 * config/sh/sh.c (target_reg_operand): Match hardware registers
7593 other than branch-target registers.
7594 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
7595 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
7596 (fpscr_values) [SH5 == 32]: Define.
7597 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
7598 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7599 Handle function addresses coming in SUBREGs.
7600 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
7601 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7602 shcompact_return_trampoline): Use datalabel where appropriate.
7603 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
7604 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
7605 general-purpose register to copy one branch-target register to
7607 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
7608 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
7609 SYMBOL_REFs with VOIDmode.
7610 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7611 bltu_media_i): New insns.
7612 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
7613 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
7614 (INIT_CUMULATIVE_ARGS): Likewise.
7615 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
7616 * machmode.def (V16SFmode): New mode.
7617 * c-common.c (type_for_mode): Support V2SF and V16SF.
7618 * tree.c (build_common_tree_nodes_2): Likewise.
7619 * tree.h (tree_index): Likewise.
7620 * calls.c (emit_call_1): Take args_so_far. Adjust all
7621 callers. Introduce CALL_POPS_ARGS.
7622 * tm.texi (CALL_POPS_ARGS): Document.
7623 * config/sh/crt1.asm: Implement in SHmedia mode.
7624 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
7625 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
7626 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
7627 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
7628 Implement divsi and udivsi in SHmedia mode. Introduce
7629 SHcompact trampolines.
7630 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
7632 (regno_reg_class): Rewrite.
7633 (fp_reg_names): Remove.
7634 (sh_register_names, sh_additional_register_names): New.
7635 (print_operand): Added `u'. Support SUBREGs in addresses.
7636 Add parentheses around shifted CONSTs.
7637 (output_file_start): Output .mode and .abi directives.
7638 (shiftcosts, addsubcosts, multcosts): Adjust.
7639 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
7640 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
7641 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
7642 bytes, not registers. Take into account the need for the
7643 SHcompact incoming args trampoline. Adjust all callers.
7644 (sh_expand_prologue): Take stack_regs into account. Call
7645 incoming args trampoline. Keep stack aligned as per SH5 ABI.
7646 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
7647 stack aligned as per SH5 ABI.
7648 (sh_builtin_saveregs): Support SH5 ABI.
7649 (sh_build_va_list, sh_va_start): Likewise.
7650 (initial_elimination_offset): Take alignment into account.
7651 Compute location of PR according to the SH5 stack frame.
7652 (arith_reg_operand): Reject branch-target registers.
7653 (shmedia_6bit_operand): New.
7654 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
7655 (target_reg_operand): Match DImode only. Accept SUBREGs.
7656 (target_operand): New.
7657 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
7658 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
7659 SIBCALL_REGS for SHmedia.
7660 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
7661 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
7662 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
7663 (TARGET_SWITCHES): New SH5 flags.
7664 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
7665 VALID_REGISTER_P to disable unsupported registers.
7666 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
7667 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
7668 (FUNCTION_ARG_PADDING): Define.
7669 (FASTEST_ALIGNMENT): Adjust.
7670 (SH_REGISTER_NAMES_INITIALIZER): New.
7671 (sh_register_names): Declare.
7672 (DEBUG_REGISTER_NAMES): Define.
7673 (REGISTER_NAMES): Define based on sh_register_names.
7674 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
7675 (sh_additional_register_names): Declare.
7676 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
7677 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
7678 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
7679 (REGISTER_NATURAL_MODE): Define.
7680 (FIRST_PSEUDO_REGISTER): Adjust.
7681 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
7682 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
7683 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
7684 (VECTOR_MODE_SUPPORTED_P): Define.
7685 (REG_CLASS_CONTENTS): Adjust.
7686 (SMALL_REGISTER_CLASSES): Adjust.
7687 (REG_ALLOC_ORDER): Adjust.
7688 (INDEX_REG_CLASS): Adjust.
7689 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
7690 (CONST_OK_FOR_LETTER_P): Adjust.
7691 (PREFERRED_RELOAD_CLASS): Adjust.
7692 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7693 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7694 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7695 (FIRST_FP_PARM_REG): Adjust.
7696 (CALL_POPS_ARGS): Define.
7697 (FUNCTION_ARG_REGNO_P): Adjust.
7698 (struct sh_args): New fields.
7699 (GET_SH_ARG_CLASS): Adjust.
7700 (INIT_CUMULATIVE_ARGS): Adjust.
7701 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7702 (FUNCTION_ARG_ADVANCE): Adjust.
7703 (FUNCTION_ARG): Adjust.
7704 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7705 (FUNCTION_ARG_CALLEE_COPIES): Define.
7706 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7707 (STRICT_ARGUMENT_NAMING): Define.
7708 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7709 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7710 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7711 (SETUP_INCOMING_VARARGS): Adjust.
7712 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7713 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7714 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7715 (SUBREG_OK_FOR_INDEX_P): Adjust.
7716 (EXTRA_CONSTRAINT_S): Update.
7717 (EXTRA_CONSTRAINT_T): New.
7718 (EXTRA_CONSTRAINT): Adjust.
7719 (GO_IF_LEGITIMATE_INDEX): Adjust.
7720 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7721 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7723 (MAX_MOVE_MAX): Define.
7725 (CONST_COSTS): Adjust.
7726 (REGISTER_MOVE_COST): Adjust.
7727 (BRANCH_COST): Adjust.
7728 (TEXT_SECTION_ASM_OP): Adjust.
7729 (DBX_REGISTER_NUMBER): Adjust.
7730 (ASM_OUTPUT_DOUBLE_INT): New.
7731 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7732 (PREDICATE_CODES): Adjust.
7733 (PROMOTE_MODE): Adjust.
7734 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7735 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7736 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7737 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7738 (DR0_REG, DR2_REG, DR4_REG): Renumber.
7739 (TR0_REG, TR1_REG, TR2_REG): New.
7740 (XD0_REG): Renumber.
7741 (UNSPEC_COMPACT_ARGS): New.
7742 (type): Added pt and ptabs.
7743 (length): Default to 4 on SHmedia. Default pt length to 12
7744 and 20 on SHmedia32 and SHmedia64, respectively.
7745 (pt): New function unit.
7746 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
7747 Add whitespace between operands of SHmedia instructions.
7749 (adddi3_media, addsi3_media): Adjust constraints.
7750 (subsi3) [SHmedia]: Force operand 1 into a register.
7751 (udivsi3_i1_media, udivsi3_i4_media): New.
7752 (udivsi3): Support SHmedia.
7753 (divsi3_i1_media, divsi3_i4_media): New.
7754 (divsi3): Support SHmedia.
7755 (anddi3, iordi3, xordi3): Adjust constraints.
7756 (zero_extendhidi2, zero_extendqidi2): New.
7757 (extendsidi2, extendhidi2, extendqidi2): New.
7758 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7759 (pop_e, pop_fpul, pop_4): Likewise.
7760 (movsi_media): Support FP and BT registers.
7761 (movsi_media_nofpu): New. Adjust splits to DImode.
7762 (lduw, ldub): Renamed to zero_extend* above.
7763 (movqi_media): Fix typo.
7764 (movdi_media): Support FP and BT registers.
7765 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
7766 (movdi_const_32bit): New.
7767 (shori_media): Require immediate operand. Use `u' for output.
7768 (movdf_media, movsf_media): Simplified.
7769 (movdf_media_nofpu, movsf_media_nofpu): New.
7770 (movdf, movsf): Adjust
7771 (movv2sf, movv2sf, movv16sf): New.
7772 (beq_media, beq_media_i): Adjust constraints. Don't use
7773 scratch BT register.
7774 (bne_media, bne_media_i): Likewise.
7775 (bgt_media, bgt_media_i): Likewise.
7776 (bge_media, bge_media_i): Likewise.
7777 (bgtu_media, bgtu_media_i): Likewise.
7778 (bgeu_media, bgeu_media_i): Likewise.
7779 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7780 bunordered): Emit jump insn. Force operands to registers when
7782 (jump_media, jump): Simplify.
7783 (call_compact, call_compact_rettramp): New.
7784 (call_value_compact, call_value_compact_rettramp): New.
7785 (call_media, call_value_media): Simplify.
7786 (sibcall_compact, sibcall_media): New.
7787 (call, call_value): Adjust for SHmedia and SHcompact.
7788 (sibcall, sibcall_value, untyped_call): Likewise.
7789 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7790 (indirect_jump): Adjust for SHmedia.
7791 (casesi_jump_media): New.
7792 (nop): Re-enable for SHmedia.
7793 (call_site): Restrict to SH1.
7794 (casesi): Adjust for SHmedia.
7795 (casesi_shift_media, casesi_load_media): New.
7796 (return): Explicitly use PR register. Call return trampoline
7798 (return_i): Explicitly use PR register.
7799 (shcompact_return_tramp, shcompact_return_tramp_i): New.
7800 (return_media): Adjust.
7801 (shcompact_incoming_args): New.
7803 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7804 (movstrsi): Disable on SH5.
7805 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7806 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7807 (subsf3, subsf3_media): Likewise.
7808 (mulsf3, mulsf3_media, mac_media): Likewise.
7809 (divsf3, divsf3_media): Likewise.
7810 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
7811 (floatsisf2, fux_truncsfsi2): Likewise.
7812 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
7814 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7815 (cmpunsf_media, cmpsf): Likewise.
7816 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7817 (abssf2, abssf2_media): Likewise.
7818 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7819 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7820 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
7821 (floatsidf2, fix_truncdfsi2): Likewise.
7822 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
7824 (cmpeqdf_media, cmpgtdf_media): Likewise.
7825 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7826 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7827 (absdf2, absdf2_media): Likewise.
7828 (extendsfdf2, extendsfdf2_media): Likewise.
7829 (truncsfdf2, truncsfdf2_media): Likewise.
7830 * config/sh/sh64.h: New file.
7831 * config/sh/t-sh64: New file.
7832 * config/sh/shmedia.h: New file.
7833 * config/sh/ushmedia.h: New file.
7834 * config/sh/sshmedia.h: New file.
7835 * configure.in: Added sh64-*-elf.
7836 * configure: Rebuilt.
7837 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
7838 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7839 (reg_class_from_letter): Use `b' for TARGET_REGS.
7840 (print_operand): Support `%M', `%m', `AND' and
7841 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
7842 (andcosts): Adjust for SHmedia.
7843 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7845 (target_reg_operand): New function.
7846 * config/sh/sh-protos.h (target_reg_operand): Declare.
7847 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7848 FP registers on SH5.
7849 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7851 (TARGET_REGISTER_P): New macro.
7852 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7853 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7854 (EXTRA_CONSTRAINT_S): New macro.
7855 (EXTRA_CONSTRAINT): Adjust.
7856 (FLOAT_TYPE_SIZE): Define to 32.
7857 (Pmode): DImode on SHmedia.
7858 (CONST_COSTS): Adjust for SHmedia literals.
7859 (PREDICATE_CODES): Added target_reg_operand.
7860 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7861 * config/sh/sh.md: Remove all attrs from SHmedia insns.
7862 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7863 (cmpdi): Accept SHmedia.
7864 (movdicc_false, movdicc_true): New insns.
7865 (movdicc): New expand.
7866 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7868 (addsi3_media): Match `S' constraint.
7869 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7870 (negdi2): Expand for SHmedia.
7871 (one_cmpldi2): New expand.
7872 (zero_extendsidi2): Change from expand to insn.
7873 (extendsidi2): Add constraints.
7874 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
7875 LD/ST address. Fix SI immediate loading split.
7876 (movhi_media, movqi_media, lduw, ldub): New insns.
7877 (movhi, movqi): Accept SHmedia.
7878 (shori_media, movdi_media): Relax input constraints. Split
7880 (movdf_media, movsf_media): New insn. New split to movdi.
7881 (movdf, movsf): Match on SHmedia.
7882 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7883 bgeu_media): New insns and splits. New insns with `_i' suffix.
7884 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7885 (bunordered): New expand.
7886 (jump_compact): Renamed from `jump'.
7887 (jump_media): New insn.
7889 (call_media, call_value_media): New insns.
7890 (call, call_value): Adjust.
7891 (indirect_jump_compact): Renamed from `indirect_jump'.
7892 (indirect_jump_media): New insn.
7893 (indirect_jump): New expand.
7894 (untyped_call, return): Accept SHmedia.
7895 (return_media): New insn.
7896 (prologue, epilogue, blockage): Accept SHmedia.
7897 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7898 (sunordered): New expand.
7899 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7900 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7901 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7902 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7903 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7904 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7905 abssf2_media): New insns.
7906 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7907 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7908 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7909 floatdidf2, floatsidf2_media, fix_truncdfdi2,
7910 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7911 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7912 absdf2_media): New insns.
7913 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7914 (extendsfdf2_media, truncdfsf2_media): New insns.
7915 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
7916 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7917 * config/sh/sh.h (CONST_OK_FOR_J): Document.
7918 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7919 * config/sh/sh.md (adddi3): New expand.
7920 (adddi3_media, adddi3z_media): New insns.
7921 (adddi3_compact): Renamed from adddi3.
7922 (addsi3_media): Use add.l r63 to add constant zero.
7923 (subdi3): New expand.
7924 (subdi3_media): New insn.
7925 (subdi3_compact): Renamed from subdi3.
7926 (mulsidi3): New expand.
7927 (mulsidi3_media): New insn.
7928 (mulsidi3_compact): Renamed from mulsidi3.
7929 (umulsidi3): New expand.
7930 (umulsidi3_media): New insn.
7931 (umulsidi3_compact): Renamed from umulsidi3.
7932 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7933 (ashlsi3, ashrsi3, lshrsi3): Use them.
7934 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7935 (ashldi3, ashrdi3, lshrdi3): Use them.
7936 (zero_extendsidi2): New expand.
7937 (extendsidi2): New insn.
7938 (movsi_media): New insn. Split to movdi to load constants.
7939 (movsi): Enable for shmedia.
7940 (movdi_media): New insn. Use shori_media to load wide constants.
7941 (short_media): New insn.
7942 (movdi): Enable for shmedia.
7943 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
7944 * config/sh/sh.h (CPP_SPEC): Added `m5'.
7945 (SUBTARGET_CPP_SPEC): Added `!m5'.
7946 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7947 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
7948 to all other SH variants.
7949 (TARGET_DEFAULT): Set to SH1_BIT.
7950 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7951 (BITS_PER_WORD): Raise to 64 on shmedia.
7952 (MAX_BITS_PER_WORD): Change to 64.
7953 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7954 (INT_TYPE_SIZE): Keep as 32.
7955 (UNITS_PER_WORD): Raise to 8 on shmedia.
7956 (MIN_UNITS_PER_WORD): Keep as 4.
7957 (POINTER_SIZE): Raise to 64 on shmedia.
7958 (CONST_OK_FOR_J): New macro.
7959 (CONST_OK_FOR_LETTER_P): Use it.
7960 (processor_type): Add PROCESSOR_SH5.
7961 * config/sh/sh.md: Conditionalize all expands, insns and
7962 splits to TARGET_SH1.
7964 (addsi3_compact): Renamed from...
7965 (addsi3): Now an expand.
7966 (addsi3_media, subsi3_media): New insns.
7967 (subsi3): Don't negate constants with SHmedia.
7969 * hooks.c: New file.
7970 * hooks.h: New file.
7971 * Makefile.in (HOOKS_H): New.
7972 (TARGET_DEF_H): Added $(HOOKS_H).
7973 (OBJS): Added hooks.o.
7974 (cfgcleanup.o, bb-reorder.o): Added target.h.
7975 (hooks.o): Added dependencies.
7976 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7977 (TARGET_INITIALIZER): this.
7978 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7979 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7980 * bb-reorder.c: Include target.h.
7981 (reorder_basic_blocks): Skip if cannot modify jumps.
7982 * cfgcleanup.c: Include target.h.
7983 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7985 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7987 * config/mips/mips.md (casesi_internal, casesi_internal_di):
7988 Protect jump delay slot instructions with .set noreorder and
7991 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7993 * config/mips/mips.md (casesi_internal_di): Calculate
7994 the index into the target offset table correctly.
7996 2002-02-08 Richard Henderson <rth@redhat.com>
7998 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7999 * final.c (output_addr_const): Accept and discard SUBREG.
8000 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
8001 mark them unknown instead.
8002 (simplify_subtraction): Handle RTX_UNKNOWN.
8003 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
8005 2002-02-08 David Edelsohn <edelsohn@gnu.org>
8007 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
8009 2002-02-08 Richard Henderson <rth@redhat.com>
8011 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
8013 2002-02-08 Andreas Jaeger <aj@suse.de>
8015 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
8016 * config/i386/t-linux64: New file.
8018 2002-02-08 Jakub Jelinek <jakub@redhat.com>
8020 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
8021 * c-parse.in (compstmt): Clear last_expr_type.
8023 2002-02-07 Richard Henderson <rth@redhat.com>
8025 * loop.c (strength_reduce): Sink final_value when not
8028 2002-02-07 David O'Brien <obrien@FreeBSD.org>
8030 * config/sparc/freebsd.h: Fix mismatched spec {.
8032 2002-02-07 Richard Henderson <rth@redhat.com>
8034 * cfgrtl.c: Include recog.h and insn-config.h.
8035 (keep_with_call_p): Fix general_operand invocation.
8036 * Makefile.in (cfgrtl.o): Update dependencies.
8038 2002-02-07 Kazu Hirata <kazu@hxi.com>
8040 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
8041 comment. Accept HImode only if TARGET_H8300.
8043 2002-02-07 Eric Christopher <echristo@redhat.com>
8045 * config/mips/crtn.asm: Cleanup #ifdefs.
8047 2002-02-07 Eric Christopher <echristo@redhat.com>
8049 * config/mips/crti.asm: Add changes for mips16. mips16 uses
8050 register 7 as RA instead of $31.
8051 * config/mips/crtn.asm: Ditto.
8052 * config/mips/mips.c (mips_move_2words): Add case for
8053 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
8054 (compute_frame_size): Fix typo.
8055 (save_restore_insns): Ditto. Make documentation about using
8056 register $7 as return register more precise.
8057 (mips_expand_epilogue): Fix comment. Add code to work around not
8058 being able to add to the stack pointer directly.
8059 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
8060 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
8063 2002-02-07 Tom Rix <trix@redhat.com>
8065 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
8066 immediates in ldu and stdu DS opcode field.
8067 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
8068 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
8069 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
8071 2002-02-07 Jeff Sturm <jsturm@one-point.com>
8073 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
8074 offset for stack bias.
8076 2002-02-07 H.J. Lu <hjl@gnu.org>
8078 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
8080 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
8082 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
8084 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
8086 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
8087 * i386.c (x86_order_regs_for_local_alloc): New global function.
8088 * i386.h (REG_ALLOC_ORDER): CLeanup.
8089 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
8091 2002-02-07 Richard Henderson <rth@redhat.com>
8093 PR optimization/2463
8094 * alias.c (find_base_value): Recall base values for fixed hard regs.
8095 * loop.c (loop_regs_update): Don't use single_set on non-insns.
8097 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
8099 * config/mips/mips.md (define_delay) [mips16]: Adjust required
8102 2002-02-06 Richard Henderson <rth@redhat.com>
8105 * stmt.c (resolve_operand_name_1): Take more care with mixed
8106 named and unnamed operands.
8108 2002-02-06 Janis Johnson <janis187@us.ibm.com>
8109 Jan Hubicka <jh@suse.cz>
8111 * loop.c (remove_constant_addition): Avoid clobbering a shared
8114 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
8116 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
8117 * config/s390/t-linux64: New file.
8118 * config/s390/libgcc-glibc.ver: New file.
8120 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
8122 * config/s390/linux64.h: Delete file.
8123 * config/s390/s390x.h: New file.
8124 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
8125 as target header file.
8126 * config/s390/linux.h (TARGET_VERSION): Define depending on
8127 DEFAULT_TARGET_64BIT.
8128 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
8129 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
8130 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
8131 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
8132 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
8133 (EXTRA_SPEC): New define.
8134 * config/s390/s390.h (TARGET_VERSION): Define depending on
8135 DEFAULT_TARGET_64BIT.
8136 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
8138 2002-02-06 Jason Merrill <jason@redhat.com>
8140 * c-decl.c (finish_function): Warn about a non-void function with
8141 no return statement and no abnormal exit.
8142 (current_function_returns_abnormally): New variable.
8143 (start_function): Clear it.
8144 (struct c_language_function): Add returns_abnormally.
8145 (push_c_function_context): Save it.
8146 (pop_c_function_context): Restore it.
8147 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
8148 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
8149 an explicit return type.
8150 * c-tree.h: Declare current_function_returns_abnormally.
8151 (C_FUNCTION_IMPLICIT_INT): New macro.
8152 * c-typeck.c (build_function_call): Set it.
8153 (c_expand_return): Set current_function_returns_value even if the
8156 2002-02-06 Jakub Jelinek <jakub@redhat.com>
8159 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
8160 unsafe for reevaluation.
8162 2002-02-06 Jakub Jelinek <jakub@redhat.com>
8165 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
8166 EXPR_STMT, but COMPOUND_STMT, recurse into it.
8168 2002-02-06 Richard Henderson <rth@redhat.com>
8170 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
8171 be a general_operand. Dest for function value must be a pseudo.
8173 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8175 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
8176 as SYMBOL_REFs from the constant pool.
8178 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
8180 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
8181 passed by invisible reference.
8183 2002-02-05 Richard Henderson <rth@redhat.com>
8185 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
8187 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
8189 Implement using "base addresses" in insn operands as default.
8190 * config/mmix/mmix.c (mmix_conditional_register_usage): if
8191 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
8192 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
8193 used to read the rtx value.
8194 (mmix_target_asm_function_epilogue): Fix spacing.
8195 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
8196 (mmix_legitimate_address): Ditto.
8197 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
8198 should be loaded with a GETA insn. Don't allocate needless extra
8199 char for nul termination and fix misleading comment.
8200 (mmix_print_operand_address): Handle constants if
8201 TARGET_BASE_ADDRESSES.
8202 (mmix_output_register_setting): Use base addressing if
8203 TARGET_BASE_ADDRESSES and the number of insns is 3.
8204 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
8205 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
8206 to use R as constraint, add LDA to match s.
8207 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
8208 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
8209 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
8210 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
8211 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
8212 order with other fixed registers.
8213 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
8214 other parameter/call-clobbered registers.
8215 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
8216 -mbase-addresses, -mno-base-addresses.
8217 (MMIX Options): Ditto.
8219 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
8221 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
8223 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
8225 * config/rs6000/altivec.h: Change elem to _S_elem.
8227 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
8229 * config/netbsd.h (WCHAR_TYPE): Define.
8230 (WCHAR_TYPE_SIZE): Ditto.
8232 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
8233 (WCHAR_UNSIGNED): Ditto.
8234 (WCHAR_TYPE_SIZE): Ditto.
8236 * config/arm/netbsd.h: Likewise.
8237 * config/i386/netbsd-elf.h: Likewise.
8238 * config/i386/netbsd.h: Likewise.
8239 * config/m68k/netbsd-elf.h: Likewise.
8240 * config/m68k/netbsd.h: Likewise.
8241 * config/ns32k/netbsd.h: Likewise.
8242 * config/sparc/netbsd.h: Likewise.
8243 * config/vax/netbsd.: Likewise.
8245 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
8247 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
8248 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
8249 (TARGET_INITIALIZER): this.
8250 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
8251 (BITFIELD_NBYTES_LIMITED): Markup fix.
8252 * tree.h (default_ms_bitfield_layout_p): Declare.
8253 (record_layout_info): Added prev_field.
8254 * tree.c (default_ms_bitfield_layout_p): New fn.
8255 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
8256 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
8257 * stor-layout.c: Include target.h.
8258 (start_record_layout): Initialize prev_field.
8259 (place_field): Handle MS bit-field layout, and disregard
8260 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
8261 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
8262 * Makefile.in (stor-layout.o): Adjust dependencies.
8264 2002-02-05 Jason Merrill <jason@redhat.com>
8266 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
8268 2002-02-05 Andreas Jaeger <aj@suse.de>
8270 * crtstuff.c: Fix comments.
8272 2002-02-05 Richard Henderson <rth@redhat.com>
8275 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
8276 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
8279 * config/mips/mips.c (function_arg): Handle TImode.
8280 (function_arg_advance): Likewise.
8282 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8284 * config/rs6000/altivec.h (vec_step_help): Rename to
8287 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8289 * config/rs6000/altivec.h: Fix typos.
8291 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
8293 * config/arm/netbsd.h: Correct a comment.
8295 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8297 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
8298 building void typed builtins.
8300 * config/rs6000/altivec.h (vec_ld*): Fix typos.
8301 (vec_step): Implement for C++.
8303 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8305 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
8307 2002-02-04 Richard Henderson <rth@redhat.com>
8309 * combine.c (nonzero_bits): Re-introduce special case for
8310 sp/fp/ap wrt REGNO_POINTER_ALIGN.
8312 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8314 * doc/extend.texi: Warn about unsupported usage of altivec
8317 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
8318 (altivec_predicate_*): New.
8320 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
8321 Add C++ version of vec_*() functions.
8323 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
8324 (bdesc_2arg): Remove altivec predicates.
8325 (altivec_expand_builtin): Handle predicates.
8326 (altivec_init_builtins): Handle predicates.
8327 (altivec_expand_predicate_builtin): New.
8329 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8331 * pa.c (DO_FRAME_NOTES): Move forward.
8332 (store_reg): Revise handling of frame notes.
8333 (load_reg): Likewise.
8334 (set_reg_plus_d): Likewise.
8335 (hppa_expand_prologue): Likewise.
8336 (hppa_expand_epilogue): Likewise.
8338 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8340 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
8342 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8344 PR c/4475, c++/3780:
8345 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
8346 * c-common.h (SWITCH_TYPE): Define.
8347 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
8348 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
8349 Rename spareness variable to sparseness.
8350 (expand_end_case_type): Renamed from expand_end_case, use orig_type
8351 if non-NULL instead of TREE_TYPE (orig_index).
8352 * tree.h (expand_end_case_type): Renamed from expand_end_case.
8353 (expand_end_case): Define using expand_end_case_type.
8354 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
8355 to expand_end_case_type.
8356 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
8358 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8360 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
8361 (BIGGEST_ALIGNMENT): Change to 128.
8363 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8365 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
8367 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8369 * pa.md (call_internal_reg_64bit): Remove unused variable.
8371 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
8373 * config/arm/arm.h (machine_function): Add uses_anonymous_args
8375 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
8376 * config/arm/arm.c (current_function_anonymous_args): Delete,
8377 replace uses with cfun->machine->uses_anonymous_args.
8378 (arm_reorg): Do not reset uses_anonymous_args.
8380 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
8381 any geenral register.
8383 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
8385 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
8388 2002-02-04 Richard Henderson <rth@redhat.com>
8390 * combine.c (force_to_mode): Remove STACK_BIAS code.
8391 (nonzero_bits): Likewise. Replace sp/fp special case with
8392 REGNO_POINTER_ALIGN.
8394 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
8395 (HARD_FRAME_POINTER_REGNUM): New.
8396 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
8397 (FIXED_REGS, CALL_USED_REGS): Update.
8398 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
8399 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
8400 (HARD_REGNO_NREGS): Update for SFP.
8401 (STACK_POINTER_OFFSET): Include bias here ...
8402 (FIRST_PARM_OFFSET): ... not here.
8403 (STACK_BIAS): Remove.
8404 (INIT_EXPANDERS): New.
8405 (STARTING_FRAME_OFFSET): Do not include bias.
8406 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
8407 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
8408 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
8409 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
8410 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
8411 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
8412 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
8413 (MUST_SAVE_REGISTER): Likewise.
8414 (sparc_flat_function_prologue): Likewise.
8415 (sparc_flat_function_epilogue): Likewise.
8416 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
8417 (sparc_init_modes): SFP is GENERAL_REGS.
8418 (sparc_builtin_saveregs): SFP does not have bias applied.
8420 2002-02-04 Richard Henderson <rth@redhat.com>
8422 * config/alpha/alpha.c (current_function_is_thunk): Don't check
8423 current_function_is_thunk.
8424 (alpha_sa_mask): Distinguish between current_function_is_thunk
8425 called from ASM_OUTPUT_MI_THUNK and not.
8426 (alpha_does_function_need_gp): Thunks always need gp.
8427 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8428 (alpha_output_mi_thunk_osf): New.
8429 * config/alpha/alpha-protos.h: Update.
8430 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
8432 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
8434 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
8435 function types, not when they're taken away.
8437 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
8439 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
8440 CODE_LABEL and jump table when replacing a table jump with a
8443 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8445 * config/s390/s390-protos.h (legitimize_la_operand,
8446 s390_secondary_input_reload_class, s390_plus_operand,
8447 s390_expand_plus_operand): Add prototypes.
8449 config/s390/s390.c (s390_secondary_input_reload_class,
8450 s390_plus_operand, s390_expand_plus_operand): New functions.
8452 (struct s390_address): New member 'pointer'.
8453 (s390_decompose_address): Compute it.
8454 (legitimate_la_operand_p): Use it.
8455 (legitimize_la_operand): New function.
8456 (movti, movdi, movdf splitters): Call it.
8458 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
8459 (PREDICATE_CODES): Add s390_plus_operand.
8461 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
8462 (la_ccclobber): Allow GENERAL_REGS as output operand.
8464 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
8465 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
8466 (*la_64, *la_31, reload_indi, reload_insi): ... these.
8468 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8470 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
8471 register names for regular asm () construct.
8473 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8475 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
8478 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8480 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
8483 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
8485 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
8486 constant pool to be identical by string address and index.
8488 2002-02-04 Anthony Green <green@redhat.com>
8490 * output.h (SECTION_OVERRIDE): Define.
8491 * varasm.c (named_section): Obey SECTION_OVERRIDE.
8493 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
8495 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
8496 by existing arm*-*-netbsd* (a.out) target.
8497 (ns32k-*-netbsdelf*): Likewise.
8498 (sparc-*-netbsdelf*): Likewise.
8499 (vax-*-netbsdelf*): Likewise.
8501 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
8503 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
8504 headers and libobjc headers.
8506 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
8508 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
8509 (_mingw.h): Remove duplicate include.
8511 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
8513 * config.gcc: Set cpu_type to m68k for 68010, as well.
8514 (m68010-*-netbsdelf*): New...
8515 (m68k*-*-netbsdelf*): ...targets.
8516 * config/m68k/netbsd-elf.h: New file.
8518 2002-02-02 Kazu Hirata <kazu@hxi.com>
8520 * config/h8300/h8300.c (hand_list): Move inside function_arg.
8522 2002-02-02 Kazu Hirata <kazu@hxi.com>
8524 * config/h8300/h8300.c (h8_push_ops): Move inside
8526 (h8_pop_ops): Likewise.
8527 (h8_move_ops): Likewise.
8529 2002-02-02 Kazu Hirata <kazu@hxi.com>
8531 * config/h8300/h8300.c (os_task): Make it static.
8532 (monitor): Likewise.
8533 (pragma_saveall): Likewise.
8535 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
8537 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
8538 constant is a valid sign-extension for Pmode.
8540 2002-02-02 Kazu Hirata <kazu@hxi.com>
8542 * config/h8300/h8300.c: Fix formatting.
8544 2002-02-02 Kazu Hirata <kazu@hxi.com>
8546 * config/h8300/h8300.md: Fix formatting.
8548 2002-02-02 Kazu Hirata <kazu@hxi.com>
8550 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
8551 predicates of operands[1]. Split the patterns for each
8554 2002-02-02 Kazu Hirata <kazu@hxi.com>
8556 * config/h8300/h8300.md (xor patterns): Tighten the predicates
8557 of operands[1] to register_operand.
8559 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
8561 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
8562 * cpphash.c (_cpp_init_hashtable): Similarly.
8563 * cppinit.c (cpp_create_reader): Default the signed_char flag.
8564 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
8565 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
8566 (cpp_handle_option): Handle the new options.
8567 * cpplex.c (cpp_interpret_charconst): Use new flag.
8568 * cpplib.h (struct cpp_options): New member signed_char.
8569 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
8570 (cpp_options): Handle -fsigned-char and -funsigned-char.
8571 (static_specs): Remove signed_char_spec.
8572 (do_spec1): Don't handle %c.
8573 * system.h: Poison SIGNED_CHAR_SPEC.
8574 * tradcif.y (yylex): Use flag_signed_char.
8575 * tradcpp.h (flag_signed_char): New.
8576 * tradcpp.c (flag_signed_char): New.
8577 (main): Handle new command-line options.
8578 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
8580 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
8581 * avr/avr.h: Remove old comments.
8582 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
8583 (CC1_SPEC): Pass -fsigned-char if -mic*.
8584 (SIGNED_CHAR_SPEC): Remove.
8586 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
8588 2002-02-01 Eric Christopher <echristo@redhat.com>
8590 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
8591 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
8592 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
8593 (ASM_OUTPUT_REG_POP): Ditto.
8595 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
8597 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
8600 2002-02-02 Jakub Jelinek <jakub@redhat.com>
8602 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
8604 2002-02-02 Jakub Jelinek <jakub@redhat.com>
8607 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
8610 2002-02-01 Janis Johnson <janis187@us.ibm.com>
8612 * cfganal.c: Include tm_p.h.
8613 (keep_with_call_p): Fix the test that determines if a register holds
8614 the return value of a call.
8616 2002-02-01 DJ Delorie <dj@redhat.com>
8618 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
8619 we are given conflicting registers, switch to the other one we
8620 had allocated for us.
8621 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
8622 as TImode so we know when the "other" register is available.
8624 2002-02-01 David O'Brien <obrien@FreeBSD.org>
8626 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
8629 2002-02-01 Janis Johnson <janis187@us.ibm.com>
8631 * cfganal.c (keep_with_call_p): New function.
8632 (flow_call_edges_add): Prevent splitting a block between a call and
8633 a single-set instruction that should be kept in the same block.
8635 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
8637 * doc/install.texi (avr): Update outdated URL.
8639 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
8641 * config/stormy16/stormy16.md (pushqi): New.
8645 (movhi): Remove stack operands.
8647 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
8648 nonimmediate_nonstack_operand.
8649 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
8651 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
8654 2002-01-31 Jason Merrill <jason@redhat.com>
8656 * Makefile.in (c-parse.c): Handle .output file.
8657 * objc/Make-lang.in (objc-parse.c): Likewise.
8659 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
8661 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
8662 the -me[lb] option is given. Don't output the default flag
8665 2002-01-31 Zack Weinberg <zack@codesourcery.com>
8667 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
8668 the primary source file; this has not been done yet.
8669 * c-decl.c (c_expand_body): Reset input_filename from
8670 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
8672 2002-01-31 Kazu Hirata <kazu@hxi.com>
8674 * rtlanal.c (subreg_regno_offset): Do not use
8675 SUBREG_REGNO_OFFSET.
8676 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
8677 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
8679 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
8681 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
8682 version rather than GNATS version in --version output.
8684 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
8686 * ifcvt.c (noce_process_if_block): Make a copy of the destination
8687 when copying back from a temporary.
8689 2002-01-30 Richard Henderson <rth@redhat.com>
8691 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8692 and new_dest are the same.
8694 2002-01-30 Richard Henderson <rth@redhat.com>
8697 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8698 * rtl.c (note_insn_name): Update.
8699 * emit-rtl.c (remove_unnecessary_notes): Kill it.
8700 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
8701 to perform loop rotation.
8702 (expand_exit_loop_top_cond): New.
8703 * tree.h (expand_exit_loop_top_cond): Declare it.
8704 * c-semantics.c (genrtl_while_stmt): Use it.
8705 (genrtl_for_stmt): Likewise.
8707 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
8709 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8710 arguments to 64-bit boundaries on 64-bit ABIs.
8712 2002-01-30 Steve Ellcey <sje@cup.hp.com>
8714 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8716 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
8718 * c-decl.c (grokdeclarator): Handle type being a typedef for an
8721 2002-01-30 David O'Brien <obrien@FreeBSD.org>
8723 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8724 * config/sparc/sparc_bi.h: Remove file.
8725 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8727 2002-01-30 Richard Henderson <rth@redhat.com>
8729 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8731 2002-01-30 Zack Weinberg <zack@codesourcery.com>
8733 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8735 2002-01-30 Jason Merrill <jason@redhat.com>
8737 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8738 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8739 (reg_save): Use DW_CFA_offset_extended_sf instead.
8741 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8743 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8745 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8748 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
8750 * rs6000.md ("*call_value_local32"): Remove constraints.
8751 ("*call_value_local64"): Same.
8752 ("*call_value_indirect_nonlocal_aix32"): Same.
8753 ("*call_value_nonlocal_aix32"): Same.
8754 ("*call_value_indirect_nonlocal_aix64"): Same.
8755 ("*call_value_nonlocal_aix64"): Same.
8756 ("*call_value_nonlocal_sysv"): Same.
8758 2002-01-29 Richard Henderson <rth@redhat.com>
8760 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8762 2002-01-29 Richard Henderson <rth@redhat.com>
8764 * expr.c (force_operand): Ignore flag_pic for detecting pic
8766 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8767 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8768 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8769 instead of open-coded loop.
8770 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8771 be fixed when in use.
8773 2002-01-29 Richard Henderson <rth@redhat.com>
8775 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8776 * sched-rgn.c (propagate_deps): Update them.
8777 * sched-deps.c (sched_analyze_insn): Update them. Flush the
8778 clobbers list when either gets too long.
8780 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8782 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8783 and INDEX_REGS the same as GENERAL_REGS.
8784 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8786 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
8788 * tree.c (build_nonstandard_integer_type): Correct prototype.
8790 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
8792 * config/s390/s390.md (movstrsico, movstrdix_64,
8793 movstrsix_31): Remove, replace by ...
8794 (movstrdi_short, movstrsi_short, movstrdi_long,
8795 movstrsi_long): ... these. New.
8796 (movstrdi, movstrsi): Adapt.
8798 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8799 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8800 Remove unnecessary CC clobber.
8801 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8802 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8804 (divmoddi4): Don't partially initialize TImode register.
8806 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
8808 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8810 2002-01-29 Richard Henderson <rth@redhat.com>
8812 * flow.c (print_rtl_and_abort): Remove.
8813 (print_rtl_and_abort_fcn): Remove.
8814 (verify_local_live_at_start): Use dump_bb instead.
8815 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8816 (verify_wide_reg_1): Return 2 on mode test failure.
8818 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
8820 PR c/3325, c/3326, c/2511, c/3347
8821 * c-decl.c (enum_decl_context): Remove BITFIELD.
8822 (grokdeclarator): Take bitfield width as an input.
8823 Ensure bitfields are given the correct type. Perform
8824 bitfield width validation with build_bitfield_integer_type
8825 rather than waiting for finish_struct.
8826 (grok_typename, grok_typename_in_parm_context, start_decl,
8827 push_parmdecl, grokfield, start_function): Update calls to
8829 (build_bitfield_integer_type): New function.
8830 (finish_struct): Move bitfield validation to grokdeclarator
8831 and build_bitfield_integer_type.
8832 * tree.c (build_nonstandard_integer_type): New function.
8833 * tree.h (build_nonstandard_integer_type): New prototype.
8835 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8837 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8840 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8841 don't ignore unrecognized -W* options.
8842 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8843 * cpplib.h (cpp_handle_option): Adjust prototype.
8844 * c-decl.c (c_decode_options): Pass 0 as last argument to
8848 * gcc.c (cpp_unique_options): Split from cpp_options.
8849 (cpp_options): Source cpp_unique_options.
8850 (default_compilers): Use cpp_unique_options instead of cpp_options
8851 when used together with cc1_options.
8852 (static_specs): Add cpp_unique_options.
8853 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8854 when used together with cc1_options.
8856 2002-01-29 Kazu Hirata <kazu@hxi.com>
8858 * config/h8300/h8300-protos.h: Update the prototype of
8860 * config/h8300/h8300.c (output_a_shift): Remove an unused
8861 argument 'insn'. Remove redundant code.
8862 * config/h8300/h8300.md: Adust to the new prototype of
8865 2002-01-29 Kazu Hirata <kazu@hxi.com>
8867 * config/h8300/h8300-protos.h: Update the prototypes of
8868 emit_a_rotate and expand_a_rotate.
8869 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8870 first argument to 'enum rtx_code'.
8871 (expand_a_rotate): Likewise.
8873 2002-01-28 Kazu Hirata <kazu@hxi.com>
8875 * config/h8300/h8300-protos.h: Update the prototype of
8877 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8879 * config/h8300/h8300.md: Adjust to the new prototype.
8881 2002-01-28 Kazu Hirata <kazu@hxi.com>
8883 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8886 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
8888 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8889 is a fixed register before returning pic_offset_table_rtx.
8890 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8891 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8893 2002-01-28 Jason Merrill <jason@redhat.com>
8895 * dwarf2.h: Sync with src version.
8897 2002-01-28 Paul Koning <pkoning@equallogic.com>
8899 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8901 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8902 * doc/extend.texi (__builtin_prefetch): Update documentation:
8903 first argument is now const void ptr.
8905 2002-01-28 Kazu Hirata <kazu@hxi.com>
8907 * config/h8300/h8300-protos.h: Remove an unused prototype.
8909 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
8911 * toplev.c (lang_independent_init): Round up identifier size.
8913 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
8915 * config.gcc: Revert previous change.
8917 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
8919 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8921 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
8923 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8924 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
8925 other non-elf netbsd config frags.
8926 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8927 collect2 will does that.
8928 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8929 shared-lib frobbing will work.
8931 2002-01-28 Kazu Hirata <kazu@hxi.com>
8933 * config/h8300/h8300.h: Fix formatting.
8934 * config/h8300/h8300.md: Likewise.
8936 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
8938 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8939 the old, removed AAA_standards fix.
8940 * fixinc/fixincl.x: Rebuilt.
8942 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
8944 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8945 atexit call in crtbegin, hooked in after call to frame_dummy;
8946 register EH before registering __fini__start.
8948 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
8950 * config/rs6000/altivec.h: Remove spurious semicolons.
8952 2002-01-27 Kazu Hirata <kazu@hxi.com>
8954 * config/h8300/h8300.md: Replace dead bit extraction patterns
8955 with ones that work.
8957 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8959 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8960 if not STRICT_ALIGNMENT.
8961 * rtl.h (MEM_ALIGN): Likewise.
8963 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
8965 * doc/invoke.texi (-fdump-translation-unit): Revert this
8966 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
8968 2002-01-27 Kazu Hirata <kazu@hxi.com>
8970 * config/h8300/h8300.md (define_constants): New.
8971 (anonymous patterns) Use defined constants appropriately.
8973 2002-01-27 Kazu Hirata <kazu@hxi.com>
8975 * config/h8300/h8300.c (function_arg): Remove redundant code.
8977 2002-01-26 Richard Henderson <rth@redhat.com>
8979 * sched-deps.c (reg_pending_uses_head): New.
8980 (reg_pending_barrier): Rename from reg_pending_sets_all.
8981 (find_insn_list): Don't mark inline.
8982 (find_insn_mem_list): Remove.
8983 (add_dependence_list, add_dependence_list_and_free): New.
8984 (flush_pending_lists): Replace only_write param with separate
8985 for_read and for_write parameters. Update all callers. Use
8986 add_dependence_list_and_free.
8987 (sched_analyze_1): Do not add reg dependencies here; just set
8988 the pending bits. Use add_dependence_list.
8989 (sched_analyze_2): Likewise.
8990 (sched_analyze_insn): Replace schedule_barrier_found with
8991 reg_pending_barrier. Add all dependencies for pending reg
8992 uses, sets, and clobbers.
8993 (sched_analyze): Don't add reg dependencies for calls, just
8994 set pending bits. Use regs_invalidated_by_call. Treat
8995 sched_before_next_call as a normal list, not a fake insn.
8996 (init_deps): No funny init for sched_before_next_call.
8997 (free_deps): Free pending mems lists. Don't zero reg_last.
8998 (init_deps_global): Init reg_pending_uses.
8999 (finish_deps_global): Free it.
9000 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
9001 (find_insn_mem_list): Remove.
9002 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
9003 (propagate_deps): Use them. Zero temp mem lists.
9005 2002-01-26 Richard Henderson <rth@redhat.com>
9007 * Makefile.in (CRTSTUFF_CFLAGS): New.
9008 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
9009 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
9010 crtstuff.c instead of alpha assembly version.
9011 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
9012 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
9013 not FORCE_{INIT,FINI}_SECTION_ALIGN.
9014 (__do_global_dtors_aux): Mark used.
9015 (frame_dummy, __do_global_ctors_aux): Mark used.
9016 (fini_dummy, init_dummy): Remove.
9018 * config/alpha/crtbegin.asm: Remove file.
9019 * config/alpha/crtend.asm: Remove file.
9020 * config/alpha/t-crtbe: Remove file.
9021 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
9022 (LINK_EH_SPEC): New.
9024 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
9025 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
9026 calling constructors.
9027 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
9029 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
9030 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
9031 CRT_END_INIT_DUMMY hack.
9032 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
9033 FORCE_{INIT,FINI}_SECTION_ALIGN.
9035 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
9036 FORCE_{INIT,FINI}_SECTION_ALIGN.
9038 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
9039 invocation sequence.
9040 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
9042 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
9043 (FORCE_CODE_SECTION_ALIGN): New.
9045 2002-01-26 Richard Henderson <rth@redhat.com>
9047 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
9049 2002-01-26 Richard Henderson <rth@redhat.com>
9051 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
9052 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
9054 2002-01-26 Kazu Hirata <kazu@hxi.com>
9056 * config/h8300/h8300.md: Remove bit extraction patterns that
9057 cannot be triggered.
9058 Restrict each bit extraction pattern to a variant on which the
9061 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
9063 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
9065 2002-01-26 Kazu Hirata <kazu@hxi.com>
9067 * config/h8300/h8300.md: Remove bit test patterns that cannot
9069 Restrict each bit test pattern to a variant on which the
9072 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9074 * builtins.c (expand_builtin_strncat): Remove redundant check for
9077 2002-01-25 David O'Brien <obrien@FreeBSD.org>
9079 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
9081 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
9084 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
9086 * dbxout.c (dbxout_init): Use assemble_name rather than just
9087 stripping off the first character.
9088 (dbxout_source_file): Likewise.
9090 2002-01-25 DJ Delorie <dj@redhat.com>
9092 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
9093 using rtx_equal_p, not by comparing pointers.
9095 2002-01-25 Steve Ellcey <sje@cup.hp.com>
9097 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
9098 for PIC_OFFSET_TABLE_REGNUM.
9099 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
9101 2002-01-25 David O'Brien <obrien@FreeBSD.org>
9103 * config.gcc (x86_64-*-freebsd*): New target.
9104 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
9106 (i[34567]86-*-freebsd*): Don't include svr4.h.
9107 * config/i386/freebsd64.h: New file.
9109 2002-01-25 Douglas B Rupp <rupp@gnat.com>
9111 * config/alpha/x-vms (version): Make static.
9113 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
9114 in previous checkin.
9116 * Makefile.in (install-headers-cp): New target.
9117 * config.gcc (alpha-dec-*vms*): Install headers with
9120 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
9122 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
9125 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9127 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
9128 of compare_tree_int.
9129 (expand_builtin_strncat): Likewise.
9130 * c-decl.c (finish_struct): Use tree_low_cst.
9131 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
9132 * tree.c (compare_tree_int): Likewise.
9134 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
9136 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
9137 adjustments even if they are implemented by more than two insns.
9139 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
9141 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
9142 * df.h (struct ref): Kill B.
9143 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
9145 * basic-block.h (PROP_EQUAL_NOTES): New flag.
9146 * flow.c (propagate_one_insn): Use it.
9147 (mark_used_regs): Handle NIL.
9149 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
9151 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
9154 2002-01-25 David Edelsohn <edelsohn@gnu.org>
9156 * rs6000.md (prefetch): Make address V4SI mode so that the address
9157 is restricted to legitimate form for instruction.
9159 2002-01-25 Bob Wilson <bob.wilson@acm.org>
9161 * doc/install.texi (xtensa-*-elf): New target.
9162 (xtensa-*-linux*): New target.
9163 * doc/contrib.texi: Add myself.
9165 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
9167 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
9168 purpose register to hold an SImode (or smaller) value.
9170 2002-01-25 Jakub Jelinek <jakub@redhat.com>
9172 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
9174 * crtstuff.c: Likewise.
9176 2002-01-25 Kazu Hirata <kazu@hxi.com>
9178 * config/h8300/h8300.md (negation patterns): Tighten
9179 predicates to register_operand.
9181 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
9183 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
9186 * builtins.c (expand_builtin_prefetch): Same.
9188 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9190 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
9193 2002-01-24 Kazu Hirata <kazu@hxi.com>
9195 * config/h8300/h8300.c (print_operand): Remove support for
9196 operand character 'A'.
9197 * config/h8300/h8300.md (three anonymous patterns): Replace
9198 operand character 'A' with either 'T' or 'S'.
9200 2002-01-24 Kazu Hirata <kazu@hxi.com>
9202 * config/h8300/h8300.c (print_operand): Remove support for
9203 operand character 'U'.
9205 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
9207 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
9209 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
9211 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
9212 values to be assigned to the stack pointer.
9214 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
9216 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
9217 to const_double needs to be done right for big-endian systems.
9219 2002-01-24 Jason Merrill <jason@redhat.com>
9222 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
9223 to can_throw_internal.
9225 2002-01-23 Richard Henderson <rth@redhat.com>
9227 * fold-const.c (fold): Change UINT_MAX test to check vs precision
9228 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
9230 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9232 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
9233 (symGOT2reg): Use them, then set as GOT value as unchanging.
9234 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
9235 as a temporary, if possible.
9236 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
9237 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
9239 2002-01-23 Kazu Hirata <kazu@hxi.com>
9241 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
9242 accept to accept 0x80 as operands[2].
9244 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9246 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
9248 2002-01-23 Richard Henderson <rth@redhat.com>
9250 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
9252 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
9254 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
9255 (parmlist_or_identifiers_1): Verify that only a parmlist follows
9258 2002-01-23 Richard Henderson <rth@redhat.com>
9260 * expr.c (move_by_pieces_1): Extend size before negation.
9262 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
9263 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
9264 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
9265 * config/m68k/t-m68kelf: Likewise.
9267 2002-01-23 Bob Wilson <bob.wilson@acm.org>
9269 * config/xtensa/elf.h: New file.
9270 * config/xtensa/lib1funcs.asm: New file.
9271 * config/xtensa/lib2funcs.S: New file.
9272 * config/xtensa/linux.h: New file.
9273 * config/xtensa/t-xtensa: New file.
9274 * config/xtensa/xtensa-config.h: New file.
9275 * config/xtensa/xtensa-protos.h: New file.
9276 * config/xtensa/xtensa.c: New file.
9277 * config/xtensa/xtensa.h: New file.
9278 * config/xtensa/xtensa.md: New file.
9279 * config.gcc (xtensa-*-elf*): New target.
9280 (xtensa-*-linux*): New target.
9281 * cse.c (canon_hash): Compare rtx pointers instead of register
9282 numbers. This is required for the Xtensa port.
9283 * integrate.c (copy_insn_list): Handle case where the static
9284 chain is in memory and the memory address has to be copied to
9286 * doc/invoke.texi (Option Summary): Add Xtensa options.
9287 (Xtensa Options): New node.
9288 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
9290 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9292 * diagnostic.c (internal_error): Do ICE suppression only
9293 when ENABLE_CHECKING is not defined.
9295 * c-typeck.c (require_complete_type): Return error_mark_node
9296 if type is error_mark_node.
9298 2002-01-23 Janis Johnson <janis187@us.ibm.com>
9300 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
9301 -Os and issue a warning.
9303 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9305 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
9306 current (lack of) need for host configuration by hand.
9308 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
9309 references. Documentation of some target macros moved from
9310 hostconfig.texi to tm.texi.
9312 2002-01-23 Will Cohen <wcohen@redhat.com>
9314 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
9317 2002-01-23 Kazu Hirata <kazu@hxi.com>
9319 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
9322 2002-01-23 Jason Merrill <jason@redhat.com>
9324 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
9326 * function.c (assign_parms): Don't put args of inline functions
9327 into registers when not optimizing.
9329 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
9331 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
9332 (prologue_use): New pattern.
9333 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
9334 preference to gen_rtx_USE.
9335 (thumb_expand_prologue): Use gen_prologue_use in preference to
9337 (thumb_expand_epilogue): Use gen_prologue_use in preference to
9340 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
9342 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
9344 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
9347 * doc/extend.texi: Correct documentation of __alignof__.
9349 2002-01-22 Zack Weinberg <zack@codesourcery.com>
9351 * params.h: Rename arguments of DEFPARAM so that it will be
9352 recognized as a translation keyword.
9354 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9356 * extend.texi: Document altivec functions.
9357 Fix N-bit adjectives in X86 builtin documentation.
9359 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
9361 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
9362 auto_inc_dec values.
9364 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
9366 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
9368 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
9370 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
9372 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
9374 2002-01-22 Richard Henderson <rth@redhat.com>
9376 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
9377 copy_insn not copy_rtx.
9379 2002-01-23 Alan Modra <amodra@bigpond.net.au>
9381 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
9382 "nonzero" as that might add "1" bits. Ensure "constop" is
9383 properly sign extened.
9384 (force_to_mode): Tweak for sign extended constop.
9386 2002-01-22 Richard Henderson <rth@redhat.com>
9388 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
9389 for_each_rtx instead of assuming we're already looking at the MEM.
9390 (split_small_symbolic_mem_operand): Likewise.
9391 * config/alpha/alpha.h (PREDICATE_CODES): Update.
9392 * config/alpha/alpha.md (small symbolic memory splitters): Update.
9394 2002-01-22 Richard Henderson <rth@redhat.com>
9396 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
9397 sequence number for the literal.
9398 (divmoddi_internal_er): Likewise.
9400 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
9403 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
9404 in LIBICONV variable.
9405 * configure: Regenerated.
9407 2002-01-22 Krister Walfridsson <cato@df.lth.se>
9409 * dependence.c (build_def_use): Remove array_idx.
9411 * dwarfout.c (last_filename): Remove.
9412 (output_compile_unit_die): Remove last_filename.
9414 2002-01-22 Roger Sayle <roger@eyesopen.com>
9415 Richard Henderson <rth@redhat.com>
9418 * fold-const.c (fold): Optimize unsigned comparisons against
9419 UINT_MAX (and similar unsigned constants).
9421 2002-01-22 Janis Johnson <janis187@us.ibm.com>
9423 * Makefile.in (loop.o): Depend on OPTABS_H.
9424 * loop.c (emit_prefetch_instructions): Check the prefetch operand
9425 against the predicate.
9428 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
9429 for the address operand.
9431 2002-01-22 Richard Henderson <rth@redhat.com>
9433 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
9435 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
9438 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
9441 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
9443 * config.gcc (x86_64-*-netbsd*): New target.
9444 * config/i386/netbsd64.h: New file.
9446 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9448 * regrename.c (kill_value): Fix typo.
9450 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9452 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
9454 * config/rs6000/rs6000.h: Same.
9456 * function.c (instantiate_virtual_regs): Remove
9457 STARTING_FRAME_PHASE.
9458 (assign_stack_local_1): Same.
9459 Calculate frame phase.
9461 2002-01-22 Nick Clifton <nickc@redhat.com>
9463 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
9464 variable declaration to outer scope in order to simplify
9466 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
9467 arm_hard_regno_mode_ok.
9468 * config/arm/arm-protos.h: Add a prototype for
9469 arm_hard_regno_mode_ok.
9470 * config/arm/arm.c (soft_df_operand): Remove now redundant
9471 check for DImode values using IP_REGNUM.
9472 (nonimmediate_soft_df_operand): Remove now redundant check for
9473 DImode values using IP_REGNUM.
9474 (arm_hard_regno_mode_ok): New function. New check: make sure
9475 that DImode values are not stored in IP_REGNUM.
9477 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
9479 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
9481 2002-01-22 Jason Merrill <jason@redhat.com>
9483 * c-semantics.c (genrtl_compound_stmt): Only check nesting
9484 consistency if this COMPOUND_STMT is scoped.
9486 2002-01-22 Kazu Hirata <kazu@hxi.com>
9488 * predict.c: Fix formatting.
9489 * print-tree.c: Likewise.
9490 * protoize.c: Likewise.
9493 * sbitmap.h: Likewise.
9495 * sched-deps.c: Likewise.
9496 * sched-vis.c: Likewise.
9497 * sdbout.c: Likewise.
9498 * sibcall.c: Likewise.
9500 * ssa-ccp.c: Likewise.
9501 * ssa-dce.c: Likewise.
9503 * stor-layout.c: Likewise.
9504 * system.h: Likewise.
9506 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9508 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
9509 if fits in bounds of base type.
9511 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
9512 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
9513 (add_bound_info, default): If can't find a context, make a
9515 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
9517 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
9519 * c-typeck.c (parser_build_binary_op): If result from
9520 build_binary_op is ERROR_MARK just return error_mark_node without
9523 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
9525 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
9526 Split a.out-specific bits into...
9527 * config/netbsd-aout.h: ...this.
9528 * config/netbsd-elf.h: New file.
9529 * config/alpha/netbsd-elf.h: Remove.
9530 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
9531 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
9532 (STARTFILE_SPEC): Remove redundant definition.
9533 (ENDFILE_SPEC): Likewise.
9534 (LINK_SPEC): Likewise.
9535 (CPP_SPEC): Likewise.
9536 (ASM_SPEC): Likewise.
9537 (LIB_SPEC): Likewise.
9538 (SWITCH_TAKES_ARG): Likewise.
9539 (TARGET_MEM_FUNCTIONS): Likewise.
9540 (CPP_PREDEFINES): Redefine.
9541 (ASM_FINAL_SPEC): Remove redefinition.
9542 (ASM_COMMENT_START): Redefine.
9543 (FUNCTION_PROFILER): Define.
9544 (TARGET_VERSION): Redefine.
9545 Comment and formatting cleanup.
9546 * config/i386/netbsd.h: Include <netbsd-aout.h>.
9547 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
9548 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
9549 big- or little-endian.
9550 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
9551 * config.gcc (*-*-netbsd*): Add definitions common to all
9553 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
9554 gnu_ld definitions. Add netbsd-elf.h to and remove
9555 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
9556 tmake_file, and don't lose previous tmake_file contents.
9557 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
9558 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
9559 gnu_ld definitions. Add netbsd-elf.h to tm_file.
9560 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
9561 (mipsel-*-netbsd*): Rename this to...
9562 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
9563 mips/little.h to tm_file for mips*el-*.
9564 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
9565 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
9566 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
9568 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
9570 * pa-protos.h (reg_before_reload_operand): New function prototype.
9571 * pa.c (reg_before_reload_operand): New function implementation.
9572 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
9575 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9577 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
9579 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
9581 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
9582 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
9583 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
9584 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
9585 (ENDFILE_SPEC): Undefine.
9586 (STARTFILE_SPEC): Redefine for PA.
9588 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9590 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
9592 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
9594 * config.gcc: Add entries to supported PowerPC --with-cpu
9597 2002-01-21 Jakub Jelinek <jakub@redhat.com>
9599 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
9600 true for 64-bit mode only SSE registers in 32-bit mode.
9602 2002-01-21 Kazu Hirata <kazu@hxi.com>
9604 * unwind-dw2.c: Fix formatting.
9605 * unwind-dw2-fde.c: Likewise.
9606 * unwind-dw2-fde.h: Likewise.
9607 * unwind-pe.h: Likewise.
9608 * varasm.c: Likewise.
9609 * varray.h: Likewise.
9611 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
9613 Remove workaround for register stack overwrite bug in mmix.
9614 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
9615 support for TARGET_REG_STACK_FILL_BUG.
9616 * config/mmix/mmix.h: Remove member has_call_without_parameters.
9617 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
9619 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
9620 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
9621 -mno-reg-stack-fill-bug-workaround.
9622 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
9623 machine member has_call_without_parameters.
9624 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
9625 -mreg-stack-fill-bug-workaround and
9626 -mno-reg-stack-fill-bug-workaround.
9627 (MMIX Options): Ditto.
9629 2002-01-21 Kazu Hirata <kazu@hxi.com>
9631 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
9633 Remove redundant code.
9635 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
9637 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
9638 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9639 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9640 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
9641 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
9642 out target macro definitions and non-target-specific comments
9643 mostly taken from old versions of the manual.
9645 2002-01-20 Kazu Hirata <kazu@hxi.com>
9647 * config/h8300/h8300.h: Fix comment formatting.
9648 * config/ia64/aix.h: Likewise.
9649 * config/ia64/ia64-protos.h: Likewise.
9650 * config/ia64/ia64.c: Likewise.
9651 * config/ia64/ia64.h: Likewise.
9652 * config/ia64/ia64intrin.h: Likewise.
9653 * config/ia64/linux.h: Likewise.
9654 * config/ia64/unwind-aix.c: Likewise.
9655 * config/ia64/unwind-ia64.c: Likewise.
9657 2002-01-20 Kazu Hirata <kazu@hxi.com>
9659 * config/h8300/h8300.c: Revise comments about shift code.
9661 2002-01-20 Kazu Hirata <kazu@hxi.com>
9663 * config/h8300/h8300.c (function_arg): Update a comment.
9665 2002-01-20 Kazu Hirata <kazu@hxi.com>
9667 * config/h8300/h8300.md: Update the comments at the beginning
9670 2002-01-20 Kazu Hirata <kazu@hxi.com>
9672 * config/i370/i370.c: Fix comment formatting.
9673 * config/i370/i370.h: Likewise.
9674 * config/i370/i370.md: Likewise.
9675 * config/i370/linux.h: Likewise.
9677 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9679 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
9681 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
9682 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
9685 2002-01-20 Graham Stott <grahams@redhat.com>
9687 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
9689 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
9691 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9693 2002-01-19 Tom Rix <trix@redhat.com>
9695 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9697 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
9699 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9701 * function.c (assign_stack_local_1): Adjust x_frame_offset with
9702 STARTING_FRAME_PHASE.
9703 (STARTING_FRAME_PHASE): New.
9704 (instantiate_virtual_regs): Check saneness of
9705 STARTING_FRAME_PHASE.
9707 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9709 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
9711 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9713 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
9715 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9716 be used for bootstrapping GCC 3.0.
9718 2002-01-18 Kazu Hirata <kazu@hxi.com>
9720 * config/h8300/h8300.md: Fix an insn length.
9722 2002-01-18 Kazu Hirata <kazu@hxi.com>
9724 * bitmap.h: Fix comment formatting.
9725 * combine.c: Likewise.
9726 * cppfiles.c: Likewise.
9727 * c-pragma.h: Likewise.
9728 * c-typeck.c: Likewise.
9730 * dwarf2out.c: Likewise.
9731 * function.c: Likewise.
9733 * genattrtab.c: Likewise.
9734 * gthr-win32.h: Likewise.
9735 * haifa-sched.c: Likewise.
9736 * predict.c: Likewise.
9737 * rtlanal.c: Likewise.
9739 * unwind-dw2-fde.h: Likewise.
9740 * unwind-pe.h: Likewise.
9741 * vmsdbgout.c: Likewise.
9743 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9745 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9746 if type_required and passed decl.
9748 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
9750 * config.gcc (cpu_type): Include altivec.h in powerpc
9754 * config/rs6000/altivec.h: New.
9756 2002-01-17 David Edelsohn <edelsohn@gnu.org>
9758 * doc/install.texi (*-ibm-aix*): Update assembler and exception
9759 handling information.
9760 * doc/trouble.texi (Interoperation): Add libstdc++ information
9762 (Misunderstandings): Add template instantiation and static template
9763 member information for AIX.
9765 2002-01-17 Jason Merrill <jason@redhat.com>
9767 * dbxout.c (dbxout_type): Support const and volatile.
9769 * except.c (add_partial_entry): Remove backwards compatibility code.
9770 (end_protect_partials): Likewise.
9772 2002-01-17 Jakub Jelinek <jakub@redhat.com>
9774 * config/ia64/ia64.md (prologue_use): New.
9775 * config/ia64/ia64.c (ia64_expand_prologue): Use
9776 gen_prologue_use instead of gen_rtx_USE.
9777 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9778 as CODE_FOR_pred_rel_mutex.
9779 (ia64_sched_reorder2): Likewise.
9781 2002-01-16 Eric Christopher <echristo@redhat.com>
9783 * config/mips/r3900.h: Reformat.
9784 (SUBTARGET_CPP_SIZE_SPEC): Remove.
9785 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9786 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9787 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9788 * config/mips/t-elf: Remove mips3 multilib.
9790 2002-01-16 H.J. Lu <hjl@gnu.org>
9792 * config/mips/linux.h: Include "mips/abi64.h".
9794 2002-01-16 H.J. Lu <hjl@gnu.org>
9796 * config/mips/t-linux: New.
9798 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9800 * config/mips/linux.h: Don't include "gofast.h".
9801 (INIT_SUBTARGET_OPTABS): Removed.
9803 2002-01-16 Kazu Hirata <kazu@hxi.com>
9805 * config/h8300/h8300-protos.h: Replace emit_a_shift with
9807 * config/h8300/h8300.c: Likewise.
9808 * config/h8300/h8300.md: Likewise.
9810 2002-01-16 Kazu Hirata <kazu@hxi.com>
9812 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9813 spaces after an opcode name.
9814 (pushqi1_h8300hs): Likewise.
9815 (pushhi1_h8300hs): Likewise.
9817 2002-01-16 Kazu Hirata <kazu@hxi.com>
9819 * doc/extend.texi: Replace "option" with "attribute"
9822 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9824 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9825 (and:DI () (const_int -8)).
9826 (split_small_symbolic_mem_operand): Split
9827 (mem (and:DI () (const_int -8)).
9829 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9832 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9833 same way as TYPE_IMUL.
9834 (ultrasparc_sched_reorder): Likewise.
9835 * config/sparc/sparc.md (type): Add comment to update
9836 ultrasparc_sched_reorder when making changes.
9838 2002-01-16 Kazu Hirata <kazu@hxi.com>
9840 * doc/invoke.texi: Change the dump file name of block
9841 reordering pass from 28.bbro to 29.bbro.
9844 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
9846 * i386.md (minsf splitter): Fix pasto.
9848 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
9850 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9851 to frame pointer initialisation instruction.
9852 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9853 initialisation instruction.
9854 (soft_df_operand): Do not accept the IP register.
9855 (nonimmediate_soft_df_operand): Do not accept the IP register.
9857 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9860 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9861 MASK_V8 being both set.
9863 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
9865 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9866 insn for GOT register; add REG_MAYBE_DEAD notes instead.
9867 config/s390/s390.md (call, call_value): Add GOT register to
9868 CALL_INSN_FUNCTION_USAGE where needed.
9869 (call_exp, call_value_exp): New.
9871 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
9873 * config/arm/arm.c: General formatting tidy up.
9875 2002-01-16 Graham Stott <grahams@redhat.com>
9877 * calls.c (try_to_integrate): Use "(size_t)" intermediate
9878 cast and when casting an integer literal to "rtx" pointer.
9879 (expand_call): Likewise.
9880 * flow.c (try_pre_increment): Likewise.
9881 (find_use_as_address): Likewise.
9882 * integrate.c (expand_iline_function): Likewise.
9883 * regmove.c (try_auto_increment): Likewise.
9885 2002-01-16 Graham Stott <grahams@redhat.com>
9887 * sched-rgn.c (passed): Use sbitmap_free.
9890 (in_queue): Likewise.
9891 (in_stack): Likewise.
9893 2002-01-15 Eric Christopher <echristo@redhat.com>
9895 * flow.c (propagate_one_insn): Change to use fatal_insn.
9897 2002-01-15 Kazu Hirata <kazu@hxi.com>
9899 * expmed.c (extract_fixed_bit_field): Remove unused code.
9900 * system.h: Poison SLOW_ZERO_EXTEND.
9901 * doc/tm.texi: Remove.
9902 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9903 * config/arm/arm.h: Likewise.
9904 * config/avr/avr.h: Likewise.
9905 * config/clipper/clipper.h: Likewise.
9906 * config/convex/convex.h: Likewise.
9907 * config/d30v/d30v.h: Likewise.
9908 * config/dsp16xx/dsp16xx.h: Likewise.
9909 * config/elxsi/elxsi.h: Likewise.
9910 * config/fr30/fr30.h: Likewise.
9911 * config/h8300/h8300.h: Likewise.
9912 * config/i370/i370.h: Likewise.
9913 * config/i386/i386.h: Likewise.
9914 * config/m68k/m68k.h: Likewise.
9915 * config/mips/mips.h: Likewise.
9916 * config/ns32k/ns32k.h: Likewise.
9917 * config/pdp11/pdp11.h: Likewise.
9918 * config/pj/pj.h: Likewise.
9919 * config/s390/s390.h: Likewise.
9920 * config/sh/sh.h: Likewise.
9921 * config/stormy16/stormy16.h: Likewise.
9922 * config/v850/v850.h: Likewise.
9923 * config/vax/vax.h: Likewise.
9924 * config/we32k/we32k.h: Likewise.
9926 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
9928 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9929 (altivec_lvsl): Change constraint to b.
9930 (altivec_lvsr): Same.
9931 (altivec_lvebx): Same.
9932 (altivec_lvehx): Same.
9933 (altivec_lvewx): Same.
9934 (altivec_lvxl): Same.
9935 (altivec_lvx): Same.
9936 (altivec_stvx): Add parallel.
9937 (altivec_stvxl): Same.
9938 (altivec_stvehx): Same.
9939 (altivec_stvebx): Same.
9940 (altivec_stvebx): Same.
9942 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
9944 * config.gcc: Change altivec.h to altivec-defs.h.
9946 * config/rs6000/altivec.h: Delete.
9948 * config/rs6000/altivec-defs.h: Add.
9950 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
9952 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9955 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9956 less than or equal to eight bytes.
9958 * vax.md (andsi3): Remove constraints and change SET destination
9959 operand type to nonimmediate_operand.
9960 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
9961 when it is a CONST_INT.
9963 2002-01-15 Jason Merrill <jason@redhat.com>
9965 * c-common.def (FILE_STMT): New code.
9966 * c-common.c (statement_code_p): It's a statement.
9967 * c-common.h (stmt_tree_s): Add x_last_filename.
9968 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9969 (last_expr_filename): New macro.
9970 * c-semantics.c (begin_stmt_tree): Initialize it.
9971 (add_stmt): If the filename changed, also insert a
9973 (expand_stmt): Handle seeing one.
9975 2002-01-15 Eric Christopher <echristo@redhat.com>
9977 * flow.c (propagate_one_insn): Add error message and print out
9980 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
9982 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9983 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9984 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9985 TRAMPOLINE_ALIGNMENT.
9986 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
9988 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9989 PCC_BITFIELD_TYPE_MATTERS.
9990 * config/interix.h (STDC_VALUE): Remove. Use
9991 STDC_0_IN_SYSTEM_HEADERS.
9992 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9993 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9994 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9996 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
9998 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9999 not work on this platform currently.
10001 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
10003 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
10004 readonly_warning in _().
10006 2002-01-15 Douglas B Rupp <rupp@gnat.com>
10008 * gcc.c (delete_if_ordinary): Backout previous change.
10010 2002-01-15 Kazu Hirata <kazu@hxi.com>
10012 * config/h8300/h8300.c (print_operand): Remove support for
10013 unused operand characters.
10015 * read-rtl.c: Fix formatting.
10016 * real.c: Likewise.
10017 * recog.c: Likewise.
10018 * regclass.c: Likewise.
10019 * regmove.c: Likewise.
10020 * reg-stack.c: Likewise.
10021 * reload1.c: Likewise.
10022 * rtlanal.c: Likewise.
10024 2002-01-15 Kazu Hirata <kazu@hxi.com>
10026 * config/i386/i386.c: Fix formatting.
10028 2002-01-15 Jakub Jelinek <jakub@redhat.com>
10030 * c-typeck.c (process_init_element): Don't save_expr
10031 COMPOUND_LITERAL_EXPR if just its initializer will be used.
10033 2002-01-15 David Edelsohn <edelsohn@gnu.org>
10035 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
10036 emit optional traceback table if optimize_size or TARGET_ELF.
10037 * config/rs6000/rs6000.md (prefetch): New.
10039 2002-01-15 Andreas Jaeger <aj@suse.de>
10041 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
10043 2002-01-15 Kazu Hirata <kazu@hxi.com>
10045 * mips-tfile.c: Fix formatting.
10047 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
10049 * unroll.c (final_reg_note_copy): Fix previous commit.
10051 2002-01-14 Kazu Hirata <kazu@hxi.com>
10053 * config/h8300/h8300-protos.h: Remove the prototype for
10055 * config/h8300/h8300.c (eq_operator): Remove.
10057 2002-01-14 Richard Henderson <rth@redhat.com>
10059 * config/i386/i386.md (prefetch): Tidy.
10060 (prefetch_3dnow): Fix locality operand.
10062 2002-01-14 Richard Henderson <rth@redhat.com>
10064 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
10065 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
10067 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
10069 * reload1.c (reload_combine): Pass reg_sum replacement through
10070 copy_rtx in loop performing multiple changes.
10072 2002-01-14 Jakub Jelinek <jakub@redhat.com>
10074 * except.c (remove_unreachable_regions): New.
10075 (free_eh_status): Clear exception_handler_labels.
10076 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
10077 (find_exception_handler_labels): Don't add the same label more than
10079 (remove_exception_handler_label): Don't die if
10080 find_exception_handler_labels hasn't been called for the current
10083 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
10085 * toplev.c (rest_of_compilation): Rebuild jump labels after
10088 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
10090 * doc/extend.texi: Move documentation of X86 built-in functions
10092 * doc/invoke.texi: From here.
10093 * doc/sourcebuild.texi: Document location of documentation for
10094 machine built-in functions.
10096 2002-01-13 Christopher Faylor <cgf@redhat.com>
10098 * cppfiles.c (TEST_THRESHOLD): New macro.
10099 (SHOULD_MMAP): Ditto.
10100 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
10103 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
10105 * unroll.c (final_reg_note_copy): Properly handle
10107 (unroll_loops): Fix LOOP_CONDITION heuristics.
10109 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
10111 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
10112 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
10114 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
10116 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
10119 2002-01-14 Tom Rix <trix@redhat.com>
10121 * config/rs6000/rs6000.md: Fix typo with sradi.
10123 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
10125 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
10126 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
10127 (clrstrdi, clrstrsi): Adapt callers.
10129 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
10131 (movti splitter): Never use register 0 as base register.
10133 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
10135 * combine.c (simplify_shift_const): Always generate new rtx
10136 for shift expression instead of reusing given expression.
10138 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10140 * config/alpha/alpha.c (alpha_expand_mov): Don't call
10141 alpha_legitimize_address unless mode is Pmode.
10143 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
10145 * doc/md.texi (Modifiers): Document the '*' constraint for the
10148 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
10149 * doc/extend.texi (Function Attributes): 'interrupt' is valid
10152 2002-01-13 Richard Henderson <rth@redhat.com>
10154 * reload.c (find_reloads): Use a hard reg destination as reload reg
10155 for an input reload of the source.
10157 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10159 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
10162 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
10164 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10165 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10167 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
10169 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10171 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
10173 2002-01-12 Tom Rix <trix@redhat.com>
10175 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
10178 2002-01-12 Richard Henderson <rth@redhat.com>
10180 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
10182 * doc/invoke.texi: Update Alpha options.
10184 * doc/invoke.texi: Update i386 built-in function lists.
10186 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
10188 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
10189 referencing outside.
10191 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10193 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
10194 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
10195 offsets, and change line folding.
10196 * optabs.c (expand_binop): Remove warnings.
10197 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
10199 2002-01-12 Graham Stott <grahams@redhat.com>
10201 * attribs.c (handle_deprecated_attribute): constify WHAT.
10202 * diagnostic.c (warn_deprecated_use): Add braces, fixes
10203 dangling else warning and constify WHAT.
10204 * except.h (struct function, struct inline_remap): Move
10205 struct tag forward defs before all prototypes.
10206 (duplicate_eh_regions): Whitespace.
10208 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
10210 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10211 MODE_BASE_REG_CLASS.
10212 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
10214 2002-01-12 Richard Henderson <rth@redhat.com>
10216 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
10217 (ix86_expand_vector_move): New.
10218 (bdesc_2arg): Remove andps, andnps, orps, xorps.
10219 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
10220 Remove old prefetch builtins. Special case the logicals removed above.
10221 (ix86_expand_builtin): Likewise.
10222 (safe_vector_operand): Use V4SFmode, not TImode.
10223 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
10224 (ix86_expand_timode_binop_builtin): New.
10225 * config/i386/i386-protos.h: Update.
10226 * config/i386/i386.h (enum ix86_builtins): Update.
10227 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
10228 Use ix86_expand_vector_move in vector move expanders.
10229 (movti_internal, movti_rex64): Add xorps alternative.
10230 (sse_clrv4sf): Rename and adjust from sse_clrti.
10231 (prefetch): Don't work so hard.
10232 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
10233 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
10234 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
10236 2002-01-11 Richard Henderson <rth@redhat.com>
10238 * config/i386/mmintrin.h: New file.
10239 * config/i386/xmmintrin.h: New file.
10240 * config.gcc (i?86-*-*): Add extra_headers.
10241 * simplify-rtx.c (simplify_unary_operation): Handle saturating
10243 (simplify_binary_operation): Handle saturating arithmetic codes.
10244 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
10245 not the lowpart subreg.
10246 (ix86_expand_builtin): Return a TImode dummy register instead of 0
10248 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
10250 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10252 * conflict.c (conflict_graph_compute): Free regsets when finished.
10253 * ssa.c (compute_coalesced_reg_partition): Likewise.
10255 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10257 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
10258 every where we allocate a register.
10260 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10262 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
10263 * lcm.c (compute_earliest, compute_farthest): Likewise.
10265 2002-01-11 Janis Johnson <janis187@us.ibm.com>
10267 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
10269 2002-01-11 Janis Johnson <janis187@us.ibm.com>
10271 * doc/rtl.texi (Insns): Fix 2 typos.
10273 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
10275 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
10276 options. Use @table @gcctabopt for MMIX options. Add index
10277 entries for MMIX options. Start new paragraph with first
10278 heading of the machine-dependent options.
10280 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
10283 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
10284 * combine.c (force_to_mode): Same.
10285 * reload1.c (clear_reload_reg_in_use): Same.
10287 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
10289 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
10292 2002-01-11 Andreas Jaeger <aj@suse.de>,
10293 Brad Lucier <lucier@math.purdue.edu>
10295 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
10298 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
10300 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
10301 Protect with IN_LIBGCC.
10302 (LINK_EH_SPEC): Add required trailing space.
10304 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
10306 * c-tree.h: Move function declarations so that they are listed
10307 under the filename which contains them.
10308 (check_identifier, finish_decl_top_level,
10309 lookup_name_current_level_global, shadow_record_fields): Remove.
10311 2002-01-11 Andreas Jaeger <aj@suse.de>
10313 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
10316 2002-01-10 Richard Henderson <rth@redhat.com>
10318 * config/alpha/alpha.c (print_operand): Add 'J'.
10319 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
10320 new operand with the sequence number for the lituse. When splitting
10321 the insns, use gen_movdi_er_high_g and generate a sequence number.
10322 (gen_movdi_er_high_g): Print the sequence number if non-zero.
10324 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
10326 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
10327 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
10329 (altivec_expand_builtin): Same.
10330 (altivec_expand_stv_builtin): New.
10332 * config/rs6000/rs6000.h (rs6000_builtins): Same.
10334 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
10335 ("altivec_lvehx"): New.
10336 ("altivec_lvewx"): New.
10337 ("altivec_lvxl"): New.
10338 ("altivec_lvx"): New.
10339 ("altivec_stvx"): New.
10340 ("altivec_stvebx"): New.
10341 ("altivec_stvehx"): New.
10342 ("altivec_stvewx"): New.
10343 ("altivec_stvxl"): New.
10345 2002-01-10 Richard Henderson <rth@redhat.com>
10347 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
10348 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
10349 care not to delete instructions twice.
10351 2002-01-10 Zack Weinberg <zack@codesourcery.com>
10353 * toplev.c: Don't declare environ (it's not used anywhere).
10354 * configure.in: Don't check for declaration of environ.
10355 * config/i386/xm-mingw32.h: Don't #define environ.
10356 * config.in, configure: Regenerate.
10358 2002-01-10 Zack Weinberg <zack@codesourcery.com>
10360 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
10361 * configure: Regenerate.
10363 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
10364 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
10365 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
10367 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
10368 LIMITS_H_TEST here, not in m68k/x-next.
10369 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
10370 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
10372 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
10373 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
10374 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
10376 * config/i386/x-djgpp: Renamed i386/t-djgpp.
10377 * config/m88k/x-dolph: Renamed m88k/t-dolph.
10378 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
10379 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
10380 replacement of quadlib.asm with quadlib.c.
10382 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
10383 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
10384 config/rs6000/xm-beos.h: Delete file.
10386 * config.gcc: Update to match above changes.
10388 2002-01-10 Kazu Hirata <kazu@hxi.com>
10390 * config/h8300/h8300.h: Fix comment typos.
10391 * config/h8300/h8300.md: Likewise.
10392 * config/h8300/lib1funcs.asm: Likewise.
10394 2002-01-10 Dale Johannesen <dalej@apple.com>
10396 PR optimization/5269
10397 * unroll.c (precondition_loop_p): Make *increment be the correct
10398 sign when n_iterations known, to avoid confusing caller.
10400 2002-01-10 Kazu Hirata <kazu@hxi.com>
10402 * doc/extend.texi (deprecated): Fix a typo.
10404 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
10406 * basic-block.h (update_br_prob_note): Declare.
10407 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
10408 (try_forward_edges): Care negative frequencies and update note.
10409 (outgoing_edges_match): Tweek conditional merging heuristics.
10410 (try_crossjump_to_edge): use update_br_prob_note.
10411 * cfglayout.c (fixup_reorder_chain): Likewise.
10412 * cfrtl.c (update_br_prob_note): New.
10413 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
10415 * i386.c (ix86_decompose_address): Return -1 if address contains
10417 (legitimate_address_p): Require ix86_decompose_address to return 1.
10419 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
10420 (cprop_insn): Likewise.
10422 2002-01-10 Kazu Hirata <kazu@hxi.com>
10424 * toplev.c: Fix formatting.
10425 * tree.c: Likewise.
10426 * tree-dump.c: Likewise.
10427 * unroll.c: Likewise.
10428 * unwind-dw2.c: Likewise.
10429 * unwind-dw2-fde.c: Likewise.
10430 * unwind-dw2-fde-glibc.c: Likewise.
10431 * unwind-sjlj.c: Likewise.
10433 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
10435 * doc/invoke.texi: Document PDP-11 options.
10437 2002-01-10 Kazu Hirata <kazu@hxi.com>
10439 * config/h8300/h8300.h: Fix formatting.
10441 2002-01-10 Ira Ruben <ira@apple.com>
10443 Add __attribute__ ((deprecated)).
10444 * extend.texi: Document __attribute__ ((deprecated)).
10445 * invoke.texi: Document -Wno-deprecated-declarations.
10446 * testsuite/g++.dg/other/deprecated.C: New C++ test.
10447 * testsuite/gcc.dg/deprecated.c: New C test.
10448 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
10449 (c_common_attribute_table): Add "deprecated" entry.
10450 (handle_deprecated_attribute): New function.
10451 * c-decl.c (deprecated_states): New enum.
10452 deprecated_state: State of "deprecated" handling.
10453 (start_decl): Set deprecated_state based on attributes.
10454 (grokdeclarator): Test for deprecated uses, propagate attribute.
10455 * c-typeck.c (build_component_ref): Test for deprecated fields.
10456 (build_external_ref): Test for deprecated primaries.
10457 * diagnostic.c (warn_deprecated_use) New function to issue
10458 warnings about __attribute__ ((depricated)) references.
10459 * flags.h (warn_deprecated_decl): Extern declared for
10460 -W[no-]deprecated-declarations option.
10461 * print-tree.c (print_node): Show deprecated flag status.
10462 * toplev.c (warn_deprecated_decl): Defined.
10463 (W_options): Added "deprecated-declaration".
10464 * toplev.h (warn_deprecated_use): Extern declared.
10465 * tree.h (struct tree_common): Define deprecated_flag.
10466 (TREE_DEPRECATED): New macro to access flag.
10467 * cp/call.c (build_call): Test for deprecated calls.
10468 * cp/class.c (add_implicitly_declared_members): Set global
10469 flag to tell grokdeclarator to not issue deprecated warnings.
10470 * cp/cp-tree.h: Add extern for adding_implicit_members.
10471 * cp/decl.c (deprecated_states): New enum.
10472 (start_decl): Set deprecated_state based on attributes.
10473 (grokdeclarator): Test for deprecated uses, propagate attribute.
10474 * cp/lex.c (do_identifier): Test for deprecated primaries.
10475 * cp/typeck.c (build_component_ref): Test for deprecated fields.
10477 2002-01-10 Ira Ruben <ira@apple.com>
10479 Fix to assign attributes to inline member functions.
10480 * cp/decl.c (start_method): Handle attrlist.
10482 2002-01-10 Kazu Hirata <kazu@hxi.com>
10484 * combine.c (expand_field_assignment): Use subreg_lsb().
10486 2002-01-10 David Edelsohn <edelsohn@gnu.org>
10488 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
10489 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
10490 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
10491 Recurse for any operand of AND as long as constant is non-zero.
10493 2002-01-10 Kazu Hirata <kazu@hxi.com>
10495 * config/h8300/h8300.md: Remove constraints from expanders.
10497 2002-01-10 Kazu Hirata <kazu@hxi.com>
10499 * varasm.c: Fix formatting.
10500 * varray.c: Likewise.
10501 * vmsdbgout.c: Likewise.
10502 * xcoffout.c: Likewise.
10504 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
10506 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
10507 update edge probabilities to match.
10509 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
10511 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
10513 * doc/languages.texi, doc/sourcebuild.texi: New files.
10514 * doc/configfiles.texi: Make a subsubsection. Update.
10515 * doc/configterms.texi: Add @node. Remove warning that this isn't
10516 instructions for building GCC.
10517 * doc/makefile.texi: Make a subsection.
10518 * doc/gccint.texi: Update.
10520 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
10522 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
10524 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
10526 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
10528 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
10530 * optabs.c (expand_fix): Look for wider integer modes first.
10532 * i386.md (mov?f): Avoid the fake const double trick for medium
10534 (min?f*/max?f*): Prohibit memory operands for i387 variant.
10535 (fop_df_4): Disable for SSE compilation.
10537 2002-01-10 Graham Stott <grahams@redhat.com>
10539 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
10540 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
10542 2002-01-10 Richard Henderson <rth@redhat.com>
10544 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
10546 2002-01-10 Richard Henderson <rth@redhat.com>
10548 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
10549 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
10551 2002-01-10 Kazu Hirata <kazu@hxi.com>
10553 * combine.c (can_combine_p): Fix a comment typo.
10555 2002-01-09 Zack Weinberg <zack@codesourcery.com>
10557 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
10558 empty list correctly. Change loop index $t to $f for
10559 consistency with rest of Makefile.
10561 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
10563 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
10564 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10566 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
10567 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
10568 (altivec_init_builtins): Same.
10569 (altivec_expand_unop_builtin): Return NULL_RTX on error.
10570 (altivec_expand_binop_builtin): Same.
10571 (altivec_expand_ternop_builtin): Same.
10574 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
10575 ("altivec_vctuxs"): Fix typo.
10576 ("altivec_vnmsubfp"): Same.
10577 ("altivec_dssall"): New.
10578 ("altivec_mfvscr"): New.
10579 ("altivec_dss"): New.
10580 ("altivec_lvsl"): New.
10581 ("altivec_lvsr"): New.
10582 ("altivec_dstt"): New.
10583 ("altivec_dstst"): New.
10584 ("altivec_dststt"): New.
10585 ("altivec_dst"): New.
10587 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
10588 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10590 2002-01-09 Richard Henderson <rth@redhat.com>
10592 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
10594 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
10596 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
10598 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
10600 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
10602 2002-01-09 Kazu Hirata <kazu@hxi.com>
10604 * read-rtl.c: Fix formatting.
10605 * real.c: Likewise.
10606 * regclass.c: Likewise.
10607 * regrename.c: Likewise.
10608 * reg-stack.c: Likewise.
10609 * reload1.c: Likewise.
10610 * reload.c: Likewise.
10613 2002-01-09 Kazu Hirata <kazu@hxi.com>
10615 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
10616 to extract items in the expr_list chain.
10618 2002-01-09 Richard Henderson <rth@redhat.com>
10620 * config/vax/vax.c (vax_rtx_cost): Never abort.
10622 * config/vax/vax.h (REAL_ARITHMETIC): Define.
10624 2002-01-09 Jan Hubicka <jh@suse.cz>
10626 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
10628 2002-01-09 Richard Henderson <rth@redhat.com>
10630 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
10631 Unify code from various alternatives.
10633 2002-01-09 Richard Henderson <rth@redhat.com>
10635 * regrename.c (copy_value): Ignore the copy if the source register
10636 is present in the value chain with a narrower mode.
10638 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10640 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
10641 for the c4x target. Also improve layout.
10643 2002-01-09 Richard Henderson <rth@redhat.com>
10645 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
10646 * config/m32r/m32r.md (and ior xor splitters): Swap operands
10647 to match insn patterns.
10649 2002-01-09 Richard Henderson <rth@redhat.com>
10651 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
10652 (copyprop_hardreg_forward_1): Likewise.
10654 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
10656 * pa.md (decrement_and_branch_until_zero): Change predicate for
10657 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
10659 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
10661 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
10662 gets undefined. For Darwin.
10664 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10666 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
10668 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10670 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
10672 2002-01-08 Richard Henderson <rth@redhat.com>
10674 * regrename.c (copy_value): Ignore overlapping copies.
10676 2002-01-08 Richard Henderson <rth@redhat.com>
10678 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
10679 as needed to avoid shared structure.
10681 2002-01-08 Kazu Hirata <kazu@hxi.com>
10683 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
10686 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10688 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
10689 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
10690 documentation of obsolete macros.
10691 * system.h: Poison these macros.
10692 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10693 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10694 config/c4x/c4x.h, config/clipper/clipper.h,
10695 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10696 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10697 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10698 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10699 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10700 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10701 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10702 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10703 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10704 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10705 config/sparc/sparc.h, config/stormy16/stormy16.h,
10706 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10707 definitions and commented out definitions of obsolete macros.
10708 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10709 of MAX_INT_TYPE_SIZE.
10711 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10713 * config/s390/s390.c (s390_preferred_reload_class): Never
10714 return ADDR_REGS if it isn't a subset of the given class.
10715 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10716 FP_REGS, but all superclasses as well.
10718 * config/s390/s390.c (s390_function_profiler): Fix thinko.
10720 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10721 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10722 must not be a const_int.
10724 2002-01-08 Richard Henderson <rth@redhat.com>
10726 * Makefile.in (toplev.o): Depend on options.h.
10727 (gcc.o): Depend on specs.h.
10729 2002-01-08 Jakub Jelinek <jakub@redhat.com>
10731 * expr.c (store_expr): Convert VOIDmode constants back to target's
10734 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10736 * doc/invoke.texi: Markup gcc as @command. Refer to
10737 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10738 of http://gcc.gnu.org/thanks.html.
10740 2002-01-08 Dale Johannesen <dalej@apple.com>
10742 * config/rs6000/rs6000.md: Add missing int register
10743 target case to movdf_low.
10745 2002-01-08 Zack Weinberg <zack@codesourcery.com>
10747 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10748 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
10749 (cppinit.o): Depend on except.h.
10750 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10751 s-specs): New rules.
10753 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10754 Don't create specs.h/options.h/gencheck.h here. Remove
10755 unnecessary variable settings from last argument of AC_OUTPUT.
10756 * config.in, configure: Regenerate.
10757 * intl.c: Hardcode package name as "gcc".
10759 * cppinit.c: Include except.h.
10760 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10762 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10763 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10764 (!)USING_SJLJ_EXCEPTIONS.
10765 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10767 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10769 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10770 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10771 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10772 documentation of obsolete macros.
10773 * system.h: Poison these macros.
10774 * config/d30v/d30v.h, config/ns32k/encore.h,
10775 config/stormy16/stormy16.h: Remove definitions and commented out
10776 definitions of obsolete macros.
10778 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
10780 * objc/objc-act.c (handle_class_ref): Mark the declaration of
10781 %sobjc_class_ref_%s as used - to prevent unwanted compiler
10784 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10786 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10787 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10788 to insn adjusting stack/frame pointer.
10789 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10790 accept operands that cause the insn to be non-splittable.
10792 2002-01-08 Graham Stott <grahams@redhat.com>
10794 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10795 (C_TYPE_FIELDS_VOLATILE): Likewise.
10796 (C_TYPE_BEING_DEFINED): Likewise.
10797 (C_IS_RESERVED_WORD): Likewise.
10798 (C_TYPE_VARIABLE_SIZE): Likewise.
10799 (C_DECL_VARIABLE_SIZE): Likewise.
10800 (C_MISSING_PROTOTYPE_WARNED): Likewise.
10801 (C_SET_EXP_ORIGINAL_CODE): Likewise.
10802 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10804 (C_DECL_ANTICIPATED): Likewise.
10805 (c_build_type_variant): Add parenthesis.
10807 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10809 * gcc.c (option_map): Remove --version.
10810 (process_command): Handle -fversion following the GNU Coding
10811 Standards. Partially addresses PR other/704.
10813 2002-01-08 Graham Stott <grahams@redhat.com>
10815 * combine.c (combine_instructions): Fix typo.
10817 2002-01-08 Graham Stott <grahams@redhat.com>
10819 * debug.h: Use "tree" and "rtx" throughout.
10821 * debug.c: Likewise.
10823 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
10825 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10826 constant pool, use the pool's version of the symbol instead.
10828 2002-01-07 Richard Henderson <rth@redhat.com>
10830 * regrename.c (find_oldest_value_reg): Ignore the value chain if
10831 the original register was copied in a mode with a fewer number of
10832 hard registers than the desired mode.
10833 (copyprop_hardreg_forward_1): Likewise.
10834 (debug_value_data): Fix loop test.
10835 * toplev.c (parse_options_and_default_flags): Reenable
10836 -fcprop-registers at -O1.
10838 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10840 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10841 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10843 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10846 * config/rs6000/rs6000.md: Add altivec predicate patterns.
10848 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
10850 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10851 (pa_output_function_prologue): Output local label at the beginning of
10852 the prologue when profiling.
10853 (hppa_profile_hook): Use the local label rather than the function label.
10854 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10856 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10858 * config/rs6000/rs6000.c (print_operand): Remove extra space.
10859 (altivec_expand_unop_builtin): Fix thinko.
10860 (altivec_expand_binop_builtin): Same.
10861 (altivec_expand_ternop_builtin): Same.
10862 (altivec_expand_builtin): Same.
10864 2002-01-07 Richard Henderson <rth@redhat.com>
10866 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10868 2002-01-07 Jason Merrill <jason@redhat.com>
10870 * unwind-dw2.c (execute_cfa_program): Use < again.
10872 2002-01-07 Jakub Jelinek <jakub@redhat.com>
10874 * predict.c (combine_predictions_for_insn): Avoid division by zero.
10876 2002-01-07 Jakub Jelinek <jakub@redhat.com>
10878 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10879 Don't allow -1 - x -> ~x simplifications in the first pass.
10881 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10883 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10885 (altivec_expand_binop_builtin): Same.
10886 (altivec_expand_unop_builtin): Same.
10887 (print_operand): Fix typo.
10888 (bdesc_1arg): Add vupk* variants.
10890 * rs6000.h (rs6000_builtins): Add vupk* enums.
10892 * rs6000.md: Add altivec_vupk* variants.
10894 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
10896 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10897 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10898 and last update dates.
10900 2002-01-07 Janis Johnson <janis187@us.ibm.com>
10902 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10904 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
10906 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10907 * config/avr/avr.h (CPP_SPEC): Likewise.
10908 (LINK_SPEC): Likewise.
10909 (CRT_BINUTILS_SPECS): Likewise.
10910 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10911 * doc/invoke.texi (AVR Options): Document them.
10913 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
10915 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10918 2002-01-07 Graham Stott <grahams@redhat.com>
10920 * config/i386/i386.h: Update copyright date.
10921 (HALF_PIC_PTR): Add parenthesis.
10922 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10923 (CONSTANT_ALIGNMENT): Add parenthesis.
10924 (DATA_ALIGNMENT): Likewise.
10925 (LOCAL_ALIGNMENT): Likewise.
10926 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10927 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10928 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10929 (HARD_REGNO_NREGS): Add paranethesis.
10930 (VALID_SSE_REG_MODE): Whitespace.
10931 (VALID_MMX_REG_MODE): Whitespace.
10932 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10933 (ix86_hard_regno_mode_ok): Add parenthesis.
10934 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10935 (RETURN_IN_MEMORY): Whitespace.
10936 (N_REG_CLASSES): Add parenthesis.
10937 (INTEGER_CLASS_P): Add parenthesis and wrap.
10938 (FLOAT_CLASS_P): Likewise.
10939 (SSE_CLASS_P): Likewise.
10940 (MMX_CLASS_P): Likewise.
10941 (MAYBE_INTEGER_CLASS_P): Likewise.
10942 (MAYBE_FLOAT_CLASS_P): Likewise.
10943 (MAYBE_SSE_CLASS_P): Likewise.
10944 (MAYBE_MMX_CLASS_P): Likewise.
10945 (Q_CLASS_P): Likewise.
10946 (GENERAL_REGNO_P): Uppercase macro parameter.
10947 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10948 (FP_REGNO_P): Likewise.
10949 (ANY_FP_REGNO_P): Uppercase macro parameter.
10950 (SSE_REGNO_P): Likewise.
10951 (SSE_REGNO): Likewise.
10952 (SSE_REG_P): Likewise.
10953 (SSE_FLOAT_MODE_P): Likewise.
10954 (MMX_REGNO_P): Likewise.
10955 (MMX_REG_P):Likewise.
10956 (STACK_REG_P): Likewise.
10957 (NON_STACK_REG_P): Likewise.
10958 (STACK_TOP_P): Likewise.
10959 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10960 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10961 (SECONDARY_MEMORY_NEEDED): Likewise.
10962 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10963 (MD_ASM_CLOBBERS): Whitespace and wrap.
10964 (MUST_PASS_IN_STACK): Whitespace and wrap.
10965 (RETURN_POPS_ARGS): Add parenthesis.
10966 (INIT_CUMULATIVE_ARGS): Likewise.
10967 (FUNCTION_ARG): Likewise.
10968 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10969 (SETUP_INCOMING_VARARGS): Likewise.
10970 (BUILD_VA_LIST_TYPE): Add parenthesis.
10971 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10973 (EXPAND_BUILTIN_VA_ARG): Likewise.
10974 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10975 (INITIALIZE_TRAMPOLINE): Add parenthesis.
10976 (INITIAL_ELIMINATION_OFFSET): Likewise.
10977 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10978 (REGNO_OK_FOR_BASE_P): Likewise.
10979 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10980 (REGNO_OK_FOR_DIREG_P): Likewise.
10981 (REG_OK_FOR_INDEX_P): Whitespace.
10982 (REG_OK_FOR_BASE_P): Whitespace.
10983 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10985 (FIND_BASE_TERM): Fix typo.
10986 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
10987 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10988 (SYMBOLIC_CONST; Whitespace.
10989 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
10990 (ENCODE_SECTION_INFO): Whitespace.
10991 (FINALIZE_PIC): Remove do { ... } while (0).
10992 (PROMOTE_MODE): Wrap in do { ... } while (0).
10993 (CONST_COSTS): Whitespace.
10994 (RTX_COSTS): Add paramethesis, whitespace and wrap.
10995 (REGISTER_MOVE_COST): Add parenthesis.
10996 (MEMORY_MOVE_COST): Likewise.
10997 (EXTRA_CC_MODES): Whitespace.
10998 (SELECT_CC_MODE): Add parenthesis and whitespace.
10999 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
11000 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
11001 (ASM_OUTPUT_LABEL): Add paramethesis.
11002 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
11003 (ASM_OUTPUT_REG_POP): Likewise.
11004 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
11005 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11007 * config/i386/i386.c: Update copyright.
11008 (CHECK_STACK_LIMIT): Add parenthesis.
11009 (AT_BP): Uppercase macro parameter.
11010 (x86_64_int_parameter_registers): Constify.
11011 (x86_64_int_return_registers): Likewise.
11012 (ix86_compare_op0): Use rtx.
11013 (construct_container): Constify INTREG parameter.
11014 (function_arg): Use rtx.
11016 * diagnostic.h: Update copyright date.
11017 (output_buffer_state): Add parenthesis.
11018 (output_buffer_format_args): Likewise.
11020 * combine.c (combine_instructions): Replace XEXP (links, 0)
11023 2002-01-06 H.J. Lu <hjl@gnu.org>
11025 * cfgcleanup.c (thread_jump): Fix 2 typos.
11027 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
11029 * config.gcc: Add support for --enable-altivec.
11031 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
11033 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
11035 2002-01-06 Jakub Jelinek <jakub@redhat.com>
11037 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
11038 __objc_class_name_*.
11040 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
11042 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
11044 2002-01-06 Richard Henderson <rth@redhat.com>
11046 * reorg.c (emit_delay_sequence): Remove death notes, not merely
11047 nop them out. Increment label reference count for REG_LABEL.
11048 (fill_slots_from_thread): Frob label reference count around
11049 delete_related_insns.
11051 2002-01-05 Richard Henderson <rth@redhat.com>
11053 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
11056 2002-01-05 Richard Henderson <rth@redhat.com>
11058 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
11059 * integrate.c (output_inline_function): Likewise.
11060 * toplev.c (rest_of_compilation): Do it here instead. Move call
11061 to remove_unnecessary_notes after emitting abstract instance.
11062 Force an emitted nested function to have its parent emited as well.
11063 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
11065 (rtl_for_decl_location): Do not look at reload data structures
11066 before reload has run.
11068 2002-01-05 Kazu Hirata <kazu@hxi.com>
11070 * cse.c: Fix formatting.
11071 * dwarf2asm.c: Likewise.
11072 * dwarf2out.c: Likewise.
11073 * explow.c: Likewise.
11074 * expmed.c: Likewise.
11075 * function.c: Likewise.
11076 * gcov.c: Likewise.
11077 * gencheck.c: Likewise.
11078 * genrecog.c: Likewise.
11079 * ggc-common.c: Likewise.
11080 * ggc-page.c: Likewise.
11081 * global.c: Likewise.
11083 2002-01-05 Kazu Hirata <kazu@hxi.com>
11085 * combine.c: Fix formatting.
11087 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
11090 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
11092 2002-01-05 David Edelsohn <edelsohn@gnu.org>
11094 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
11095 as 1 for __powerpc64__ as well.
11097 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
11099 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
11102 2002-01-05 Daniel Berlin <dan@dberlin.org>
11104 * lcm.c: Revert change, due to performance regression it causes on
11105 SPEC because it's slightly more conservative (sigh, I hate
11108 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
11110 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
11112 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
11114 * doc/cppinternals.texi: Update.
11116 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
11118 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
11119 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
11121 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
11122 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
11123 kludge for pre-october-14th mmix versions to handle new-found bug
11124 with PUSHJ/PUSHGO and the register stack.
11125 * config/mmix/mmix.h (struct machine_function): Rename member
11126 has_call_value_without_parameters to has_call_without_parameters.
11127 All referers changed.
11128 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
11129 TARGET_MASK_BRANCH_PREDICT): New macros.
11130 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
11131 -mno-reg-stack-fill-bug-workaround.
11132 * config/mmix/mmix.md ("call"): Set struct machine member
11133 has_call_without_parameters.
11135 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
11137 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
11139 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
11141 * cfgcleanup.c: Include tm_p.h
11142 (mark_effect): Fix handling of hard register; fix handling of SET
11144 2002-01-04 Kazu Hirata <kazu@hxi.com>
11146 * config/h8300/h8300.md (anonymous patterns): Check that
11147 operands are registers before using REGNO on them.
11149 2002-01-03 Roland McGrath <roland@frob.com>
11151 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
11153 2002-01-04 Jakub Jelinek <jakub@redhat.com>
11155 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
11156 * c-common.h (genrtl_expr_stmt_value): Likewise.
11157 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
11158 (expand_expr_stmt_value): Add maybe_last argument.
11159 Don't warn about statement with no effect if it is the last statement
11160 in expression statement.
11161 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
11162 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
11163 expand_expr_stmt_value.
11164 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
11165 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
11166 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
11167 as maybe_last to expand_expr_stmt_value.
11169 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
11171 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
11172 be passed in, do not build it.
11173 (c_begin_if_stmt): New function.
11174 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11175 * c-common.h (c_expand_start_cond): Update prototype.
11176 (c_begin_if_stmt): Prototype new function.
11177 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11178 * c-parse.in (if_prefix): Use c_begin_if_stmt,
11179 c_begin_while_stmt and c_finish_while_stmt_cond.
11181 2002-01-04 William Cohen <wcohen@redhat.com>
11183 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
11184 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11185 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11186 * config/pa/som.h (ASM_FILE_START): Likewise.
11188 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
11190 * lcm.c: Include df.h.
11191 Add available_transfer_function prototype.
11192 (compute_available): Rework to use iterative dataflow framework.
11193 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
11194 with bb_info in df.h
11195 (available_transfer_function): New function.
11197 * Makefile.in (lcm.o): add df.h to dependencies.
11199 2002-01-04 Richard Henderson <rth@redhat.com>
11201 * config/alpha/alpha.c (some_operand): Accept HIGH.
11202 (input_operand): Likewise; accept simple references to globals.
11203 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
11204 (alpha_const_double_ok_for_letter_p): Likewise.
11205 (alpha_extra_constraint): Likewise.
11206 (alpha_preferred_reload_class): Likewise. Do not force
11207 symbolic constants to memory.
11208 (alpha_legitimate_address_p): Accept simple references
11209 to small_symbolic_operand.
11210 (alpha_legitimize_address): New arg scratch. Be prepared to be
11211 called when no_new_pseudos. Emit simple symbolic references.
11212 Split integers into low, high, and rest.
11213 (alpha_expand_mov): Use alpha_legitimize_address.
11214 (some_small_symbolic_mem_operand): New.
11215 (split_small_symbolic_mem_operand): New.
11216 * config/alpha/alpha-protos.h: Update.
11217 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
11218 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
11219 (EXTRA_CONSTRAINT): Likewise.
11220 (PREFERRED_RELOAD_CLASS): Likewise.
11221 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
11222 (PREDICATE_CODES): Update.
11223 * config/alpha/alpha.md: New post-reload splitters to convert
11224 simplfied symbolic operands to the form that references $29.
11225 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
11226 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
11228 2002-01-03 Richard Henderson <rth@redhat.com>
11230 * local-alloc.c (function_invariant_p): Update commentary.
11232 2002-01-04 H.J. Lu <hjl@gnu.org>
11234 * toplev.c (rest_of_compilation): Fix a typo when calling
11237 2002-01-03 Kazu Hirata <kazu@hxi.com>
11239 * c-common.c: Fix formatting.
11240 * diagnostic.c: Likewise.
11241 * doloop.c: Likewise.
11242 * dwarf2out.c: Likewise.
11244 2002-01-03 Kazu Hirata <kazu@hxi.com>
11246 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
11247 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
11249 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
11251 * cpperror.c: Update comments and copyright.
11252 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
11253 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
11255 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11257 * collect2.c (main): Use strcmp when testing for "-shared".
11259 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
11261 * cppmacro.c: Don't include intl.h. Update comments.
11262 (new_number_token): Allocate enough buffer for 64-bit unsigned
11263 integers; update prototype.
11264 * cppmain.c: Update comments.
11266 2002-01-03 William Cohen <wcohen@redhat.com>
11268 * function.h (struct function): Add profile.
11269 (current_function_profile): New.
11270 doc/extend.texi: Update documentation.
11271 * final.c (final_start_function): Use current_function_profile
11272 instead of profile_flag.
11273 (profile_after_prologue): Likewise.
11274 * function.c (expand_function_start): Likewise.
11275 (expand_function_start): Likewise.
11276 * config/alpha/alpha.c (direct_call_operand):
11277 (alpha_does_function_need_gp): Likewise.
11278 (alpha_expand_prologue): Likewise.
11279 * config/arm/arm.c (arm_expand_prologue): Likewise.
11280 thumb_expand_prologue: Likewise.
11281 * config/d30v/d30v.c (d30v_stack_info): Likewise.
11282 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
11283 (fr30_expand_prologue): Likewise.
11284 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
11285 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
11286 * config/i386/i386.h (FINALIZE_PIC): Likewise.
11287 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
11288 * config/i960/i960.c (i960_output_function_prologue): Likewise.
11289 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11290 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
11291 (m32r_expand_prologue): Likewise.
11292 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
11293 (m88k_expand_prologue): Likewise.
11294 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
11295 * config/mips/mips.c (compute_frame_size): Likewise.
11296 (mips_expand_prologue): Likewise.
11297 (mips_can_use_return_insn): Likewise.
11298 * config/pa/elf.h (ASM_FILE_START): Likewise.
11299 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11300 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11301 * config/pa/som.h (ASM_FILE_START): Likewise.
11302 * config/romp/romp.c (romp_using_r14): Likewise.
11303 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
11304 (rs6000_stack_info): Likewise.
11305 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11306 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
11307 * config/v850/v850.c (compute_register_save_size): Likewise.
11309 2002-01-03 Jakub Jelinek <jakub@redhat.com>
11311 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
11312 gen_lowpart_common fails, use gen_lowpart_SUBREG.
11314 2002-01-03 Turly O'Connor <turly@apple.com>
11316 * darwin.c (machopic_output_possible_stub_label): Don't generate
11317 stub routines for pseudo-stubs which we've just defined.
11319 2002-01-03 Kazu Hirata <kazu@hxi.com>
11321 * builtins.c: Fix formatting.
11322 * c-typeck.c: Likewise.
11323 * combine.c: Likewise.
11324 * expr.c: Likewise.
11325 * loop.c: Likewise.
11327 2002-01-03 Andreas Schwab <schwab@suse.de>
11329 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
11330 and return true if _cpp_push_next_buffer pushed a new include
11332 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
11333 _cpp_pop_file_buffer did not push a new file.
11334 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
11336 2002-01-02 Eric Christopher <echristo@redhat.com>
11338 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
11339 FIND_REG_INC_NOTE call. Update copyright.
11340 * loop.c (canonicalize_condition): Ditto.
11341 * reorg.c (delete_scheduled_jump): Ditto.
11343 2002-01-03 Kazu Hirata <kazu@hxi.com>
11345 * gcse.c: Fix formatting.
11347 2002-01-03 Graham Stott <grahams@redhat.com>
11349 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
11350 forward defs for struct tags rtx_def, union_tree, rtvec_def
11351 also output corresponding typedefs for rtx, tree, and rtvec.
11353 * system.h: Move forward defs for struct tags rtx_def, union_tree,
11354 rtvec_def along with corresponding typedefs for rtx, tree, and
11355 rtvec to config.h, hconfig.h, tconfig.h.
11357 2002-01-03 Graham Stott <grahams@redhat.com>
11359 * tree.h: Update copyright date.
11360 (IS_EXPR_CODE_CLASS): Add parenthesis.
11361 (TREE_SET_CODE): Add whitespace.
11362 (TREE_CHECK): Add parenthesis.
11363 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
11364 (CST_OR_CONSTRUCTOR_CHECK):
11365 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
11366 (TREE_SYMBOL_REFERENCED): Whitespace.
11367 (INT_CST_LT): Likewise.
11368 (INT_CST_LT_UNSIGNED): Likewise.
11369 (tree_real_cst): Unwrap comment.
11370 (tree_string): Likewise.
11371 (tree_complex): Likewise.
11372 (IDENTIFIER_POINTER): correct cast.
11373 (SAVE_EXPR_CONTEXT): Whitespace.
11374 (EXPR_WFL_FILENAME_NODE): Likewise.
11375 (EXPR_WFL_FILENAME): Remove parenthesis.
11376 (DECL_ORIGIN): Add parenthesis.
11377 (DECL_FROM_INLINE): Use NULL_TREE.
11378 (build_int_2): Whitespace.
11379 (build_type_variant): Add parenthesis.
11381 * gcc/jcf-parse.c: Update copyright date.
11382 (yyparse): Constify resource_filename.
11384 2002-01-03 Graham Stott <grahams@redhat.com>
11386 * rtl.h: Update copyright date.
11387 (RTL_CHECK1): Wrap long line.
11388 (RTL_CHECK2): Likewise.
11389 (RTL_CHECKC1): Wrap long line and whitespace.
11390 (RTL_CHECKC2): Likewise.
11391 (XWINT): Whitespace.
11397 (XBITMAP): Likewise.
11399 (XBBDEF): Likewise.
11401 (X0WINT): Likewise.
11403 (X0UINT): Likewise.
11407 (X0MODE): Likewise.
11408 (X0BITMAP): Likewise.
11409 (X0TREE): Likewise.
11410 (X0BBDEF): Likewise.
11411 (X0ADVFLAGS): Likewise.
11412 (X0CSELIB): Likewise.
11413 (X0MEMATTR): Likewise.
11414 (XCWINT): Likewise.
11416 (XCUINT): Likewise.
11420 (XCMODE): Likewise.
11421 (XCBITMAP): Likewise.
11422 (XCTREE): Likewise.
11423 (XCBBDEF): Likewise.
11424 (XCADVFLAGS): Likewise.
11425 (XCCSELIB): Likewise.
11426 (XC2EXP): Likewise.
11427 (INSN_UID): Likewise.
11428 (PREV_INSN): Likewise.
11429 (PATTERN): Likewise.
11430 (INSN_CODE): Likewise.
11431 (PUT_REG_NOTE_KIND): Likewise.
11432 (CODE_LABEL_NUMBER): Likewise.
11433 (NOTE_SOURCE_FILE): Likewise.
11434 (NOTE_BLOCK): Likewise.
11435 (NOTE_EH_HANDLER): Likewise.
11436 (NOTE_RANGE_INFO): Likewise.
11437 (NOTE_LIVE_INFO): Likewise.
11438 (NOTE_BASIC_BLOCK): Likewise.
11439 (NOTE_EXPECTED_VALUE): Likewise.
11440 (NOTE_LINE_NUMBER): Likewise.
11441 (LABEL_NAME): Likewise.
11442 (LABEL_NUSES): Likewise.
11443 (LABEL_ALTERNATE_NAME): Likewise.
11444 (ADDRESSOF_DECL): Likewise.
11445 (JUMP_LABEL): Likewise.
11446 (LABEL_NEXTREF): Likewise.
11448 (ORIGINAL_REGNO: Likewise.
11449 (HARD_REGISTER_NUM_P): Add parenthesis.
11450 (SUBREG_REG): Whitespace.
11451 (SUBREG_BYTE): Likewise.
11452 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
11453 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
11454 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
11455 (ASM_OPERANDS_INPUT_VEC): Likewise.
11456 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
11457 (ASM_OPERANDS_INPUT): Likewise.
11458 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
11459 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
11460 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
11461 (ASM_OPERANDS_INPUT_MODE): Likewise.
11462 (ASM_OPERANDS_SOURCE_FILE): Likewise.
11463 (ASM_OPERANDS_SOURCE_LINE): Likewise.
11464 (MEM_SET_IN_STRUCT_P): Minor reformat.
11465 (TRAP_CONDITION): Whitespace.
11466 (TRAP_CODE): Likewise.
11467 (COND_EXEC_TEST): Likewise.
11468 (COND_EXEC_CODE): Likewise.
11469 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
11470 (PHI_NODE_P): Add parenthesis.
11471 (plus_constant): Whitespace and add parenthesis.
11473 2002-01-03 Kazu Hirata <kazu@hxi.com>
11475 * config/avr/avr.c: Fix comment typos.
11476 * config/c4x/c4x.md: Likewise.
11477 * config/dsp16xx/dsp16xx.h: Likewise.
11478 * config/dsp16xx/dsp16xx.md: Likewise.
11479 * config/i386/i386.md: Likewise.
11480 * config/ia64/ia64.c: Likewise.
11481 * config/m32r/m32r.h: Likewise.
11482 * config/m68hc11/m68hc11.md: Likewise.
11483 * config/mmix/mmix.c: Likewise.
11484 * config/mn10200/mn10200.c: Likewise.
11485 * config/romp/romp.c: Likewise.
11486 * config/sh/sh.c: Likewise.
11487 * config/stormy16/stormy16.c: Likewise.
11488 * config/stormy16/stormy16.h: Likewise.
11489 * config/stormy16/stormy16.md: Likewise.
11491 2002-01-03 Graham Stott <grahams@redhat.com>
11493 * loop.h: Update copyright date.
11494 (LOOP_MOVABLES): Fix typo.
11495 (LOOP_REGS): Likewise.
11496 (LOOP_IVS): Likewise.
11498 2002-01-03 Graham Stott <grahams@redhat.com>
11500 * cppinit.c: Update copyright date.
11501 Don't include output.h
11502 * Makefile.in: Update copyright date.
11505 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
11508 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
11509 (-pthread) Add to RS/6000 options.
11511 2002-01-02 Kazu Hirata <kazu@hxi.com>
11513 * except.c: Fix comment typos.
11514 * loop.c: Likewise.
11515 * varasm.c: Likewise.
11516 * doc/tm.texi: Fix a typo.
11518 2002-01-02 Jakub Jelinek <jakub@redhat.com>
11520 * c-typeck.c (output_init_element): Allow initializing static storage
11521 duration objects with compound literals.
11523 2002-01-02 Richard Henderson <rth@redhat.com>
11525 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
11528 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11530 * gcc.c (default_compilers): Const-ify.
11531 * mips-tdump.c (stab_names): Likewise.
11532 * mips-tfile.c (map_coff_types, map_coff_storage,
11533 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
11534 pseudo_ops_t, pseudo_ops): Likewise.
11535 * protoize.c (default_include): Likewise
11537 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
11538 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
11539 Add array size in declaration.
11540 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
11541 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
11542 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
11543 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
11544 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
11545 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
11546 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
11547 emtens, make_nan): Const-ify.
11548 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
11549 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
11551 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
11553 * config.gcc (ia64-*-*): Set extra_headers.
11554 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
11555 * config/alpha/t-osf: Remove.
11556 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
11558 2002-01-02 David Edelsohn <edelsohn@gnu.org>
11560 * config/rs6000/t-aix43: Revert previous change.
11562 2002-01-02 Jason Merrill <jason@redhat.com>
11564 * c-decl.c (c_expand_body): Call outlining_inline_function when
11565 emitting an inline function out of line.
11567 2002-01-02 Richard Henderson <rth@redhat.com>
11569 * dwarf2out.c (limbo_die_node): Add created_for member.
11570 (new_die): New argument created_for. Update all callers.
11571 (mark_limbo_die_list): New.
11572 (dwarf2out_init): Register limbo_die_list as a root.
11573 (dwarf2out_finish): Force insert limbo dies into their function
11576 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
11579 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
11581 2002-01-02 Kazu Hirata <kazu@hxi.com>
11583 * config/h8300/fixunssfsi.c: Update copyright.
11586 * config/h8300/h8300.c: Update copyright.
11587 Eliminate warnings.
11589 2002-01-02 Kazu Hirata <kazu@hxi.com>
11591 * config/romp/romp.c: Fix comment formatting.
11592 * config/romp/romp.h: Likewise.
11593 * config/romp/romp.md: Likewise.
11594 * config/s390/s390.c: Likewise.
11595 * config/stormy16/stormy16.c: Likewise.
11596 * config/stormy16/stormy16.h: Likewise.
11598 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
11600 * c-common.h (genrtl_expr_stmt_value): Declare.
11601 * c-semantics.c (genrtl_goto_stmt): Redirect to...
11602 (genrtl_goto_stmt_value): ... this new function. Pass new
11603 argument down to expand_expr_stmt_value, taking
11604 TREE_ADDRESSABLE into account.
11605 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
11606 STMT_EXPR as addressable, i.e., one whose result we want.
11607 * expr.c (expand_expr): Don't save expression statement value
11608 of labeled_blocks or loop_exprs.
11609 * stmt.c (expand_expr_stmt): Redirect to...
11610 (expand_expr_stmt_value): ... this new function. Use new
11611 argument to tell whether to save expression value.
11612 (expand_end_stmt_expr): Reset last_expr_type and
11613 last_expr_value if we don't have either.
11614 * tree-inline.c (declare_return_variable): Mark its use
11615 statement as addressable.
11616 * tree.h: Document new use of TREE_ADDRESSABLE.
11617 (expand_expr_stmt_value): Declare.
11619 2002-01-01 Tom Rix <trix@redhat.com>
11621 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
11622 rs6000_emit_allocate_stack.
11624 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
11626 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
11627 ${srcdir}/ginclude/ to every entry in extra_headers.
11628 * configure: Regenerate.
11629 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
11630 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
11631 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
11632 * ginclude/proto.h: Rename to config/convex/proto.h.
11634 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11636 * attribs.c (handle_vector_size_attribute): Use host_integerp
11637 and tree_int_cst; remove warnings.
11638 * caller-save.c (insert_restore): Add cast to get rid of warning.
11639 (insert_save): Likewise.
11640 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
11641 * regmove.c (find_matches): Add temporary var to kill a warning.
11643 2002-01-01 Douglas B Rupp <rupp@gnat.com>
11645 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
11646 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
11647 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
11648 (vms-dwarf2eh.o): Add Makefile rule.
11649 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
11650 * config/alpha/vms-dwarf2eh.asm: New file.
11652 * gcc.c (delete_if_ordinary): Delete all versions.
11654 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
11656 * config/mmix/mmix.md: Update FIXME to not mention
11658 (MMIX_rJ_REGNUM): New define_constants constant.
11659 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
11660 "*movdicc_real"): Adjust contraints formatting.
11661 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
11662 for branch prediction.
11663 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
11665 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
11666 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
11667 number. Delete related FIXMEs.
11668 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
11669 from number to MMIX_rJ_REGNUM.
11670 (TARGET_MASK_BRANCH_PREDICT): New.
11671 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
11672 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
11673 value. Add -mbranch-predict and -mno-branch-predict.
11674 (TARGET_VERSION): Drop date.
11675 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
11676 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
11677 for finding out global symbols.
11678 (mmix_asm_output_labelref): Revert condition for global symbol.
11679 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
11680 (mmix_print_operand_punct_valid_p): A '+' is valid.
11682 See ChangeLog.6 for earlier changes.