1 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
3 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
4 portable runtime model.
6 2002-04-26 Richard Henderson <rth@redhat.com>
8 * c-parse.in (yyoverflow): Revert.
10 2002-04-26 David Edelsohn <edelsohn@gnu.org>
11 Richard Henderson <rth@redhat.com>
13 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
14 result as temporary value.
16 2002-04-26 Richard Henderson <rth@redhat.com>
19 * c-common.c (fix_string_type): Split out of ...
20 (combine_strings): ... here. Take a varray, not a tree list.
21 (c_expand_builtin_printf): Use fix_string_type.
22 * c-common.h: Update decls.
23 * c-parse.in (string): Remove. Update all uses to use STRING
24 instead, and not call combine_strings.
27 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
28 (build_asm_stmt): Likewise.
29 * objc/objc-act.c (my_build_string): Use fix_string_type.
30 (build_objc_string_object): Build varray for combine_strings.
32 2002-04-26 Bo Thorsen <bo@suse.co.uk>
34 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
37 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
39 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
40 (HAVE_NO_R_OPERAND): Remove.
43 (UNARY): Don't alter flags.
44 (_cpp_parse_expr): want_value used to indicate whether
45 a number or unary operator is expected next. Distinguish
47 (op_as_text): Update for unary operators.
49 2002-04-25 Richard Henderson <rth@redhat.com>
52 * c-parse.in (yyoverflow): New.
54 2002-04-25 Richard Henderson <rth@redhat.com>
57 * c-common.c (shorten_compare): Simplfy conditions leading to
58 the generation of a warning.
60 2002-04-25 Richard Henderson <rth@redhat.com>
63 * expmed.c (extract_bit_field): Fall through to generic code rather
64 than aborting on subreg special case.
66 2002-04-25 David S. Miller <davem@redhat.com>
68 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
71 2002-04-25 Steve Christiansen <smc@us.ibm.com>
73 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
75 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
77 * c-decl.c (grokdeclarator): Remove outdated ??? note
78 on invalid declaration of flexible array members.
80 2002-04-25 Richard Henderson <rth@redhat.com>
82 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
84 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
86 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
87 needed by the compiler, even if they are used as global regs.
89 2002-04-25 Matt Hiller <hiller@redhat.com>
91 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
93 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
94 of the corresponding functions.
95 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
98 2002-04-25 Matt Hiller <hiller@redhat.com>
100 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
102 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
103 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
104 registers, adjust comment accordingly.
105 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
106 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
107 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
108 for coprocessor registers.
109 (ADDITIONAL_REGISTER_NAMES): Include
110 ALL_COP_ADDITIONAL_REGISTER_NAMES.
112 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
113 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
114 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
115 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
116 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
118 (mips_char_to_class): Adjust comment to include coprocessor
121 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
123 (mips_reg_names, mips_regno_to_class): Include coprocessor
125 (mips_sw_reg_names): Ditto, make non-static.
126 (mips_move_1word): Handle moves to and from coprocessor registers.
127 (mips_move_2words): Handle moves to and from coprocessor
129 (mips_class_max_nregs, mips_register_move_cost): Handle
130 coprocessor register classes.
131 (override_options): Initialize mips_char_to_class and
132 mips_hard_regno_mode_ok properly for coprocessor registers.
134 * config/mips/mips.md (movdi_internal, movdi_internal2,
135 movsi_internal1, movsi_internal2): Add constraint-sets for
136 coprocessor registers.
137 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
138 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
140 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
141 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
143 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
144 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
146 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
147 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
150 * doc/tm.texi: Document feature.
152 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
154 * integrate.c (function_attribute_inlinable_p): Simplify.
155 Check the table pointer is not NULL.
157 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
159 * doc/c-tree.texi: Fix typo in introduction.
161 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
163 * c-common.h (c_common_parse_file): Update.
164 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
165 * c-lex.c (YYDEBUG): Get from c-lex.h.
166 (c_common_parse_file): Update.
167 * c-lex.h (YYDEBUG, yydebug): New.
168 * c-parse.in (YYDEBUG): Get from c-lex.h.
169 (c_set_yydebug): Remove.
170 * c-tree.h (c_set_yydebug): Remove.
171 * langhooks-def.h (lhd_do_nothing_i): New.
172 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
173 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
174 * langhooks.c (lhd_do_nothing_i): New.
175 (lhd_set_yydebug): Remove.
176 * langhooks.h (struct lang_hooks): Update.
177 * toplev.c (set_yydebug): New.
178 (compile_file): Update call to parse_file hook.
179 (decode_d_option): Update.
181 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
183 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
185 * loop.c (load_mems): Don't change the interface of called functions.
187 * calls.c (expand_call): Take current_function_pretend_args_size
188 into account when setting argblock for sibcalls.
190 2002-04-24 Matt Hiller <hiller@redhat.com>
192 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
195 * cpplex.c (skip_line_comment): Process comment one multibyte
196 character at a time rather than one char at a time, if
198 (parse_string): Process string one multibyte character at a time
199 rather than one char at a time, if appropriate.
200 * c-lex.c (lex_string): Lex and copy multibyte strings
202 * cpplib.h (cppchar_t): Change to unsigned.
204 2002-04-24 Richard Henderson <rth@redhat.com>
207 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
210 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
212 * sh.c (sh_va_arg): If argument was passed by reference,
213 dereference the pointer.
215 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
217 * sh.md (divsi3_i4_media): Use match_operand for input values
218 rather than hard registers.
219 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
220 unnecessarily through hard registers. Keep copies of pseudo
221 registers outside of the libcall sequence.
223 * sh.md (casesi_shift_media): Add modes.
225 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
228 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
230 * attribs.c (c_common_attribute_table): Move table and handlers
232 (format_attribute_table, lang_attribute_table,
233 lang_attribute_common): Remove.
234 (init_attributes): Replace NULL pointers with pointers to the
236 (handle_packed_attribute, handle_nocommon_attribute,
237 handle_common_attribute, handle_noreturn_attribute,
238 handle_noinline_attribute, handle_always_inline_attribute,
239 handle_used_attribute, handle_unused_attribute,
240 handle_const_attribute, handle_transparent_union_attribute,
241 handle_constructor_attribute, handle_destructor_attribute,
242 handle_mode_attribute, handle_section_attribute,
243 handle_aligned_attribute, handle_weak_attribute,
244 handle_alias_attribute, handle_visibility_attribute,
245 handle_no_instrument_function_attribute, handle_malloc_attribute,
246 handle_no_limit_stack_attribute, handle_pure_attribute,
247 handle_deprecated_attribute, handle_vector_size_attribute,
248 vector_size_helper): Move to c-common.c.
249 * c-common.c (c_common_attribute_table,
250 handle_packed_attribute, handle_nocommon_attribute,
251 handle_common_attribute, handle_noreturn_attribute,
252 handle_noinline_attribute, handle_always_inline_attribute,
253 handle_used_attribute, handle_unused_attribute,
254 handle_const_attribute, handle_transparent_union_attribute,
255 handle_constructor_attribute, handle_destructor_attribute,
256 handle_mode_attribute, handle_section_attribute,
257 handle_aligned_attribute, handle_weak_attribute,
258 handle_alias_attribute, handle_visibility_attribute,
259 handle_no_instrument_function_attribute, handle_malloc_attribute,
260 handle_no_limit_stack_attribute, handle_pure_attribute,
261 handle_deprecated_attribute, handle_vector_size_attribute,
262 vector_size_helper): Move from attribs.c.
263 * c-common.h (c_common_attribute_table,
264 c_common_format_attribute_table): New.
265 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
266 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
267 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
268 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
269 (LANG_HOOKS_INITIALIZER): Update.
270 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
271 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
272 * target.h: Update comment.
273 * tree.c (default_target_attribute_table): Remove.
274 * tree.h (default_target_attribute_table, format_attribute_table,
275 lang_attribute_table, lang_attribute_common): Remove.
277 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
278 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
280 2002-04-24 Jason Merrill <jason@redhat.com>
282 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
283 * dwarf2out.c (dwarf_attr_name): Support it.
284 (gen_array_type_die): Emit it.
285 (lookup_type_die): No special handling for VECTOR_TYPE.
286 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
288 2002-04-24 Richard Henderson <rth@redhat.com>
290 * config/mips/mips.md (movdi_usd): Renumber.
292 2002-04-24 David S. Miller <davem@redhat.com>
295 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
296 32-bit Sparc and current_function_returns_struct is true.
298 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
300 * loop.c (canonicalize_condition): Use gen_int_mode.
302 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
304 * config/rs6000/altivec.h: Cleanup file. Add non individual
348 (vec_lde): Add vector float variant.
353 (vec_vmhaddshs): New.
375 (vec_vmladduhm): New.
376 (vec_vmhraddshs): New.
409 (vec_vrsqrtefp): New.
461 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
464 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
465 added literals from substracted literals.
466 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
467 (fold) [associate]: Preserve MINUS_EXPR if needed.
469 2002-04-23 Zack Weinberg <zack@codesourcery.com>
471 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
474 2002-04-23 Tom Tromey <tromey@redhat.com>
476 * gcc.c: Added --resource. For PR java/6314.
478 2002-04-23 David O'Brien <obrien@FreeBSD.org>
480 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
481 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
484 2002-04-23 David O'Brien <obrien@FreeBSD.org>
486 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
488 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
490 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
492 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
493 (ix86_expand_clrstr): Fix typo.
494 * loop.c (gen_load_of_final_value): New.
495 (loop_givs_rescan, strength_reduce, check_dbra_loop):
498 2002-04-23 Roger Sayle <roger@eyesopen.com>
500 * builtins.c (builtin_memset_gen_str): New function.
501 (expand_builtin_memset): Optimize the case of constant length, but
504 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
506 * config/rs6000/altivec.h (vec_step): Remove extraneous
508 (vec_ctu): Cast return.
510 2002-04-23 Alan Modra <amodra@bigpond.net.au>
513 * function.h: (struct function): Add profile_label_no field.
514 (current_function_profile_label_no): Define.
515 * function.c: (profile_label_no): New static var.
516 (expand_function_start): Increment it, and copy to
517 current_function_profile_label_no.
518 * output.h (profile_label_no): Delete.
519 * final.c (profile_label_no): Delete.
520 (profile_function): Use current_function_profile_label_no.
521 (final_end_function): Don't increment profile_label_no here.
522 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
523 profile_label_no with current_function_profile_label_no.
524 * config/pa/pa.c (current_function_number): Delete.
525 (pa_output_function_prologue): Don't output profile label here.
526 (hppa_profile_hook): Use label_no param rather than
527 current_function_number.
528 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
529 * config/pa/pa.h: .. here.
530 (FUNCTION_PROFILER): Output profile label here.
532 2002-04-22 Eric Christopher <echristo@redhat.com>
534 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
535 patch of 2002-04-09 due to binutils issues.
536 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
538 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
540 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
541 constraint to 'o' for m=r and r=m alternatives.
542 ("*movv8hi_internal1"): Same.
543 ("*movv16qi_internal1"): Same.
544 ("*movv4sf_internal1"): Same.
546 2002-04-22 Janis Johnson <janis187@us.ibm.com>
548 * rtl.h (RTX_FLAG): New macro.
549 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
550 * final.c (alter_subreg): Use macro to access rtx flag.
551 * integrate.c (copy_rtx_and_substitute): Use new access macro.
552 * print-rtl.c (print_rtx): Use new access macro.
554 * cse.c (insert): Check rtx code before accessing flag.
556 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
557 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
558 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
559 convert_const_symbol_ref, make_canonical, make_alternative_compare,
560 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
561 simplify_test_exp, optimize_attrs, simplify_by_exploding,
562 find_and_mark_used_attributes, unmark_used_attributes,
563 add_values_to_cover, simplify_with_current_value,
564 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
565 copy_rtx_unchanging, main): Use new access macros.
567 2002-04-22 Tom Rix <trix@redhat.com>
569 * expmed.c (init_expmed): Generate shifted constant once.
571 2002-04-22 Zack Weinberg <zack@codesourcery.com>
573 * c-lex.c (lex_charconst): Call convert to get constant in
574 proper type; don't just smash the type field.
577 * config.gcc: Add list of obsolete configurations. Disallow
578 building these without --enable-obsolete.
579 * doc/install.texi: Document --enable-obsolete and obsoletion
580 policy. Mention obsoletion of individual targets in
583 2002-04-22 Richard Henderson <rth@redhat.com>
585 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
587 2002-04-22 Mark Mitchell <mark@codesourcery.com>
590 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
591 (walk_fixup_memory_subreg): Likewise.
592 (fixup_var_refs_insn): Adjust accordingly.
593 (fixup_var_refs_1): Likewise.
595 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
597 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
598 LIBPATH_ARCH64_SPEC): Define.
599 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
600 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
601 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
602 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
604 2002-04-22 Joel Sherrill <joel@OARcorp.com>
606 * gthr-rtems.h: Correct prototypes to remove warnings.
608 2002-04-22 Richard Henderson <rth@redhat.com>
611 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
613 * gcse.c (free_insn_expr_list_list): New.
614 (clear_modify_mem_tables): Use it. Fix bit set usage.
615 (canon_list_insert): Use EXPR_LISTs for expressions.
616 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
618 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
620 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
621 file change and include code to _cpp_pop_buffer.
622 * cpphash.h (struct pending_option): Predeclare.
623 (struct cpp_reader): New member next_include_file.
624 (_cpp_pop_file_buffer): Update.
625 (_cpp_push_next_buffer): Update, rename.
626 * cppinit.c (cpp_destroy): Free include chain and pending here.
627 (cpp_finish_options): Simplify.
628 (_cpp_push_next_buffer): Rename and clean up.
629 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
631 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
633 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
635 * config/rs6000/altivec.h (vec_xor): Add variant for both args
636 being vector signed int.
638 (vec_xor): Add variant for both args being vector signed char.
639 Remove redundant variant.
642 2002-04-21 David S. Miller <davem@redhat.com>
644 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
645 compare mode in output RTL.
647 2002-04-22 David Edelsohn <edelsohn@gnu.org>
649 * config/rs6000/rs6000.c (rs6000_override_options): Correct
650 style and formatting of previous patch.
652 2002-04-22 Alan Modra <amodra@bigpond.net.au>
654 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
655 flag_pic for ABI_AIX.
657 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
659 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
660 * cppfiles.c (read_include_file): Similarly.
661 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
662 uxstrdup ustrchr, ufputs): Similarly.
663 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
664 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
665 cpp_ideq, parse_identifier, parse_number): Similarly.
666 * cpplib.c (struct directive, dequote_string, D, run_directive,
667 cpp_push_buffer): Similarly.
668 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
669 _cpp_create_definition, check_trad_stringification,
670 cpp_macro_definition): Similarly.
672 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
674 * cppmacro.c (funlike_invocation_p): Don't step back
677 2002-04-21 David Edelsohn <edelsohn@gnu.org>
679 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
682 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
684 * doc/invoke.texi: Remove Chill references.
685 * doc/gcc.texi: Update last modified date.
687 2002-04-20 Kazu Hirata <kazu@hxi.com>
689 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
690 push and pop. Replace add.l with add.w.
692 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
694 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
695 multiply instructions for H8/300H case.
697 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
699 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
700 Bum three instructions from each routine.
702 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
704 * Makefile.in: Update.
705 * decl.c (push_c_function_context, pop_c_function_context,
706 mark_c_function_context): Rename for consistency.
707 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
708 * c-tree.h (push_c_function_context, pop_c_function_context,
709 mark_c_function_context): Rename for consistency.
710 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
711 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
712 * function.c (init_lang_status, save_lang_status,
713 restore_lang_status, mark_lang_status, free_lang_status):
715 (push_function_context_to, pop_function_context_from,
716 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
718 * function.h (init_lang_status, save_lang_status,
719 restore_lang_status, mark_lang_status, free_lang_status):
721 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
722 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
723 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
724 LANG_HOOKS_FUNCTION_INITIALIZER): New.
725 (LANG_HOOKS_INITIALIZER): Update.
726 (lhd_do_nothing_f): New.
727 * langhooks.h (struct lang_hooks_for_functions): New.
728 (struct lang_hooks): New hooks.
729 * langhooks.c (lhd_do_nothing_f): New.
731 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
732 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
734 2002-04-19 David S. Miller <davem@redhat.com>
736 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
737 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
739 2002-04-19 Jakub Jelinek <jakub@redhat.com>
742 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
743 x = ((int) y < 0) ? cst1 : cst2.
745 2002-04-19 Jakub Jelinek <jakub@redhat.com>
748 * function.c: Reapply patch for c/6358.
749 (expand_function_end): Copy decl_rtl's mode, not
750 current_function_return_rtx mode.
752 2002-04-19 Joel Sherrill <joel@OARcorp.com>
754 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
757 2002-04-19 Tom Tromey <tromey@redhat.com>
759 * doc/install.texi (Specific): Update status of Solaris 2.8.
762 2002-04-19 Andreas Schwab <schwab@suse.de>
764 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
765 (PUT_REAL): Restore old definition.
767 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
768 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
770 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
771 binutils 2.11.2 and higher generate smaller binaries than Sun's
774 2002-04-19 Mark Mitchell <mark@codesourcery.com>
777 * toplev.c (rest_of_compilation): Do not defer functions for which
778 TREE_SYMBOL_REFERENCED has already been set.
780 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
782 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
785 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
787 * builtins.c: Include langhooks.h.
788 (lang_type_promotes_to): Remove.
789 (expand_builtin_va_arg): Use new hook.
790 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
791 (simple_type_promotes_to): Move to c-typeck.c.
792 * c-common.h (simple_type_promotes_to): Remove.
793 * c-decl.c (duplicate_decls, grokdeclarator): Update.
794 * c-format.c: Include langhooks.h.
795 (check_format_types): Update.
796 * c-tree.h (c_type_promotes_to): New.
797 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
798 (type_lists_compatible_p): Update.
799 * langhooks-def.h (lhd_type_promotes_to): New.
800 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
801 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
802 * langhooks.c (lhd_type_promotes_to): New.
803 * langhooks.h (struct lang_hooks_for_types): New hook.
804 * tree.h (lang_type_promotes_to): Remove.
806 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
808 2002-04-18 Richard Henderson <rth@redhat.com>
810 * function.c: Revert patch for c/6358.
812 2002-04-18 Richard Henderson <rth@redhat.com>
814 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
815 blocks. Handle multiple references to the TRAP block. Handle
816 non-adjacent THEN and OTHER blocks.
818 2002-04-18 Richard Henderson <rth@redhat.com>
820 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
821 crash with no type for by-mode libcalls.
823 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
825 2002-04-18 Bob Wilson <bob.wilson@acm.org>
827 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
828 __xtensa_nonlocal_goto): Use a syscall instructions to flush
829 the register windows.
831 2002-04-18 Zack Weinberg <zack@codesourcery.com>
833 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
834 appropriate. Document need for extended precision even when
835 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
836 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
837 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
838 instead of relying on later syntax error when REAL_WIDTH > 5.
839 * real.c: Define NE based only on whether or not we have a
840 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
841 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
842 define GET_REAL and PUT_REAL as simple memcpy operations; no
843 need to byteswap or round.
844 Use #error instead of #ifdef-ing out the entire file, for
845 prompt error detection.
847 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
849 2002-04-18 David S. Miller <davem@redhat.com>
851 * config/sparc/sparc.h (BRANCH_COST): Define.
853 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
856 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
858 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
859 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
860 propagate_block calls after relaxation loop using new variable
861 stabilized_prop_flags.
863 2002-04-18 Richard Henderson <rth@redhat.com>
865 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
866 (ia64_va_arg): Expect variable sized types by reference.
867 * config/ia64/ia64-protos.h: Update.
868 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
869 ia64_function_arg_pass_by_reference.
871 2002-04-18 Richard Henderson <rth@redhat.com>
873 * ifcvt.c: Include except.h.
874 (block_has_only_trap): Break out from find_cond_trap.
875 (find_cond_trap): Use it. Always delete the trap block.
876 (merge_if_block): Allow then block null. Be less simplistic about
877 what insns can end a block.
878 * Makefile.in (ifcvt.o): Depend on except.h.
880 * config/ia64/ia64.md (trap, conditional_trap): New.
882 2002-04-18 Jakub Jelinek <jakub@redhat.com>
885 * function.c (assign_parms): Assign hard current_function_return_rtx
887 (expand_function_end): ...not here.
889 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
891 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
892 * c-tree.h (c_incomplete_type_error): New.
893 * c-typeck.c (require_complete_type, build_component_ref): Update.
894 (incomplete_type_error): Rename.
895 * langhooks-def.h (lhd_incomplete_type_error): New.
896 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
897 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
898 * langhooks.c (lhd_incomplete_type_error): New.
899 * langhooks.h (struct lang_hooks_for_types): New hook.
900 * tree.c (size_in_bytes): Use new hook.
901 * tree.h (incomplete_type_error): Remove.
903 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
905 2002-04-18 Zack Weinberg <zack@codesourcery.com>
907 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
908 TARGET_FLOAT_FORMAT blocks.
910 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
912 * doc/install.texi (Downloading the source): Do not mention Chill
913 any longer, but mention Ada.
914 (Configuration): Do not mention Chill any longer.
916 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
918 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
920 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
922 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
925 2002-04-18 Jakub Jelinek <jakub@redhat.com>
927 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
928 instead of unsigned_type.
930 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
932 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
933 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
936 2002-04-18 Bernd Schmidt <bernds@redhat.com>
938 * attribs.c (vector_type_node_list): New static variable.
939 (handle_vector_size_attribute): Use it to avoid generating a
940 new type node each time we are called.
942 * combine.c (subst): Avoid trying to make a vector mode subreg of
944 (gen_lowpart_for_combine): Likewise.
946 2002-04-18 Roger Sayle <roger@eyesopen.com>
947 Jakub Jelinek <jakub@redhat.com>
949 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
950 for integer constant c (if x has unsigned type or sign bit is not
951 set in c). This folds the zero/sign extension into the bit-wise and
954 2002-04-18 Jakub Jelinek <jakub@redhat.com>
957 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
960 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
962 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
964 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
966 * gcc.c (read_specs): Detect and fail if an attempt is made to
967 rename a spec string to an already existing string.
969 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
971 * config/s390/s390.c (legitimize_pic_address): Do not generate
972 illegal address constant without CONST.
974 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
976 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
977 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
979 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
982 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
983 to make sure previous reloads are taken into account. Generate
984 better code if one operand is an in-range immediate constant.
986 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
988 * doc/install.texi (Building): libgcj requires GNU make.
990 2002-04-17 Jakub Jelinek <jakub@redhat.com>
993 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
994 even if hard quad and register is not floating.
995 (movtf reg<-mem split): Disallow splitting if hard quad and
996 register is floating.
997 (movtf mem<-reg split): Likewise.
998 * config/sparc/sparc.c (fp_register_operand): New predicate.
999 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
1001 2002-04-17 Zack Weinberg <zack@codesourcery.com>
1003 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
1004 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
1005 (unprotoize.o): Ditto. Build from protoize.c. Define
1006 UNPROTOIZE on command line.
1007 * protoize.c: Include cppdefault.h. Delete include_defaults.
1008 (in_system_include_dir): Use cpp_include_defaults (defined in
1010 * unprotoize.c: Delete file.
1012 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
1014 * config/rs6000/altivec.h (vec_ld): Add array variants.
1018 2002-04-17 Alan Matsuoka <alanm@redhat.com>
1019 Aldy Hernandez <aldyh@redhat.com>
1021 * config/rs6000/altivec.h: Define __ALTIVEC__.
1028 Add parentheses to all macro arguments.
1030 2002-04-16 Richard Henderson <rth@redhat.com>
1033 * except.c (remove_eh_handler): Insert inner regions at beginning
1034 of sibling chain. Refactor expressions.
1036 2002-04-16 Richard Henderson <rth@redhat.com>
1038 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
1039 * config/sparc/sol2-gas-bi.h: New file.
1040 * config.gcc (sparc*-solaris): Add it as needed.
1041 * configure.in (AS_SPARC64_FLAG): Remove check.
1042 * config.in, configure: Regenerate.
1044 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
1046 2002-04-16 Richard Henderson <rth@redhat.com>
1048 * config/mips/mips.c (override_options): Don't override N32 for
1052 * config/mips/mips.md (can_delay): Split out of existing define_delays.
1053 (HILO_delay): Set can_delay false.
1055 2002-04-16 Dale Johannesen <dalej@apple.com>
1057 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
1058 instruction addresses.
1059 (rs6000_output_function_epilogue): Likewise.
1061 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
1063 * c-parse.in (poplevel, compstmt_start,
1064 compstmt_primary_start): Add ending ';', in accordance
1067 2002-04-16 Richard Henderson <rth@redhat.com>
1069 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
1070 Adjust tm_file order to get TARGET_DEFAULT set properly.
1071 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
1072 * doc/install.texi (sparc-solaris): Update.
1074 2002-04-16 Dale Johannesen <dalej@apple.com>
1076 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
1077 comparison operands do not match each other or if modes of
1078 conditions do not match result.
1080 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
1083 * config/s390/s390.md (mulsidi3): Set both subregs of the
1086 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
1088 * config/rs6000/altivec.h (vec_addc): Type check.
1090 2002-04-16 Jakub Jelinek <jakub@redhat.com>
1093 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
1095 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
1097 2002-04-15 Richard Henderson <rth@redhat.com>
1099 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
1100 call_really_used_regs too.
1102 2002-04-15 Richard Henderson <rth@redhat.com>
1104 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
1106 2002-04-15 David S. Miller <davem@redhat.com>
1108 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
1111 2002-04-16 Jakub Jelinek <jakub@redhat.com>
1114 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
1115 CONST_VECTOR is { 0, ... 0 }.
1117 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
1119 * doc/install.texi (Installing GCC: Configuration): Clarify
1120 the only supported ways to configure gcc.
1122 2002-04-15 Roland McGrath <roland@frob.com>
1124 * config.gcc (alpha*-*-gnu*): New target configuration.
1125 * config/alpha/gnu.h: New file for it.
1126 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
1128 2002-04-16 Mark Mitchell <mark@codesourcery.com>
1130 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
1131 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
1132 * tree.h (expand_start_stmt_expr): Update prototype.
1133 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
1134 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
1135 on the STMT_EXPR created for the inline function.
1137 2002-04-15 Richard Henderson <rth@redhat.com>
1139 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
1140 config/i386/linux-aout.h, config/i386/linux-oldld.h,
1141 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
1142 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
1143 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
1144 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
1145 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
1146 Define __gnu_linux__, not gnu_linux.
1147 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
1149 2002-04-15 Mark Mitchell <mark@codesourcery.com>
1151 Remove Chill front end.
1152 * gcc.c (default_compilers): Remove Chill entries.
1153 * ch: Remove directory.
1154 * doc/frontends.texi: Remove information about Chill.
1155 * doc/sourcebuild.texi: Likewise.
1156 * doc/standards.texi: Likewise.
1158 2002-04-15 Douglas B Rupp <rupp@gnat.com>
1160 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
1161 (LONGLONG_STANDALONE): Define.
1163 2002-04-15 David S. Miller <davem@redhat.com>
1165 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
1166 Call emit_library_call with LCT_NORMAL.
1167 (sparc_initialize_trampoline): Use LCT_foo instead of
1168 magic constant in emit_library_call invocations.
1169 (sparc64_initialize_trampoline): Likewise.
1170 (sparc_profile_hook): Likewise.
1171 * config/sparc/sparc.md: Likewise.
1173 * config/sparc/sparc.c (sparc_extra_constraint_check):
1174 Fix type of argument 'c'.
1175 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
1178 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1180 * diagnostic.h (output_buffer_state): Redefine.
1181 (output_format_decoder): New macro.
1182 (output_prefixing_rule): Likewise.
1183 (output_line_cutoff): Likewise.
1184 (diagnostic_format_decoder): Adjust.
1185 (diagnostic_prefixing_rule): Likewise.
1186 (diagnostic_line_cutoff): Likewise.
1187 (diagnostic_state): Likewise.
1188 (diagnostic_kind_count): Likewise.
1189 (diagnostic_buffer): Now a macro.
1191 * diagnostic.c (diagnostic_buffer): Remove definition.
1192 (output_is_line_wrapping): Adjust.
1193 (set_real_maximum_length): Likewise.
1194 (output_set_maximum_length): Likewise.
1195 (init_output_buffer): Likewise.
1196 (lhd_print_error_function): Likewise.
1197 (output_do_verbatim): Likewise.
1199 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
1201 * cpperror.c (print_location): Don't print include chain
1203 (cpp_begin_message): Update to use DL_ macros.
1204 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1205 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1206 cpp_notice, cpp_notice_from_errno): Remove.
1207 (cpp_error, cpp_error_with_line): Update to take a diagnostic
1210 * cppexp.c (CPP_ICE): Remove.
1211 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
1212 lex, integer_overflow, _cpp_parse_expr): Update.
1213 * cppfiles.c (read_include_file, find_include_file,
1214 handle_missing_header, _cpp_read_file, remap_filename): Update.
1215 * cpphash.h (enum error_type): Remove.
1216 (_cpp_begin_message): Update.
1217 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
1218 cpp_handle_option, cpp_post_options): Update.
1219 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
1220 skip_whitespace, parse_identifier, parse_slow, parse_string,
1221 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
1222 cpp_interpret_charconst): Update.
1223 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
1224 lex_macro_node, do_undef, glue_header_name, parse_include,
1225 do_include_common, read_flag, do_line, do_linemarker, do_ident,
1226 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
1227 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
1228 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
1229 _cpp_pop_buffer, do_diagnostic): Update.
1230 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
1231 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
1232 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1233 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1234 cpp_notice, cpp_notice_from_errno): Remove.
1235 (cpp_error, cpp_error_with_line): Update to take a diagnostic
1238 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
1239 collect_args, enter_macro_context, save_parameter, parse_params,
1240 _cpp_create_definition, check_trad_stringification,
1241 cpp_macro_definition): Update.
1242 * cppmain.c (cpp_preprocess_file): Update.
1243 * fix-header.c (read_scan_file): Update.
1245 2002-04-14 Andreas Schwab <schwab@suse.de>
1247 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
1249 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1251 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
1253 2002-04-13 Mark Mitchell <mark@codesourcery.com>
1255 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
1258 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
1260 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
1262 2002-04-13 Joel Sherrill <joel@OARcorp.com>
1264 * config/sparc/t-elf: Enable v8 multilibs. Impacts
1265 sparc-elf and sparc-rtems targets.
1267 2002-04-13 Mark Mitchell <mark@codesourcery.com>
1269 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
1270 defined, and __gnu_hurd__ wherever __GNU__ is defined.
1271 * arm/linux-elf.h: Likewise.
1272 * cris/aout.h: Likewise.
1273 * cris/linux.h: Likewise.
1274 * i370/linux.h: Likewise.
1275 * i386/gnu.h: Likewise.
1276 * i386/linux-aout.h: Likewise.
1277 * i386/linux-oldld.h: Likewise.
1278 * i386/linux.h: Likewise.
1279 * i386/linux64.h: Likewise.
1280 * ia64/linux.h: Likewise.
1281 * m68k/linux-aout.h: Likewise.
1282 * m68k/linux.h: Likewise.
1283 * mips/linux.h: Likewise.
1284 * pa/pa-linux.h: Likewise.
1285 * pj/linux.h: Likewise.
1286 * rs6000/sysv4.h: Likewise.
1287 * s390/linux.h: Likewise.
1288 * sh/linux.h: Likewise.
1289 * sparc/linux-aout.h: Likewise.
1290 * sparc/linux.h: Likewise.
1291 * sparc/linux64.h: Likewise.
1292 * xtensa/linux.h: Likewise.
1294 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
1296 * stmt.c (check_unique_operand_names): Expect operand names to
1297 be strings rather than identifiers. Use simple_cst_equal to
1299 (resolve_operand_name_1): Make same identifier to string change here.
1300 * c-parse.in (asm_operand): Convert a named operand into a string.
1301 * cp/parse.y (asm_operand): Likewise.
1303 2002-04-13 Andreas Schwab <schwab@suse.de>
1305 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
1307 2002-04-12 Mark Mitchell <mark@codesourcery.com>
1309 Revert these changes:
1311 2002-04-06 Mark Mitchell <mark@codesourcery.com>
1314 * stor-layout.c (layout_decl): Reset the RTL for the decl.
1316 2002-04-12 Richard Henderson <rth@redhat.com>
1318 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
1319 (sparc*-*-solaris): Clean up header files.
1320 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
1321 and plan on generating 64-bit code.
1322 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
1323 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
1324 * config/sparc/sol2-sld-64.h: Rename ...
1325 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
1326 for AS_SPARC64_FLAG not defined.
1327 * config/sparc/sol2-gld-bi.h: New.
1328 * config/sparc/sol2-sld.h: Remove.
1329 * config/sparc/sol26-sld.h: New.
1330 * config/sparc/sol2.h: Tidy comments.
1331 * doc/install.texi: Document sparc-solaris configury changes.
1333 2002-04-12 Richard Henderson <rth@redhat.com>
1335 * recog.c (offsettable_address_p): Match the logic in adjust_address.
1337 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
1338 in 64-bit mode only. Use only for 32-bit or MEDLOW.
1340 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1342 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
1344 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
1346 * pa.c (pa_can_combine_p): Call extract_insn before calling
1349 2002-04-12 Douglas B Rupp <rupp@gnat.com>
1351 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
1352 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
1353 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
1354 (CPP_PREDEFINES): Handle __declspec.
1355 * config/i386/t-interix (USER_H): Remove.
1357 2002-04-12 DJ Delorie <dj@redhat.com>
1359 * integrate.c (compare_blocks): Make comparisons safe for when
1360 sizeof(int) < sizeof(char *).
1361 (find_block): Likewise.
1363 2002-04-12 Jan Hubicka <jh@suse.cz>
1364 David Edelsohn <edelsohn@gnu.org>
1366 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
1368 (symbol_ref_operand): New.
1369 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
1370 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
1372 2002-04-12 Andreas Schwab <schwab@suse.de>
1374 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
1375 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
1376 overrides the definition in config/svr4.h.
1378 2002-04-12 Eric Norum <eric.norum@usask.ca>
1380 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
1381 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
1382 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
1383 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
1384 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
1385 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
1386 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
1387 definitions to config/rtems.h and make the targets more similar.
1389 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1391 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
1392 POINTERS_EXTEND_UNSIGNED.
1393 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
1394 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
1396 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
1399 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
1401 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
1402 depends on TARGET_SHMEDIA, not TARGET_SH5.
1404 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
1406 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
1407 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
1409 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
1411 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
1414 2002-04-12 Andreas Schwab <schwab@suse.de>
1416 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
1418 2002-04-12 Richard Henderson <rth@redhat.com>
1421 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
1423 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
1424 modes spanning multiple hard regs.
1426 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
1428 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1430 * pa.c (pa_output_function_prologue): Don't accumulate the total
1431 number of code bytes when using TARGET_64BIT, or gas, SOM and not
1432 the portable runtime.
1433 (output_deferred_plabels): Handle 64bit plabels.
1434 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
1435 generating pic code using the GAS assembler for object formats that
1436 are not SOM (ie., ELF32 and ELF64).
1437 (output_millicode_call): Check attribute type if attribute length is 28.
1438 Likewise use $PIC_pcrel$0. Only call get_attr_length and
1439 dbr_sequence_length once.
1440 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
1441 dbr_sequence_length once.
1442 * pa.h (TARGET_SOM): Define if not defined.
1443 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
1444 with GAS and not SOM.
1445 (jump, call_internal_reg, call_value_internal_reg): Likewise.
1446 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
1448 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1450 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
1451 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
1452 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
1453 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
1454 elfos.h and dbxelf.h values are fine now.
1455 * config/i386/freebsd.h, config/alpha/freebsd.h
1456 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
1458 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1460 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
1461 or set Acpu or Amachine. Reformat.
1462 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1464 (LINK_SPEC): Do not need to undef.
1465 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
1466 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
1467 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1469 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
1470 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
1471 (LINK_SPEC): Do not need to undef.
1472 (DONT_USE_BUILTIN_SETJMP): Do not define.
1473 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
1474 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
1475 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
1476 Remove trailing spaces.
1477 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
1478 __ELF__, or set Acpu or Amachine. Reformat.
1479 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1482 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1484 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
1485 all other *-*-freebsd* targets.
1487 2002-04-11 Richard Henderson <rth@redhat.com>
1489 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
1491 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1493 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
1494 Include {cpu}/{cpu}.h thru tm_file.
1495 (alpha*-*-linux*ecoff): Remove target.
1496 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
1497 (LINK_SPEC): Remove, is not OS independent.
1498 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
1499 (LINK_SPEC): Do not need to #undef any longer.
1500 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
1502 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
1504 (LINK_SPEC): Moved here from alpha/elf.h.
1505 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
1507 * config/alpha/linux-ecoff.h: Remove.
1508 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
1509 (CPP_SPEC): Define _POSIX_SOURCE as needed.
1510 (CPP_SUBTARGET_SPEC): Do not define.
1511 (LINK_SPEC): Do not need to #undef any longer.
1512 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
1513 * config/alpha/vms.h: Likewise.
1515 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
1517 * doc/extend.texi: Remove old claim that typedefs cannot have
1518 an alignment attribute.
1520 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1522 PR optimization/6177
1523 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
1524 bitpos is 0 and bitsize CONCAT size.
1526 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1529 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
1531 2002-04-10 David O'Brien <obrien@FreeBSD.org>
1533 * config/alpha/freebsd.h: Minor reformatting.
1534 (CPP_SPEC): Define ELF and add cpp_subtarget.
1535 (ASM_SPEC): No longer needed.
1537 2002-04-11 Richard Henderson <rth@redhat.com>
1539 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
1540 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
1541 (dimode mem/zero splitter): New.
1543 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
1545 * config/cris/cris.c (cris_override_options): Tweak error message
1546 for PIC not implemented.
1548 * config/cris/cris.h: Tweak comments related to parameter-passing.
1550 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
1552 2002-04-10 Richard Henderson <rth@redhat.com>
1554 * except.c (add_ehl_entry): Allow duplicates after landing pad
1557 2002-04-10 David Edelsohn <edelsohn@gnu.org>
1559 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
1561 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
1563 * c-decl.c (c_init_decl_processing): Move generation of
1564 decls for g77_integer_type_node and friends from here ...
1565 * c-common.c (c_common_nodes_and_builtins): ... to here.
1567 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
1569 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
1570 is only used as frame pointer when frame_pointer_needed is true.
1572 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
1575 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
1576 for the fact that the pool entry uses two words.
1577 (movdf_hard_insn): Similarly. Also, ADR instruction can span
1579 (movdf_soft_insn): Similarly.
1580 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
1581 for the fact that the pool entry uses three words.
1583 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
1585 * config/mips/mips.c (mips_va_arg): When using the struct version
1586 of the EABI va_list, allow arguments in the register save area to
1587 take up less room than a stack argument.
1589 2002-04-10 Richard Henderson <rth@redhat.com>
1591 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
1592 if EXPAND_INITIALIZER.
1594 2002-04-09 Richard Henderson <rth@redhat.com>
1596 * config/alpha/alpha.md (movdi_er_maybe_g): New.
1597 * config/alpha/alpha.c (alpha_expand_mov): Use it.
1599 2002-04-10 Alan Modra <amodra@bigpond.net.au>
1601 PR optimization/6233
1602 * rtlanal.c (pure_call_p): New function.
1603 * rtl.h (pure_call_p): Declare.
1604 * loop.c (prescan_loop): Use it to set has_nonconst_call.
1605 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
1607 2002-04-09 Eric Christopher <echristo@redhat.com>
1609 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
1610 information to .comm directive.
1612 2002-04-09 Richard Henderson <rth@redhat.com>
1615 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
1617 2002-04-09 Richard Henderson <rth@redhat.com>
1619 * basic-block.h (flow_delete_block_noexpunge): Declare.
1620 (expunge_block_nocompact): Declare.
1621 * cfg.c (expunge_block_nocompact): Split out from ...
1622 (expunge_block): ... here.
1623 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
1624 (flow_delete_block_noexpunge): Split out from ...
1625 (flow_delete_block): ... here.
1626 * cfgcleanup.c (delete_unreachable_blocks): Compact while
1627 removing dead blocks.
1628 * except.c (exception_handler_labels): Remove.
1629 (exception_handler_label_map): New.
1630 (struct eh_region): Add aka member.
1631 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
1632 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
1633 (for_each_eh_label, for_each_eh_label_1): New.
1634 (init_eh): Register exception_handler_label_map.
1635 (free_eh_status): Use free_region.
1636 (find_exception_handler_labels): Use the map, not the list.
1637 (remove_exception_handler_label): Likewise.
1638 (maybe_remove_eh_handler): Likewise.
1639 (remove_eh_handler): Use the region aka bitmap.
1640 * except.h (exception_handler_labels): Remove.
1641 (for_each_eh_label): Declare.
1642 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
1643 * loop.c (invalidate_loops_containing_label): New.
1644 (find_and_verify_loops): Use it. Use for_each_eh_label.
1645 * sched-rgn.c (is_cfg_nonregular): Use
1646 current_function_has_exception_handlers.
1648 2002-04-09 Richard Henderson <rth@redhat.com>
1650 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
1651 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
1652 Do not return changed status.
1653 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
1654 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
1655 New functions that do return changed status.
1656 * sbitmap.h: Update decls.
1657 * gcse.c, lcm.c: Use _cg functions as needed.
1659 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1661 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
1662 (sh64-*-elf*, sh-*-rtemself*): Likewise.
1663 * config/sh/embed_bb.c: New file.
1664 * config/sh/embed-elf.h: New file.
1665 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
1666 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
1667 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1669 (SUBTARGET_CPP_PTR_SPEC): Don't define.
1670 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
1671 Add subtarget_asm_endian_spec.
1672 (ASM_SPEC): Use subtarget_asm_endian_spec.
1673 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
1674 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
1675 (WCHAR_UNSIGNED): Define.
1676 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
1677 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1678 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
1680 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
1681 (sh_adjust_cost): Likewise.
1682 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1684 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
1685 (WCHAR_TYPE_SIZE): Likewise.
1686 (ASM_SPEC): Use subtarget_asm_endian_spec.
1687 (SH_ELF_WCHAR_TYPE): #undef/ #define.
1688 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
1689 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
1690 (MAX_WCHAR_TYPE_SIZE): Don't #define .
1691 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
1692 (USER_LABEL_PREFIX): Don't #undef /#define .
1693 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1694 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
1695 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
1696 (ASM_SPEC): Likewise.
1697 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
1698 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
1699 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
1700 (LIB2FUNCS_EXTRA): Define.
1701 * t-sh64 (LIB2FUNCS_EXTRA): Define.
1702 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1703 (LIB1ASMFUNCS_CACHE): Define.
1704 (LIB2FUNCS_EXTRA): Redefine empty.
1706 2002-04-08 Richard Henderson <rth@redhat.com>
1708 * reorg.c (get_branch_condition): Use reversed_comparison_code.
1710 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1712 * config/m68hc11/larith.asm (__map_data_section): Fix condition
1713 and optimize for size.
1714 (__do_global_ctors): Fix pointer comparison.
1715 (__do_global_dtors): Likewise.
1717 2002-04-09 David S. Miller <davem@redhat.com>
1719 * config/sparc/sparc.c (sparc_extra_constraint_check): New
1720 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
1721 allow reloading pseudos.
1722 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1723 * config/sparc/sparc-protos.h: Declare it.
1725 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1726 unsigned comparison warning.
1727 (output_restore_regs): Mark leaf_function as unused.
1729 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1731 * expr.c (is_aligning_offset): New function.
1732 (expand_expr, case COMPONENT_EXPR): Call it.
1734 2002-04-08 David S. Miller <davem@redhat.com>
1737 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
1739 Make init_priority work on Sparc when using GNU ld.
1740 * config/sparc/linux.h, config/sparc/linux64.h,
1741 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
1742 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
1743 * config/sparc/sol2-gld.h: New file to do the same.
1744 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1745 sparc/sol2-gld.h to tm_file.
1747 PR optimization/4328
1748 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1749 * doc/md.texi: Document it.
1750 * config/sparc/sparc.md (movdi_insn_sp64_novis,
1751 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1752 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1753 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1754 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1756 2002-04-08 Andreas Jaeger <aj@suse.de>
1758 * stmt.c (expand_asm_operands): Revert last patch from Richard
1761 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1763 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1764 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
1766 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1768 * doc/contrib.texi (Contributors): Add David O'Brien.
1770 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1772 * configure.in (auto-build.h): Use target_alias and build_alias
1773 when running configure.
1774 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1775 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1776 * configure: Regenerate.
1778 2002-04-07 David S. Miller <davem@redhat.com>
1780 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1782 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
1785 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1786 generating 32-bit pic code.
1788 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
1790 * cppinit.c (cpp_create_reader): Initialize
1791 discard_comments_in_macro_exp.
1792 (COMMAND_LINE_OPTIONS): Add "-CC" option.
1793 (cpp_handle_option): Handle "-CC" option.
1794 * cpplex.c (save_comment): If saving a C++ comment in
1795 a directive, convert it to a C comment.
1796 (_cpp_lex_direct): Pass second comment start character to
1797 save_comment to indicate comment type.
1798 * cpplib.c (_cpp_handle_directive): If processing
1799 a "#define" directive and discard_comments_in_macro_exp
1800 is false, re-enable saving of comments.
1801 (lex_macro_node): If discard_comments_in_macro_exp is false,
1802 discard any comments before the macro identifier.
1803 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1805 * cppmacro.c (cpp_get_token): If expanding a macro while
1806 processing a directive, discard any comments we might encounter.
1807 (parse_params): If discard_comments_in_macro_exp is false,
1808 ignore comments in the macro parameter list.
1809 * gcc.c (cpp_unique_options): Add "-CC" option.
1810 (option_map): Map "--comments-in-macros" to "-CC".
1811 * doc/cppopts.texi: Document "-CC" option.
1812 * f/lang-specs.h: Add "-CC" option.
1813 * testsuite/gcc.dg/cpp/maccom1.c: New test.
1814 * testsuite/gcc.dg/cpp/maccom2.c: New test.
1815 * testsuite/gcc.dg/cpp/maccom3.c: New test.
1816 * testsuite/gcc.dg/cpp/maccom4.c: New test.
1817 * testsuite/gcc.dg/cpp/maccom5.c: New test.
1818 * testsuite/gcc.dg/cpp/maccom6.c: New test.
1820 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1823 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1825 2002-04-06 Mark Mitchell <mark@codesourcery.com>
1828 * stor-layout.c (layout_decl): Reset the RTL for the decl.
1831 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1832 RTX_UNCHANGING_P for the functions arguments when a tail call
1835 2002-04-06 Jason Merrill <jason@redhat.com>
1837 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1838 (parse_options_and_default_flags): Set them appropriately.
1839 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1841 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
1843 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1846 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1849 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1850 types come in by-reference. Fix typo in comment.
1852 2002-04-05 David S. Miller <davem@redhat.com>
1854 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1855 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1856 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1857 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1859 2002-04-05 David S. Miller <davem@redhat.com>
1861 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1862 are not going to emit return instructions, emit at least a nop
1863 for the sake of sane backtraces.
1865 2002-04-05 Richard Henderson <rth@redhat.com>
1867 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1869 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
1871 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1873 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
1875 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1876 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1877 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1879 2002-04-05 Andreas Schwab <schwab@suse.de>
1881 * c-convert.c: Include c-common.h.
1882 * Makefile.in (c-convert.o): Updated.
1884 2002-04-05 Jakub Jelinek <jakub@redhat.com>
1886 * mklibgcc.in: Use separate libgcc.map for each multilib.
1887 * Makefile.in (distclean): Don't remove libgcc.map here.
1889 2002-04-05 Jakub Jelinek <jakub@redhat.com>
1891 * Makefile.in (s-mlib): Handle --disable-multilib by separate
1892 genmultilib invocation.
1894 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
1896 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1897 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
1898 to num_gprs for symmetry.
1899 * config/mips/mips.c: Adjust accordingly.
1901 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
1903 * c-common.c (truthvalue_conversion): Rename, update.
1904 * c-common.h (c_common_truthvalue_conversion): New.
1905 * c-convert.c (convert): Update.
1906 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1907 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1908 * c-typeck.c (build_binary_op, build_unary_op,
1909 build_conditional_expr): Update.
1910 * fold-const.c (constant_boolean_node, fold): Use langhook.
1911 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1912 * langhooks.h (struct lang_hooks): New hook.
1913 * stmt.c (expand_decl_cleanup): Use langhook.
1914 * tree.h (truthvalue_conversion): Remove.
1916 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1918 2002-04-05 Alan Modra <amodra@bigpond.net.au>
1920 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1921 Add rules to make null object file.
1923 2002-04-04 Jim Blandy <jimb@redhat.com>
1925 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1926 macro formal parameter names.
1928 2002-04-04 David S. Miller <davem@redhat.com>
1930 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1932 2002-04-04 Richard Henderson <rth@redhat.com>
1935 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1936 Support copies into and out of memory. Don't accept allows_reg
1937 and allows_mem as gospel.
1939 2002-04-04 Richard Henderson <rth@redhat.com>
1942 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1943 (write_dependence_p): Likewise.
1945 2002-04-04 Richard Henderson <rth@redhat.com>
1947 * predict.c (estimate_bb_frequencies): Do frequency calculation
1948 with a volatile temporary.
1950 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
1952 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1954 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1957 * final.c (final_start_function): Don't bump profile_label_no here...
1958 (final_end_function): ...but here.
1960 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1962 * config/sparc/sparc.md (pic): New attribute.
1963 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1965 (split after do_builtin_setjmp_setup): New.
1967 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1970 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1973 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1975 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1976 UNITS_PER_WORD for zero sized aggregates.
1978 2002-04-03 David S. Miller <davem@redhat.com>
1980 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1981 one-character spec for this, just use %(link_gcc_c_sequence).
1983 2002-04-03 David S. Miller <davem@redhat.com>
1985 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1988 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
1990 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1991 (DWARF_FRAME_RETURN_COLUMN): Move.
1992 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1993 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1994 * pa.c (except.h, predict.h): Include.
1996 (store_reg_modify, set_reg_plus_d): Revise prototypes.
1997 (output_ascii): Add cast.
1998 (store_reg_modify): Revise to add frame notes.
1999 (set_reg_plus_d): Likewise.
2000 (compute_frame_size): Include space for eh data registers in frame if
2001 the current function calls eh_return.
2002 (hppa_expand_prologue): Ensure register %r2 is saved if the current
2003 function calls eh_return. Save eh data registers if the current
2004 function calls eh_return. Fix code to add frame notes. Emit
2005 blockage to prevent insns with frame notes being scheduled in the
2006 delay slot of calls.
2007 (hppa_expand_epilogue): Restore eh data registers and do final stack
2008 adjustment if the current function calls eh_return. Don't add frame
2010 (output_call): Revise for change in length of call insn. Don't do
2011 return pointer adjustment for an unconditional jump in the delay slot
2012 of a call when using frame notes.
2013 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
2014 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
2015 (ARG_POINTER_CFA_OFFSET): Define.
2016 * pa.md (return_external_pic): New pattern.
2017 (prologue): Correct formatting. Use return_external_pic if current
2018 function calls eh_return.
2019 (call_internal_symref, call_value_internal_symref,
2020 sibcall_internal_symref, sibcall_value_internal_symref): Change default
2021 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
2023 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
2025 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
2026 list of targets to check using "nop" insn.
2027 * configure: Rebuilt.
2029 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2031 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
2033 2002-04-03 David S. Miller <davem@redhat.com>
2035 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
2036 library sequence passed to the linker.
2037 (LINK_COMMAND_SPEC): Use it.
2038 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
2039 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
2040 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2042 2002-04-03 Jason Merrill <jason@redhat.com>
2044 * except.c (struct eh_status): Remove protect_list.
2045 (begin_protect_partials, end_protect_partials): Remove.
2046 (add_partial_entry): Remove.
2047 * except.h: Remove prototypes.
2049 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
2050 expand_decl_cleanup_eh.
2053 * tree.h (CLEANUP_EH_ONLY): New macro.
2054 * stmt.c (expand_decl_cleanup_eh): New fn.
2055 (expand_cleanups): Check CLEANUP_EH_ONLY.
2056 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
2057 Use expand_decl_cleanup_eh.
2058 (expand_stmt): Adjust.
2059 * c-common.h: Adjust prototype.
2061 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
2063 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
2064 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
2065 (cris_target_asm_function_epilogue): Ditto.
2066 (cris_initial_frame_pointer_offset): Ditto.
2067 (cris_simple_epilogue): Ditto.
2068 (cris_expand_builtin_va_arg): Variable-size types come in
2071 2002-04-03 David S. Miller <davem@redhat.com>
2073 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
2075 (set_fast_math): Correct 'fsr' type.
2077 2002-04-03 Richard Henderson <rth@redhat.com>
2080 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
2081 * toplev.c (check_global_declarations): Use it.
2082 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
2083 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2084 (LANG_HOOKS_DECLS): Add it.
2085 * langhooks.c (lhd_warn_unused_global_decl): New.
2086 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2087 * c-objc-common.c (c_warn_unused_global_decl): New.
2088 * c-tree.h (c_warn_unused_global_decl): Declare.
2089 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2091 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
2093 * langhooks-def.h (lhd_set_decl_assembler_name,
2094 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
2095 (LANG_HOOKS_INITIALIZER): Update.
2096 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
2097 * langhooks.h (struct lang_hooks): New hook.
2098 * tree.c (set_decl_assembler_name): Move to langhooks.c.
2099 (lang_set_decl_assembler_name): Remove.
2100 (init_obstacks): Don't set hook.
2101 (decl_assembler_name): New function.
2102 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
2103 (decl_assembler_name): New.
2104 (lang_set_decl_assembler_name): Remove.
2106 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2108 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
2109 works properly with .hidden symbols.
2110 * configure: Rebuilt.
2111 * config.in: Rebuilt.
2112 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
2113 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
2114 properly with .hidden symbols.
2116 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2119 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
2122 2002-04-03 Richard Henderson <rth@redhat.com>
2125 * sched-rgn.c (sets_likely_spilled): New.
2126 (sets_likely_spilled_1): New.
2127 (add_branch_dependences): Use it.
2129 2002-04-02 Richard Henderson <rth@redhat.com>
2132 * loop.h (LOOP_FIRST_PASS): New.
2133 * loop.c (strength_reduce): Mind it when deciding to unroll.
2134 * toplev.c (rest_of_compilation): Set it.
2136 2002-04-02 David S. Miller <davem@redhat.com>
2138 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
2139 mems_ok_for_ldd_peep when the order of the loads being examined
2141 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
2142 existing comment to increase comprehension of this situation.
2144 2002-04-02 Zack Weinberg <zack@codesourcery.com>
2146 * config/sh/sh.md: Don't use union real_extract.
2148 2002-04-02 Richard Henderson <rth@redhat.com>
2150 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
2152 2002-04-02 David O'Brien <obrien@FreeBSD.org>
2154 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
2155 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
2156 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
2157 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
2158 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
2159 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
2160 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
2161 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
2162 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
2163 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
2164 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
2165 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
2166 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
2167 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
2168 Include as many configury headers via tm_file as possible. This
2169 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
2170 * config/openbsd-oldgas.h: New file.
2171 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
2172 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
2173 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
2174 config/i386/i386-coff.h, config/i386/i386-interix.h,
2175 config/i386/iscdbx.h, config/i386/linux-aout.h,
2176 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
2177 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
2178 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
2179 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
2180 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
2181 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
2182 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
2183 config/i386/vxi386.h: Do not directly include configury headers.
2184 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
2185 Directly include configury headers that are no longer automatically
2186 included by the above headers.
2187 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
2188 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
2189 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
2190 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
2191 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
2192 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
2193 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
2194 (TARGET_VERSION): Define.
2195 * config/i386/beos-elf.h, config/i386/freebsd.h,
2196 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
2197 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2198 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
2199 config/i386/sco5.h, config/i386/sysv4.h
2200 (TARGET_VERSION): Do not need to protect.
2201 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
2202 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
2203 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
2204 config/i386/i386-interix.h, config/i386/linux-aout.h,
2205 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
2206 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
2207 (YES_UNDERSCORES): Do not define - not needed.
2208 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
2209 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2210 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
2211 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
2212 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2213 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
2214 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
2215 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
2217 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
2218 Richard Henderson <rth@redhat.com>
2221 * function.c (assign_temp): Accept either type or decl argument.
2222 Detect variables whose size is too large to fit into an integer.
2223 * stmt.c (expand_decl): Pass the decl, not the type.
2225 2002-04-02 David O'Brien <obrien@FreeBSD.org>
2227 * protoize.c: Match include directory usage with cppdefault.c.
2229 2002-04-03 Jeffrey A Law (law@redhat.com)
2230 Hans-Peter Nilsson <hp@bitrange.com>
2232 * combine.c (simplify_comparison): Avoid narrowing a comparison
2233 with a paradoxical subreg when doing so would drop signficant bits.
2235 2002-04-02 Steve Ellcey <sje@cup.hp.com>
2237 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
2238 if POINTERS_EXTEND_UNSIGNED is defined.
2240 2002-04-02 Richard Henderson <rth@redhat.com>
2243 * local-alloc.c (contains_replace_regs): LO_SUM may contain
2246 2002-04-02 Richard Henderson <rth@redhat.com>
2248 * doc/standards.texi: Document required freestanding libc entry points.
2250 2002-04-02 Alan Modra <amodra@bigpond.net.au>
2252 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
2253 associated splitter. Remove MQ constraint.
2254 (ctrdi_internal4): Correct CCmode clobber.
2256 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
2258 * milli64.S ($$dyncall): New function.
2259 * t-linux (LIB1ASMFUNCS): Revise module list.
2260 (LIB1ASMSRC): Use pa/milli64.S.
2262 2002-04-02 Richard Henderson <rth@redhat.com>
2264 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
2265 rename solaris_sys_varargs_h.
2267 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2269 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
2270 the same mode as its component.
2272 2002-04-02 Richard Henderson <rth@redhat.com>
2275 * final.c (this_is_asm_operands): Export.
2276 * output.h (this_is_asm_operands): Declare.
2277 * config/i386/i386.c (print_operand): Error odd asm operands.
2279 2002-04-02 Richard Henderson <rth@redhat.com>
2282 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
2284 2002-04-01 Richard Henderson <rth@redhat.com>
2287 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
2288 * fixinc/fixincl.x: Rebuild.
2290 2002-04-01 Richard Henderson <rth@redhat.com>
2292 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
2293 (atomic_alloc, atomic_free): New.
2294 (SIZE, MASK_FOR, PTR_IN): New.
2295 (emergency_reg_state, emergency_reg_state_free): New.
2296 (emergency_labeled_state, emergency_labeled_state_free): New.
2297 (reg_state_alloced, labeled_state_alloced): New.
2298 (alloc_reg_state, free_reg_state): New.
2299 (alloc_label_state, free_label_state, free_label_states): New.
2300 (push, pop, dup_state_stack, free_state_stack): Use them.
2301 (desc_label_state): Likewise.
2302 (uw_frame_state_for): Free label states and state stack.
2303 (uw_update_reg_address): Eliminate warnings.
2305 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
2307 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
2308 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
2310 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2312 * c-decl.c (grokdeclarator): Update.
2313 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2314 * c-tree.h (c_mark_addressable): New.
2315 * c-typeck.c (default_function_array_conversion, build_unary_op,
2316 build_array_ref, convert_for_assignment): Update.
2317 (mark_addressable): Rename.
2318 * calls.c (try_to_integrate, expand_call): Use langhook.
2319 * expr.c (expand_expr): Use langhook.
2320 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
2321 * langhooks.h (struct lang_hooks): New hook.
2322 * stmt.c (expand_asm_operands): Use langhook.
2323 * tree.h (mark_addressable): Remove.
2325 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2327 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2329 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
2332 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2334 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
2335 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
2337 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2339 * c-common.c (unsigned_conversion_warning, convert_and_check,
2340 unsigned_type, signed_type, shorten_compare,
2341 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
2342 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
2343 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
2345 * c-decl.c (grokdeclarator): Update.
2346 * c-format.c (check_format_types): Update.
2347 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2348 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2349 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
2350 * convert.c (convert_to_integer): Use new hooks.
2351 * expmed.c (make_tree): Use new hooks.
2352 * expr.c (store_expr): Use new hooks.
2353 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
2354 all_ones_mask_p, unextend, fold): Use new hooks.
2355 * langhooks.h (struct lang_hooks_for_types): New hooks.
2356 * tree.h (signed_or_unsigned_type, signed_type,
2357 unsigned_type): Remove.
2359 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2360 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2362 2002-03-31 Richard Henderson <rth@redhat.com>
2364 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
2365 (desc_frgr_mem): Fix reference to f16-f31.
2367 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2369 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
2370 RTVEC_ELT): Const-ify.
2371 * varray.h (VARRAY_CHECK): Const-ify.
2372 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
2373 ggc_mark_rtvec, ggc_mark): Const-ify.
2375 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2377 * diagnostic.c: Include langhooks-def.h.
2378 * Makefile.in (diagnostic.o): Update.
2380 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
2382 * c-common.c (c_unsafe_for_reeval): Rename.
2383 * c-common.h (c_unsafe_for_reeval): Rename.
2384 * c-decl.c (finish_incomplete_decl): Rename.
2385 (c_init_decl_processing): Don't set langhook.
2386 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2387 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2388 * c-objc-common.c (c_objc_common_init): Don't set langhook.
2389 * c-tree.h (finish_incomplete_decl): Rename.
2390 * langhooks-def.h (lhd_unsafe_for_reeval): New.
2391 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
2392 (LANG_HOOKS_INITIALIZER): Update.
2393 * langhooks.c (lhd_unsafe_For_reeval): New.
2394 * langhooks.h (struct langhooks): New hooks.
2395 * toplev.c (incomplete_decl_finalize_hook): Remove.
2396 (wrapup_global_declarations): Update.
2397 * tree.c (lang_unsafe_for_reeval): Remove.
2398 (unsafe_for_reeval): Update.
2399 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
2402 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2403 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2405 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
2407 * diagnostic.c (print_error_function): Remove.
2408 (default_print_error_function): Rename.
2409 (report_error_function): Update.
2410 * diagnostic.h (print_error_function): Remove.
2411 (default_print_error_function): Remove.
2412 * langhooks-def.h (struct diagnostic_context): Predeclare.
2413 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
2414 (LANG_HOOKS_INITIALIZER): Update.
2415 * langhooks.h (struct diagnostic context): Predeclare.
2416 (struct lang_hooks): New hook.
2418 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2420 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
2421 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
2423 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
2424 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
2425 of PIC_OFFSET_TABLE_REGNUM thruout.
2426 * config/rs6000/rs6000.md: Likewise.
2427 * config/rs6000/darwin.h: Likewise.
2429 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2431 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
2432 unsigned HOST_WIDE_INT, not unsigned int.
2434 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2436 PR middle-end/6096, middle-end/6098, middle-end/6099
2437 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
2439 (fill_slots_from_thread): Likewise.
2441 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2443 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
2444 floating fields in float regs.
2445 (function_arg_record_value_2): Likewise.
2447 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
2449 * config/mmix/mmix.md (define_constants): Remove misleading
2450 FIXME. Add MMIX_fp_rO_OFFSET.
2451 ("nonlocal_goto_receiver"): Don't have stack-frame address of
2452 saved rO as part of the pattern. Remove FIXME.
2453 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
2454 here, at output-time.
2456 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2459 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
2461 (output_v9branch): Likewise.
2463 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
2465 * gcc.c: Revert previous patch for now.
2466 * config/i386/djgpp.h: Likewise.
2468 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
2470 * config/mmix/crti.asm (_init): Register _fini with atexit.
2471 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
2473 2002-03-31 Richard Henderson <rth@redhat.com>
2476 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
2477 (ASM_OUTPUT_DEF_FROM_DECLS): New.
2479 2002-03-31 Richard Henderson <rth@redhat.com>
2481 * libgcc2.c (__bb_exit_func): Make static.
2483 * config/alpha/alpha.md (trap): New.
2485 2002-03-31 Richard Henderson <rth@redhat.com>
2487 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
2488 promoted argument types; build trap.
2489 (expand_builtin_trap): New.
2490 (expand_builtin): Use it.
2491 * stmt.c (expand_nl_goto_receivers): Likewise.
2492 * expr.h (expand_builtin_trap): Declare.
2493 * libfuncs.h (LTI_abort, abort_libfunc): New.
2494 * optabs.c (init_optabs): Init abort_libfunc.
2496 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
2498 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
2499 (LINK_COMMAND_SPEC): ... from here.
2500 (init_gcc_specs): Duplicate it here too, omitting
2501 shared_name in the second copy.
2502 (init_spec): Test for duplicate
2503 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
2505 2002-03-30 David S. Miller <davem@redhat.com>
2507 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2508 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
2510 2002-03-30 Roger Sayle <roger@eyesopen.com>
2511 Richard Henderson <rth@redhat.com>
2513 * regmove.c (combine_stack_adjustments_for_block): Avoid
2514 emitting a stack adjustment of zero bytes. Let delete_insn
2517 2002-03-30 Richard Henderson <rth@redhat.com>
2519 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
2520 (sparc_emitting_epilogue): New.
2521 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
2522 * config/sparc/sparc-protos.h: Update.
2523 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
2524 (TARGET_SWITCHES): Update.
2525 * config/sparc/sparc.md (return): Remove.
2526 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
2527 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
2528 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
2529 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
2530 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
2531 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
2532 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
2533 Remove MASK_EPILOGUE.
2534 * doc/invoke.texi: Update.
2536 2002-03-30 Daniel Berlin <dan@dberlin.org>
2538 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
2539 CPP will start the file for us.
2541 2002-03-30 Richard Henderson <rth@redhat.com>
2544 * config/ia64/ia64.c (group_barrier_needed_p): Special case
2545 prologue_allocate_stack.
2546 (ia64_single_set): Use insn codes for recognition of special
2547 cases, not rtl matching.
2548 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
2550 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
2552 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
2554 2002-03-30 Richard Henderson <rth@redhat.com>
2557 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
2558 or -fomit-frame-pointer with profiling.
2559 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2560 (FUNCTION_PROFILER): Do nothing.
2561 (PROFILE_HOOK): New.
2562 * config/sparc/sparc.c (sparc_override_options): Don't check
2563 code models for profiling.
2564 (sparc_function_profiler): Remove.
2565 (sparc_profile_hook): New.
2566 * config/sparc/sparc-protos.h: Update.
2568 2002-03-30 Jakub Jelinek <jakub@redhat.com>
2570 PR optimization/6086
2571 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
2572 of SUBREG of volatile MEM or because the MEM was mode dependent,
2573 return CLOBBER instead of unmodified SUBREG.
2575 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
2577 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
2578 when not optimizing.
2580 * toplev.c (rest_of_compilation): Cann mark_constant_function
2581 only when optimizing.
2583 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
2586 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
2587 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
2588 (try_optimize_cfg): clear all AUX fields.
2590 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
2591 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
2592 (ix86_address_cost): Be prepared for SUBREGed registers.
2593 (legitimate_address_p): Accept SUBREGed registers.
2595 2002-03-29 Richard Henderson <rth@redhat.com>
2598 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
2600 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2602 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
2603 for aggregate and TFmode types.
2605 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
2607 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
2609 2002-03-29 Richard Henderson <rth@redhat.com>
2612 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
2613 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
2615 2002-03-29 Richard Henderson <rth@redhat.com>
2618 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
2619 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
2620 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
2621 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
2623 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
2625 2002-03-29 Dale Johannesen <dalej@apple.com>
2627 * loop.c (combine_movables): Do allow combination of pseudos.
2629 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
2631 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
2632 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
2633 No functional change except ...
2634 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
2635 * doc/install.texi (*-*-freebsd*): Document port configuration.
2637 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
2639 * Makefile.in (convert.o, calls.o, expmed.o): Update.
2640 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
2642 * builtin-types.def (BT_PTRMODE): Update.
2643 * c-common.c (type_for_size): Rename c_common_type_for_size.
2644 (type_for_mode): Similarly.
2645 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
2647 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
2648 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
2649 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
2651 * c-typeck.c (common_type, comptypes, default_conversion):
2653 * calls.c: Include langhooks.h.
2654 (emit_library_call_value_1): Use new hooks. Avoid redundant
2656 * convert.c: Include langhooks.h
2657 (convert_to_pointer, convert_to_integer): Use new hooks.
2658 * except.c (init_eh): Similarly.
2659 * expmed.c: Include langhooks.h.
2660 (expand_mult_add): Use new hooks.
2661 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
2662 try_casesi): Similarly.
2663 * fold-const.c (optimize_bit_field_compare, make_range,
2664 decode_field_reference, fold_truthop, fold): Similarly.
2665 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
2666 put_var_into_stack): Similarly.
2667 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
2668 LANG_HOOKS_TYPE_FOR_SIZE): New.
2669 (LANG_HOOKS_TYPES_INITIALIZER): Update.
2670 * langhooks.h (lang_hooks_for_types): New hooks.
2671 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
2672 * tree.c (get_unwidened, get_narrower): Similarly.
2673 * tree.h (type_for_mode, type_for_size): Remove.
2674 * varasm.c (force_const_mem): Use new hooks.
2675 * utils2.c (nonbinary_modular_operation): Update.
2677 * objc-act.c (handle_impent): Update.
2678 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
2681 2002-03-29 Steve Ellcey <sje@cup.hp.com>
2683 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
2684 * config/ia64/ia64.c (basereg_operand): New.
2685 * config/ia64/ia64-protos.h (basereg_operand): Declare.
2686 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
2688 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
2690 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
2691 unwind information when frame_pointer_needed.
2692 (mmix_assemble_integer): Tweak wording in comment.
2694 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
2696 * Makefile.in (except.o): Update.
2697 * except.c: Include langhooks.h.
2698 (init_eh): Use langhook.
2699 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
2700 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2701 (LANG_HOOKS_INITIALIZER): Update.
2702 * langhooks.h (lang_hooks_for_types): New.
2703 (struct lang_hooks): Add it.
2704 * tree.c (make_lang_type_fn, make_lang_type): Remove.
2705 * tree.h (make_lang_type_fn, make_lang_type): Remove.
2707 * alpha/alpha.c: Include langhooks.h.
2708 (alpha_build_va_list): Use langhook.
2709 * d30v/d30v.c: Include langhooks.h.
2710 (d30v_build_va_list): Use langhook.
2711 * i386/i386.c: Include langhooks.h.
2712 (ix86_build_va_list): Use langhook.
2713 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2714 * s390/s390.c: Include langhooks.h.
2715 (s390_build_va_list): Use langhook.
2716 * stormy16/stormy16.c: Include langhooks.h.
2717 (stormy16_build_va_list): Use langhook.
2719 2002-03-29 Jakub Jelinek <jakub@redhat.com>
2722 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2724 (length): Compute variable length for branches/calls/jumps here.
2725 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2726 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2727 define branch_type attribute.
2728 (divsi3_sp32): Maximum length is 6 not 7.
2729 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2730 call_address_untyped_struct_value_sp32,
2731 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2732 * config/sparc/sparc.c (empty_delay_slot): New function.
2733 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2734 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
2736 2002-03-29 Jakub Jelinek <jakub@redhat.com>
2738 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
2739 nonzero_bits if not needed.
2740 (nonzero_bits) [XOR]: Likewise.
2741 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
2742 reg_last_set_mode and mode are both MODE_INT, but not equal.
2743 (record_value_for_reg): Compute reg_last_set_nonzero_bits
2744 in nonzero_bits_mode for MODE_INT modes.
2746 2002-03-28 Richard Henderson <rth@redhat.com>
2749 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2750 to GAS. Correct drift between alternatives.
2752 2002-03-28 Richard Henderson <rth@redhat.com>
2755 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2757 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
2759 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2760 emulation to the linker.
2762 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
2764 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2765 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2767 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
2769 * combine.c (simplify_and_const_int): Make sure to apply mask
2770 when force_to_mode returns a constant integer. PR3311.
2772 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2774 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2776 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2778 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2779 and Objective-C Dialect Options.
2781 2002-03-28 Richard Henderson <rth@redhat.com>
2783 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2784 comparison should be done vs !=0 not >0 return code. Tidy cases.
2786 2002-03-28 Richard Henderson <rth@redhat.com>
2788 * c-decl.c (finish_function): New arg can_defer_p. Pass it
2789 on to c_expand_body.
2790 * c-tree.h (finish_function): Update decl.
2791 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2793 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
2795 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2797 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
2799 * rtlanal.c: Include flags.h
2800 (may_trap_p): Do not mark FP operations if trapping
2801 if !flag_trapping_math
2802 * Makefile.in (rtlanal.o): Add dependency on flag.h
2803 * ifcvt.c (noce_operand_ok): Avoid the lameness.
2805 2002-03-27 Zack Weinberg <zack@codesourcery.com>
2807 * mips.md: Use dconst1, not 1.0, as first argument of
2808 REAL_VALUE_LDEXP. Don't use union real_extract.
2810 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2812 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2813 rather than $target. Heed program_prefix and
2814 program_transform_name. Search for gas in cross-compiler case too.
2815 "test -x" rather than "test -f".
2816 (gcc_cv_ld): Likewise.
2817 (gcc_cv_nm): Heed program_prefix and program_transform_name.
2818 (gcc_cv_objdump): Likewise.
2819 * configure: Regenerate.
2821 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2823 * Makefile.in (attribs.o): Update.
2824 * attribs.c: Include langhooks.h.
2825 (decl_attributes): Use langhook.
2826 * c-decl.c (insert_default_attributes): Rename.
2827 * c-tree.h (c_insert_default_attributes): New.
2828 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2829 (LANG_HOOKS_INITIALIZER): Update.
2830 * langhooks.h (struct lang_hooks): New hook.
2831 * tree.h (insert_default_attributes): Remove.
2833 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2835 2002-03-27 Andreas Schwab <schwab@suse.de>
2837 * config/i386/i386.c (classify_argument): Also check for
2840 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2842 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2845 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
2847 * i960.md (ret): Set PC.
2848 (nonlocal_goto): Fix expander.
2849 * builtins.c (epxand_builin_longjmp): Check that we've emitted
2852 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
2854 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2857 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2859 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2860 assigning to BLOCK_FOR_INSN directly.
2862 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
2864 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2866 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2868 * c-common.c (c_expand_expr): Fix prototype.
2869 * c-common.h (c_expand_expr): Always declare, update.
2870 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2871 * c-objc-common.c (c_objc_common_init): No global hook.
2872 * expr.c (expand_expr): Use langhook.
2873 * expr.h (enum expand_modifier): Conditionally declare.
2874 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2875 (LANG_HOOKS_INITIALIZER): Update.
2876 * langhooks.c (lhd_expand_expr): New.
2877 * langhooks.h (struct lang_hooks): New hook.
2878 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2879 (lang_independent_init): Don't default hook.
2881 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2883 2002-03-27 Richard Henderson <rth@redhat.com>
2886 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2887 TARGET_CONST_GP. Simplify conditions.
2889 2002-03-27 Richard Henderson <rth@redhat.com>
2891 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2892 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2893 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2895 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
2897 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2898 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2899 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2900 Remove unnecessary masks.
2901 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2902 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2903 -mwindows, -mdll switches and their negations.
2905 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2907 * gcc-common.c (lang_mark_false_label_stack): Remove.
2908 * ggc.h (lang_mark_false_label_stack): Similarly.
2910 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
2912 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2914 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2915 or __rtems_ is defined.
2917 2002-03-26 Richard Henderson <rth@redhat.com>
2919 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2920 if a non-trivial load was emitted.
2921 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
2922 in high+extra+low case.
2924 2002-03-26 Richard Henderson <rth@redhat.com>
2926 * config.gcc (sparc*-solaris): Use float_format=sparc.
2928 2002-03-26 Richard Henderson <rth@redhat.com>
2930 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2931 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2932 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2933 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2934 (WINT_TYPE_SIZE): Fix at 32.
2936 2002-03-26 Richard Henderson <rth@redhat.com>
2938 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2939 until after eh landing pad generation.
2940 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2941 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2943 2002-03-26 Richard Henderson <rth@redhat.com>
2945 * expr.h (ADD_PARM_SIZE): One more convert for INC.
2947 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
2949 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
2950 and warning switches.
2951 (cc1_options): Likewise.
2953 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
2955 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2956 Restore more of the signal context. Set no_reg_stack_frame.
2957 * config/ia64/unwind-ia64.c (unw_state_record):
2958 Add no_reg_stack_frame, comments.
2959 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2960 (uw_update_context): Adjust bsp when unwinding from leaf,
2961 but not signal frame.
2963 2002-03-26 David Edelsohn <edelsohn@gnu.org>
2965 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2967 2002-03-26 Bob Wilson <bob.wilson@acm.org>
2969 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2971 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
2974 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2975 "Add a pool_range attribute", which was lost during the ARM/Thumb
2978 2002-03-26 Bob Wilson <bob.wilson@acm.org>
2980 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2981 a register into the MAC16 accumulator.
2983 2002-03-26 Andrew Cagney <ac131313@redhat.com>
2985 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2986 (Warning Options): Document -Wswitch-enum.
2987 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
2989 (warn_switch_enum): Define variables.
2990 * flags.h (warn_switch_enum): Declare variables.
2991 * stmt.c (expand_end_case_type): When warn_switch_enum /
2992 -Wswitch-enum, perform switch checks.
2995 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
2997 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2998 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2999 (reload_muladdsi_compare0_scratch): Delete.
3001 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
3003 * doc/install.texi (*-*-freebsd*): Update.
3005 2002-03-26 Richard Henderson <rth@redhat.com>
3007 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
3008 (SUB_PARM_SIZE): Cast DEC to ssizetype.
3010 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
3011 types from the normal argument frame.
3013 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
3014 variable sized objects by reference.
3015 (sparc_va_arg): Receive them by reference too.
3017 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
3019 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
3020 code to not restoring global registers.
3022 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
3024 * Makefile.in (ggc-common.o): Update.
3025 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
3026 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3027 * c-tree.h (c_mark_tree): New.
3028 * ggc-common.c: Include langhooks.h.
3029 (gcc_mark_trees): Use new langhook.
3030 * ggc-callbacks.c: Delete file.
3031 * ggc.h (lang_mark_tree): Remove.
3032 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
3033 (LANG_HOOKS_INITIALIZER): Update.
3034 * langhooks.h (struct lang_hooks): New hook.
3036 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3038 2002-03-25 Zack Weinberg <zack@codesourcery.com>
3040 * doc/cpp.texi: Exclude entire Top node from printed manual.
3041 Move option index after directive index. Insert page breaks
3042 before GFDL and concept index. Index environment variables
3043 with command line options.
3044 * doc/cppenv.texi: Use @vtable for environment variable list.
3045 Add paragraph explaining semantics of empty elements in path
3046 variables. Exclude a cross-reference to Fishkill from the
3047 manpage. Remove an unnecessary cross-reference of the entry
3048 right above the referer. Don't use @anchor in text that goes
3050 * doc/cppopts.texi: Cross-reference the environment variables
3051 section, not the specific environment variable, for consistency.
3053 2002-03-25 Richard Henderson <rth@redhat.com>
3055 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
3056 anywhere in the block. Don't refer to insns that have been
3057 removed from the chain. Iterate backward through the new insns.
3058 Don't refer to edges that have been removed.
3060 2002-03-26 Alan Modra <amodra@bigpond.net.au>
3062 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
3063 test for overflow of constant.
3065 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
3068 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
3069 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
3070 these patterns on arm_archv4.
3072 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
3074 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
3077 2002-03-25 Zack Weinberg <zack@codesourcery.com>
3079 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
3080 float_handled, float_handler, float_signal, set_float_handler,
3081 and do_float_handler. Set handler for SIGFPE to crash_signal.
3082 * toplev.h: Don't prototype do_float_handler.
3084 * c-lex.c: Fold parse_float into lex_number. Make warning
3085 about portability of hex float constants more informative, and
3086 don't issue it on top of a syntax error.
3087 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
3089 * real.h: Define REAL_VALUE_ABS here...
3090 * simplify-rtx.c: ... not here. Fold check_fold_consts,
3091 simplify_unary_real, simplify_binary_real, and
3092 simplify_binary_is2orm1 into their callers.
3093 * tree.c: Fold build_real_from_int_cst_1 into caller.
3095 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
3097 * tsystem.h: Include float.h here...
3098 * libgcc2.c: ... not here.
3100 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
3102 Fixes for: PR bootstrap/3591, target/5676
3103 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
3104 defined. Do not disable exceptions or rtti.
3105 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
3106 mcore.h. Disable exceptions and rtti, since they are not
3109 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
3111 * c-decl.c (maybe_build_cleanup): Remove.
3112 * expr.c (expand_expr): Use langhook.
3113 * langhooks-def.h (lhd_return_null_tree,
3114 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
3115 (LANGHOOKS_INITIALIZER): Update.
3116 * langhooks.c (lhd_return_null_tree): New.
3117 * langhooks.h (struct lang_hooks): New hook.
3118 * tree-inline.c (initialize_inlined_parameters): Use langhook.
3119 * tree.h (maybe_build_cleanup): Remove.
3121 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3123 * regrename.c (build_def_use): Move recog_memoized
3124 before extract_insn.
3126 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3129 * expr.c (emit_group_store): Handle storing into CONCAT.
3131 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3133 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
3134 corresponding MATCH_DUP.
3136 2002-03-24 Richard Henderson <rth@redhat.com>
3138 * unroll.c (unroll_loop): Zero label_map.
3140 * gcse.c: Include except.h.
3141 * Makefile.in (gcse.o): Update.
3143 2002-03-24 Richard Henderson <rth@redhat.com>
3145 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
3146 Do resolve_unique_section before shared data clause.
3148 2002-03-24 Richard Henderson <rth@redhat.com>
3150 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
3152 2002-03-24 Richard Henderson <rth@redhat.com>
3154 * recog.c (peephole2_optimize): Split blocks when EH insns are
3155 generated in the middle of a block. Do global life update if
3158 2002-03-24 Richard Henderson <rth@redhat.com>
3160 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
3162 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3165 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3166 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
3167 (init_dependency_output): Don't make no_output decision here.
3169 2002-03-24 Andrew Cagney <ac131313@redhat.com>
3171 * stmt.c (check_for_full_enumeration_handling): Remove tests of
3172 warn_switch. Update description.
3173 (expand_end_case_type): Call check_for_full_enumeration_handling
3176 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3178 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
3179 (m68hc11_split_move): Call it to see if the source and destination
3180 operands use the same direction auto inc/dec mode, otherwise make the
3181 source an offsetable memory operand and generate an add.
3183 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3185 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
3186 register for operand 2.
3187 ("*subsi3_zero_extendqi"): Likewise.
3188 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
3189 bits so that it is compatible with a pop.
3190 ("*andhi3_gen"): Likewise.
3191 ("xorhi3"): Likewise.
3193 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3195 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
3197 (cpp_post_options): ... not here.
3199 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3200 Aldy Hernandez <aldyh@redhat.com>
3202 Removal of separate preprocessor cpp0.
3204 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
3205 cpp0, install-common): Update.
3206 * c-common.c (flag_preprocess_only): New.
3207 (c_common_init): Preprocess for -E.
3208 * c-common.h (flag_preprocess_only): New.
3209 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
3210 * c-objc-common.c (c_init_decl_processing): Exit quickly
3211 for NULL return from c_common_init.
3212 * cpplib.h (cpp_preprocess_file): New.
3213 * cppmain.c (main, general_init, pfile, progname): Remove.
3214 (do_preprocessing): Rename cpp_preprocess_file, don't call
3215 cpp_finish. Don't close stdout here.
3216 (setup_callbacks): Update prototype.
3217 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
3219 * tradcpp.c (main): Ignore -quiet.
3221 * lang-specs.h (default_compilers): Preprocess with cc1obj.
3223 2002-03-24 Richard Henderson <rth@redhat.com>
3225 PR optimization/5742
3226 * machmode.def: Add inner mode field to complex modes.
3227 * config/mips/mips.c (mips_function_value): Always define. Add
3228 new argument to handle libcalls.
3229 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
3230 (FUNCTION_VALUE): Likewise.
3231 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
3232 * config/mips/mips-protos.h: Update.
3234 2002-03-23 Richard Henderson <rth@redhat.com>
3236 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
3237 * config/sparc/sparc-protos.h: Update.
3238 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
3240 2002-03-23 Richard Henderson <rth@redhat.com>
3242 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
3243 _start or _init begins the text segment.
3245 2002-03-23 David Edelsohn <edelsohn@gnu.org>
3247 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
3248 not HOST_WIDEST_INT.
3249 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
3251 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
3254 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
3255 operand argument to output_return_instruction.
3256 * arm.c (arm_print_operand, case 'd'): If the operand is
3257 const_true_rtx then just return.
3258 (arm_print_operand, case 'D'): If the operand is const_true_rtx
3261 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3263 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
3264 (Warning Options): Document -Wswitch-default.
3265 * toplev.c (W_options): Add -Wswitch-default. Update comment on
3267 (warn_switch_default): Define variable.
3268 (warn_switch): Update comment.
3269 * flags.h (warn_switch_default): Declare variable.
3270 (warn_switch): Update comment.
3271 * stmt.c (expand_end_case): Check for and, when
3272 warn_switch_no_default, warn of a missing default case.
3274 2002-03-23 Alan Modra <amodra@bigpond.net.au>
3276 * real.h (N): Special case 128 bit doubles.
3278 * combine.c (simplify_comparison): When widening modes, ignore
3279 sign extension on CONST_INTs.
3281 2002-03-22 Bob Wilson <bob.wilson@acm.org>
3283 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
3284 passed to adjust_address. Fix comment formatting.
3287 2002-03-22 Zack Weinberg <zack@codesourcery.com>
3289 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
3290 Always make REAL_VALUE_TYPE a struct containing an array of
3291 HOST_WIDE_INT, not a double. Tidy up the code deciding how
3292 big it is. Don't declare or use union real_extract.
3294 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
3295 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
3296 (print_operand), config/arm/arm.c (output_move_double),
3297 config/arm/arm.md (consttable_4, consttable_8),
3298 config/romp/romp.c (output_fpops), config/s390/s390.h
3299 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
3300 (xtensa_output_literal): Don't use union real_extract.
3302 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
3303 (sfmode_constant_to_ulong), config/ns32k/merlin.h
3304 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
3305 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
3306 (PRINT_OPERAND): Don't use local version of union
3309 * config/convex/convex.c (check_float_value), config/vax/vax.c
3310 (vax_float_literal), config/m88k/m88k.md (divdf3),
3311 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
3312 config/pdp11/pdp11.c (output_move_quad): Don't do host
3313 arithmetic on target floating point quantities.
3315 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
3316 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
3318 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
3319 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
3321 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
3322 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
3324 * print-rtl.c (print_rtx): Disable code which needs
3325 floating-point emulator.
3326 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
3327 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
3328 depending on HOST_FLOAT_FORMAT to be defined properly.
3330 * config/1750a/1750a.c (get_double, float_label): Delete.
3331 (print_operand): Delete huge commented-out chunk. Use
3332 REAL_VALUE_TO_DECIMAL.
3333 * config/1750a/1750a-protos.h: Delete prototypes of deleted
3335 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
3337 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
3338 Use REAL_VALUE_TO_DECIMAL as ELF version does.
3339 * config/m88k/m88k.c (real_power_of_2_operand,
3340 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
3341 real_extract out of the union; run the input through
3342 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
3343 from that into the union.
3344 * config/pdp11/pdp11.c (output_move_double): Rearrange
3345 parentheses to make automatic indenter happy.
3347 * doc/tm.texi (Cross-compilation): Rename node to "Floating
3348 Point" and rewrite to describe current situation. Also adjust
3349 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
3351 * doc/rtl.texi: Adjust cross reference.
3353 2002-03-22 Bob Wilson <bob.wilson@acm.org>
3355 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
3356 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
3357 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
3358 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
3359 prevent use of sp as a reload register.
3360 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
3361 non_acc_reg_operand.
3362 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
3363 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
3364 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
3365 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
3367 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
3369 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
3370 * cpplex.c (unterminated): Delete.
3371 (parse_string): No string literal may extend over multiple
3372 lines. Suppress the error when preprocessing assembly.
3373 * cppmain.c (scan_translation_unit): Strings are single-line.
3375 * doc/cpp.texi: Update to match.
3377 2002-03-22 Jakub Jelinek <jakub@redhat.com>
3379 PR optimization/5854
3380 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
3382 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
3383 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
3384 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
3385 const0 if scratch register was not allocated.
3386 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
3387 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
3389 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
3390 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
3391 with GEN_INT (...) everywhere. Remove constraints in define_split
3393 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
3394 require scratch register for setting 0 into regs/non-pushable memory.
3396 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
3398 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
3399 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
3401 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
3403 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
3404 * cppinit.c (cpp_create_reader): On by default.
3405 (cpp_handle_option): Handle -W[no-]endif-labels.
3406 (cpp_post_options): Also enable if -pedantic.
3407 * cpplib.c (do_else): Use it.
3408 (do_endif): Likewise.
3409 * doc/cppopts.texi: Document new option.
3410 * doc/invoke.texi: Document new option.
3412 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
3414 * config/i386/i386.c, config/i386/i386.md: Change all occurences
3415 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
3417 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
3419 * flow.c (calculate_global_regs_live): Clear aux fields of
3422 2002-03-22 Jakub Jelinek <jakub@redhat.com>
3424 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
3425 REG or MEM subregs, pass rtx * instead of rtx to it.
3426 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
3427 rtx * instead of rtx to alter_subreg.
3428 * config/m32r/m32r.c (gen_split_move_double): Likewise.
3429 * config/pj/pj.c (pj_output_rval): Likewise.
3431 2002-03-22 Richard Henderson <rth@redhat.com>
3434 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
3435 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
3436 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
3437 (ia64_expand_prologue): Look at int_regs, not words, for number
3438 of incomming int regs.
3440 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
3442 * expr.c (expand_expr): A RESULT_DECL is part of a call.
3444 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
3446 * toplev.c (flag_loop_optimize, flag_crossjumping):
3447 New static variables.
3448 (rest_of_compilation): Conditionalize crossjumping and
3450 (parse_options_and_default_flags): Default loop_optimize and
3452 (lang_independent_options): Add -fcrossjumping and -floop-optimize
3453 * invoke.texi (crossjumping, loop-optimize): Document.
3455 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3457 * real.c (eiisneg): Move outside #ifdef NANS.
3459 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
3461 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
3462 frequencies match; avoid match on different loop depths.
3463 (try_crossjump_to_bb): Kill tests that no longer brings time
3465 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
3467 (split_edge): Likewise.
3469 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
3472 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
3473 * cfgrtl.c: Include insn-config.h
3474 (split_block) Dirtify block in presence of conditional execution
3476 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3478 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
3479 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
3480 (function_arg): Constify CUMULATIVE_ARGS.
3481 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
3482 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
3483 (UNITS_PER_DOUBLE): New macro.
3484 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
3485 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
3486 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
3487 fp_regs and stack_words.
3488 (EABI_FLOAT_VARARGS_P): New macro.
3489 * config/mips/mips.c (struct mips_arg_info): New.
3490 (mips_arg_info): New function.
3491 (function_arg_advance): Use it. Add adjustment instructions here
3492 rather than in function_arg.
3493 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
3494 for VOIDmode at the beginning of the function.
3495 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
3496 (function_arg_pass_by_reference): Likewise.
3497 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
3498 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
3499 (mips_va_start): Likewise. Use the new stack_words field of
3500 CUMULATIVE_ARGS to set up overflow area. Reformat.
3501 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
3502 doubles and other types, aligning the overflow pointer for non-doubles
3503 too. Remove some code duplication. Replace hard-coded constants.
3505 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3507 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
3508 (CLASS_UNITS): Undefine.
3509 (CLASS_MAX_NREGS): Use FP_INC.
3510 * config/mips/mips.c (compute_frame_size): Likewise.
3511 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
3513 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
3515 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
3516 prototype, and handle lexing numbers and identifiers.
3517 (parse_identifier): Update to new form of parse_slow.
3518 (parse_number): Fast path only, use parse_slow otherwise.
3519 (_cpp_lex_direct): Update calls to parse_number.
3521 2002-03-21 DJ Delorie <dj@redhat.com>
3523 * bb-reorder.c (make_reorder_chain_1): Protect against
3524 when redundant edges are omitted.
3525 * predict.c (dump_prediction): Likewise.
3527 2002-03-21 Richard Henderson <rth@redhat.com>
3530 * fixinc/inclhack.def (solaris_stdio_tag): New.
3531 * fixinc/fixincl.x: Regenerate.
3533 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
3536 * c-typeck.c (process_init_element): Flag non-static
3537 initialization of a flexible array member as illegal.
3539 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3541 * config/rs6000/t-linux64: New.
3542 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
3543 t-ppccomm. Use t-rs6000 and t-linux64.
3544 (powerpc64-*-gnu* <tmake_file>): Likewise.
3545 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
3546 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
3547 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
3549 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
3551 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
3552 flag_really_no_inline instead of optimize == 0.
3554 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
3556 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
3558 * flags.h (flag_really_no_inline): New.
3560 * c-common.c (c_common_post_options): Initialize
3561 flag_really_no_inline.
3563 * toplev.c (flag_really_no_inline): New.
3565 2002-03-21 Jakub Jelinek <jakub@redhat.com>
3567 * config/avr/avr.md (length): Fix length computation for
3568 conditional branches.
3570 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
3572 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
3573 sdbout.o, profile.o): Update.
3574 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
3576 * c-common.h (gettags): Move here from tree.h.
3577 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
3578 insert_block, getdecls, kept_level_p, global_bindings_p): New.
3579 * dbxout.c (dbxout_init): Use getdecls langhook.
3580 * expr.c (expand_expr): Use insert_block langhook.
3581 * fold-const.c: Include langhooks.h.
3582 (fold_range_test, fold_binary_op_with_conditional_arg,
3583 fold): Use global_bindings_p langhook.
3584 * integrate.c (expand_inline_function): Use insert_block langhook.
3585 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
3586 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
3587 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
3588 LANG_HOOKS_GETDECLS): New.
3589 (LANG_HOOKS_INITIALIZER): Update.
3590 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
3592 * langhooks.h (struct lang_hooks_for_decls): New.
3593 (struct lang_hooks): Update.
3594 * profile.c: Include langhooks.h.
3595 (output_func_start_profiler): Use new langhooks.
3596 * sdbout.c: Include langhooks.h.
3597 (sdbout_init, sdbout_finish): Use getdecls langhook.
3598 * stmt.c: Include langhooks.h.
3599 (expand_fixup, fixup_gotos): Use new langhooks.
3600 * stor-layout.c: Include langhooks.h.
3601 (variable_size): Use global_bindings_p langhook.
3602 * toplev.c (compile_file): Use getdecls langhook.
3603 * tree-inline.c (remap_block): Use insert_block langhook.
3604 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
3605 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
3607 2002-03-21 Richard Henderson <rth@redhat.com>
3609 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
3610 constants in .data when -fpic.
3612 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3614 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
3617 2002-03-21 Tom Tromey <tromey@redhat.com>
3619 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
3621 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3623 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
3625 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
3627 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
3628 Richard Henderson <rth@redhat.com>
3631 * c-common.c (c_expand_expr): Preserve result of a statement
3632 expression if needed.
3634 2002-03-21 Jakub Jelinek <jakub@redhat.com>
3637 * genrecog.c (maybe_both_true_mode): Remove.
3638 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
3639 * machmode.def (Pmode): Likewise.
3641 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
3643 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
3644 (nonlocal_mentioned_p_1): New function.
3645 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
3646 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
3647 (mark_constant_function): Recognize pure functions.
3648 * rtl.h (global_reg_mentioned_p): New prototype.
3649 * rtlanal.c (global_reg_mentioned_p,
3650 global_reg_mentioned_p_1): New function.
3652 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3654 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
3656 * fixinc/fixincl.x: Regenerate.
3658 2002-03-20 Jason Merrill <jason@redhat.com>
3660 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
3662 2002-03-20 Michael Meissner <meissner@redhat.com>
3664 * doc/invoke.texi (Optimize Options): Document that -O2 sets
3667 2002-03-20 Bob Wilson <bob.wilson@acm.org>
3669 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
3670 ".literal_position" directive before the constant pool.
3672 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3674 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
3675 Add Craig Rodrigues.
3676 Add Brad Lucier to testers.
3678 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3681 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
3683 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
3684 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
3685 instead of insn_extract.
3687 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3690 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
3692 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
3693 stmt if some case has been output.
3695 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3698 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
3699 movsfcc_1, movdfcc_1): Add %O2.
3700 * config/i386/i386.c (print_operand): Handle %ON.
3701 Print . before float condition codes in Sun as cmov syntax.
3702 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3703 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3706 2002-03-20 Philip Blundell <pb@nexus.co.uk>
3708 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3709 return instruction if PC was popped.
3711 2002-03-20 Bob Wilson <bob.wilson@acm.org>
3713 * config/xtensa/xtensa.md: Remove unused type attributes.
3714 (adddi_carry, subddi_carry): Change type attribute to "multi".
3716 2002-03-19 Dale Johannesen <dalej@apple.com>
3718 PR optimization/5999, middle-end/5731
3719 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3720 multiplications by reciprocals.
3722 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
3724 * Makefile.in: Update.
3725 * c-common.c: Include langhooks.h.
3726 (inline_forbidden_p): Use new hook.
3727 * diagnostic.c: Include langhooks.h.
3728 (format_with_decl, announce_function,
3729 default_print_error_function): Use new hook.
3730 * dwarf2out.c (dwarf2_name): Use new hook.
3731 * function.c: Include langhooks.h.
3732 (init_function_start): Use new hook.
3733 * langhooks-def.h (lhd_decl_printable_name): New.
3734 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
3735 (LANGHOOKS_INITIALIZER): Update.
3736 * langhooks.c (lhd_decl_printable_name): New.
3737 * langhooks.h (struct lang_hooks): New hook.
3738 * toplev.c (decl_name, decl_printable_name): Remove.
3739 (open_dump_file): Use new hook.
3740 (process_options): Remove old hook.
3741 * tree.h (decl_printable_name): Remove.
3743 * objc-act.c (objc_init): Remove old hook.
3744 (objc_printable_name): Export.
3745 * objc-act.h (objc_printable_name): New.
3746 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3748 2002-03-19 Jim Blandy <jimb@redhat.com>
3750 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3751 the start_source_file debug hook, not the current line number.
3753 2002-03-19 Richard Henderson <rth@redhat.com>
3755 * flow.c (EH_USES): Provide default.
3756 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3757 * doc/tm.texi (EH_USES): New.
3759 * config/ia64/ia64.c (ia64_eh_uses): New.
3760 * config/ia64/ia64-protos.h: Update.
3761 * config/ia64/ia64.h (EH_USES): New.
3763 2002-03-19 Richard Henderson <rth@redhat.com>
3765 * varasm.c (output_constant_def): Fix stupid typo.
3767 2002-03-19 Richard Henderson <rth@redhat.com>
3770 * except.c (current_function_has_exception_handlers): New.
3771 * except.h: Declare it.
3772 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3773 Combine tests that disable all sibcalls for the function.
3775 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
3777 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3780 2002-03-19 Richard Henderson <rth@redhat.com>
3783 * config/ia64/ia64.c: Revert 2002-03-01 patch.
3784 * config/ia64/ia64.h (INIT_EXPANDERS): New.
3786 2002-03-19 Jim Blandy <jimb@redhat.com>
3788 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3789 name, even if the replacement list contains no tokens, as required
3792 2002-03-19 Jason Merrill <jason@redhat.com>
3794 * varasm.c (globalize_decl): Get the name from the RTL, not
3795 DECL_ASSEMBLER_NAME.
3797 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3799 2002-03-19 Bob Wilson <bob.wilson@acm.org>
3801 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3802 subdi_carry): Define.
3804 2002-03-19 David Edelsohn <edelsohn@gnu.org>
3806 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3807 about -fpic/-fPIC if extra_warnings set.
3809 2002-03-19 David Edelsohn <edelsohn@gnu.org>
3811 * expr.c (expand_expr): Sign-extend CONST_INT generated from
3812 TREE_STRING_POINTER.
3813 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3815 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3817 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3818 in favor of SP if FRAME_POINTER_REQUIRED is false.
3820 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
3822 * emit-rtl.c (gen_int_mode): New function.
3823 * rtl.h: Prototype for it.
3824 * combine.c (make_extraction, simplify_comparison), expmed.c
3825 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3826 (convert_modes, store_field), optabs.c (expand_fix),
3827 simplify-rtx.c (neg_const_int, simplify_unary_real),
3829 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3830 Use it instead of GEN_INT (trunc_int_for_mode (...)).
3832 2002-03-19 Jakub Jelinek <jakub@redhat.com>
3835 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3836 convert_parm_for_inlining.
3837 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3839 * langhooks-def.h: Likewise.
3840 * objc/objc-lang.c: Likewise.
3841 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3843 * tree-inline.c (initialize_inlined_parameters):
3844 Call convert_parm_for_inlining lang hook if needed.
3845 * c-typeck.c (c_convert_parm_for_inlining): New function.
3846 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3848 2002-03-18 Mark Mitchell <mark@codesourcery.com>
3850 * calls.c (precompute_arguments): Do not assume that temporaries
3851 can be destroyed after expanding the argument.
3852 (expand_call): Likewise.
3854 2002-03-15 Eric Christopher <echristo@redhat.com>
3856 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3857 Fix register preference on last change.
3858 * config/mips/mips.c (mips_return_in_memory): New function.
3859 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3860 * config/mips/mips-protos.h: Declare.
3861 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3862 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3864 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3866 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3868 (anddi3, iorsi3): Likewise.
3870 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3871 use %gprel for symbols that are going to be placed in linkonce
3874 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3875 RETURN_ADDRESS_POINTER_REGNUM to $ra.
3876 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3877 not needed. Disregard leaf_function_p().
3878 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3879 mips16 frame pointer.
3880 * config/mips/mips.md (store ra): Only to small SP offsets.
3881 2001-08-22 Graham Stott <grahams@redhat.com>
3882 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3883 return a REG rtx for the return address register.
3885 2002-03-18 Bob Wilson <bob.wilson@acm.org>
3887 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3888 constant-pool addresses as "mode-dependent".
3889 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3891 2002-03-18 Jakub Jelinek <jakub@redhat.com>
3894 * expr.c (emit_group_load): Use extract_bit_field if
3895 needed for CONCAT arguments.
3897 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
3900 * arm.md (tablejump): Make this a define_expand. For PIC add the
3901 offset to the base of the table.
3902 (thumb_tablejump): Matcher for Thumb tablejump insn.
3903 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3904 as the difference of two labels.
3905 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3906 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3908 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3909 * arm.c (get_jump_table_size): If the table is not in the text
3910 section, return zero.
3912 2002-03-18 Bernd Schmidt <bernds@redhat.com>
3914 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3916 (arm_reload_out_hi): Use gen_lowpart instead of
3917 gen_rtx_SUBREG to access QImode components.
3918 * config/arm/arm.md: Disable zero_extend split for QImode
3919 subregs in BIG_ENDIAN mode.
3920 (storehi_bigend): Match use of least significant byte.
3921 (storeinthi): Remove extraneous SUBREG.
3922 Add missing construction of operands[2].
3923 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3924 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3925 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3927 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
3929 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3932 2002-03-17 Richard Henderson <rth@redhat.com>
3934 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3937 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
3939 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3940 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3942 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3944 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3946 * predict.c (estimate_bb_frequencies): Delete unused variables.
3948 2002-03-17 Richard Henderson <rth@redhat.com>
3950 * config/ia64/ia64.c (ia64_attribute_table): Move before
3951 targetm definition. Make static.
3953 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
3955 * c-common.h (yyparse, c_common_parse_file): New.
3956 * c-lang.c: Include c-common.h.
3957 (LANG_HOOKS_PARSE_FILE): Redefine.
3958 * c-lex.c: Include c-common.h.
3959 (yyparse): Rename c_common_parse_file. Call yyparse.
3960 * c-parse.in (yyparse): Remove macro.
3961 * c-tree.h (yyparse_1): Remove.
3962 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3963 (LANG_HOOKS_INITIALIZER): Update.
3964 * langhooks.h (struct lang_hoooks): New hook parse_file.
3965 * toplev.c (compile_file): Use parse_file hook.
3966 * tree.h (yyparse): Remove.
3967 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3969 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
3971 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3972 float_truncate, not fix.
3973 ("*truncdfsf2_real"): Ditto.
3974 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3976 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3978 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
3980 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3981 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
3982 where appropriate. Make the second reference to
3983 leaf_function_p a function call, as intended. Reindented.
3985 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3986 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3988 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3989 add register to non-constant into sp.
3991 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3992 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3993 (mips16_gp_pseudo_rtx): Lose.
3994 (INIT_EXPANDERS): Deleted.
3995 * config/mips/mips.c (mips_init_machine_status): New.
3996 (mips_free_machine_status): New.
3997 (mips_mark_machine_status): New.
3998 (override_options): Set them.
3999 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
4000 (struct machine_function): ... new. Replaced all references.
4001 (mips_add_gc_roots): Don't mark them.
4002 (embedded_pic_fnaddr_reg): New, extracted from...
4003 (embedded_pic_offset): ... here.
4004 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
4007 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
4009 * cppinit.c: Revert -MD removal.
4011 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4013 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
4014 soft registers by default for 68HC12.
4015 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
4016 when compiling with -fomit-frame-pointer.
4017 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
4018 (expand_epilogue): Likewise.
4019 (m68hc11_gen_rotate): Use exg when rotating by 8.
4021 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4023 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
4024 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
4025 (splits): Remove unused add splits.
4026 ("*addhi3_68hc12"): Tune constraints.
4027 ("addhi_sp"): Try to use X instead of Y in all cases and if the
4028 constant fits in 8-bits and D is dead use abx/aby instructions.
4029 ("*addhi3"): Remove extern declaration of ix_reg.
4030 ("*subsi3"): Optimize and provide new split.
4031 ("subhi3"): Cleanup.
4032 ("*subhi3_sp"): Avoid saving X if we know it is dead.
4033 (arith splits): For 68hc12 save the address register on the stack
4034 and do the arithmetic operation with a pop.
4036 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4038 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
4039 allocating QImode in address registers.
4040 ("*movqi_m68hc11"): Likewise.
4042 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
4044 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
4046 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
4048 * cppinit.c (print_help): Display -MD and -MMD.
4049 Don't display usage string. Update assertion syntax and
4051 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
4052 (cpp_handle_option): Update.
4054 2002-03-15 Chris Demetriou <cgd@broadcom.com>
4056 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
4057 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
4058 and define it so that regardless of target CPU size,
4059 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
4060 of "int" rather than "long."
4062 2002-03-15 Richard Henderson <rth@redhat.com>
4064 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
4067 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4069 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
4070 ("tstqi" split): Avoid using memory for tstqi on address register.
4071 (splits): Remove constraints.
4072 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
4073 ("cmpdf", "cmpsf"): Remove since not used.
4074 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
4075 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
4077 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4079 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
4080 ("neghi2"): Tighten constraints.
4081 ("one_cmplsi2"): Optimize and simplify split.
4082 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
4084 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4086 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
4087 and split of AND operation to clear the upper bits.
4088 ("*logicalsi3_zextqi"): Likewise.
4089 ("*logicallhi3_zexthi_ashift8"): Likewise.
4090 ("*logicalsi3_silshr16"): Likewise.
4091 ("logicalsi3_silshl16"): Likewise.
4092 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
4094 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4096 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
4097 (m68hc11_indirect_p): New function.
4098 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
4099 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
4101 (asm_print_register): Likewise.
4102 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
4103 (m68hc11_indirect_p): Declare.
4104 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
4105 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
4106 (TARGET_SWITCHES): New option -mrelax.
4107 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
4109 ("iorsi3", "xorsi3"): Likewise.
4110 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
4111 ("*andhi3_mem"): New to handle destination in memory with bclr
4112 and a scratch register.
4113 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
4114 ("*andhi3_const"): New when operand2 is constant.
4115 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
4116 ("*andhi3_gen"): Cleanup of the old "andhi3".
4117 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
4118 ("xorqi3"): Update constraints.
4120 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4122 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
4123 for reg_equiv_memory_loc when the operand is a register that does
4124 not get a hard register (stack location).
4125 (tst_operand): After reload, accept all memory operand.
4126 (symbolic_memory_operand): Fix detection of symbolic references.
4127 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
4128 accept symbols and any constant.
4130 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4132 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
4133 note on the insn that sets the soft frame register.
4134 (must_parenthesize): ix and iy are also reserved names.
4135 (print_operand_address): One more place where parenthesis are required
4136 to avoid confusion with register names.
4137 (m68hc11_gen_movhi): Allow push of stack pointer.
4138 (m68hc11_check_z_replacement): Fix handling of parallel with a
4140 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
4141 the replacement register is.
4142 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
4143 and D8_REGS classes.
4144 (MODES_TIEABLE_P): All modes are tieable except QImode.
4146 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4148 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
4149 (___subdi3): Likewise.
4150 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
4151 (__map_data_section): Optimize 68hc11 case.
4153 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4155 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
4156 than a shift to avoid adding a register with itself.
4157 (m68hc11_memory_move_cost): Take into account NO_REGS.
4158 (m68hc11_register_move_cost): Update and use memory move cost
4160 (m68hc11_address_cost): Make cost of valid offset not 0 so that
4161 it gives more opportunities to cse to optimize.
4162 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
4163 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
4165 2002-03-15 Mark Mitchell <mark@codesourcery.com>
4167 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
4168 * c-common.def (CLEANUP_STMT): New tree node.
4169 * c-common.h (CLEANUP_DECL): New macro.
4170 (CLEANUP_EXPR): Likewise.
4171 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
4172 * expr.c (expand_expr): Tidy.
4173 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
4174 * tree-inline.c (initialize_inlined_parameters): Clean up
4175 new local variables.
4177 2002-03-15 Jakub Jelinek <jakub@redhat.com>
4180 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
4181 before movrXX only, use reg_overlap_mentioned_p.
4182 Only special case NE if just one insn can be generated.
4184 2002-03-15 Jason Merrill <jason@redhat.com>
4186 * varasm.c (assemble_variable): Call resolve_unique_section before
4187 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
4190 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
4193 * arm.md (split pattern for thumb shiftable immediates): Add comment
4194 explaining non-obvious test.
4196 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
4199 * arm.md (movaddr, movaddr_insn): Delete.
4201 2002-03-15 Jason Merrill <jason@redhat.com>
4203 * toplev.c (wrapup_global_declarations): Clarify variable handling.
4204 -fkeep-static-consts doesn't apply to comdats.
4206 2002-03-14 Richard Henderson <rth@redhat.com>
4208 * c-decl.c: Include c-pragma.h.
4209 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
4210 (finish_function): Tidy.
4211 * c-pragma.c: Include c-common.h.
4212 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
4213 (handle_pragma_weak): Use them.
4214 (init_pragma): Register pending_weaks.
4215 * c-pragma.h (maybe_apply_pragma_weak): Declare.
4216 * print-tree.c (print_node): Print DECL_WEAK.
4217 * varasm.c (mark_weak_decls): Remove.
4218 (remove_from_pending_weak_list): Remove.
4220 (asm_emit_uninitialised): Call globalize_decl for weak commons.
4221 (weak_decls): Make a tree_list.
4222 (declare_weak): Cons weak_decls directly.
4223 (globalize_decl): Remove weak_decls elements directly.
4224 (weak_finish): Simplify weak_decls walk. Don't weaken unused
4225 symbols. Don't pretend to handle aliases.
4226 (init_varasm_once): Update weak_decls registry.
4227 * Makefile.in: Update dependencies.
4229 2002-03-14 Richard Henderson <rth@redhat.com>
4232 * config/ia64/ia64.c: Include tm_p.h last.
4233 (gen_nop_type): Remove duplicate definition.
4234 (cycle_end_fill_slots): Set sched_data for second L slot.
4235 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
4236 (nop_cycles_until): Fix typos.
4238 2002-03-15 Jakub Jelinek <jakub@redhat.com>
4240 PR optimization/5891
4241 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
4243 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
4245 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
4246 descriptors correctly.
4248 2002-03-14 Michael Meissner <meissner@redhat.com>
4250 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
4251 100, allowing MAX_UNROLLED_INSNS to be overridden.
4253 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
4256 * unroll.c (params.h): Include.
4257 (MAX_UNROLLED_INSNS): Delete, now in params.h.
4259 * doc/invoke.texi (--param max-unroll-insns): Document.
4261 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
4263 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
4265 * arm.md: Fix warnings about constraints in peepholes and splits.
4267 2002-03-14 Zack Weinberg <zack@codesourcery.com>
4269 * cpphash.h (struct lexer_state): Remove line_extension member.
4270 * cpplib.c (dequote_string, do_linemarker): New functions.
4271 (linemarker_dir): New data object.
4272 (DIRECTIVE_TABLE): No longer need to interpret #line in
4273 preprocessed source. Delete obsolete comment about return
4275 (end_directive, directive_diagnostics, _cpp_handle_directive):
4276 Don't muck with line_extension.
4277 (directive_diagnostics): No need to issue warnings for
4279 (_cpp_handle_directive): Issue warnings for linemarkers here,
4280 when appropriate. Dispatch linemarkers to do_linemarker, not
4282 (do_line): Code to handle linemarkers split out to do_linemarker.
4283 Convert escape sequences in filename argument, both places.
4285 * cppmacro.c (quote_string): Rename cpp_quote_string and
4286 export. All callers changed.
4287 * cpplib.h (cpp_quote_string): Prototype.
4288 * cppmain.c (print_line): Call cpp_quote_string on to_file
4291 * doc/cpp.texi: Document that escapes are now interpreted in
4292 #line and in linemarkers, and that non-printing characters are
4293 converted to octal escapes when linemarkers are generated.
4295 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
4297 * emit-rtl.c (try_split): Use delete_insns.
4298 * recog.c (split_all_insns): Fix terminating condition.
4300 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
4301 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4304 * arm.c (arm_output_epilogue): Fix floating-point register save
4305 adjustment when using a frame pointer.
4307 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
4309 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
4310 * config/mips/mips.c (compute_frame_size): Retrofit them here.
4311 (save_restore_insns, mips_expand_epilogue): And here.
4312 (build_mips16_call_stub): And here.
4313 (mips_function_value): Use the new macros to decide whether a single
4314 or complex float can be returned in floating-point registers. Return
4315 a parallel rtx in the complex case.
4317 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
4319 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
4320 call after liveness analysis.
4322 * recog.c (split_insn): Use delete_insn_and_edges.
4324 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
4325 instructions to have branch prediction notes.
4326 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
4328 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
4330 * configure.in: Don't pass -Wno-long-long to a ADA compiler
4331 that doesn't support it.
4332 * configure: Regenerate.
4334 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4337 * config/sparc/sparc.md (normal_branch, inverted_branch,
4338 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
4339 inverted_fp_branch): Adjust calls to output_cbranch.
4340 Set length attribute.
4341 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
4342 output_v9branch. Set length attribute.
4343 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
4345 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
4346 (output_cbranch): Likewise. Handle far branches.
4347 (output_v9branch): Handle far branches.
4348 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
4350 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
4351 noov_compare64_op predicates.
4353 2002-03-13 Jason Merrill <jason@redhat.com>
4355 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
4356 into the function and constify it.
4357 * gthr-dce.h, gthr-solaris.h: Likewise.
4359 2002-03-13 David Edelsohn <edelsohn@gnu.org>
4361 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
4362 * config/rs6000/rs6000.c (rs6000_va_arg): Use
4363 std_expand_builtin_va_arg if not ABI_V4.
4365 2002-03-13 Jason Merrill <jason@redhat.com>
4367 * varasm.c (globalize_decl): New fn.
4368 (assemble_start_function): Use it.
4369 (asm_emit_uninitialized): Use it.
4370 (assemble_alias): Use it.
4371 (assemble_variable): Use it.
4373 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
4375 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
4376 2002-03-12 internal visibility change.
4377 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
4378 visibility into SYMBOL_REF_FLAG.
4380 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
4382 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
4383 VOIDmode operand. Add compile-time optimization for constant results.
4385 2002-03-12 Jason Merrill <jason@redhat.com>
4387 * c-typeck.c (convert_for_assignment): Don't allow conversions
4388 between pointers and references. Only allow lvalues to convert to
4391 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
4393 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
4394 before prologue, to avoid scheduling problems.
4396 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4398 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4399 (ELIMINABLE_REGS): Add sfp->sp.
4400 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
4402 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4404 PR optimization/5892
4405 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
4407 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4409 * loop.c (basic_induction_var): Don't call convert_modes if mode
4410 classes are different.
4412 2002-03-12 Richard Henderson <rth@redhat.com>
4414 PR optimization/5901
4415 * function.c (reposition_prologue_and_epilogue_notes): Position
4416 the markers after/before the last/first insn not deleted.
4418 2002-03-12 Richard Henderson <rth@redhat.com>
4420 PR optimization/5878
4421 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
4422 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
4423 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
4425 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
4426 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
4427 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
4429 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
4430 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
4431 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
4432 also. Don't set it if not flag_pic.
4433 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
4434 to be INVALID_REGNUM when not used.
4436 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
4438 * expmed.c (store_bit_field): Reset alias set for memory.
4439 (extract_bit_field): Same.
4441 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4443 * c-common.c (c_tree_code_type, c_tree_code_length,
4444 c_tree_code_name, add_c_tree_codes): Delete.
4445 * c-common.h (add_c_tree_codes): Delete.
4446 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
4448 * c-objc-common.c (c_objc_common_init): Don't call
4449 add_c_tree_codes, instead set lang_unsafe_for_reeval.
4450 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
4451 objc_tree_code_name, add_objc_tree_codes): Delete.
4452 (objc_init): Don't call add_objc_tree_codes.
4453 * objc/objc-lang.c (tree_code_type, tree_code_length,
4454 tree_code_name): Define.
4455 * toplev.c (lang_independent_init): Don't set
4456 tree_code_length[IDENTIFIER_NODE].
4457 * tree.c (tree_code_type, tree_code_length, tree_code_name):
4458 Delete definitions, moved to language front-ends.
4459 * tree.def (IDENTIFIER_NODE): Hardwire the length.
4460 * tree.h (tree_code_type, tree_code_length, tree_code_name):
4462 (tree_code_length): Change type to unsigned char.
4464 2002-03-12 Richard Henderson <rth@redhat.com>
4466 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
4467 internal visibility change.
4469 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4471 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
4472 validize_mem() instead of change_address to avoid clobbering
4475 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
4477 * c-lex.h (position_after_whitespace): Remove.
4479 2002-03-12 Jakub Jelinek <jakub@redhat.com>
4481 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
4482 (lex_string): Use unsigned char pointers.
4484 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
4486 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
4487 is not a valid memory_operand.
4489 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4491 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
4492 * config/xtensa/lib1funcs.asm: Fix copyright to include
4493 special case for libgcc files.
4494 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
4495 (__divsi3): Likewise.
4496 (__umodsi3): Likewise.
4497 (__modsi3): Likewise.
4498 * config/xtensa/lib2funcs.S: Fix copyright to include
4499 special case for libgcc files.
4501 2002-03-12 Tom Rix <trix@redhat.com>
4503 * collect2.c (resolve_lib_name): Move outside of
4504 OBJECT_FORMAT_COFF ifdef.
4505 (ignore_library): Same.
4507 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4509 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
4511 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4513 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
4514 to function_section before writing out the constant pool.
4516 2002-03-12 David Edelsohn <edelsohn@gnu.org>
4518 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
4520 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
4522 2002-03-12 Alan Modra <amodra@bigpond.net.au>
4524 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
4528 (cmpsi splitter): Likewise.
4529 (modsi3): Fail if <= 0.
4530 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
4531 redundant test when HOST_BITS_PER_WIDE_INT != 32.
4532 (reg_or_sub_cint64_operand): Likewise.
4533 (num_insns_constant_wide): Optimize sign extension.
4534 (rs6000_legitimize_address): Likewise.
4536 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
4538 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4539 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4541 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
4543 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
4544 address calculation.
4546 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
4548 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
4549 scratch register to DImode / TImode.
4550 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
4551 register used does not overlap the target.
4553 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4555 * Makefile.in (debug.o): Depend on debug.h.
4556 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
4557 * debug.c (do_nothing_debug_hooks): Likewise.
4558 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
4559 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
4560 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
4561 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
4562 * dwarfout.c (dwarf_debug_hooks): Likewise.
4563 * integrate.c (output_inline_function): Likewise.
4564 * objc/objc-act.c (synth_module_prologue): Likewise.
4565 * sdbout.c (sdb_debug_hooks): Likewise.
4566 * toplev.c (debug_hooks): Likewise.
4567 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4569 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4571 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
4572 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
4573 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
4574 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
4575 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
4576 * defaults.h (POINTER_SIZE): Define.
4577 * doc/tm.texi (POINTER_SIZE): Document default.
4579 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4581 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
4583 2002-03-11 Richard Henderson <rth@redhat.com>
4585 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
4586 if rebuild_label_notes_after_reload.
4588 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
4590 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
4591 emit pic register load if "internal" visibility.
4592 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
4593 (cris_expand_builtin_va_arg): Do all computations on trees.
4595 2002-03-11 Richard Henderson <rth@redhat.com>
4597 * rtlanal.c: Include recog.h.
4598 (keep_with_call_p): Fix thinko.
4599 * Makefile.in (rtlanal.o): Update dependencies.
4601 2002-03-11 Chris Meyer <cmeyer@gatan.com>
4603 * genflags.c (gen_insn): Use IS_VSPACE.
4604 * genoutput.c (output_insn_data): Likewise.
4605 (process_template): Likewise.
4607 2002-03-11 Richard Henderson <rth@redhat.com>
4609 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
4611 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
4613 * Makefile.in: Update.
4614 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
4615 Update documentation.
4616 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
4617 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
4619 2002-03-11 Zack Weinberg <zack@codesourcery.com>
4621 * Makefile.in: Give texi2pod its input file as a command line
4622 argument, not on stdin.
4624 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
4625 Daniel Berlin <dan@dberlin.org>
4627 C++ alias analysis improvement.
4628 * alias.c (record_component_aliases): Record aliases for base
4631 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
4633 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
4635 2002-03-11 Douglas B Rupp <rupp@gnat.com>
4637 * toplev.c (vms_fopen): Remove, not needed.
4639 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
4641 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
4643 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
4644 for FP, already done later.
4646 * toplev.c (debug_args): Add entry for VMS_DEBUG.
4647 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
4649 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
4651 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
4652 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
4653 LARGEST_EXPONENT_IS_NORMAL for the given mode.
4654 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
4655 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
4656 (ediv, emul, eldexp, esqrt): Likewise.
4657 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
4658 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
4659 (saturate): New function.
4660 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
4661 (make_nan): Use a saturation value instead of a NaN if
4662 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
4663 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
4664 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
4665 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
4666 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
4667 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
4668 !ROUND_TOWARDS_ZERO.
4669 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
4670 (ROUND_TOWARDS_ZERO): Document.
4672 2002-03-11 Andreas Jaeger <aj@suse.de>
4674 * cfg.c (dump_flow_info): Remove unused variable.
4676 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
4678 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
4679 computations on trees.
4681 2002-03-10 Richard Henderson <rth@redhat.com>
4684 * reload.c (copy_replacements_1): New.
4685 (copy_replacements): Use it to recurse through the rtx.
4687 2002-03-10 Richard Henderson <rth@redhat.com>
4689 * loop.c (strength_reduce): Compute number of iterations as
4690 unsigned HOST_WIDE_INT.
4692 2002-03-10 Richard Henderson <rth@redhat.com>
4694 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
4695 to move away from the end of the block.
4697 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
4699 PR preprocessor/5899
4700 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4702 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4704 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4706 * attribs.c (decl_attributes): Fix signed/unsigned warning.
4708 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
4710 * config/mmix/mmix.c: Improve comments.
4711 (mmix_target_asm_function_prologue): Drop variable
4712 empty_stack_frame. Don't allocate unused slot above fp.
4713 (mmix_target_asm_function_epilogue): Mirror prologue changes.
4714 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4715 brace in first column.
4716 (enum reg_class): Ditto.
4717 (FIRST_PARM_OFFSET): Now 0.
4718 (USER_LABEL_PREFIX): Remove #if 0:d definition.
4720 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4722 * combine.c (make_extraction): Fix error in last change.
4724 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4726 * c4x.c (c4x_fp_reglist): Const-ify.
4727 * cris.c (cris_print_operand): Likewise.
4728 * i386.c (ix86_va_arg): Likewise.
4729 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4730 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4731 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4732 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4733 * mcore.h (regno_reg_class): Likewise.
4734 * mips.c (gen_int_relational): Likewise.
4735 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
4736 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
4737 * pdp11.c (move_costs): Likewise.
4738 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
4739 * s390.c (s390_branch_condition_mnemonic, regclass_map):
4741 * s390.h (regclass_map): Likewise.
4742 * sh.c (shift_amounts): Likewise.
4743 * sh.md (rotlsi3): Likewise.
4745 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
4747 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4748 (ne0+5): Use new clobber to generate proper shift pattern.
4749 Patch by Michael Matz <matz@kde.org>.
4751 2002-03-09 Andreas Schwab <schwab@suse.de>
4753 * gcc.c (validate_all_switches): Also handle `%W{...}'.
4755 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
4757 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4759 2002-03-09 Jakub Jelinek <jakub@redhat.com>
4762 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4763 even for non-representable constants.
4765 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4767 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4768 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4769 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4770 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4771 (pop_function_context): Compute MAY_SHARE parameter for
4773 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4774 (gen_mem_addressof): Call fixup_var_refs with new parm.
4776 * combine.c (make_extraction): Don't make extension of CONST_INT.
4778 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
4780 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4781 in o32 and o64 ABIs.
4782 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4783 but getting fixed-size structs passed in registers regardless of
4784 padding in o32 and o64 ABIs.
4786 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4787 offset before loading address of argument passed by transparent
4790 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
4792 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4794 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
4796 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4797 marker such that registers after it are saved.
4799 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4801 * sparc.c (arith_4096_operand): Fix error in last change.
4803 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
4805 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4808 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
4810 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4813 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
4815 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4817 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
4819 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4820 removed; fix return value.
4821 * combine.c (combine_instructions): Dirtify blocks where we failed to
4822 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4823 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4825 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4827 * gcse.c (insert_insn_end_bb): Fix typo in last change.
4829 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
4831 * recog.c (peephole2_optimize): Re-distribute EH edges.
4833 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
4835 * expr.c (expand_expr): Use unsave lang hook.
4836 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4837 (LANG_HOOKS_INITIALIZER): Update.
4838 * langhooks.h (struct lang_hooks): New hook unsave.
4839 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4840 (unsave_expr_1): Remove unused lang_unsave_expr_now.
4841 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
4842 (unsave_expr_now): Remove.
4843 * tree.h (unsave_expr_now, lang_unsave,
4844 lang_unsave_expr_now): Remove.
4847 2002-03-08 Andreas Jaeger <aj@suse.de>
4849 * flow.c (propagate_block_delete_insn): Remove unused variable.
4851 2002-03-08 Kazu Hirata <kazu@hxi.com>
4853 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4854 insn length for memory load/store.
4856 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
4858 * doc/install.texi (--with-libiconv-prefix): Document.
4860 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
4862 * doc/sourcebuild.texi: Fix typo.
4864 2002-03-08 Jakub Jelinek <jakub@redhat.com>
4867 * builtins.c (std_expand_builtin_va_arg): Do all computations on
4870 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4872 * rtl.c (copy_most_rtx): Move from here ...
4873 * emit-rtl.c (copy_most_rtx): ... to here.
4875 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
4877 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4878 SUBTARGET_CPP_SIZE_SPEC.
4879 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4881 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4883 2002-03-07 Matt Hiller <hiller@redhat.com>
4885 * gensupport.c (first_dir_md_include): Renamed from include;
4886 change all references.
4887 (last_dir_md_include): Renamed from last_include; change all
4889 (init_md_reader): Unconditionally initialize base_dir whether or
4890 not filename is a relative path.
4892 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
4894 * config/fp-bit.c (_unord_f2): Compile it in even if
4895 US_SOFTWARE_GOFAST is enabled.
4897 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4898 NULL_RTX. Set all HFmode operations as NULL_RTX.
4899 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4900 NULL_RTX, try reversing the comparison and the operands.
4902 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
4904 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4905 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4908 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
4910 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4912 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
4914 * basic-block.h (fixup_abnormal_edges): Declare.
4915 * reload1.c (fixup_abnormal_edges): New function.
4916 * reg-stack.c (convert_regs): Use it.
4918 * gcse.c (insert_insn_end_bb): Handle trapping insns.
4920 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4922 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
4924 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4925 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4926 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4927 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4928 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4929 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4930 unless x and y could be infinite.
4931 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4932 Check that the common type of both arguments is a real, even for
4933 targets without unordered comparisons. Allow an integer argument
4934 to be compared against a real.
4935 (expand_tree_builtin): Use expand_unordered_cmp.
4936 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4937 * cse.c (fold_rtx): Likewise. Fix indentation.
4938 * fold-const.c (fold_real_zero_addition_p): New.
4939 (fold): Use it, and the new HONOR_... macros.
4940 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4941 * jump.c (reversed_comparison_code_parts): After searching for
4942 the true comparison mode, use HONOR_NANS to decide whether it
4943 can be safely reversed.
4944 (reverse_condition_maybe_unordered): Remove IEEE check.
4945 * simplify-rtx.c (simplify_binary_operation): Use the new macros
4946 to decide which simplifications are valid. Allow the following
4947 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4948 and (a - -b) to (a + b).
4949 (simplify_relational_operation): Use HONOR_NANS.
4950 * doc/tm.texi: Document the MODE_HAS_... macros.
4952 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
4954 * combine.c (simplify_comparison): If simplifying a logical shift
4955 right and compare with constant, force the comparison to unsigned.
4957 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
4959 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4961 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4963 (alt_reg_names): Remove % for vrsave.
4965 2002-03-06 Richard Henderson <rth@redhat.com>
4967 PR optimization/5844
4968 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
4969 if used indicates we've already emitted one copy of an operand.
4970 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4971 (gen_split): Supply a non-null used.
4973 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
4975 * reload1.c (reload): Unshare all rtl after reload is done.
4977 * simplify-rtx.c (simplify_plus_minus): Do not abort,
4978 but simply fail if the expression is too complex to simplify.
4979 (simplify_gen_binary): Handle simplify_plus_minus failures.
4981 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
4983 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4984 consistently call delete_trivially_dead_insns after CSE and GCSE;
4985 fix DFI_life dumping; do jump threading after liveness; do crossjumping
4986 after liveness2; update comment in last crossjumping.
4987 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4989 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
4991 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4992 after completing fast dead code elimination.
4994 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4997 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
4999 * version.c: Fix misplaced leading blanks on first line.
5001 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
5003 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
5005 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
5007 * cfgcleanup.c (mentions_nonequal_regs): New function.
5008 (thread_jump): Use it.
5009 * toplev.c (rest_of_compilation): Run jump threading after
5012 2002-03-06 Jakub Jelinek <jakub@redhat.com>
5014 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
5017 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
5019 * predict.c (estimate_bb_frequencies): Do not reload the
5020 frequencies from notes.
5022 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
5024 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
5025 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
5027 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
5028 delete_noop_moves): Return indeger.
5029 * flow.c (ndead): New variable.
5030 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
5031 BB argument; update callers.
5032 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
5033 (life_analysis): Do not call purge_all_dead_edges.
5034 (update_life_info): Return number of deleted insns; print statistics.
5035 (update_life_info_in_dirty_blocks): likewise.
5036 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
5037 return number of insns deleted.
5039 * cse.c: Include timevar.h
5040 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
5041 iterate until stabilizes; print statistics; return number of killed
5043 * Makefile.in: (cse.o): Add timevar.h dependency
5044 * rtl.h (delete_trivially_dead_insns): New.
5045 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
5046 * toplev.c (rest_of_compilation): Update callers.
5048 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
5049 (try_optimize_cfg): Do not update liveness.
5050 (cleanup-cfg): Loop until try_optimize_cfg and dead code
5051 removal stabilizes; use delete_trivially_dead_insns.
5053 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
5055 2002-03-05 Zack Weinberg <zack@codesourcery.com>
5057 * cppmain.c (setup_callbacks): Disable #pragma and #ident
5058 callbacks when processing assembly language.
5060 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5062 * pa.h (ASM_FILE_END): Define.
5063 * som.h (ASM_FILE_END): Delete.
5065 * pa.c (function_arg): Don't pass floats in general registers in
5066 indirect calls if TARGET_ELF32.
5068 2002-03-05 Richard Henderson <rth@redhat.com>
5070 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
5072 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
5074 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
5076 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5078 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
5079 -r command line. Don't hide any symbols if not building
5082 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
5084 * cfg.c (dump_flow_info): Warn about profile mismatches.
5085 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
5086 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
5088 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5090 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
5091 wide volatile memory by parts.
5093 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5095 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
5098 2002-03-05 Richard Henderson <rth@redhat.com>
5100 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
5102 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
5104 * toplev.c (documented_lang_options): Document more
5105 language-specific options.
5106 * doc/invoke.texi (Warning Options): Correct documentation for
5107 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
5108 * c-decl.c (c_decode_option): Use a table to handle warning options.
5110 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
5112 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
5113 parameter to mmix_encode_section_info.
5114 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
5115 relocatably. Always produce ELF, not mmo if linking relocatably.
5116 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
5117 first is non-zero, don't add symbol prefix.
5118 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
5119 prototype accordingly.
5121 2002-03-04 Krister Walfridsson <cato@df.lth.se>
5123 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
5125 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
5127 * configure.in: Increase required makeinfo version to 4.1.
5128 * configure: Regenerate.
5130 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
5132 * .cvsignore: Remove *.info* and genrtl*; these files are generated
5135 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
5137 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
5138 * doc/invoke.texi: Fix @math uses.
5140 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
5142 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
5145 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
5147 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
5148 (powerpc-*-eabisimaltivec*): Same.
5150 * config/rs6000/t-ppcendian: New.
5152 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5154 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
5155 nonimmediate_src_operand and nonimmediate_lsrc_operand to
5156 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
5158 2002-03-03 Richard Henderson <rth@redhat.com>
5160 * toplev.c (rest_of_decl_compilation): Revert last two changes.
5162 2002-03-03 Zack Weinberg <zack@codesourcery.com>
5164 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
5165 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
5166 tree.c, config/m68k/m68k.c:
5167 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
5168 REAL_ARITHMETIC blocks unconditional. Delete some further
5169 #ifdef blocks predicated on REAL_ARITHMETIC.
5170 * flags.h, toplev.c: Delete remaining references to
5173 * doc/invoke.texi: Remove documentation of -fpretend-float.
5174 * doc/tm.texi: Describe the various REAL_* macros as provided by
5175 real.h, not by the target configuration files.
5177 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
5178 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
5179 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
5180 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
5181 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
5182 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
5183 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
5184 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
5185 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5186 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
5187 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5188 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5189 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
5190 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
5191 config/xtensa/xtensa.h:
5192 Do not define, undefine, or mention in comments any of
5193 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
5194 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
5195 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
5196 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
5197 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
5198 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
5199 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
5200 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
5201 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
5203 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5205 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
5206 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
5207 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
5208 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
5209 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
5210 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
5212 * defaults.h (BITS_PER_WORD): Define.
5213 * doc/tm.texi (BITS_PER_WORD): Document default value.
5215 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
5216 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
5217 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
5219 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5221 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
5222 lieu of explicit sizeof/sizeof.
5223 * i386.c (override_options, ix86_init_mmx_sse_builtins,
5224 ix86_expand_builtin): Likewise.
5225 * mips.c (mips_add_gc_roots): Likewise.
5226 * mmix.c (mmix_output_condition): Likewise.
5227 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
5228 altivec_init_builtins): Likewise.
5229 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
5230 * cppexp.c (Nsuff, parse_number): Likewise.
5231 * cppinit.c (builtin_array_end): Likewise.
5232 * gcc.c (n_default_compilers, process_command): Likewise.
5233 * genpreds.c (output_predicate_decls): Likewise.
5234 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
5235 * lcm.c (N_ENTITIES): Likewise.
5236 * stor-layout.c (set_sizetype): Likewise.
5238 2002-03-03 Richard Henderson <rth@redhat.com>
5240 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
5241 for types or labels.
5243 2002-03-03 Richard Henderson <rth@redhat.com>
5245 * c-decl.c (start_decl): Initialized variables are not common.
5247 2002-03-02 Per Bothner <per@bothner.com>
5249 * gcc.c (option_map): Suport new --bootclasspath option.
5250 --CLASSPATH is now just an alias for --classpath.
5252 2002-03-02 Richard Henderson <rth@redhat.com>
5254 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
5255 load if "internal" visibility.
5256 * doc/extend.texi: Document visibility meanings.
5258 2002-03-02 Richard Henderson <rth@redhat.com>
5260 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
5261 to functions as well.
5263 2002-03-02 Richard Henderson <rth@redhat.com>
5265 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
5266 (handle_visibility_attribute): Don't call assemble_visibility.
5267 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
5268 without asmspec. Invoke assemble_alias when needed.
5269 * varasm.c (maybe_assemble_visibility): New.
5270 (assemble_start_function, assemble_variable, assemble_alias): Use it.
5272 2002-03-02 Richard Henderson <rth@redhat.com>
5274 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
5275 invoke ENCODE_SECTION_INFO with first call flag.
5277 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
5278 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
5279 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
5280 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
5281 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
5282 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
5283 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
5284 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
5285 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
5286 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
5287 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
5288 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
5289 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
5290 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
5291 config/mcore/mcore-protos.h, config/mcore/mcore.c,
5292 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
5293 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
5294 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
5295 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
5296 config/sh/sh.h, config/sparc/sparc.h,
5297 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
5298 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
5299 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
5300 FIRST argument. As needed, examine it and do nothing.
5302 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
5303 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
5304 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
5306 * config/arm/t-pe (pe.o): Add dependencies.
5308 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5310 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
5311 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
5312 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
5313 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
5314 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
5315 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
5316 * defaults.h (BITS_PER_UNIT): Define.
5317 * doc/tm.texi (BITS_PER_UNIT): Document default value.
5319 2002-03-02 Kazu Hirata <kazu@hxi.com>
5321 * config/h8300/h8300-protos.h: Add a prototype for
5322 compute_a_shift_length.
5323 * config/h8300/h8300.c (h8300_asm_insn_count): New.
5324 (compute_a_shift_length): Likewise.
5325 (h8300_adjust_insn_length): Do not adjust insn length of shift
5327 * config/h8300/h8300.md (anonymous shift patterns): Use
5328 compute_a_shift_length.
5330 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5332 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
5335 * emit-rtl.c (offset_address): Call update_temp_slot_address.
5337 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5339 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
5340 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
5341 * flags.h (flag_zero_initialized_in_bss): Declare.
5342 * toplev.c (flag_zero_initialized_in_bss): New flag.
5343 (lang_independent_options): Add flag_zero_initialized_in_bss.
5344 * tree.c (initializer_zerop): New function.
5345 * tree.h (initializer_zerop): Declare.
5346 * varasm.c (assemble_variable): If we can emit bss, put zero
5347 initializers in the bss section.
5349 2002-03-02 Alan Modra <amodra@bigpond.net.au>
5351 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
5352 like more than one symbol per .weak directive.
5354 2002-03-01 Richard Henderson <rth@redhat.com>
5356 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
5357 adjust argument_pointer by pretend_args_size.
5358 (ia64_va_start): Adjust va_start address by -pretend_args_size.
5360 2002-03-01 Kazu Hirata <kazu@hxi.com>
5362 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
5364 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
5366 * toplev.c (rest_of_compilation): Delete dead jumptables before
5368 * flow.c (delete_dead_jumptables): Make global.
5369 * rtl.h (delete_dead_jumptables): Declare.
5371 2002-03-01 David Edelsohn <edelsohn@gnu.org>
5373 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
5374 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
5375 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
5377 2002-03-01 Kazu Hirata <kazu@hxi.com>
5379 * config/h8300/h8300-protos.h: Fix formatting.
5380 * config/h8300/h8300.c: Likewise.
5381 * config/h8300/h8300.h: Likewise.
5383 2002-03-01 Kazu Hirata <kazu@hxi.com>
5385 * config/h8300/h8300.c (print_operand): Support 16-bit
5387 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
5389 2002-02-28 Richard Henderson <rth@redhat.com>
5391 * expmed.c (store_bit_field): Prevent generation of CONCATs;
5392 pun complex values as integers; use gen_lowpart instead of
5394 (extract_bit_field): Likewise.
5396 2002-03-01 Alan Modra <amodra@bigpond.net.au>
5397 David Edelsohn <edelsohn@gnu.org>
5399 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
5400 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
5401 (SUPPORTS_WEAK): Likewise.
5402 * output.h (add_weak): Add tree param.
5403 * varasm.c (add_weak): Likewise. Save decl.
5404 (struct weak_syms): Add decl field.
5405 (mark_weak_decls): New function.
5406 (init_varasm_once): ggc_add_root mark_weak_decls.
5407 (assemble_start_function): Use ASM_WEAKEN_DECL.
5408 (assemble_variable): Likewise.
5409 (assemble_alias): Likewise.
5410 (declare_weak): Pass decl to add_weak.
5411 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
5412 (remove_from_pending_weak_list): Declare and define for
5414 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
5415 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
5416 * defaults.h (SUPPORTS_WEAK): Likewise.
5417 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5418 .weak for code sym. Do emit .size for descriptor sym.
5419 (ASM_DECLARE_FUNCTION_SIZE): Define.
5420 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
5421 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
5422 .lglobl unless TARGET_XCOFF. Formatting fixes.
5423 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5425 (HANDLE_PRAGMA_WEAK): Remove.
5426 (ASM_WEAKEN_LABEL): Remove.
5427 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
5429 2002-03-01 Jason Merrill <jason@redhat.com>
5431 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
5432 (TARGET_EXPR_CLEANUP): New macro.
5434 2002-02-28 Steve Ellcey <sje@cup.hp.com>
5436 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
5437 to take ptr_extend into account as third type of extension.
5438 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
5439 fields used by SUBREG_PROMOTED_UNSIGNED_P.
5440 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
5441 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
5442 * calls.c (precompute_arguments): Use new macro.
5443 (expand_call): Ditto.
5444 * combine.c (nonzero_bits): Ditto.
5445 (record_promoted_value): Ditto.
5446 * expr.c (store_expr): Ditto.
5447 (expand_expr): Ditto.
5448 * function.c (assign_parms): Ditto.
5450 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
5452 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
5453 override -shared and -shared-libgcc.
5455 2002-02-28 David O'Brien <obrien@FreeBSD.org>
5457 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
5459 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
5462 2002-02-28 Richard Henderson <rth@redhat.com>
5464 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
5465 4 cycle latency from MM producers.
5466 (ia64_internal_sched_reorder): Likewise with pipeline flush.
5468 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5470 * mklibgcc.in: Don't use GNU make extension.
5472 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
5474 * c-parse.in (STATIC): New terminal.
5475 (scspec): New non-terminal. Update productions accordingly.
5476 (program): Remove bogus ifc / end ifc.
5477 (array_declarator): Simplify production using STATIC.
5479 2002-02-28 Jim Meyering <meyering@lucent.com>
5481 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
5482 \a still means TARGET_BELL.
5484 2002-02-28 Richard Henderson <rth@redhat.com>
5486 * haifa-sched.c (sched_emit_insn): New.
5487 (schedule_block): Use last_scheduled_insn to track last insn.
5488 * sched-int.h (sched_emit_insn): Prototype.
5489 * config/ia64/ia64.c (last_issued): Remove.
5490 (ia64_variable_issue): Don't set it.
5491 (nop_cycles_until): Use sched_emit_insn.
5493 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
5495 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
5498 2002-02-28 Kazu Hirata <kazu@hxi.com>
5500 * config/h8300/h8300.c: Fix formatting.
5501 * config/h8300/h8300.h: Likewise.
5503 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
5505 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
5506 which may overwrite the high byte of the frame pointer.
5508 2002-02-28 Bo Thorsen <bo@suse.de>
5510 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
5511 (STARTFILE_SPEC): Add 64 bit files.
5512 (ENDFILE_SPEC): Likewise.
5514 2002-02-28 Jason Merrill <jason@redhat.com>
5516 * c-decl.c (finish_function): Only warn about missing return
5517 statement with -Wreturn-type.
5519 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
5521 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
5523 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
5524 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
5526 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
5528 * basic-block.h (BB_REACHABLE): Renumber.
5529 (BB_DIRTY, BB_NEW): New flags.
5530 (clear_bb_flags): Declare.
5531 (update_life_info_in_dirty_blocks): Declare.
5532 * cfg.c (clear_bb_flags): New function.
5533 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
5534 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
5535 reorder_insns, emit_insn_after): Mark block as dirty.
5536 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
5537 (update_life_info_in_dirty_blocks): New function.
5538 * recog.c (apply_change_group): Dirtify block.
5540 * cse.c (cse_insn): Reorder emitting of jump insn to keep
5542 * gcse.c (delete_null_pointer_checks): Likewise.
5544 * toplev.c (dump_file_index): Move cse2 after bp,
5546 (dump_file_info): Similary.
5547 (rest_of_compilation): Avoid most of CFG rebuilds;
5548 do first if converision after null pointer checks, do cse2
5549 after branch prediction; avoid full liveness rebuild after
5550 initializing subregs.
5551 * invoke.texi (-d options): Document -du, renumber.
5553 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
5554 (notice_new_block): Do not set BB_UPDATE_LIFE.
5555 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
5556 merge_blocks_move_successor_nojumps, merge_blocks,
5557 try_crossjump_to_edge): Likewise.
5558 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
5559 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
5560 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
5561 (merge_of_block): Do not use life_data_ok.
5562 (find_if_case_1): Do not use SET_UPDATE_LIFE.
5563 (if_convert): Use BB_DIRTY mechanizm to update life.
5564 * lcm.c (optimize_mode_switching): Update
5565 update_life_info_in_dirty_blocks
5567 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
5569 * Makefile.in (integrate.o): Update.
5570 * c-decl.c (copy_lang_decl): Rename.
5571 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5572 * integrate.c: Include langhooks.h.
5573 (copy_decl_for_inlining): Update to use langhook.
5574 * langhooks-def.h (lhd_do_nothing_t,
5575 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
5576 (LANG_HOOKS_INITIALIZER): Update.
5577 * langhooks.c (lhd_do_nothing_t): New.
5578 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
5579 * tree.h (copy_lang_decl): Remove.
5581 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5583 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
5585 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
5586 POST_DEC, and POST_MODIFY.
5588 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5590 * c-typeck.c (digest_init): Remove unused parameter; all
5593 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
5595 * expmed.c (expand_shift): Correctly test for low part of a
5598 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
5600 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
5601 insn UIDs with insn addresses.
5603 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5605 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
5606 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
5607 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
5608 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
5609 gcc.c, toplev.c: Delete code implementing -traditional mode.
5611 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
5612 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
5613 Document removal of -traditional mode for compilation, and
5614 remove documentation only relevant to that mode.
5616 * config/nextstep.h, config/ptx4.h, config/svr4.h,
5617 config/convex/convex.h, config/d30v/d30v.h,
5618 config/i386/dgux.h, config/i386/osf1elf.h,
5619 config/i386/osfelf.h, config/i386/osfrose.h,
5620 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
5621 config/m68k/hp310.h, config/m88k/dgux.h,
5622 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
5623 config/m88k/m88k.h, config/m88k/openbsd.h,
5624 config/mips/abi64.h, config/mips/osfrose.h,
5625 config/mips/svr4-5.h, config/mips/svr4-t.h,
5626 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5627 config/stormy16/stormy16.h: Remove all references to
5628 -traditional from target specs. Delete all mention of the
5629 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
5630 delete a couple of commented-out definitions of
5631 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
5634 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
5635 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
5637 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5639 * mklibgcc.in: Don't use \n in a line subject to
5640 interpretation by echo.
5642 2002-02-27 Graham Stott <grahams@redhat.com>
5644 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
5647 * loop.c (prescan_loop): Handle PARALLEL.
5649 * unroll.c (loop_iterations): Return 0 if the add_val for
5652 * final.c (output_operand_lossage): Constify PFX_STR.
5654 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
5656 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
5658 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
5659 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
5661 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
5663 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5665 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
5667 * cpplex.c (_cpp_lex_token): Handle directives in macro
5669 * cpplib.c (_cpp_handle_directive): Save and restore state
5670 if parsing macro args when entering a directive.
5671 * cppmacro.c (collect_args): No need to handle directives
5673 (enter_macro_context, replace_args): Use the original macro
5674 definition in case it was redefined whilst collecting arguments.
5678 2002-02-26 David Edelsohn <edelsohn@gnu.org>
5680 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
5681 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
5682 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
5684 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
5685 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
5686 (load_toc_v4_PIC_2): Same.
5688 2002-02-26 Alan Modra <amodra@bigpond.net.au>
5690 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
5692 2002-02-26 Richard Henderson <rth@redhat.com>
5694 * config/alpha/alpha.md (ashldi_se): Re-enable.
5696 2002-02-26 Richard Henderson <rth@redhat.com>
5698 * config/alpha/alpha.c (alpha_encode_section_info): Examine
5699 MODULE_LOCAL_P; improve commentary.
5701 2002-02-26 Zack Weinberg <zack@codesourcery.com>
5703 * doc/cpp.texi: Clarify documentation of relationship between
5706 2002-02-26 Kazu Hirata <kazu@hxi.com>
5708 * config/h8300/h8300-protos.h: Update the prototype for
5709 compute_logical_op_length. Add the prototype for
5710 compute_logical_op_cc.
5711 * config/h8300/h8300.c (compute_logical_op_length): Figure out
5713 (compute_logical_op_cc): New.
5714 * config/h8300/h8300.md: Combine all the logical op patterns
5715 in HImode and SImode. Use compute_logical_op_cc.
5717 2002-02-26 Kelley Cook <kelleycook@comcast.net>
5719 * config/i386/i386.c (print_operand): Don't append ATT-style
5720 length suffixs to x87 opcodes when in Intel mode.
5722 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
5724 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5725 (init_emit_once): Update calls.
5726 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5727 (init_syntax_once): Prototype.
5729 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5731 * pa-linux.h (LIB_SPEC): Update definition.
5732 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5734 2002-02-26 Richard Henderson <rth@redhat.com>
5736 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5737 if we emitted a stop bit.
5739 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5741 * configure.in (libgcc_visibility): Substitute.
5742 * configure: Rebuilt.
5743 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5744 defined symbols .hidden.
5746 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5748 * attribs.c (c_common_attribute_table): Add visibility.
5749 (handle_visibility_attribute): New function.
5750 * varasm.c (assemble_visibility): New function.
5751 * output.h (assemble_visibility): Add prototype.
5752 * tree.h (MODULE_LOCAL_P): Define.
5753 * crtstuff.c (__dso_handle): Use visibility attribute.
5754 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5755 for MODULE_LOCAL_P symbols too.
5756 * config/ia64/ia64.c (ia64_encode_section_info): Handle
5757 MODULE_LOCAL_P symbols the same way as local symbols.
5758 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5759 into .sdata/.sbss by the user.
5760 * doc/extend.texi (Function Attributes): Document visibility
5763 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5766 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5767 STRING_CST initializer spanning the whole variable without
5769 If expand_expr returned MEM, don't use it.
5771 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
5773 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5774 generate a die for the lexical block.
5776 2002-02-26 Kazu Hirata <kazu@hxi.com>
5778 * config/h8300/h8300-protos.h: Add a prototype for
5779 compute_logical_op_length.
5780 * config/h8300/h8300.c (compute_logical_op_length): New.
5781 * config/h8300/h8300.md (anonymous logical patterns): Use
5782 compute_logical_op_length for length.
5784 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5786 * dwarf2out.c (modified_type_die): Do not call type_main_variant
5788 (gen_type_die): Same.
5790 * attribs.c (handle_vector_size_attribute): Set debug information.
5792 2002-02-26 Daniel Egger <degger@fhm.edu>
5794 * config/rs6000/rs6000.md: Swap define_insn attributes to
5795 fix incorrect generation of merge high instructions instead
5798 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5800 * c-typeck.c (really_start_incremental_init): Use
5801 bitsize_zero_node for vectors.
5803 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5805 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5806 ("*set_vrsave_internal"): Same.
5808 2002-02-25 Richard Henderson <rth@redhat.com>
5810 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5811 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
5813 2002-02-25 Jakub Jelinek <jakub@redhat.com>
5816 * config/i386/i386.c (ix86_return_pops_args): Only pop
5817 fake structure return argument if it was passed on the stack.
5819 2002-02-25 Jason Merrill <jason@redhat.com>
5821 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5824 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
5826 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5827 link with shared_name only.
5828 * doc/invoke.texi (Link Options): Document new behavior.
5830 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
5832 * c-typeck.c (push_init_level): Handle vectors.
5834 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
5836 * config/sparc/sparc.c (const64_high_operand): Zero-extend
5837 operands of SPARC_SETHI_P.
5838 (input_operand): Likewise.
5839 (sparc_emit_set_const32): Likewise.
5840 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5841 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5842 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
5843 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5844 (movdi_insn_sp64_vis): Likewise.
5845 (movdi split, movdf split): Use SETHI32.
5846 * doc/md.texi: Document SPARC constraints L, M and N.
5848 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
5850 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5851 ("*set_vrsave_internal"): use mfspr for Darwin.
5853 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5854 gen_get_vrsave_internal.
5856 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5858 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5860 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
5862 * cpplex.c (cpp_interpret_charconst): Get signedness or
5863 otherwise of wide character constants correct.
5864 * cppexp.c (lex): Get signedness of wide charconsts correct.
5866 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5868 * optabs.c (widen_operand): Only call convert_modes for
5869 promoted SUBREG if signedness matches.
5870 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5872 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5874 * cpplib.c (glue_header_name): Use local buffer to build up
5877 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5879 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5881 2002-02-23 Kazu Hirata <kazu@hxi.com>
5883 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5884 H8/300[HS] separately.
5885 * config/h8300/h8300.md: Remove the early clobber constraint
5886 from bit field patterns.
5888 2002-02-23 Kazu Hirata <kazu@hxi.com>
5890 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5892 (mulhisi3): Likewise.
5893 (umulqisi3): Likewise.
5894 (umulhisi3): Likewise.
5896 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5898 * cppinit.c (output_deps): Correct test for stdout output.
5899 (init_dependency_output): Cure warning.
5901 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5903 * expr.c (store_expr): When converting expression to promoted
5904 equivalent type, allow using SUBREG_REG of TARGET as the target
5905 of the expansion of EXP.
5906 * loop.c (basic_induction_var, case SUBREG): Always look inside.
5907 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5908 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5909 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5910 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5912 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
5914 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5915 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5916 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5918 2002-02-23 Jakub Jelinek <jakub@redhat.com>
5920 PR optimization/5747
5921 * loop.c (scan_loop): Update reg info if move_movables created new
5924 2002-02-23 David Edelsohn <edelsohn@gnu.org>
5926 * gcc.c (init_gcc_spec): Revert last change.
5928 2002-02-23 David Edelsohn <edelsohn@gnu.org>
5930 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5931 gpc_reg_operand constraint.
5933 2002-02-23 Alan Modra <amodra@bigpond.net.au>
5935 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5936 Simplify comparison of `low'.
5937 (add_operand): Fix formatting.
5938 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5939 (mask_operand): Disallow mask to wrap in 64-bit mode.
5940 (rs6000_stack_info): Remove redundant test setting push_p.
5941 (output_toc): Fix formatting.
5942 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5943 cc_reg_not_cr0_operand constraint.
5944 (booldi3, boolcdi3 splitters): Same.
5946 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
5948 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5950 2002-02-22 David Edelsohn <edelsohn@gnu.org>
5952 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5953 gcc invoked with -shared-libgcc.
5955 2002-02-22 Jakub Jelinek <jakub@redhat.com>
5958 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5959 decl if any of elements was TREE_USED.
5961 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
5963 * config/sparc/sol2.h: Don't include sys/mman.h.
5964 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5965 (arith_4096_operand): Don't throw high bits away.
5966 (const64_operand): Take sign extension of CONST_INTs into account.
5967 (const64_high_operand, sparc_emit_set_const32): Likewise.
5968 (GEN_HIGHINT64): Likewise.
5969 (sparc_emit_set_const64_quick1): Likewise.
5970 (const64_is_2insns): Likewise.
5971 (print_operand): Use trunc_int_for_mode for sign extension.
5972 * config/sparc/sparc.h (SMALL_INT32): Likewise.
5973 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5974 chars. Assume CONST_INT is already properly sign-extended.
5975 (movdi split): Sign-extend each SImode part.
5976 (andsi3 split): Don't mask high bits off, so that result
5977 remains properly sign-extend.
5978 (iorsi3 split): Likewise.
5979 (xorsi3 split): Likewise.
5981 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
5983 * fold-const.c (fold): Fix typo in comments.
5985 2002-02-21 Diego Novillo <dnovillo@redhat.com>
5987 * Makefile.in (langhooks.o): Update dependencies.
5989 2002-02-21 Diego Novillo <dnovillo@redhat.com>
5991 * langhooks.c: Include flags.h.
5993 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
5995 * testsuite/gcc.dg/attr-alwaysinline.c: New.
5997 * c-common.c (c_common_post_options): Set inline trees by
6000 * doc/extend.texi (Function Attributes): Document always_inline
6002 Update documentation about inlining when not optimizing.
6004 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
6006 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
6007 unless DECL_ALWAYS_INLINE.
6009 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
6010 unless DECL_ALWAYS_INLINE.
6011 (c_disregard_inline_limits): Disregard if always_inline set.
6013 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
6014 Disregard if always_inline set.
6015 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
6016 unless DECL_ALWAYS_INLINE.
6018 * attribs.c (handle_always_inline_attribute): New.
6019 (c_common_attribute_table): Add always_inline.
6021 * config/rs6000/altivec.h: Add prototypes for builtins
6022 requiring the always_inline attribute.
6024 2002-02-21 Eric Christopher <echristo@redhat.com>
6026 * expmed.c (store_bit_field): Try to simplify the subreg
6027 before generating a new one when when the mode size of
6028 value is less than maxmode.
6030 2002-02-21 Richard Henderson <rth@redhat.com>
6032 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
6033 than gen_rtx_PLUS to form the sum.
6034 * explow.c (force_reg): Rearrange to not allocate new pseudo
6035 when force_operand returns a register.
6036 * expr.c (expand_assignment): Allow offset_rtx expansion to
6037 return a sum. Do not force addresses into registers.
6038 (expand_expr): Likewise.
6039 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
6040 to canonicalize arithmetic that didn't simpify.
6041 (simplify_plus_minus): New argument force; update
6042 all callers. Don't split CONST unless we can do something with it,
6043 and wouldn't lose the constness of the operands.
6045 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
6046 that we generated earlier.
6048 2002-02-21 Tom Tromey <tromey@redhat.com>
6050 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6051 (output_line_info): Use constant `1', with a long explanatory
6053 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
6055 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
6057 * jump.c (redirect_jump): If old label has no UID, don't try to
6060 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
6062 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
6063 If input is constant, do shifts at compile time.
6065 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
6067 * doc/extend.texi: Fix some more overfull hboxes.
6069 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6071 PR optimization/4994
6072 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
6075 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6078 * expr.h (expand_and): Add mode argument.
6079 * expmed.c (expand_and): Add mode argument.
6080 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
6081 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
6082 * except.c (expand_builtin_extract_return_addr): Likewise.
6083 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6084 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6085 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
6086 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
6087 * config/c4x/c4x.md: Use GEN_INT (x) instead of
6088 gen_rtx (CONST_INT, VOIDmode, x).
6090 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6093 * stmt.c (warn_if_unused_value): Move side effects test once more.
6095 2002-02-20 Torbjorn Granlund <tege@swox.com>
6097 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
6098 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
6100 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
6102 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
6103 SUBREG or ZERO_EXTEND.
6105 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
6107 * sh.h (current_function_anonymous_args): Remove.
6108 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
6109 of current_function_varargs and current_function_stdarg is set.
6110 * sh.c (sh_expand_prologue): Check current_function_varargs /
6111 current_function_stdarg / TARGET_SH5 instead of
6112 current_function_anonymous_args.
6114 * sh64.h (TARGET_VERSION): Define.
6116 2002-02-20 David Edelsohn <edelsohn@gnu.org>
6118 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
6119 VRSAVE_REGNO on TARGET_ALTIVEC.
6121 2002-02-20 Alan Modra <amodra@bigpond.net.au>
6123 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
6124 bits of SImode const_int.
6125 (includes_rshift_p): Likewise.
6126 (print_operand): Call mask_operand and mask64_operand with correct
6128 (rs6000_output_function_epilogue): Pad traceback table to word.
6129 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
6130 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
6131 mask64_operand with correct mode.
6132 (FUNCTION_ARG_REGNO_P): Correct parentheses.
6134 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6137 * varasm.c (get_pool_constant_mark): New.
6138 * rtl.h (get_pool_constant_mark): Add prototype.
6139 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
6140 be represented if it has not been output.
6142 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
6144 * combine.c (do_SUBST): Sanity check substitutions of
6145 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
6146 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
6147 CONST_INT into its operand.
6148 (known_cond): Likewise, for ZERO_EXTEND.
6149 * simplify-rtx.c (simplify_unary_operation): Fix condition to
6150 allow for simplification of wide modes. Reject CONST_INTs in
6151 ZERO_EXTEND when their actual mode is not given.
6153 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
6155 * c-decl.c (pushdecl): If no global declaration is found for an
6156 extern declaration in block scope, try a limbo one.
6158 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6161 * c-common.c (pointer_int_sum): Moved from...
6162 * c-typeck.c (pointer_int_sum): ...here.
6163 * c-common.h (pointer_int_sum): Add prototype.
6165 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6168 * c-decl.c (duplicate_decls): Return 0 if issued error about
6171 2002-02-20 Roger Sayle <roger@eyesopen.com>
6172 Jakub Jelinek <jakub@redhat.com>
6175 * tree.c (host_integerp): Ensure that the constant integer is
6176 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
6177 when pos is zero or non-zero respectively. Clarify comment.
6178 * c-format.c (check_format_info_recurse): Fix host_integerp
6179 usage; the pos argument should be zero when assigning to a
6180 signed HOST_WIDE_INT.
6182 2002-02-20 Richard Henderson <rth@redhat.com>
6184 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
6185 of the operand, rather than assuming TImode.
6186 (ix86_expand_binop_builtin): Cope with commutative patterns
6187 using nonimmediate_operand for both operands.
6188 (ix86_expand_timode_binop_builtin): Likewise.
6189 (ix86_expand_store_builtin): Validate operand 1.
6190 (ix86_expand_unop1_builtin): Likewise.
6192 2002-02-20 Philip Blundell <philb@gnu.org>
6195 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
6197 2002-02-20 Richard Henderson <rth@redhat.com>
6200 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
6202 2002-02-20 Tom Tromey <tromey@redhat.com>
6204 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6205 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6206 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6207 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6208 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
6211 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
6213 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
6214 for (const_int 0) in X not just INTVAL.
6216 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
6218 * doc/extend.texi: Avoid or reduce overfull hboxes.
6220 2002-02-20 Diego Novillo <dnovillo@redhat.com>
6222 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
6223 operations if the field does not start at a mode boundary.
6225 2001-02-20 Joel Sherrill <joel@OARcorp.com>
6227 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
6228 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
6229 Also done for -Acpu and -Amachine.
6231 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
6233 * cppinit.c (init_dependency_output): Take deps output file
6234 from -o if none given with -MF. Suppress normal output.
6235 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
6236 * doc/cpp.texi, doc/invoke.texi: Update.
6238 2002-02-19 Zack Weinberg <zack@codesourcery.com>
6240 * toplev.c (output_quoted_string): Write unprintable
6241 characters with octal escapes.
6243 2002-02-19 David Edelsohn <edelsohn@gnu.org>
6245 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
6246 really_call_used[VRSAVE_REGNO] if not Altivec.
6248 2002-02-19 Alan Modra <amodra@bigpond.net.au>
6250 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
6252 (constant_pool_expr_1): Fix formatting.
6253 (rs6000_legitimize_reload_address): Likewise.
6255 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6257 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
6258 now that we have one.
6260 2002-02-19 Zack Weinberg <zack@codesourcery.com>
6262 * tree.h (struct tree_common): Remove aux. Add unused_0 at
6263 end of first block of bitfields (which was only seven bits);
6264 rename dummy to unused_1; remove comment which is no longer true.
6266 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
6268 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
6270 2002-02-19 Philip Blundell <pb@nexus.co.uk>
6273 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
6277 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
6278 arm_is_longcall_p rather than inspecting call-type cookie
6280 (call_value_insn) [TARGET_THUMB]: Likewise.
6282 2002-02-19 Graham Stott <grahams@redhat.com>
6284 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
6286 2002-02-19 David Edelsohn <edelsohn@gnu.org>
6288 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
6289 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6290 (FP_SAVE_INLINE): Delete.
6292 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
6293 * config/rs6000/eabi.asm: Remove ABI save restore routines.
6294 * config/rs6000/t-ppccomm: Build crtsavres.o.
6295 * config/rs6000/crtsavres.asm: New file.
6297 2002-02-19 Philip Blundell <philb@gnu.org>
6299 * config/arm/arm.c (use_return_insn): Don't reject interrupt
6301 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
6302 (output_return_instruction): Allow interrupt functions to return with
6303 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
6304 (arm_expand_prologue): Subtract 4 before stacking LR in an
6307 2002-02-19 Philip Blundell <pb@nexus.co.uk>
6309 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
6310 decl, not just FUNCTION_DECL.
6311 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
6312 (arm_assemble_integer): Likewise.
6313 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
6316 2002-02-19 matthew green <mrg@eterna.com.au>
6318 * config.gcc (sparc-*-netbsdelf*): Enable target.
6319 (sparc64-*-netbsd*): New target.
6320 * config/sparc/netbsd-elf.h: New file.
6321 * config/sparc/t-netbsd64: New file.
6323 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
6325 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
6327 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
6329 * doc/invoke.texi: explicitly list the style guidelines that
6330 -Weffc++ checks for.
6332 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
6334 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
6336 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
6339 * gcc.c (cpp_unique_options): Treat -o as indicating object file
6340 only if not -E. If -E, pass -o through to the preprocessor.
6342 2002-02-19 Kazu Hirata <kazu@hxi.com>
6344 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
6345 register number with an appropriate macro.
6347 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6349 * doc/rtl.texi (Constants): Close @code tag.
6351 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
6353 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
6354 ("mmx_uavgv4hi3"): Same.
6355 ("pmulhrwv4hi3"): Same.
6357 * tree-inline.c (walk_tree): Handle vectors.
6359 * c-common.c (constant_expression_warning): Handle vectors.
6360 (overflow_warning): Same.
6362 * sched-deps.c (sched_analyze_2): Handle vectors.
6364 * rtlanal.c (rtx_unstable_p): Handle vectors.
6365 (rtx_varies_p): Same.
6366 (count_occurrences): Same.
6367 (regs_set_between_p): Same.
6368 (modified_between_p): Same.
6369 (modified_in_p): Same.
6370 (volatile_insn_p): Same.
6371 (volatile_refs_p): Same.
6372 (side_effects_p): Same.
6374 (inequality_comparisons_p): Same.
6375 (replace_regs): Same.
6376 (computed_jump_p_1): Same.
6378 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
6380 (inner_mode_array): New.
6381 (copy_rtx): Handle vectors.
6382 (copy_most_rtx): Same.
6383 (rtx_equal_p): Same.
6384 (get_mode_alignment): Adjust for vectors.
6386 * resource.c (mark_referenced_resources): Handle vectors.
6387 (mark_set_resources): Same.
6389 * reload1.c (eliminate_regs): Handle vectors.
6390 (elimination_effects): Same.
6391 (scan_paradoxical_subregs): Same.
6393 * reload.c (subst_reg_equivs): Handle vectors.
6395 * regrename.c (scan_rtx): Handle vectors.
6397 * regclass.c (reg_scan_mark_refs): Handle vectors.
6399 * recog.c (find_single_use_1): Handle vectors.
6401 * local-alloc.c (equiv_init_varies_p): Handle vectors.
6402 (contains_replace_regs): Same.
6403 (memref_referenced_p): Same.
6405 * integrate.c (copy_rtx_and_substitute): Handle vectors.
6406 (subst_constants): Same.
6408 * genattrtab.c (attr_copy_rtx): Handle vectors.
6409 (encode_units_mask): Same.
6410 (clear_struct_flag): Same.
6411 (count_sub_rtxs): Same.
6413 * gcse.c (want_to_gcse_p): Handle vectors.
6414 (oprs_unchanged_p): Same.
6415 (hash_expr_1): Same.
6416 (oprs_not_set_p): Same.
6417 (expr_killed_p): Same.
6418 (compute_transp): Same.
6419 (store_ops_ok): Same.
6421 * function.c (purge_addressof_1): Do not allow paradoxical subregs
6423 (fixup_var_refs_1): Same.
6424 (instantiate_virtual_regs_1): Same.
6426 * fold-const.c (operand_equal_p): Handle vectors.
6428 (rtl_expr_nonnegative_p): Same.
6430 * flow.c (mark_used_regs): Handle vectors.
6432 * df.c (df_uses_record): Handle vectors.
6434 * cselib.c (cselib_subst_to_values): Handle vectors.
6435 (cselib_mem_conflict_p): Same.
6438 * cse.c (canon_reg): Handle vectors.
6440 (cse_process_notes): Same.
6441 (count_reg_usage): Same.
6444 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
6446 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
6448 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
6449 (gen_rtx): Handle CONST_VECTOR.
6450 (gen_const_vector_0): New.
6451 (copy_rtx_if_shared): CONST_VECTORs can be shared.
6452 (reset_used_flags): Same.
6453 (copy_insn_1): Same.
6454 (initializer_constant_valid_p): Handle VECTOR_CST.
6456 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
6458 * doc/rtl.texi (Constants): Document const_vector.
6459 (CONST0_RTX): Update for vectors.
6460 (RTL sharing): Same.
6462 * print-tree.c (print_node): Add case for VECTOR_CST.
6464 * tree.h (TREE_VECTOR_CST_ELTS): New.
6465 (struct tree_vector): New.
6466 (union tree_node): Add vector node.
6467 (build_vector): Add prototype.
6469 * tree.def (VECTOR_CST): New.
6471 * tree.c (build_vector): New.
6473 * expmed.c (make_tree): Handle CONST_VECTOR.
6475 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
6476 (CONST_VECTOR_ELT): New.
6477 (CONST_VECTOR_NUNITS): New.
6479 * machmode.h (GET_MODE_INNER): New.
6480 (DEF_MACHMODE): Accept 8th arg.
6482 * machmode.def: Add 8th argument for vector inner mode.
6483 Add inner vector modes for vectors.
6485 * rtl.def (VEC_CONST): Remove.
6486 (CONST_VECTOR): New.
6488 * expr.c (clear_storage): Allow vectors.
6489 (is_zeros_p): Handle VECTOR_CST.
6491 * varasm.c (output_constant_pool): Handle vectors.
6492 (rtx_const): Add veclo and vechi fields.
6493 (kind): Add RTX_VECTOR.
6494 (decode_rtx_const): Add case for vector.
6496 * config/rs6000/rs6000-protos.h: Add zero_constant.
6498 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
6499 constants. Force easy vector constants into memory.
6500 (easy_vector_constant): New.
6501 (emit_easy_vector_constant): New.
6502 (rs6000_legitimize_reload_address): Do not generate bad reloads on
6505 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
6507 ("altivec_lvxl"): Same.
6508 (altivec_lvebx): Same.
6509 (altivec_lvehx): Same.
6510 (altivec_lvewx): Same.
6511 ("*movv4si_const0"): New.
6512 ("*movv4sf_const0"): New.
6513 ("*movv8hi_const0"): New.
6514 ("*movv16qi_const0"): New.
6516 2002-02-18 Kazu Hirata <kazu@hxi.com>
6518 * config/h8300/h8300.c (notice_update_cc): Use
6521 2002-02-18 Kazu Hirata <kazu@hxi.com>
6523 * config/h8300/h8300.md (divmod patterns): Change the
6524 constraints for operands[1] to register_operand.
6526 2002-02-18 Kazu Hirata <kazu@hxi.com>
6528 * config/h8300/h8300-protos.h: Remove the prototype for
6530 * config/h8300/h8300.c (p_operand): Remove.
6531 * config/h8300/h8300.md: Replace p_operand with
6534 2002-02-18 Philip Blundell <pb@nexus.co.uk>
6536 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
6538 (output_return_instruction): Allow use of LDR to unstack
6539 return addresss even for interrupt handlers or when
6540 interworking. If compiling for ARMv5, use interworking-safe
6541 return instructions by default. Remove duplicated code and
6542 lengthy "strcat" sequences.
6544 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6546 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
6547 (LINK_EH_SPEC): Define.
6548 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
6550 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
6552 * config/s390/s390.c (s390_emit_prologue): Do not set the
6553 frame_related flag for call-clobbered registers.
6555 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
6557 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
6558 (construct_container): Fix handling of SSE operands.
6559 (ix86_expand_builtin): Fix handling of 64bit pointers.
6560 (mmx_maskmovq_rex): New pattern.
6562 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
6564 * regrename.c (kill_set_value): Handle subregs properly.
6566 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
6568 * objc/objc-act.c (handle_impent): Remove leading '*'
6569 from objc_class_name.
6571 2002-02-17 Richard Henderson <rth@redhat.com>
6573 * config/alpha/alpha.c (some_small_symbolic_operand,
6574 some_small_symbolic_operand_1, split_small_symbolic_operand,
6575 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
6576 Handle small SYMBOL_REFs anywhere, not just inside memories.
6577 * config/alpha/alpha-protos.h: Update.
6578 * config/alpha/alpha.h (PREDICATE_CODES): Update.
6579 * config/alpha/alpha.md (small symbolic operand splitter): Update.
6581 2002-02-17 Roland McGrath <roland@frob.com>
6583 * config.gcc (powerpc-*-gnu-gnualtivec*,
6584 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
6585 * config/rs6000/gnu.h: New file.
6586 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
6587 Grok "gnu" in rs6000_abi_name.
6588 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
6589 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
6590 Grok -mcall-gnu analogous to -mcall-linux et al.
6591 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6592 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
6593 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
6595 2002-02-17 Jakub Jelinek <jakub@redhat.com>
6598 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
6601 2002-02-17 Philipp Thomas <pthomas@suse.de>
6603 * config/cris/cris.h: Undefine STARTFILE_SPEC and
6604 ENDFILE_SPEC before (re)defining them.
6606 2002-02-17 Kazu Hirata <kazu@hxi.com>
6608 * config/h8300/h8300.c: Fix formatting.
6609 * config/h8300/h8300.h: Likewise.
6611 2002-02-17 Philipp Thomas <pthomas@suse.de>
6613 * doc/tm.texi: Explain why empty strings should not be
6614 marked for translation.
6616 2002-02-17 Philipp Thomas <pthomas@suse.de>
6618 * final.c (output_operand_lossage): Changed to accept
6619 printf style arguments. Change calls where necessary.
6620 * output.h (output_operand_lossage): Change declaration
6621 accordingly. Update copyright.
6622 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
6623 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
6624 Update copyright date where necessary.
6626 * config/i386/i386.c (print_operand): Likewise. Remove use of
6629 * config/cris/cris.c (cris_operand_lossage): Likewise.
6630 Rename parameter so that exgettext recognizes it as
6631 translatable message.
6632 (LOSE_AND_RETURN): Rename parameter to msgid.
6634 2002-02-17 Kazu Hirata <kazu@hxi.com>
6636 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
6637 hard coded register number with an appropriate macro.
6638 (HARD_REGNO_MODE_OK): Likewise.
6639 (ARG_POINTER_REGNUM): Likewise.
6640 (STATIC_CHAIN_REGNUM): Likewise.
6641 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6642 * config/h8300/h8300.md (define_constants): Define more
6645 2002-02-17 Philipp Thomas <pthomas@suse.de>
6647 * config/i386/i386.h: Don't mark empty strings for translation.
6649 2002-02-16 H.J. Lu <hjl@gnu.org>
6651 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
6653 2002-02-16 Zack Weinberg <zack@codesourcery.com>
6655 * cppinit.c (merge_include_chains): Check for brack being
6656 NULL before attempting to merge it with qtail.
6658 2002-02-16 Andrew Cagney <ac131313@redhat.com>
6660 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
6663 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
6665 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
6667 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
6669 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
6670 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
6671 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
6673 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6675 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
6676 now only if !TARGET_FIX.
6677 (*movsi_nt_vms_fix): New pattern.
6679 2002-02-16 Douglas B Rupp <rupp@gnat.com>
6681 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
6682 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
6683 (alpha_sa_mask, alpha_sa_size): Reflect above change.
6684 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
6685 (alpha_start_function, alpha_expand_epilogue): Likewise.
6686 (unicosmk_gen_dsib): Likewise.
6688 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6690 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
6692 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
6694 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
6695 check_and_change_labels, s390_final_chunkify): Delete.
6696 (s390_split_branches, s390_chunkify_pool): New functions.
6697 (s390_function_prologue): Call them.
6699 * config/s390/s390.h (S390_REL_MAX): Delete.
6700 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6702 * config/s390/s390.md (cjump, icjump, jump): Fix length
6703 attribute calculation.
6706 2002-02-15 David Edelsohn <edelsohn@gnu.org>
6708 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6709 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6711 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
6713 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6714 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6715 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6717 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
6719 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6721 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
6723 * reload.c (find_dummy_reload): Check that an output register
6724 is valid for its mode.
6726 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
6728 * combine.c (known_cond): After replacing the REG of a SUBREG, try
6731 * function.c (assign_parms): Demote promoted argument passed by
6732 transparent reference.
6734 2001-02-14 Joel Sherrill <joel@OARcorp.com>
6736 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6737 -Acpu() and -Amachine() to eliminate warnings.
6739 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
6741 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6743 2002-02-14 Kazu Hirata <kazu@hxi.com>
6745 * config/h8300/h8300-protos.h: Update the prototype for
6747 * config/h8300/h8300.c (const_costs): Treat SET as a little
6748 more expensive operation.
6749 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6750 reference to const_costs.
6752 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
6754 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6756 2002-02-14 Jakub Jelinek <jakub@redhat.com>
6759 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6760 use arguments from newtype.
6762 2002-02-13 Eric Christopher <echristo@redhat.com>
6764 * config/mips/mips.c (override_options): Add check for march/mipsX
6765 on the same command line. Fix error message in cpu processing.
6766 Remove architecture and ISA checks.
6768 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
6770 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6772 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6774 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
6776 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6778 ("*movv8hi_internal1"): Same.
6779 ("*movv16qi_internal1"): Same.
6780 ("*movv4sf_internal1"): Same.
6782 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6783 not push_reload for altivec modes.
6785 2002-02-13 Joel Sherrill <joel@OARcorp.com>
6787 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6788 all RTEMS targets including removal of #includes from config/*/rtems*.h
6789 file and adding them to tm_file setting. Added xm_defines=POSIX to
6791 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6792 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6793 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6794 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6795 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6796 config/m68k/rtemself.h: Ditto.
6797 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6798 config/mips/rtems64.h: Ditto.
6799 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6800 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6802 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6803 config/sparc/rtemself.h: Ditto.
6804 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6805 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6806 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6808 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6809 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6810 target made more similar to i386-elf.
6811 * config/i386/t-rtems-i386: Added soft float support and multilibs.
6812 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6813 be similar to config/m68k/t-m68kelf.
6814 * gthr-rtems.h: Encapsulate with extern "C" for C++.
6816 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
6818 * regmove.c (kill_value): Handle subregs.
6820 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
6822 * i386.md (mul patterns): Allow memory operand to be first;
6823 add expanders where needed; fix constraints.
6824 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6825 Allow memory operand to be the first.
6827 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6830 2002-02-13 Jakub Jelinek <jakub@redhat.com>
6833 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6836 2002-02-13 Jakub Jelinek <jakub@redhat.com>
6838 PR optimization/5547:
6839 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6840 all valid IA-32 address modes involving non-scaled %ebx and
6841 GOT/GOTOFF as displacement.
6843 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
6845 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6846 after emitting ltorg insns.
6848 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6849 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6850 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6851 *abssf2): Fix "op_type" attribute.
6853 2002-02-13 Douglas B Rupp <rupp@gnat.com>
6855 * mkconfig.sh: Avoid using a subshell redirect.
6856 ($output.T): Change to $(output)T.
6857 (ENABLE_NLS): Remove unneeded undef.
6859 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6860 * config/alpha/x-vms (libsubdir): Define.
6862 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6863 register frame procedures. Optimize retrieving context.
6865 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6866 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6867 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6869 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6871 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6872 Make same change as for find_base_value.
6874 2002-02-13 Kazu Hirata <kazu@hxi.com>
6876 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6877 of QImode and SImode.
6879 2002-02-13 Kazu Hirata <kazu@hxi.com>
6881 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6882 length computation of movsi.
6883 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6885 2002-02-13 Kazu Hirata <kazu@hxi.com>
6887 * config/h8300/h8300.md (subqi3): Tighten the predicate for
6888 operands[2] to register_operand.
6890 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
6892 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6894 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
6896 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6897 for altivec_lvx* and altivec_stvx*.
6898 ("*movv4si_internal"): Add constraint for loading from GPRs.
6899 ("*movv8hi_internal1"): Same.
6900 ("*movv16qi_internal1"): Same.
6901 ("*movv4sf_internal1"): Same.
6903 * config/rs6000/rs6000.c (altivec_register_operand): New.
6905 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6906 altivec_register_operand.
6908 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
6910 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6913 2002-02-13 Stan Shebs <shebs@apple.com>
6915 * c-typeck.c (digest_init): Handle vectors.
6916 (really_start_incremental_init): Same.
6917 (pop_init_level): Same.
6918 (process_init_element): Same.
6920 * varasm.c (output_constant): Same.
6922 * expr.c (clear_storage): Same.
6923 (store_constructor): Same.
6925 2002-02-12 Eric Christopher <echristo@redhat.com>
6927 * explow.c (hard_function_value): Add comment explaining
6928 signed/unsigned comparison.
6930 2002-02-12 Jakub Jelinek <jakub@redhat.com>
6932 * jump.c (never_reached_warning): Add finish argument.
6933 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6934 real insn after end.
6935 * rtl.h (never_reached_warning): Adjust prototype.
6936 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6937 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6938 never_reached_warning.
6940 2002-02-12 Graham Stott <grahams@redhat.com>
6942 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6944 2002-02-12 Kazu Hirata <kazu@hxi.com>
6946 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6947 logical shifts on H8/300.
6948 (shift_alg_si): Improve several shifts on H8/300.
6949 (get_shift_alg): Likewise.
6951 2002-02-12 Graham Stott <grahams@redhat.com>
6953 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6955 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6957 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6958 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6960 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
6962 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6963 non-CONST_INT through default_assemble_integer.
6964 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6965 <case 8>: Abort for CONST_DOUBLE.
6967 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6969 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6971 * config/pa/pa-linux.h (LIB_SPEC): Delete.
6972 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6974 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
6976 * config/stormy16/stormy16.md (zero_extendqihi2): New.
6978 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
6980 * regrename.c (regrename_optimize): Don't accept a
6981 part-clobbered register if the replaced register is not part
6984 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6985 take padding into account when computing the argument value.
6987 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6989 * combine.c (try_combine): Apply substitutions in
6990 CALL_INSN_FUNCTION_USAGE too.
6992 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
6994 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6995 __builtin_altivec_abs*.
6998 * config/rs6000/rs6000.h (rs6000_builtins): Add
6999 ALTIVEC_BUILTIN_ABS*.
7001 * config/rs6000/altivec.h: Use const char for builtins expecting
7003 (vec_abs): New versions for C and C++.
7006 2002-02-10 Kazu Hirata <kazu@hxi.com>
7008 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
7011 2002-02-10 Kazu Hirata <kazu@hxi.com>
7013 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
7014 constant definition from h8300.md.
7015 (FRAME_POINTER_REGNUM): Likewise.
7016 * config/h8300/h8300.md (define_constants): Add FP_REG.
7018 2002-02-10 Kazu Hirata <kazu@hxi.com>
7020 * config/h8300/h8300.c (print_operand): Remove redundant code.
7022 2002-02-10 Kazu Hirata <kazu@hxi.com>
7024 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
7025 * config/h8300/h8300.c (byte_reg): Make it static.
7027 2002-02-10 Richard Henderson <rth@redhat.com>
7030 * c-typeck.c (incomplete_type_error): Handle flexible array members.
7032 2002-02-10 Richard Henderson <rth@redhat.com>
7035 * tree.c (append_random_chars): Don't abort if main_input_filename
7038 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
7040 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
7042 2002-02-10 Kazu Hirata <kazu@hxi.com>
7044 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
7045 (pushhi1): Likewise.
7047 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
7049 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
7050 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
7052 2002-02-09 David O'Brien <obrien@FreeBSD.org>
7054 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
7056 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
7058 2002-02-09 Kazu Hirata <kazu@hxi.com>
7060 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
7061 a half of an SImode register on H8/300.
7063 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
7065 * i386.md (movdi_2): Add missing '!'.
7067 2002-02-09 Kazu Hirata <kazu@hxi.com>
7069 * config/h8300/h8300.h: Fix formatting. Remove commented-out
7072 2002-02-09 Kazu Hirata <kazu@hxi.com>
7074 * config/h8300/h8300.md (length): Correct the distance valid
7075 for the short branch.
7077 2002-02-09 Kazu Hirata <kazu@hxi.com>
7079 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
7081 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
7083 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
7084 registers in SImode.
7085 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
7088 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
7091 Contribute sh64-elf.
7092 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
7093 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
7094 (sh_cannot_modify_jumps_p): New function.
7095 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
7096 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
7097 (sh_ms_bitfield_layout_p): New function.
7098 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
7099 Zack Weinberg <zack@codesourcery.com>
7100 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
7101 expand_simple_binop instead of expand_binop.
7102 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
7103 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
7104 use of .quad and .uaquad.
7105 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
7106 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
7107 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7108 * config/sh/sh.md (movdi_const, movdi_const_32bit,
7109 movdi_const_16bit): Make sure all CONSTs have modes.
7110 (sym2PIC): Ditto, but by adjusting all callers.
7111 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
7112 if the prologue calls the SHmedia argument decoder or register
7114 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7115 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
7116 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
7117 (sh_expand_epilogue): Don't emit USE of return target register.
7118 (prepare_move_operands): Legitimize DImode PIC addresses.
7119 (sh_media_register_for_return): Skip tr0, used to initialize the
7121 (sh_expand_prologue): Remove explicit USE of return register.
7122 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
7123 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
7124 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
7125 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
7126 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
7128 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
7129 (MOVI_SHORI_BASE_OPERAND_P): New.
7130 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
7131 (EXTRA_CONSTRAINT_T): Define in terms of them.
7132 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
7133 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
7134 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
7135 alternatives supporting TARGET_REGS.
7136 (UNSPEC_GOTPLT): New constant.
7137 (movdi split): Move incrementing of LABEL_NUSES...
7138 (movdi_const, movdi_const_32bit): Here. Use
7139 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
7140 (movdi_const_16bit): New.
7141 (call, call_value) [flag_pic]: Use GOTPLT.
7142 (call_pop, call_value_pop): New expands.
7143 (call_pop_compact, call_pop_rettramp): New insns.
7144 (call_value_pop_compact, call_value_pop_rettramp): New insns.
7145 (sibcall) [flag_pic]: Use GOT.
7146 (builtint_setjmp_receiver): Remove bogus, unused expand.
7147 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
7148 (*pt, *ptb, ptrel): New insns.
7149 (sym2GOT): Handle DImode GOT.
7150 (sym2GOTPLT, symGOTPLT2reg): New expands.
7151 (sym2PIC): New expand.
7152 (shcompact_return_tramp): Use GOTPLT to return trampoline.
7153 (shcompact_return_tramp_i): Use return register explicitly.
7154 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
7155 disable flag_reorder_blocks.
7156 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
7157 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
7158 clobbers, for clarity.
7159 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
7160 restoring of r0 in macl as MAYBE_DEAD.
7161 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
7162 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
7163 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
7164 alter_subreg all over.
7165 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
7166 reload, instead of emitting instructions that would require
7168 (casesi_load_media): Add missing modes.
7169 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
7170 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
7171 as used if the argument decoder is called.
7172 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
7173 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
7174 Pmode, then extend it to DImode if necessary.
7175 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
7176 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
7177 constants in FPU-enabled SHmedia, let them be loaded from memory.
7178 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
7179 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
7180 Adjust whitespace in assembly output templates.
7181 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
7182 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
7183 mode of if_then_else.
7184 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
7185 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
7187 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
7188 Joern Rennecke <amylaar@redhat.com>
7189 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
7190 (SUBTARGET_CPP_PTR_SPEC): New.
7191 (SUBTARGET_CPP_SPEC): Remove.
7192 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
7193 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7194 Fix typo in previous checkin.
7195 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
7196 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
7197 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
7198 Alexandre Oliva <aoliva@redhat.com>
7199 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
7200 what single FP register can hold for SHmedia target.
7201 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
7202 Alexandre Oliva <aoliva@redhat.com>
7203 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7204 Do not split into SUBREG.
7205 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
7206 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
7207 and added new functions as specified in SH5 ABI r9.
7208 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
7209 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
7211 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
7212 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
7213 gen_consttable_4 and gen_consttable_8. Emit multiple labels
7214 and consttable_window_ends.
7215 2001-06-03 Graham Stott <grahams@redhat,com>
7216 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
7217 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
7218 * config/sh/sh.c (print_operand): Handle floating-point pair,
7219 vector and matrix registers.
7220 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
7221 vector modes into account.
7222 * config/sh/sh.md (movv2sf): Split move between registers into
7224 (movv4sf, movv16sf): Introduce insns that get split only after
7226 * config/sh/shmedia.h: Fix Copyright dates.
7227 * config/sh/ushmedia.h: Likewise. Move loop counter
7228 declarations into conditionals that uses them.
7229 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
7231 * config/sh/sshmedia.h: Fix Copyright dates.
7232 (sh_media_PUTCFG): Fix constraints.
7233 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
7234 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
7235 ptrmemfunc_vbit_in_delta for SH5.
7236 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
7237 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
7238 * invoke.texi: Likewise.
7239 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
7240 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
7241 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
7242 GCC_pop_shmedia_regs_nofpu): New global symbols.
7243 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
7244 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
7245 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
7246 compact function with nonlocal labels.
7247 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
7248 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
7249 (initial_elimination_offset): Account for their stack space.
7250 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
7251 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
7252 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
7253 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
7254 least one of the operands to be a register.
7255 (movv2sf): Likewise. Renamed to movv2sf_i.
7256 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
7257 prepare_move_operands() before emitting SHmedia insns.
7258 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
7259 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
7260 Don't save nor initialize r12. Don't mis-align the stack.
7261 Pad the code with a nop.
7262 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
7264 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
7265 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
7266 [__SHMEDIA__]: Implement.
7267 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
7268 * config/sh/sh.md: Set latency of `pt' closer to reality.
7269 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
7270 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
7271 Set move, load and store type attributes.
7272 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
7273 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
7275 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
7276 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
7277 * config/sh/sh.c (sh_media_register_for_return): New function.
7278 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
7279 branch-target register.
7280 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
7281 * config/sh/sh.md (return_media_i): Use any call-clobbered
7282 branch-target register.
7283 (return_media): If r18 wasn't copied in the prologue, copy it
7285 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
7286 Clear class FP0_REGS.
7287 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
7289 2001-03-08 DJ Delorie <dj@redhat.com>
7290 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
7291 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
7292 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
7293 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
7294 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
7295 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
7296 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
7297 return value correctly for call_cookie.
7298 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
7299 * config/sh/crt1.asm (start): Modified so as to call
7300 ___setup_argv_and_call_main.
7301 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
7302 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
7304 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
7305 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
7306 (STRIP_NAME_ENCODING): Use it.
7307 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
7308 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
7309 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
7310 prepare_scc_operands().
7311 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
7312 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
7313 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
7314 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
7315 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
7316 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
7317 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
7318 used in shcompact_incoming_args.
7319 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
7321 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
7323 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
7325 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
7326 Simplify. Adjust. Add sanity check.
7327 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
7329 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
7331 (udivsi3, divsi3): Use them.
7332 (force_mode_for_call): New insn.
7333 (call, call_value, sibcall_value): Emit it before SHcompact
7335 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
7336 * config/sh/sh.md (call, call_value, sibcall): Make sure the
7337 call cookie is non-NULL before taking its value.
7338 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
7339 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
7340 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
7341 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
7343 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
7344 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
7345 temporary for stack adjusts. Use MACL and MACH to pass
7346 arguments to shcompact_incoming_args.
7347 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
7349 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
7350 (nested_trampoline): Load static chain address into r1.
7351 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
7352 2001-01-07 Alexandre Oliva <aoliva@redhat.com
7353 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
7354 fp_arith_reg_operand().
7355 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
7356 * config/sh/sh.md (casesi): Sign-extend the first two operands,
7357 and use signed compares for them.
7358 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
7359 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
7360 ones properly aligned.
7361 (find_barrier): Account for extra alignment needed for 8-byte wide
7363 (machine_dependent_reorg): Require a label for the second 4-byte
7364 constant after an 8-byte one.
7365 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
7367 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
7368 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
7369 last_float when switching float modes.
7370 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
7371 auto-increment for general-purpose registers.
7372 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
7374 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
7376 * config/sh/sh.c (sh_builtin_saveregs): Support using all
7377 registers for varargs.
7378 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
7379 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
7380 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
7381 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
7382 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
7383 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
7384 call_cookie accordingly.
7385 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
7386 (SHCOMPACT_BYREF): Likewise.
7387 (SHCOMPACT_FORCE_ON_STACK): New macro.
7388 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
7389 (sh_builtin_saveregs): Likewise.
7390 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7391 shcompact_incoming_args): Use new shift values. Support
7392 sequences of consecutive and non-consecutive pushes/pops.
7393 * config/sh/sh.md (return): Don't explicitly use PR_REG.
7394 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
7395 * config/sh/sh.h (TEXT_SECTION): Define.
7396 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
7397 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
7398 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
7399 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
7400 return values on FPU-enabled SHmedia.
7401 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
7402 FPU-enabled SHmedia.
7403 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
7404 value is returned in a non-FP reg and is not returned by
7406 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
7408 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
7409 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
7410 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
7411 quad-aligned to be passed by callee-copy reference.
7412 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
7413 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
7414 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
7415 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
7416 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
7417 copying low-numbered FP regs to r7 and r8.
7418 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
7419 FP regs to general-purpose regs only if the copy was passed on the
7421 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
7422 copying FP reg to r9.
7423 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
7424 copy FP regs to general-purpose regs only in outgoing calls.
7425 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
7426 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
7428 * config/sh/sh.h (struct sh_args): Document all fields.
7429 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
7430 passed partially on the stack should not consider making
7432 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
7433 stack_regs only for incoming calls. When passing FP args,
7434 make sure there are FP regs available before modifying
7436 (SHCOMPACT_BYREF): Pass double args in general-purpose
7437 registers by reference.
7438 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
7439 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
7440 attempt to generate sibcalls if the caller got any arguments
7442 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
7443 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
7444 to 8-byte boundaries.
7445 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
7446 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
7447 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
7448 stored in the stack.
7449 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
7450 for the offsets to have the ISA bit set.
7451 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
7452 invocation. Use beq instead of bgt to mark end of sequence of
7454 (shcompact_incoming_args): Fix store of r2. Use beq instead of
7455 bgt to mark end of sequence of stores.
7456 * config/sh/sh.c (arith_operand): Don't check whether
7457 CONST_OK_FOR_J for now.
7458 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
7459 instead of long for conversion.
7460 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
7461 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
7462 before passing it to fprintf.
7463 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
7464 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
7465 Call set_fpscr before reading/writing SR.
7466 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
7468 * config/sh/lib1funcs.asm: Add `.align 2' directives before
7470 (FMOVD_WORKS): Define on SH5 with FPU.
7471 (set_fpscr): Define on SH5. Remove separate _fpscr_values
7473 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
7475 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
7476 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
7478 (ia_main_table): Ditto.
7479 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
7480 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7481 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
7482 the definitions from sh.h.
7483 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
7485 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
7486 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
7487 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7488 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
7489 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
7490 Increment LABEL_NUSES.
7492 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
7494 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
7496 * config/sh/elf.h (SIZE_TYPE): Likewise.
7497 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7498 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7499 shcompact_incoming_args): Load switch table addresses using
7501 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7502 (NO_BUILTIN_SIZE_TYPE): Define.
7503 (SIZE_TYPE): Don't define.
7504 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7505 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
7506 definition of __SH5__=32 for -m5-compact-nofpu.
7507 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
7509 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
7510 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
7511 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
7512 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
7513 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
7514 (INSN_LENGTH_ALIGNMENT): Likewise.
7515 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7516 * config/sh/sh.md (call, call_value, sibcall): Simplify
7517 copying of non-branch-target register.
7518 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7519 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
7520 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
7521 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7522 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
7523 floating-point values as structs.
7524 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
7525 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
7526 general-purpose register.
7527 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
7528 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
7529 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
7530 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
7531 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
7532 (ENCODE_SECTION_INFO): Enclose variables and constants in
7534 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
7535 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
7536 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
7537 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
7538 only for LABEL_REFs. For SYMBOL_REFs, prepend
7539 SH_DATALABEL_ENCODING to the symbol name.
7540 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
7542 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
7543 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
7545 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
7546 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
7547 (DATALABEL_REF_P): Don't require CONST.
7548 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
7550 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
7551 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
7553 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
7554 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
7555 Use shallow_copy_rtx and PUT_MODE to change the mode of
7556 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
7557 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
7558 on SHmedia using GENERAL_REGs.
7559 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7560 bltu_media_i): Fix reversion of conditions.
7561 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
7562 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
7563 * config/sh/sh.c (output_far_jump): Save r13 in macl.
7564 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
7565 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
7566 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
7567 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
7568 (GCC_nested_trampoline): Likewise.
7569 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
7570 * config/sh/sh.c (gen_datalabel_ref): Define.
7571 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
7572 (INITIALIZE_TRAMPOLINE): Likewise.
7573 (TRAMPOLINE_ADJUST_ADDRESS): Define.
7574 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
7575 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
7576 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
7577 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
7578 (ic_invalidate): Adjust for SH5.
7579 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
7580 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
7582 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
7583 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
7584 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
7585 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
7586 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
7587 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
7588 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
7589 * config/sh/sh.c (target_reg_operand): Match only target-branch
7590 registers and pseudos that aren't virtual registers.
7591 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7592 Copy operands that don't match target_reg_operand to pseudos.
7593 (call_media, call_value_media, sibcall_media): Use
7594 target_reg_operand instead of target_operand.
7595 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
7596 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
7597 * config/sh/sh.c (target_reg_operand): Match hardware registers
7598 other than branch-target registers.
7599 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
7600 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
7601 (fpscr_values) [SH5 == 32]: Define.
7602 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
7603 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7604 Handle function addresses coming in SUBREGs.
7605 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
7606 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7607 shcompact_return_trampoline): Use datalabel where appropriate.
7608 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
7609 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
7610 general-purpose register to copy one branch-target register to
7612 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
7613 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
7614 SYMBOL_REFs with VOIDmode.
7615 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7616 bltu_media_i): New insns.
7617 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
7618 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
7619 (INIT_CUMULATIVE_ARGS): Likewise.
7620 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
7621 * machmode.def (V16SFmode): New mode.
7622 * c-common.c (type_for_mode): Support V2SF and V16SF.
7623 * tree.c (build_common_tree_nodes_2): Likewise.
7624 * tree.h (tree_index): Likewise.
7625 * calls.c (emit_call_1): Take args_so_far. Adjust all
7626 callers. Introduce CALL_POPS_ARGS.
7627 * tm.texi (CALL_POPS_ARGS): Document.
7628 * config/sh/crt1.asm: Implement in SHmedia mode.
7629 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
7630 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
7631 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
7632 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
7633 Implement divsi and udivsi in SHmedia mode. Introduce
7634 SHcompact trampolines.
7635 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
7637 (regno_reg_class): Rewrite.
7638 (fp_reg_names): Remove.
7639 (sh_register_names, sh_additional_register_names): New.
7640 (print_operand): Added `u'. Support SUBREGs in addresses.
7641 Add parentheses around shifted CONSTs.
7642 (output_file_start): Output .mode and .abi directives.
7643 (shiftcosts, addsubcosts, multcosts): Adjust.
7644 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
7645 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
7646 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
7647 bytes, not registers. Take into account the need for the
7648 SHcompact incoming args trampoline. Adjust all callers.
7649 (sh_expand_prologue): Take stack_regs into account. Call
7650 incoming args trampoline. Keep stack aligned as per SH5 ABI.
7651 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
7652 stack aligned as per SH5 ABI.
7653 (sh_builtin_saveregs): Support SH5 ABI.
7654 (sh_build_va_list, sh_va_start): Likewise.
7655 (initial_elimination_offset): Take alignment into account.
7656 Compute location of PR according to the SH5 stack frame.
7657 (arith_reg_operand): Reject branch-target registers.
7658 (shmedia_6bit_operand): New.
7659 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
7660 (target_reg_operand): Match DImode only. Accept SUBREGs.
7661 (target_operand): New.
7662 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
7663 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
7664 SIBCALL_REGS for SHmedia.
7665 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
7666 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
7667 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
7668 (TARGET_SWITCHES): New SH5 flags.
7669 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
7670 VALID_REGISTER_P to disable unsupported registers.
7671 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
7672 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
7673 (FUNCTION_ARG_PADDING): Define.
7674 (FASTEST_ALIGNMENT): Adjust.
7675 (SH_REGISTER_NAMES_INITIALIZER): New.
7676 (sh_register_names): Declare.
7677 (DEBUG_REGISTER_NAMES): Define.
7678 (REGISTER_NAMES): Define based on sh_register_names.
7679 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
7680 (sh_additional_register_names): Declare.
7681 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
7682 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
7683 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
7684 (REGISTER_NATURAL_MODE): Define.
7685 (FIRST_PSEUDO_REGISTER): Adjust.
7686 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
7687 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
7688 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
7689 (VECTOR_MODE_SUPPORTED_P): Define.
7690 (REG_CLASS_CONTENTS): Adjust.
7691 (SMALL_REGISTER_CLASSES): Adjust.
7692 (REG_ALLOC_ORDER): Adjust.
7693 (INDEX_REG_CLASS): Adjust.
7694 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
7695 (CONST_OK_FOR_LETTER_P): Adjust.
7696 (PREFERRED_RELOAD_CLASS): Adjust.
7697 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7698 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7699 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7700 (FIRST_FP_PARM_REG): Adjust.
7701 (CALL_POPS_ARGS): Define.
7702 (FUNCTION_ARG_REGNO_P): Adjust.
7703 (struct sh_args): New fields.
7704 (GET_SH_ARG_CLASS): Adjust.
7705 (INIT_CUMULATIVE_ARGS): Adjust.
7706 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7707 (FUNCTION_ARG_ADVANCE): Adjust.
7708 (FUNCTION_ARG): Adjust.
7709 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7710 (FUNCTION_ARG_CALLEE_COPIES): Define.
7711 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7712 (STRICT_ARGUMENT_NAMING): Define.
7713 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7714 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7715 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7716 (SETUP_INCOMING_VARARGS): Adjust.
7717 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7718 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7719 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7720 (SUBREG_OK_FOR_INDEX_P): Adjust.
7721 (EXTRA_CONSTRAINT_S): Update.
7722 (EXTRA_CONSTRAINT_T): New.
7723 (EXTRA_CONSTRAINT): Adjust.
7724 (GO_IF_LEGITIMATE_INDEX): Adjust.
7725 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7726 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7728 (MAX_MOVE_MAX): Define.
7730 (CONST_COSTS): Adjust.
7731 (REGISTER_MOVE_COST): Adjust.
7732 (BRANCH_COST): Adjust.
7733 (TEXT_SECTION_ASM_OP): Adjust.
7734 (DBX_REGISTER_NUMBER): Adjust.
7735 (ASM_OUTPUT_DOUBLE_INT): New.
7736 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7737 (PREDICATE_CODES): Adjust.
7738 (PROMOTE_MODE): Adjust.
7739 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7740 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7741 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7742 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7743 (DR0_REG, DR2_REG, DR4_REG): Renumber.
7744 (TR0_REG, TR1_REG, TR2_REG): New.
7745 (XD0_REG): Renumber.
7746 (UNSPEC_COMPACT_ARGS): New.
7747 (type): Added pt and ptabs.
7748 (length): Default to 4 on SHmedia. Default pt length to 12
7749 and 20 on SHmedia32 and SHmedia64, respectively.
7750 (pt): New function unit.
7751 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
7752 Add whitespace between operands of SHmedia instructions.
7754 (adddi3_media, addsi3_media): Adjust constraints.
7755 (subsi3) [SHmedia]: Force operand 1 into a register.
7756 (udivsi3_i1_media, udivsi3_i4_media): New.
7757 (udivsi3): Support SHmedia.
7758 (divsi3_i1_media, divsi3_i4_media): New.
7759 (divsi3): Support SHmedia.
7760 (anddi3, iordi3, xordi3): Adjust constraints.
7761 (zero_extendhidi2, zero_extendqidi2): New.
7762 (extendsidi2, extendhidi2, extendqidi2): New.
7763 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7764 (pop_e, pop_fpul, pop_4): Likewise.
7765 (movsi_media): Support FP and BT registers.
7766 (movsi_media_nofpu): New. Adjust splits to DImode.
7767 (lduw, ldub): Renamed to zero_extend* above.
7768 (movqi_media): Fix typo.
7769 (movdi_media): Support FP and BT registers.
7770 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
7771 (movdi_const_32bit): New.
7772 (shori_media): Require immediate operand. Use `u' for output.
7773 (movdf_media, movsf_media): Simplified.
7774 (movdf_media_nofpu, movsf_media_nofpu): New.
7775 (movdf, movsf): Adjust
7776 (movv2sf, movv2sf, movv16sf): New.
7777 (beq_media, beq_media_i): Adjust constraints. Don't use
7778 scratch BT register.
7779 (bne_media, bne_media_i): Likewise.
7780 (bgt_media, bgt_media_i): Likewise.
7781 (bge_media, bge_media_i): Likewise.
7782 (bgtu_media, bgtu_media_i): Likewise.
7783 (bgeu_media, bgeu_media_i): Likewise.
7784 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7785 bunordered): Emit jump insn. Force operands to registers when
7787 (jump_media, jump): Simplify.
7788 (call_compact, call_compact_rettramp): New.
7789 (call_value_compact, call_value_compact_rettramp): New.
7790 (call_media, call_value_media): Simplify.
7791 (sibcall_compact, sibcall_media): New.
7792 (call, call_value): Adjust for SHmedia and SHcompact.
7793 (sibcall, sibcall_value, untyped_call): Likewise.
7794 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7795 (indirect_jump): Adjust for SHmedia.
7796 (casesi_jump_media): New.
7797 (nop): Re-enable for SHmedia.
7798 (call_site): Restrict to SH1.
7799 (casesi): Adjust for SHmedia.
7800 (casesi_shift_media, casesi_load_media): New.
7801 (return): Explicitly use PR register. Call return trampoline
7803 (return_i): Explicitly use PR register.
7804 (shcompact_return_tramp, shcompact_return_tramp_i): New.
7805 (return_media): Adjust.
7806 (shcompact_incoming_args): New.
7808 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7809 (movstrsi): Disable on SH5.
7810 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7811 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7812 (subsf3, subsf3_media): Likewise.
7813 (mulsf3, mulsf3_media, mac_media): Likewise.
7814 (divsf3, divsf3_media): Likewise.
7815 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
7816 (floatsisf2, fux_truncsfsi2): Likewise.
7817 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
7819 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7820 (cmpunsf_media, cmpsf): Likewise.
7821 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7822 (abssf2, abssf2_media): Likewise.
7823 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7824 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7825 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
7826 (floatsidf2, fix_truncdfsi2): Likewise.
7827 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
7829 (cmpeqdf_media, cmpgtdf_media): Likewise.
7830 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7831 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7832 (absdf2, absdf2_media): Likewise.
7833 (extendsfdf2, extendsfdf2_media): Likewise.
7834 (truncsfdf2, truncsfdf2_media): Likewise.
7835 * config/sh/sh64.h: New file.
7836 * config/sh/t-sh64: New file.
7837 * config/sh/shmedia.h: New file.
7838 * config/sh/ushmedia.h: New file.
7839 * config/sh/sshmedia.h: New file.
7840 * configure.in: Added sh64-*-elf.
7841 * configure: Rebuilt.
7842 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
7843 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7844 (reg_class_from_letter): Use `b' for TARGET_REGS.
7845 (print_operand): Support `%M', `%m', `AND' and
7846 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
7847 (andcosts): Adjust for SHmedia.
7848 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7850 (target_reg_operand): New function.
7851 * config/sh/sh-protos.h (target_reg_operand): Declare.
7852 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7853 FP registers on SH5.
7854 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7856 (TARGET_REGISTER_P): New macro.
7857 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7858 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7859 (EXTRA_CONSTRAINT_S): New macro.
7860 (EXTRA_CONSTRAINT): Adjust.
7861 (FLOAT_TYPE_SIZE): Define to 32.
7862 (Pmode): DImode on SHmedia.
7863 (CONST_COSTS): Adjust for SHmedia literals.
7864 (PREDICATE_CODES): Added target_reg_operand.
7865 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7866 * config/sh/sh.md: Remove all attrs from SHmedia insns.
7867 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7868 (cmpdi): Accept SHmedia.
7869 (movdicc_false, movdicc_true): New insns.
7870 (movdicc): New expand.
7871 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7873 (addsi3_media): Match `S' constraint.
7874 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7875 (negdi2): Expand for SHmedia.
7876 (one_cmpldi2): New expand.
7877 (zero_extendsidi2): Change from expand to insn.
7878 (extendsidi2): Add constraints.
7879 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
7880 LD/ST address. Fix SI immediate loading split.
7881 (movhi_media, movqi_media, lduw, ldub): New insns.
7882 (movhi, movqi): Accept SHmedia.
7883 (shori_media, movdi_media): Relax input constraints. Split
7885 (movdf_media, movsf_media): New insn. New split to movdi.
7886 (movdf, movsf): Match on SHmedia.
7887 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7888 bgeu_media): New insns and splits. New insns with `_i' suffix.
7889 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7890 (bunordered): New expand.
7891 (jump_compact): Renamed from `jump'.
7892 (jump_media): New insn.
7894 (call_media, call_value_media): New insns.
7895 (call, call_value): Adjust.
7896 (indirect_jump_compact): Renamed from `indirect_jump'.
7897 (indirect_jump_media): New insn.
7898 (indirect_jump): New expand.
7899 (untyped_call, return): Accept SHmedia.
7900 (return_media): New insn.
7901 (prologue, epilogue, blockage): Accept SHmedia.
7902 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7903 (sunordered): New expand.
7904 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7905 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7906 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7907 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7908 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7909 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7910 abssf2_media): New insns.
7911 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7912 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7913 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7914 floatdidf2, floatsidf2_media, fix_truncdfdi2,
7915 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7916 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7917 absdf2_media): New insns.
7918 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7919 (extendsfdf2_media, truncdfsf2_media): New insns.
7920 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
7921 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7922 * config/sh/sh.h (CONST_OK_FOR_J): Document.
7923 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7924 * config/sh/sh.md (adddi3): New expand.
7925 (adddi3_media, adddi3z_media): New insns.
7926 (adddi3_compact): Renamed from adddi3.
7927 (addsi3_media): Use add.l r63 to add constant zero.
7928 (subdi3): New expand.
7929 (subdi3_media): New insn.
7930 (subdi3_compact): Renamed from subdi3.
7931 (mulsidi3): New expand.
7932 (mulsidi3_media): New insn.
7933 (mulsidi3_compact): Renamed from mulsidi3.
7934 (umulsidi3): New expand.
7935 (umulsidi3_media): New insn.
7936 (umulsidi3_compact): Renamed from umulsidi3.
7937 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7938 (ashlsi3, ashrsi3, lshrsi3): Use them.
7939 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7940 (ashldi3, ashrdi3, lshrdi3): Use them.
7941 (zero_extendsidi2): New expand.
7942 (extendsidi2): New insn.
7943 (movsi_media): New insn. Split to movdi to load constants.
7944 (movsi): Enable for shmedia.
7945 (movdi_media): New insn. Use shori_media to load wide constants.
7946 (short_media): New insn.
7947 (movdi): Enable for shmedia.
7948 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
7949 * config/sh/sh.h (CPP_SPEC): Added `m5'.
7950 (SUBTARGET_CPP_SPEC): Added `!m5'.
7951 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7952 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
7953 to all other SH variants.
7954 (TARGET_DEFAULT): Set to SH1_BIT.
7955 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7956 (BITS_PER_WORD): Raise to 64 on shmedia.
7957 (MAX_BITS_PER_WORD): Change to 64.
7958 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7959 (INT_TYPE_SIZE): Keep as 32.
7960 (UNITS_PER_WORD): Raise to 8 on shmedia.
7961 (MIN_UNITS_PER_WORD): Keep as 4.
7962 (POINTER_SIZE): Raise to 64 on shmedia.
7963 (CONST_OK_FOR_J): New macro.
7964 (CONST_OK_FOR_LETTER_P): Use it.
7965 (processor_type): Add PROCESSOR_SH5.
7966 * config/sh/sh.md: Conditionalize all expands, insns and
7967 splits to TARGET_SH1.
7969 (addsi3_compact): Renamed from...
7970 (addsi3): Now an expand.
7971 (addsi3_media, subsi3_media): New insns.
7972 (subsi3): Don't negate constants with SHmedia.
7974 * hooks.c: New file.
7975 * hooks.h: New file.
7976 * Makefile.in (HOOKS_H): New.
7977 (TARGET_DEF_H): Added $(HOOKS_H).
7978 (OBJS): Added hooks.o.
7979 (cfgcleanup.o, bb-reorder.o): Added target.h.
7980 (hooks.o): Added dependencies.
7981 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7982 (TARGET_INITIALIZER): this.
7983 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7984 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7985 * bb-reorder.c: Include target.h.
7986 (reorder_basic_blocks): Skip if cannot modify jumps.
7987 * cfgcleanup.c: Include target.h.
7988 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7990 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7992 * config/mips/mips.md (casesi_internal, casesi_internal_di):
7993 Protect jump delay slot instructions with .set noreorder and
7996 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7998 * config/mips/mips.md (casesi_internal_di): Calculate
7999 the index into the target offset table correctly.
8001 2002-02-08 Richard Henderson <rth@redhat.com>
8003 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
8004 * final.c (output_addr_const): Accept and discard SUBREG.
8005 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
8006 mark them unknown instead.
8007 (simplify_subtraction): Handle RTX_UNKNOWN.
8008 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
8010 2002-02-08 David Edelsohn <edelsohn@gnu.org>
8012 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
8014 2002-02-08 Richard Henderson <rth@redhat.com>
8016 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
8018 2002-02-08 Andreas Jaeger <aj@suse.de>
8020 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
8021 * config/i386/t-linux64: New file.
8023 2002-02-08 Jakub Jelinek <jakub@redhat.com>
8025 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
8026 * c-parse.in (compstmt): Clear last_expr_type.
8028 2002-02-07 Richard Henderson <rth@redhat.com>
8030 * loop.c (strength_reduce): Sink final_value when not
8033 2002-02-07 David O'Brien <obrien@FreeBSD.org>
8035 * config/sparc/freebsd.h: Fix mismatched spec {.
8037 2002-02-07 Richard Henderson <rth@redhat.com>
8039 * cfgrtl.c: Include recog.h and insn-config.h.
8040 (keep_with_call_p): Fix general_operand invocation.
8041 * Makefile.in (cfgrtl.o): Update dependencies.
8043 2002-02-07 Kazu Hirata <kazu@hxi.com>
8045 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
8046 comment. Accept HImode only if TARGET_H8300.
8048 2002-02-07 Eric Christopher <echristo@redhat.com>
8050 * config/mips/crtn.asm: Cleanup #ifdefs.
8052 2002-02-07 Eric Christopher <echristo@redhat.com>
8054 * config/mips/crti.asm: Add changes for mips16. mips16 uses
8055 register 7 as RA instead of $31.
8056 * config/mips/crtn.asm: Ditto.
8057 * config/mips/mips.c (mips_move_2words): Add case for
8058 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
8059 (compute_frame_size): Fix typo.
8060 (save_restore_insns): Ditto. Make documentation about using
8061 register $7 as return register more precise.
8062 (mips_expand_epilogue): Fix comment. Add code to work around not
8063 being able to add to the stack pointer directly.
8064 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
8065 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
8068 2002-02-07 Tom Rix <trix@redhat.com>
8070 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
8071 immediates in ldu and stdu DS opcode field.
8072 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
8073 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
8074 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
8076 2002-02-07 Jeff Sturm <jsturm@one-point.com>
8078 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
8079 offset for stack bias.
8081 2002-02-07 H.J. Lu <hjl@gnu.org>
8083 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
8085 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
8087 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
8089 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
8091 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
8092 * i386.c (x86_order_regs_for_local_alloc): New global function.
8093 * i386.h (REG_ALLOC_ORDER): CLeanup.
8094 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
8096 2002-02-07 Richard Henderson <rth@redhat.com>
8098 PR optimization/2463
8099 * alias.c (find_base_value): Recall base values for fixed hard regs.
8100 * loop.c (loop_regs_update): Don't use single_set on non-insns.
8102 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
8104 * config/mips/mips.md (define_delay) [mips16]: Adjust required
8107 2002-02-06 Richard Henderson <rth@redhat.com>
8110 * stmt.c (resolve_operand_name_1): Take more care with mixed
8111 named and unnamed operands.
8113 2002-02-06 Janis Johnson <janis187@us.ibm.com>
8114 Jan Hubicka <jh@suse.cz>
8116 * loop.c (remove_constant_addition): Avoid clobbering a shared
8119 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
8121 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
8122 * config/s390/t-linux64: New file.
8123 * config/s390/libgcc-glibc.ver: New file.
8125 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
8127 * config/s390/linux64.h: Delete file.
8128 * config/s390/s390x.h: New file.
8129 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
8130 as target header file.
8131 * config/s390/linux.h (TARGET_VERSION): Define depending on
8132 DEFAULT_TARGET_64BIT.
8133 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
8134 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
8135 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
8136 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
8137 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
8138 (EXTRA_SPEC): New define.
8139 * config/s390/s390.h (TARGET_VERSION): Define depending on
8140 DEFAULT_TARGET_64BIT.
8141 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
8143 2002-02-06 Jason Merrill <jason@redhat.com>
8145 * c-decl.c (finish_function): Warn about a non-void function with
8146 no return statement and no abnormal exit.
8147 (current_function_returns_abnormally): New variable.
8148 (start_function): Clear it.
8149 (struct c_language_function): Add returns_abnormally.
8150 (push_c_function_context): Save it.
8151 (pop_c_function_context): Restore it.
8152 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
8153 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
8154 an explicit return type.
8155 * c-tree.h: Declare current_function_returns_abnormally.
8156 (C_FUNCTION_IMPLICIT_INT): New macro.
8157 * c-typeck.c (build_function_call): Set it.
8158 (c_expand_return): Set current_function_returns_value even if the
8161 2002-02-06 Jakub Jelinek <jakub@redhat.com>
8164 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
8165 unsafe for reevaluation.
8167 2002-02-06 Jakub Jelinek <jakub@redhat.com>
8170 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
8171 EXPR_STMT, but COMPOUND_STMT, recurse into it.
8173 2002-02-06 Richard Henderson <rth@redhat.com>
8175 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
8176 be a general_operand. Dest for function value must be a pseudo.
8178 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8180 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
8181 as SYMBOL_REFs from the constant pool.
8183 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
8185 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
8186 passed by invisible reference.
8188 2002-02-05 Richard Henderson <rth@redhat.com>
8190 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
8192 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
8194 Implement using "base addresses" in insn operands as default.
8195 * config/mmix/mmix.c (mmix_conditional_register_usage): if
8196 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
8197 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
8198 used to read the rtx value.
8199 (mmix_target_asm_function_epilogue): Fix spacing.
8200 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
8201 (mmix_legitimate_address): Ditto.
8202 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
8203 should be loaded with a GETA insn. Don't allocate needless extra
8204 char for nul termination and fix misleading comment.
8205 (mmix_print_operand_address): Handle constants if
8206 TARGET_BASE_ADDRESSES.
8207 (mmix_output_register_setting): Use base addressing if
8208 TARGET_BASE_ADDRESSES and the number of insns is 3.
8209 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
8210 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
8211 to use R as constraint, add LDA to match s.
8212 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
8213 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
8214 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
8215 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
8216 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
8217 order with other fixed registers.
8218 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
8219 other parameter/call-clobbered registers.
8220 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
8221 -mbase-addresses, -mno-base-addresses.
8222 (MMIX Options): Ditto.
8224 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
8226 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
8228 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
8230 * config/rs6000/altivec.h: Change elem to _S_elem.
8232 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
8234 * config/netbsd.h (WCHAR_TYPE): Define.
8235 (WCHAR_TYPE_SIZE): Ditto.
8237 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
8238 (WCHAR_UNSIGNED): Ditto.
8239 (WCHAR_TYPE_SIZE): Ditto.
8241 * config/arm/netbsd.h: Likewise.
8242 * config/i386/netbsd-elf.h: Likewise.
8243 * config/i386/netbsd.h: Likewise.
8244 * config/m68k/netbsd-elf.h: Likewise.
8245 * config/m68k/netbsd.h: Likewise.
8246 * config/ns32k/netbsd.h: Likewise.
8247 * config/sparc/netbsd.h: Likewise.
8248 * config/vax/netbsd.: Likewise.
8250 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
8252 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
8253 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
8254 (TARGET_INITIALIZER): this.
8255 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
8256 (BITFIELD_NBYTES_LIMITED): Markup fix.
8257 * tree.h (default_ms_bitfield_layout_p): Declare.
8258 (record_layout_info): Added prev_field.
8259 * tree.c (default_ms_bitfield_layout_p): New fn.
8260 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
8261 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
8262 * stor-layout.c: Include target.h.
8263 (start_record_layout): Initialize prev_field.
8264 (place_field): Handle MS bit-field layout, and disregard
8265 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
8266 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
8267 * Makefile.in (stor-layout.o): Adjust dependencies.
8269 2002-02-05 Jason Merrill <jason@redhat.com>
8271 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
8273 2002-02-05 Andreas Jaeger <aj@suse.de>
8275 * crtstuff.c: Fix comments.
8277 2002-02-05 Richard Henderson <rth@redhat.com>
8280 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
8281 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
8284 * config/mips/mips.c (function_arg): Handle TImode.
8285 (function_arg_advance): Likewise.
8287 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8289 * config/rs6000/altivec.h (vec_step_help): Rename to
8292 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8294 * config/rs6000/altivec.h: Fix typos.
8296 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
8298 * config/arm/netbsd.h: Correct a comment.
8300 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8302 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
8303 building void typed builtins.
8305 * config/rs6000/altivec.h (vec_ld*): Fix typos.
8306 (vec_step): Implement for C++.
8308 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8310 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
8312 2002-02-04 Richard Henderson <rth@redhat.com>
8314 * combine.c (nonzero_bits): Re-introduce special case for
8315 sp/fp/ap wrt REGNO_POINTER_ALIGN.
8317 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8319 * doc/extend.texi: Warn about unsupported usage of altivec
8322 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
8323 (altivec_predicate_*): New.
8325 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
8326 Add C++ version of vec_*() functions.
8328 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
8329 (bdesc_2arg): Remove altivec predicates.
8330 (altivec_expand_builtin): Handle predicates.
8331 (altivec_init_builtins): Handle predicates.
8332 (altivec_expand_predicate_builtin): New.
8334 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8336 * pa.c (DO_FRAME_NOTES): Move forward.
8337 (store_reg): Revise handling of frame notes.
8338 (load_reg): Likewise.
8339 (set_reg_plus_d): Likewise.
8340 (hppa_expand_prologue): Likewise.
8341 (hppa_expand_epilogue): Likewise.
8343 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8345 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
8347 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8349 PR c/4475, c++/3780:
8350 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
8351 * c-common.h (SWITCH_TYPE): Define.
8352 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
8353 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
8354 Rename spareness variable to sparseness.
8355 (expand_end_case_type): Renamed from expand_end_case, use orig_type
8356 if non-NULL instead of TREE_TYPE (orig_index).
8357 * tree.h (expand_end_case_type): Renamed from expand_end_case.
8358 (expand_end_case): Define using expand_end_case_type.
8359 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
8360 to expand_end_case_type.
8361 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
8363 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8365 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
8366 (BIGGEST_ALIGNMENT): Change to 128.
8368 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8370 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
8372 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8374 * pa.md (call_internal_reg_64bit): Remove unused variable.
8376 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
8378 * config/arm/arm.h (machine_function): Add uses_anonymous_args
8380 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
8381 * config/arm/arm.c (current_function_anonymous_args): Delete,
8382 replace uses with cfun->machine->uses_anonymous_args.
8383 (arm_reorg): Do not reset uses_anonymous_args.
8385 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
8386 any geenral register.
8388 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
8390 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
8393 2002-02-04 Richard Henderson <rth@redhat.com>
8395 * combine.c (force_to_mode): Remove STACK_BIAS code.
8396 (nonzero_bits): Likewise. Replace sp/fp special case with
8397 REGNO_POINTER_ALIGN.
8399 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
8400 (HARD_FRAME_POINTER_REGNUM): New.
8401 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
8402 (FIXED_REGS, CALL_USED_REGS): Update.
8403 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
8404 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
8405 (HARD_REGNO_NREGS): Update for SFP.
8406 (STACK_POINTER_OFFSET): Include bias here ...
8407 (FIRST_PARM_OFFSET): ... not here.
8408 (STACK_BIAS): Remove.
8409 (INIT_EXPANDERS): New.
8410 (STARTING_FRAME_OFFSET): Do not include bias.
8411 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
8412 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
8413 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
8414 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
8415 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
8416 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
8417 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
8418 (MUST_SAVE_REGISTER): Likewise.
8419 (sparc_flat_function_prologue): Likewise.
8420 (sparc_flat_function_epilogue): Likewise.
8421 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
8422 (sparc_init_modes): SFP is GENERAL_REGS.
8423 (sparc_builtin_saveregs): SFP does not have bias applied.
8425 2002-02-04 Richard Henderson <rth@redhat.com>
8427 * config/alpha/alpha.c (current_function_is_thunk): Don't check
8428 current_function_is_thunk.
8429 (alpha_sa_mask): Distinguish between current_function_is_thunk
8430 called from ASM_OUTPUT_MI_THUNK and not.
8431 (alpha_does_function_need_gp): Thunks always need gp.
8432 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8433 (alpha_output_mi_thunk_osf): New.
8434 * config/alpha/alpha-protos.h: Update.
8435 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
8437 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
8439 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
8440 function types, not when they're taken away.
8442 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
8444 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
8445 CODE_LABEL and jump table when replacing a table jump with a
8448 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8450 * config/s390/s390-protos.h (legitimize_la_operand,
8451 s390_secondary_input_reload_class, s390_plus_operand,
8452 s390_expand_plus_operand): Add prototypes.
8454 config/s390/s390.c (s390_secondary_input_reload_class,
8455 s390_plus_operand, s390_expand_plus_operand): New functions.
8457 (struct s390_address): New member 'pointer'.
8458 (s390_decompose_address): Compute it.
8459 (legitimate_la_operand_p): Use it.
8460 (legitimize_la_operand): New function.
8461 (movti, movdi, movdf splitters): Call it.
8463 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
8464 (PREDICATE_CODES): Add s390_plus_operand.
8466 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
8467 (la_ccclobber): Allow GENERAL_REGS as output operand.
8469 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
8470 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
8471 (*la_64, *la_31, reload_indi, reload_insi): ... these.
8473 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8475 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
8476 register names for regular asm () construct.
8478 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8480 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
8483 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8485 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
8488 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
8490 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
8491 constant pool to be identical by string address and index.
8493 2002-02-04 Anthony Green <green@redhat.com>
8495 * output.h (SECTION_OVERRIDE): Define.
8496 * varasm.c (named_section): Obey SECTION_OVERRIDE.
8498 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
8500 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
8501 by existing arm*-*-netbsd* (a.out) target.
8502 (ns32k-*-netbsdelf*): Likewise.
8503 (sparc-*-netbsdelf*): Likewise.
8504 (vax-*-netbsdelf*): Likewise.
8506 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
8508 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
8509 headers and libobjc headers.
8511 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
8513 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
8514 (_mingw.h): Remove duplicate include.
8516 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
8518 * config.gcc: Set cpu_type to m68k for 68010, as well.
8519 (m68010-*-netbsdelf*): New...
8520 (m68k*-*-netbsdelf*): ...targets.
8521 * config/m68k/netbsd-elf.h: New file.
8523 2002-02-02 Kazu Hirata <kazu@hxi.com>
8525 * config/h8300/h8300.c (hand_list): Move inside function_arg.
8527 2002-02-02 Kazu Hirata <kazu@hxi.com>
8529 * config/h8300/h8300.c (h8_push_ops): Move inside
8531 (h8_pop_ops): Likewise.
8532 (h8_move_ops): Likewise.
8534 2002-02-02 Kazu Hirata <kazu@hxi.com>
8536 * config/h8300/h8300.c (os_task): Make it static.
8537 (monitor): Likewise.
8538 (pragma_saveall): Likewise.
8540 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
8542 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
8543 constant is a valid sign-extension for Pmode.
8545 2002-02-02 Kazu Hirata <kazu@hxi.com>
8547 * config/h8300/h8300.c: Fix formatting.
8549 2002-02-02 Kazu Hirata <kazu@hxi.com>
8551 * config/h8300/h8300.md: Fix formatting.
8553 2002-02-02 Kazu Hirata <kazu@hxi.com>
8555 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
8556 predicates of operands[1]. Split the patterns for each
8559 2002-02-02 Kazu Hirata <kazu@hxi.com>
8561 * config/h8300/h8300.md (xor patterns): Tighten the predicates
8562 of operands[1] to register_operand.
8564 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
8566 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
8567 * cpphash.c (_cpp_init_hashtable): Similarly.
8568 * cppinit.c (cpp_create_reader): Default the signed_char flag.
8569 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
8570 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
8571 (cpp_handle_option): Handle the new options.
8572 * cpplex.c (cpp_interpret_charconst): Use new flag.
8573 * cpplib.h (struct cpp_options): New member signed_char.
8574 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
8575 (cpp_options): Handle -fsigned-char and -funsigned-char.
8576 (static_specs): Remove signed_char_spec.
8577 (do_spec1): Don't handle %c.
8578 * system.h: Poison SIGNED_CHAR_SPEC.
8579 * tradcif.y (yylex): Use flag_signed_char.
8580 * tradcpp.h (flag_signed_char): New.
8581 * tradcpp.c (flag_signed_char): New.
8582 (main): Handle new command-line options.
8583 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
8585 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
8586 * avr/avr.h: Remove old comments.
8587 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
8588 (CC1_SPEC): Pass -fsigned-char if -mic*.
8589 (SIGNED_CHAR_SPEC): Remove.
8591 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
8593 2002-02-01 Eric Christopher <echristo@redhat.com>
8595 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
8596 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
8597 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
8598 (ASM_OUTPUT_REG_POP): Ditto.
8600 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
8602 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
8605 2002-02-02 Jakub Jelinek <jakub@redhat.com>
8607 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
8609 2002-02-02 Jakub Jelinek <jakub@redhat.com>
8612 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
8615 2002-02-01 Janis Johnson <janis187@us.ibm.com>
8617 * cfganal.c: Include tm_p.h.
8618 (keep_with_call_p): Fix the test that determines if a register holds
8619 the return value of a call.
8621 2002-02-01 DJ Delorie <dj@redhat.com>
8623 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
8624 we are given conflicting registers, switch to the other one we
8625 had allocated for us.
8626 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
8627 as TImode so we know when the "other" register is available.
8629 2002-02-01 David O'Brien <obrien@FreeBSD.org>
8631 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
8634 2002-02-01 Janis Johnson <janis187@us.ibm.com>
8636 * cfganal.c (keep_with_call_p): New function.
8637 (flow_call_edges_add): Prevent splitting a block between a call and
8638 a single-set instruction that should be kept in the same block.
8640 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
8642 * doc/install.texi (avr): Update outdated URL.
8644 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
8646 * config/stormy16/stormy16.md (pushqi): New.
8650 (movhi): Remove stack operands.
8652 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
8653 nonimmediate_nonstack_operand.
8654 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
8656 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
8659 2002-01-31 Jason Merrill <jason@redhat.com>
8661 * Makefile.in (c-parse.c): Handle .output file.
8662 * objc/Make-lang.in (objc-parse.c): Likewise.
8664 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
8666 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
8667 the -me[lb] option is given. Don't output the default flag
8670 2002-01-31 Zack Weinberg <zack@codesourcery.com>
8672 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
8673 the primary source file; this has not been done yet.
8674 * c-decl.c (c_expand_body): Reset input_filename from
8675 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
8677 2002-01-31 Kazu Hirata <kazu@hxi.com>
8679 * rtlanal.c (subreg_regno_offset): Do not use
8680 SUBREG_REGNO_OFFSET.
8681 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
8682 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
8684 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
8686 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
8687 version rather than GNATS version in --version output.
8689 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
8691 * ifcvt.c (noce_process_if_block): Make a copy of the destination
8692 when copying back from a temporary.
8694 2002-01-30 Richard Henderson <rth@redhat.com>
8696 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8697 and new_dest are the same.
8699 2002-01-30 Richard Henderson <rth@redhat.com>
8702 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8703 * rtl.c (note_insn_name): Update.
8704 * emit-rtl.c (remove_unnecessary_notes): Kill it.
8705 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
8706 to perform loop rotation.
8707 (expand_exit_loop_top_cond): New.
8708 * tree.h (expand_exit_loop_top_cond): Declare it.
8709 * c-semantics.c (genrtl_while_stmt): Use it.
8710 (genrtl_for_stmt): Likewise.
8712 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
8714 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8715 arguments to 64-bit boundaries on 64-bit ABIs.
8717 2002-01-30 Steve Ellcey <sje@cup.hp.com>
8719 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8721 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
8723 * c-decl.c (grokdeclarator): Handle type being a typedef for an
8726 2002-01-30 David O'Brien <obrien@FreeBSD.org>
8728 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8729 * config/sparc/sparc_bi.h: Remove file.
8730 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8732 2002-01-30 Richard Henderson <rth@redhat.com>
8734 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8736 2002-01-30 Zack Weinberg <zack@codesourcery.com>
8738 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8740 2002-01-30 Jason Merrill <jason@redhat.com>
8742 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8743 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8744 (reg_save): Use DW_CFA_offset_extended_sf instead.
8746 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8748 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8750 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8753 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
8755 * rs6000.md ("*call_value_local32"): Remove constraints.
8756 ("*call_value_local64"): Same.
8757 ("*call_value_indirect_nonlocal_aix32"): Same.
8758 ("*call_value_nonlocal_aix32"): Same.
8759 ("*call_value_indirect_nonlocal_aix64"): Same.
8760 ("*call_value_nonlocal_aix64"): Same.
8761 ("*call_value_nonlocal_sysv"): Same.
8763 2002-01-29 Richard Henderson <rth@redhat.com>
8765 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8767 2002-01-29 Richard Henderson <rth@redhat.com>
8769 * expr.c (force_operand): Ignore flag_pic for detecting pic
8771 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8772 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8773 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8774 instead of open-coded loop.
8775 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8776 be fixed when in use.
8778 2002-01-29 Richard Henderson <rth@redhat.com>
8780 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8781 * sched-rgn.c (propagate_deps): Update them.
8782 * sched-deps.c (sched_analyze_insn): Update them. Flush the
8783 clobbers list when either gets too long.
8785 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8787 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8788 and INDEX_REGS the same as GENERAL_REGS.
8789 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8791 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
8793 * tree.c (build_nonstandard_integer_type): Correct prototype.
8795 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
8797 * config/s390/s390.md (movstrsico, movstrdix_64,
8798 movstrsix_31): Remove, replace by ...
8799 (movstrdi_short, movstrsi_short, movstrdi_long,
8800 movstrsi_long): ... these. New.
8801 (movstrdi, movstrsi): Adapt.
8803 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8804 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8805 Remove unnecessary CC clobber.
8806 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8807 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8809 (divmoddi4): Don't partially initialize TImode register.
8811 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
8813 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8815 2002-01-29 Richard Henderson <rth@redhat.com>
8817 * flow.c (print_rtl_and_abort): Remove.
8818 (print_rtl_and_abort_fcn): Remove.
8819 (verify_local_live_at_start): Use dump_bb instead.
8820 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8821 (verify_wide_reg_1): Return 2 on mode test failure.
8823 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
8825 PR c/3325, c/3326, c/2511, c/3347
8826 * c-decl.c (enum_decl_context): Remove BITFIELD.
8827 (grokdeclarator): Take bitfield width as an input.
8828 Ensure bitfields are given the correct type. Perform
8829 bitfield width validation with build_bitfield_integer_type
8830 rather than waiting for finish_struct.
8831 (grok_typename, grok_typename_in_parm_context, start_decl,
8832 push_parmdecl, grokfield, start_function): Update calls to
8834 (build_bitfield_integer_type): New function.
8835 (finish_struct): Move bitfield validation to grokdeclarator
8836 and build_bitfield_integer_type.
8837 * tree.c (build_nonstandard_integer_type): New function.
8838 * tree.h (build_nonstandard_integer_type): New prototype.
8840 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8842 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8845 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8846 don't ignore unrecognized -W* options.
8847 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8848 * cpplib.h (cpp_handle_option): Adjust prototype.
8849 * c-decl.c (c_decode_options): Pass 0 as last argument to
8853 * gcc.c (cpp_unique_options): Split from cpp_options.
8854 (cpp_options): Source cpp_unique_options.
8855 (default_compilers): Use cpp_unique_options instead of cpp_options
8856 when used together with cc1_options.
8857 (static_specs): Add cpp_unique_options.
8858 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8859 when used together with cc1_options.
8861 2002-01-29 Kazu Hirata <kazu@hxi.com>
8863 * config/h8300/h8300-protos.h: Update the prototype of
8865 * config/h8300/h8300.c (output_a_shift): Remove an unused
8866 argument 'insn'. Remove redundant code.
8867 * config/h8300/h8300.md: Adust to the new prototype of
8870 2002-01-29 Kazu Hirata <kazu@hxi.com>
8872 * config/h8300/h8300-protos.h: Update the prototypes of
8873 emit_a_rotate and expand_a_rotate.
8874 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8875 first argument to 'enum rtx_code'.
8876 (expand_a_rotate): Likewise.
8878 2002-01-28 Kazu Hirata <kazu@hxi.com>
8880 * config/h8300/h8300-protos.h: Update the prototype of
8882 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8884 * config/h8300/h8300.md: Adjust to the new prototype.
8886 2002-01-28 Kazu Hirata <kazu@hxi.com>
8888 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8891 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
8893 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8894 is a fixed register before returning pic_offset_table_rtx.
8895 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8896 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8898 2002-01-28 Jason Merrill <jason@redhat.com>
8900 * dwarf2.h: Sync with src version.
8902 2002-01-28 Paul Koning <pkoning@equallogic.com>
8904 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8906 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8907 * doc/extend.texi (__builtin_prefetch): Update documentation:
8908 first argument is now const void ptr.
8910 2002-01-28 Kazu Hirata <kazu@hxi.com>
8912 * config/h8300/h8300-protos.h: Remove an unused prototype.
8914 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
8916 * toplev.c (lang_independent_init): Round up identifier size.
8918 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
8920 * config.gcc: Revert previous change.
8922 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
8924 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8926 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
8928 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8929 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
8930 other non-elf netbsd config frags.
8931 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8932 collect2 will does that.
8933 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8934 shared-lib frobbing will work.
8936 2002-01-28 Kazu Hirata <kazu@hxi.com>
8938 * config/h8300/h8300.h: Fix formatting.
8939 * config/h8300/h8300.md: Likewise.
8941 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
8943 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8944 the old, removed AAA_standards fix.
8945 * fixinc/fixincl.x: Rebuilt.
8947 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
8949 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8950 atexit call in crtbegin, hooked in after call to frame_dummy;
8951 register EH before registering __fini__start.
8953 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
8955 * config/rs6000/altivec.h: Remove spurious semicolons.
8957 2002-01-27 Kazu Hirata <kazu@hxi.com>
8959 * config/h8300/h8300.md: Replace dead bit extraction patterns
8960 with ones that work.
8962 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8964 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8965 if not STRICT_ALIGNMENT.
8966 * rtl.h (MEM_ALIGN): Likewise.
8968 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
8970 * doc/invoke.texi (-fdump-translation-unit): Revert this
8971 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
8973 2002-01-27 Kazu Hirata <kazu@hxi.com>
8975 * config/h8300/h8300.md (define_constants): New.
8976 (anonymous patterns) Use defined constants appropriately.
8978 2002-01-27 Kazu Hirata <kazu@hxi.com>
8980 * config/h8300/h8300.c (function_arg): Remove redundant code.
8982 2002-01-26 Richard Henderson <rth@redhat.com>
8984 * sched-deps.c (reg_pending_uses_head): New.
8985 (reg_pending_barrier): Rename from reg_pending_sets_all.
8986 (find_insn_list): Don't mark inline.
8987 (find_insn_mem_list): Remove.
8988 (add_dependence_list, add_dependence_list_and_free): New.
8989 (flush_pending_lists): Replace only_write param with separate
8990 for_read and for_write parameters. Update all callers. Use
8991 add_dependence_list_and_free.
8992 (sched_analyze_1): Do not add reg dependencies here; just set
8993 the pending bits. Use add_dependence_list.
8994 (sched_analyze_2): Likewise.
8995 (sched_analyze_insn): Replace schedule_barrier_found with
8996 reg_pending_barrier. Add all dependencies for pending reg
8997 uses, sets, and clobbers.
8998 (sched_analyze): Don't add reg dependencies for calls, just
8999 set pending bits. Use regs_invalidated_by_call. Treat
9000 sched_before_next_call as a normal list, not a fake insn.
9001 (init_deps): No funny init for sched_before_next_call.
9002 (free_deps): Free pending mems lists. Don't zero reg_last.
9003 (init_deps_global): Init reg_pending_uses.
9004 (finish_deps_global): Free it.
9005 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
9006 (find_insn_mem_list): Remove.
9007 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
9008 (propagate_deps): Use them. Zero temp mem lists.
9010 2002-01-26 Richard Henderson <rth@redhat.com>
9012 * Makefile.in (CRTSTUFF_CFLAGS): New.
9013 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
9014 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
9015 crtstuff.c instead of alpha assembly version.
9016 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
9017 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
9018 not FORCE_{INIT,FINI}_SECTION_ALIGN.
9019 (__do_global_dtors_aux): Mark used.
9020 (frame_dummy, __do_global_ctors_aux): Mark used.
9021 (fini_dummy, init_dummy): Remove.
9023 * config/alpha/crtbegin.asm: Remove file.
9024 * config/alpha/crtend.asm: Remove file.
9025 * config/alpha/t-crtbe: Remove file.
9026 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
9027 (LINK_EH_SPEC): New.
9029 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
9030 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
9031 calling constructors.
9032 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
9034 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
9035 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
9036 CRT_END_INIT_DUMMY hack.
9037 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
9038 FORCE_{INIT,FINI}_SECTION_ALIGN.
9040 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
9041 FORCE_{INIT,FINI}_SECTION_ALIGN.
9043 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
9044 invocation sequence.
9045 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
9047 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
9048 (FORCE_CODE_SECTION_ALIGN): New.
9050 2002-01-26 Richard Henderson <rth@redhat.com>
9052 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
9054 2002-01-26 Richard Henderson <rth@redhat.com>
9056 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
9057 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
9059 2002-01-26 Kazu Hirata <kazu@hxi.com>
9061 * config/h8300/h8300.md: Remove bit extraction patterns that
9062 cannot be triggered.
9063 Restrict each bit extraction pattern to a variant on which the
9066 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
9068 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
9070 2002-01-26 Kazu Hirata <kazu@hxi.com>
9072 * config/h8300/h8300.md: Remove bit test patterns that cannot
9074 Restrict each bit test pattern to a variant on which the
9077 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9079 * builtins.c (expand_builtin_strncat): Remove redundant check for
9082 2002-01-25 David O'Brien <obrien@FreeBSD.org>
9084 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
9086 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
9089 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
9091 * dbxout.c (dbxout_init): Use assemble_name rather than just
9092 stripping off the first character.
9093 (dbxout_source_file): Likewise.
9095 2002-01-25 DJ Delorie <dj@redhat.com>
9097 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
9098 using rtx_equal_p, not by comparing pointers.
9100 2002-01-25 Steve Ellcey <sje@cup.hp.com>
9102 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
9103 for PIC_OFFSET_TABLE_REGNUM.
9104 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
9106 2002-01-25 David O'Brien <obrien@FreeBSD.org>
9108 * config.gcc (x86_64-*-freebsd*): New target.
9109 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
9111 (i[34567]86-*-freebsd*): Don't include svr4.h.
9112 * config/i386/freebsd64.h: New file.
9114 2002-01-25 Douglas B Rupp <rupp@gnat.com>
9116 * config/alpha/x-vms (version): Make static.
9118 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
9119 in previous checkin.
9121 * Makefile.in (install-headers-cp): New target.
9122 * config.gcc (alpha-dec-*vms*): Install headers with
9125 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
9127 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
9130 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9132 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
9133 of compare_tree_int.
9134 (expand_builtin_strncat): Likewise.
9135 * c-decl.c (finish_struct): Use tree_low_cst.
9136 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
9137 * tree.c (compare_tree_int): Likewise.
9139 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
9141 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
9142 adjustments even if they are implemented by more than two insns.
9144 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
9146 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
9147 * df.h (struct ref): Kill B.
9148 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
9150 * basic-block.h (PROP_EQUAL_NOTES): New flag.
9151 * flow.c (propagate_one_insn): Use it.
9152 (mark_used_regs): Handle NIL.
9154 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
9156 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
9159 2002-01-25 David Edelsohn <edelsohn@gnu.org>
9161 * rs6000.md (prefetch): Make address V4SI mode so that the address
9162 is restricted to legitimate form for instruction.
9164 2002-01-25 Bob Wilson <bob.wilson@acm.org>
9166 * doc/install.texi (xtensa-*-elf): New target.
9167 (xtensa-*-linux*): New target.
9168 * doc/contrib.texi: Add myself.
9170 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
9172 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
9173 purpose register to hold an SImode (or smaller) value.
9175 2002-01-25 Jakub Jelinek <jakub@redhat.com>
9177 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
9179 * crtstuff.c: Likewise.
9181 2002-01-25 Kazu Hirata <kazu@hxi.com>
9183 * config/h8300/h8300.md (negation patterns): Tighten
9184 predicates to register_operand.
9186 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
9188 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
9191 * builtins.c (expand_builtin_prefetch): Same.
9193 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9195 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
9198 2002-01-24 Kazu Hirata <kazu@hxi.com>
9200 * config/h8300/h8300.c (print_operand): Remove support for
9201 operand character 'A'.
9202 * config/h8300/h8300.md (three anonymous patterns): Replace
9203 operand character 'A' with either 'T' or 'S'.
9205 2002-01-24 Kazu Hirata <kazu@hxi.com>
9207 * config/h8300/h8300.c (print_operand): Remove support for
9208 operand character 'U'.
9210 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
9212 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
9214 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
9216 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
9217 values to be assigned to the stack pointer.
9219 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
9221 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
9222 to const_double needs to be done right for big-endian systems.
9224 2002-01-24 Jason Merrill <jason@redhat.com>
9227 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
9228 to can_throw_internal.
9230 2002-01-23 Richard Henderson <rth@redhat.com>
9232 * fold-const.c (fold): Change UINT_MAX test to check vs precision
9233 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
9235 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9237 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
9238 (symGOT2reg): Use them, then set as GOT value as unchanging.
9239 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
9240 as a temporary, if possible.
9241 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
9242 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
9244 2002-01-23 Kazu Hirata <kazu@hxi.com>
9246 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
9247 accept to accept 0x80 as operands[2].
9249 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9251 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
9253 2002-01-23 Richard Henderson <rth@redhat.com>
9255 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
9257 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
9259 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
9260 (parmlist_or_identifiers_1): Verify that only a parmlist follows
9263 2002-01-23 Richard Henderson <rth@redhat.com>
9265 * expr.c (move_by_pieces_1): Extend size before negation.
9267 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
9268 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
9269 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
9270 * config/m68k/t-m68kelf: Likewise.
9272 2002-01-23 Bob Wilson <bob.wilson@acm.org>
9274 * config/xtensa/elf.h: New file.
9275 * config/xtensa/lib1funcs.asm: New file.
9276 * config/xtensa/lib2funcs.S: New file.
9277 * config/xtensa/linux.h: New file.
9278 * config/xtensa/t-xtensa: New file.
9279 * config/xtensa/xtensa-config.h: New file.
9280 * config/xtensa/xtensa-protos.h: New file.
9281 * config/xtensa/xtensa.c: New file.
9282 * config/xtensa/xtensa.h: New file.
9283 * config/xtensa/xtensa.md: New file.
9284 * config.gcc (xtensa-*-elf*): New target.
9285 (xtensa-*-linux*): New target.
9286 * cse.c (canon_hash): Compare rtx pointers instead of register
9287 numbers. This is required for the Xtensa port.
9288 * integrate.c (copy_insn_list): Handle case where the static
9289 chain is in memory and the memory address has to be copied to
9291 * doc/invoke.texi (Option Summary): Add Xtensa options.
9292 (Xtensa Options): New node.
9293 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
9295 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9297 * diagnostic.c (internal_error): Do ICE suppression only
9298 when ENABLE_CHECKING is not defined.
9300 * c-typeck.c (require_complete_type): Return error_mark_node
9301 if type is error_mark_node.
9303 2002-01-23 Janis Johnson <janis187@us.ibm.com>
9305 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
9306 -Os and issue a warning.
9308 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9310 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
9311 current (lack of) need for host configuration by hand.
9313 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
9314 references. Documentation of some target macros moved from
9315 hostconfig.texi to tm.texi.
9317 2002-01-23 Will Cohen <wcohen@redhat.com>
9319 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
9322 2002-01-23 Kazu Hirata <kazu@hxi.com>
9324 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
9327 2002-01-23 Jason Merrill <jason@redhat.com>
9329 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
9331 * function.c (assign_parms): Don't put args of inline functions
9332 into registers when not optimizing.
9334 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
9336 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
9337 (prologue_use): New pattern.
9338 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
9339 preference to gen_rtx_USE.
9340 (thumb_expand_prologue): Use gen_prologue_use in preference to
9342 (thumb_expand_epilogue): Use gen_prologue_use in preference to
9345 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
9347 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
9349 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
9352 * doc/extend.texi: Correct documentation of __alignof__.
9354 2002-01-22 Zack Weinberg <zack@codesourcery.com>
9356 * params.h: Rename arguments of DEFPARAM so that it will be
9357 recognized as a translation keyword.
9359 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9361 * extend.texi: Document altivec functions.
9362 Fix N-bit adjectives in X86 builtin documentation.
9364 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
9366 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
9367 auto_inc_dec values.
9369 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
9371 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
9373 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
9375 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
9377 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
9379 2002-01-22 Richard Henderson <rth@redhat.com>
9381 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
9382 copy_insn not copy_rtx.
9384 2002-01-23 Alan Modra <amodra@bigpond.net.au>
9386 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
9387 "nonzero" as that might add "1" bits. Ensure "constop" is
9388 properly sign extened.
9389 (force_to_mode): Tweak for sign extended constop.
9391 2002-01-22 Richard Henderson <rth@redhat.com>
9393 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
9394 for_each_rtx instead of assuming we're already looking at the MEM.
9395 (split_small_symbolic_mem_operand): Likewise.
9396 * config/alpha/alpha.h (PREDICATE_CODES): Update.
9397 * config/alpha/alpha.md (small symbolic memory splitters): Update.
9399 2002-01-22 Richard Henderson <rth@redhat.com>
9401 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
9402 sequence number for the literal.
9403 (divmoddi_internal_er): Likewise.
9405 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
9408 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
9409 in LIBICONV variable.
9410 * configure: Regenerated.
9412 2002-01-22 Krister Walfridsson <cato@df.lth.se>
9414 * dependence.c (build_def_use): Remove array_idx.
9416 * dwarfout.c (last_filename): Remove.
9417 (output_compile_unit_die): Remove last_filename.
9419 2002-01-22 Roger Sayle <roger@eyesopen.com>
9420 Richard Henderson <rth@redhat.com>
9423 * fold-const.c (fold): Optimize unsigned comparisons against
9424 UINT_MAX (and similar unsigned constants).
9426 2002-01-22 Janis Johnson <janis187@us.ibm.com>
9428 * Makefile.in (loop.o): Depend on OPTABS_H.
9429 * loop.c (emit_prefetch_instructions): Check the prefetch operand
9430 against the predicate.
9433 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
9434 for the address operand.
9436 2002-01-22 Richard Henderson <rth@redhat.com>
9438 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
9440 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
9443 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
9446 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
9448 * config.gcc (x86_64-*-netbsd*): New target.
9449 * config/i386/netbsd64.h: New file.
9451 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9453 * regrename.c (kill_value): Fix typo.
9455 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9457 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
9459 * config/rs6000/rs6000.h: Same.
9461 * function.c (instantiate_virtual_regs): Remove
9462 STARTING_FRAME_PHASE.
9463 (assign_stack_local_1): Same.
9464 Calculate frame phase.
9466 2002-01-22 Nick Clifton <nickc@redhat.com>
9468 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
9469 variable declaration to outer scope in order to simplify
9471 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
9472 arm_hard_regno_mode_ok.
9473 * config/arm/arm-protos.h: Add a prototype for
9474 arm_hard_regno_mode_ok.
9475 * config/arm/arm.c (soft_df_operand): Remove now redundant
9476 check for DImode values using IP_REGNUM.
9477 (nonimmediate_soft_df_operand): Remove now redundant check for
9478 DImode values using IP_REGNUM.
9479 (arm_hard_regno_mode_ok): New function. New check: make sure
9480 that DImode values are not stored in IP_REGNUM.
9482 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
9484 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
9486 2002-01-22 Jason Merrill <jason@redhat.com>
9488 * c-semantics.c (genrtl_compound_stmt): Only check nesting
9489 consistency if this COMPOUND_STMT is scoped.
9491 2002-01-22 Kazu Hirata <kazu@hxi.com>
9493 * predict.c: Fix formatting.
9494 * print-tree.c: Likewise.
9495 * protoize.c: Likewise.
9498 * sbitmap.h: Likewise.
9500 * sched-deps.c: Likewise.
9501 * sched-vis.c: Likewise.
9502 * sdbout.c: Likewise.
9503 * sibcall.c: Likewise.
9505 * ssa-ccp.c: Likewise.
9506 * ssa-dce.c: Likewise.
9508 * stor-layout.c: Likewise.
9509 * system.h: Likewise.
9511 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9513 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
9514 if fits in bounds of base type.
9516 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
9517 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
9518 (add_bound_info, default): If can't find a context, make a
9520 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
9522 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
9524 * c-typeck.c (parser_build_binary_op): If result from
9525 build_binary_op is ERROR_MARK just return error_mark_node without
9528 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
9530 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
9531 Split a.out-specific bits into...
9532 * config/netbsd-aout.h: ...this.
9533 * config/netbsd-elf.h: New file.
9534 * config/alpha/netbsd-elf.h: Remove.
9535 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
9536 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
9537 (STARTFILE_SPEC): Remove redundant definition.
9538 (ENDFILE_SPEC): Likewise.
9539 (LINK_SPEC): Likewise.
9540 (CPP_SPEC): Likewise.
9541 (ASM_SPEC): Likewise.
9542 (LIB_SPEC): Likewise.
9543 (SWITCH_TAKES_ARG): Likewise.
9544 (TARGET_MEM_FUNCTIONS): Likewise.
9545 (CPP_PREDEFINES): Redefine.
9546 (ASM_FINAL_SPEC): Remove redefinition.
9547 (ASM_COMMENT_START): Redefine.
9548 (FUNCTION_PROFILER): Define.
9549 (TARGET_VERSION): Redefine.
9550 Comment and formatting cleanup.
9551 * config/i386/netbsd.h: Include <netbsd-aout.h>.
9552 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
9553 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
9554 big- or little-endian.
9555 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
9556 * config.gcc (*-*-netbsd*): Add definitions common to all
9558 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
9559 gnu_ld definitions. Add netbsd-elf.h to and remove
9560 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
9561 tmake_file, and don't lose previous tmake_file contents.
9562 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
9563 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
9564 gnu_ld definitions. Add netbsd-elf.h to tm_file.
9565 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
9566 (mipsel-*-netbsd*): Rename this to...
9567 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
9568 mips/little.h to tm_file for mips*el-*.
9569 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
9570 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
9571 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
9573 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
9575 * pa-protos.h (reg_before_reload_operand): New function prototype.
9576 * pa.c (reg_before_reload_operand): New function implementation.
9577 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
9580 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9582 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
9584 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
9586 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
9587 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
9588 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
9589 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
9590 (ENDFILE_SPEC): Undefine.
9591 (STARTFILE_SPEC): Redefine for PA.
9593 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9595 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
9597 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
9599 * config.gcc: Add entries to supported PowerPC --with-cpu
9602 2002-01-21 Jakub Jelinek <jakub@redhat.com>
9604 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
9605 true for 64-bit mode only SSE registers in 32-bit mode.
9607 2002-01-21 Kazu Hirata <kazu@hxi.com>
9609 * unwind-dw2.c: Fix formatting.
9610 * unwind-dw2-fde.c: Likewise.
9611 * unwind-dw2-fde.h: Likewise.
9612 * unwind-pe.h: Likewise.
9613 * varasm.c: Likewise.
9614 * varray.h: Likewise.
9616 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
9618 Remove workaround for register stack overwrite bug in mmix.
9619 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
9620 support for TARGET_REG_STACK_FILL_BUG.
9621 * config/mmix/mmix.h: Remove member has_call_without_parameters.
9622 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
9624 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
9625 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
9626 -mno-reg-stack-fill-bug-workaround.
9627 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
9628 machine member has_call_without_parameters.
9629 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
9630 -mreg-stack-fill-bug-workaround and
9631 -mno-reg-stack-fill-bug-workaround.
9632 (MMIX Options): Ditto.
9634 2002-01-21 Kazu Hirata <kazu@hxi.com>
9636 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
9638 Remove redundant code.
9640 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
9642 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
9643 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9644 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9645 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
9646 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
9647 out target macro definitions and non-target-specific comments
9648 mostly taken from old versions of the manual.
9650 2002-01-20 Kazu Hirata <kazu@hxi.com>
9652 * config/h8300/h8300.h: Fix comment formatting.
9653 * config/ia64/aix.h: Likewise.
9654 * config/ia64/ia64-protos.h: Likewise.
9655 * config/ia64/ia64.c: Likewise.
9656 * config/ia64/ia64.h: Likewise.
9657 * config/ia64/ia64intrin.h: Likewise.
9658 * config/ia64/linux.h: Likewise.
9659 * config/ia64/unwind-aix.c: Likewise.
9660 * config/ia64/unwind-ia64.c: Likewise.
9662 2002-01-20 Kazu Hirata <kazu@hxi.com>
9664 * config/h8300/h8300.c: Revise comments about shift code.
9666 2002-01-20 Kazu Hirata <kazu@hxi.com>
9668 * config/h8300/h8300.c (function_arg): Update a comment.
9670 2002-01-20 Kazu Hirata <kazu@hxi.com>
9672 * config/h8300/h8300.md: Update the comments at the beginning
9675 2002-01-20 Kazu Hirata <kazu@hxi.com>
9677 * config/i370/i370.c: Fix comment formatting.
9678 * config/i370/i370.h: Likewise.
9679 * config/i370/i370.md: Likewise.
9680 * config/i370/linux.h: Likewise.
9682 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9684 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
9686 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
9687 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
9690 2002-01-20 Graham Stott <grahams@redhat.com>
9692 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
9694 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
9696 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9698 2002-01-19 Tom Rix <trix@redhat.com>
9700 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9702 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
9704 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9706 * function.c (assign_stack_local_1): Adjust x_frame_offset with
9707 STARTING_FRAME_PHASE.
9708 (STARTING_FRAME_PHASE): New.
9709 (instantiate_virtual_regs): Check saneness of
9710 STARTING_FRAME_PHASE.
9712 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9714 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
9716 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9718 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
9720 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9721 be used for bootstrapping GCC 3.0.
9723 2002-01-18 Kazu Hirata <kazu@hxi.com>
9725 * config/h8300/h8300.md: Fix an insn length.
9727 2002-01-18 Kazu Hirata <kazu@hxi.com>
9729 * bitmap.h: Fix comment formatting.
9730 * combine.c: Likewise.
9731 * cppfiles.c: Likewise.
9732 * c-pragma.h: Likewise.
9733 * c-typeck.c: Likewise.
9735 * dwarf2out.c: Likewise.
9736 * function.c: Likewise.
9738 * genattrtab.c: Likewise.
9739 * gthr-win32.h: Likewise.
9740 * haifa-sched.c: Likewise.
9741 * predict.c: Likewise.
9742 * rtlanal.c: Likewise.
9744 * unwind-dw2-fde.h: Likewise.
9745 * unwind-pe.h: Likewise.
9746 * vmsdbgout.c: Likewise.
9748 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9750 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9751 if type_required and passed decl.
9753 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
9755 * config.gcc (cpu_type): Include altivec.h in powerpc
9759 * config/rs6000/altivec.h: New.
9761 2002-01-17 David Edelsohn <edelsohn@gnu.org>
9763 * doc/install.texi (*-ibm-aix*): Update assembler and exception
9764 handling information.
9765 * doc/trouble.texi (Interoperation): Add libstdc++ information
9767 (Misunderstandings): Add template instantiation and static template
9768 member information for AIX.
9770 2002-01-17 Jason Merrill <jason@redhat.com>
9772 * dbxout.c (dbxout_type): Support const and volatile.
9774 * except.c (add_partial_entry): Remove backwards compatibility code.
9775 (end_protect_partials): Likewise.
9777 2002-01-17 Jakub Jelinek <jakub@redhat.com>
9779 * config/ia64/ia64.md (prologue_use): New.
9780 * config/ia64/ia64.c (ia64_expand_prologue): Use
9781 gen_prologue_use instead of gen_rtx_USE.
9782 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9783 as CODE_FOR_pred_rel_mutex.
9784 (ia64_sched_reorder2): Likewise.
9786 2002-01-16 Eric Christopher <echristo@redhat.com>
9788 * config/mips/r3900.h: Reformat.
9789 (SUBTARGET_CPP_SIZE_SPEC): Remove.
9790 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9791 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9792 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9793 * config/mips/t-elf: Remove mips3 multilib.
9795 2002-01-16 H.J. Lu <hjl@gnu.org>
9797 * config/mips/linux.h: Include "mips/abi64.h".
9799 2002-01-16 H.J. Lu <hjl@gnu.org>
9801 * config/mips/t-linux: New.
9803 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9805 * config/mips/linux.h: Don't include "gofast.h".
9806 (INIT_SUBTARGET_OPTABS): Removed.
9808 2002-01-16 Kazu Hirata <kazu@hxi.com>
9810 * config/h8300/h8300-protos.h: Replace emit_a_shift with
9812 * config/h8300/h8300.c: Likewise.
9813 * config/h8300/h8300.md: Likewise.
9815 2002-01-16 Kazu Hirata <kazu@hxi.com>
9817 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9818 spaces after an opcode name.
9819 (pushqi1_h8300hs): Likewise.
9820 (pushhi1_h8300hs): Likewise.
9822 2002-01-16 Kazu Hirata <kazu@hxi.com>
9824 * doc/extend.texi: Replace "option" with "attribute"
9827 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9829 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9830 (and:DI () (const_int -8)).
9831 (split_small_symbolic_mem_operand): Split
9832 (mem (and:DI () (const_int -8)).
9834 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9837 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9838 same way as TYPE_IMUL.
9839 (ultrasparc_sched_reorder): Likewise.
9840 * config/sparc/sparc.md (type): Add comment to update
9841 ultrasparc_sched_reorder when making changes.
9843 2002-01-16 Kazu Hirata <kazu@hxi.com>
9845 * doc/invoke.texi: Change the dump file name of block
9846 reordering pass from 28.bbro to 29.bbro.
9849 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
9851 * i386.md (minsf splitter): Fix pasto.
9853 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
9855 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9856 to frame pointer initialisation instruction.
9857 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9858 initialisation instruction.
9859 (soft_df_operand): Do not accept the IP register.
9860 (nonimmediate_soft_df_operand): Do not accept the IP register.
9862 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9865 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9866 MASK_V8 being both set.
9868 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
9870 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9871 insn for GOT register; add REG_MAYBE_DEAD notes instead.
9872 config/s390/s390.md (call, call_value): Add GOT register to
9873 CALL_INSN_FUNCTION_USAGE where needed.
9874 (call_exp, call_value_exp): New.
9876 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
9878 * config/arm/arm.c: General formatting tidy up.
9880 2002-01-16 Graham Stott <grahams@redhat.com>
9882 * calls.c (try_to_integrate): Use "(size_t)" intermediate
9883 cast and when casting an integer literal to "rtx" pointer.
9884 (expand_call): Likewise.
9885 * flow.c (try_pre_increment): Likewise.
9886 (find_use_as_address): Likewise.
9887 * integrate.c (expand_iline_function): Likewise.
9888 * regmove.c (try_auto_increment): Likewise.
9890 2002-01-16 Graham Stott <grahams@redhat.com>
9892 * sched-rgn.c (passed): Use sbitmap_free.
9895 (in_queue): Likewise.
9896 (in_stack): Likewise.
9898 2002-01-15 Eric Christopher <echristo@redhat.com>
9900 * flow.c (propagate_one_insn): Change to use fatal_insn.
9902 2002-01-15 Kazu Hirata <kazu@hxi.com>
9904 * expmed.c (extract_fixed_bit_field): Remove unused code.
9905 * system.h: Poison SLOW_ZERO_EXTEND.
9906 * doc/tm.texi: Remove.
9907 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9908 * config/arm/arm.h: Likewise.
9909 * config/avr/avr.h: Likewise.
9910 * config/clipper/clipper.h: Likewise.
9911 * config/convex/convex.h: Likewise.
9912 * config/d30v/d30v.h: Likewise.
9913 * config/dsp16xx/dsp16xx.h: Likewise.
9914 * config/elxsi/elxsi.h: Likewise.
9915 * config/fr30/fr30.h: Likewise.
9916 * config/h8300/h8300.h: Likewise.
9917 * config/i370/i370.h: Likewise.
9918 * config/i386/i386.h: Likewise.
9919 * config/m68k/m68k.h: Likewise.
9920 * config/mips/mips.h: Likewise.
9921 * config/ns32k/ns32k.h: Likewise.
9922 * config/pdp11/pdp11.h: Likewise.
9923 * config/pj/pj.h: Likewise.
9924 * config/s390/s390.h: Likewise.
9925 * config/sh/sh.h: Likewise.
9926 * config/stormy16/stormy16.h: Likewise.
9927 * config/v850/v850.h: Likewise.
9928 * config/vax/vax.h: Likewise.
9929 * config/we32k/we32k.h: Likewise.
9931 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
9933 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9934 (altivec_lvsl): Change constraint to b.
9935 (altivec_lvsr): Same.
9936 (altivec_lvebx): Same.
9937 (altivec_lvehx): Same.
9938 (altivec_lvewx): Same.
9939 (altivec_lvxl): Same.
9940 (altivec_lvx): Same.
9941 (altivec_stvx): Add parallel.
9942 (altivec_stvxl): Same.
9943 (altivec_stvehx): Same.
9944 (altivec_stvebx): Same.
9945 (altivec_stvebx): Same.
9947 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
9949 * config.gcc: Change altivec.h to altivec-defs.h.
9951 * config/rs6000/altivec.h: Delete.
9953 * config/rs6000/altivec-defs.h: Add.
9955 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
9957 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9960 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9961 less than or equal to eight bytes.
9963 * vax.md (andsi3): Remove constraints and change SET destination
9964 operand type to nonimmediate_operand.
9965 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
9966 when it is a CONST_INT.
9968 2002-01-15 Jason Merrill <jason@redhat.com>
9970 * c-common.def (FILE_STMT): New code.
9971 * c-common.c (statement_code_p): It's a statement.
9972 * c-common.h (stmt_tree_s): Add x_last_filename.
9973 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9974 (last_expr_filename): New macro.
9975 * c-semantics.c (begin_stmt_tree): Initialize it.
9976 (add_stmt): If the filename changed, also insert a
9978 (expand_stmt): Handle seeing one.
9980 2002-01-15 Eric Christopher <echristo@redhat.com>
9982 * flow.c (propagate_one_insn): Add error message and print out
9985 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
9987 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9988 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9989 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9990 TRAMPOLINE_ALIGNMENT.
9991 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
9993 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9994 PCC_BITFIELD_TYPE_MATTERS.
9995 * config/interix.h (STDC_VALUE): Remove. Use
9996 STDC_0_IN_SYSTEM_HEADERS.
9997 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9998 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9999 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
10001 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
10003 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
10004 not work on this platform currently.
10006 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
10008 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
10009 readonly_warning in _().
10011 2002-01-15 Douglas B Rupp <rupp@gnat.com>
10013 * gcc.c (delete_if_ordinary): Backout previous change.
10015 2002-01-15 Kazu Hirata <kazu@hxi.com>
10017 * config/h8300/h8300.c (print_operand): Remove support for
10018 unused operand characters.
10020 * read-rtl.c: Fix formatting.
10021 * real.c: Likewise.
10022 * recog.c: Likewise.
10023 * regclass.c: Likewise.
10024 * regmove.c: Likewise.
10025 * reg-stack.c: Likewise.
10026 * reload1.c: Likewise.
10027 * rtlanal.c: Likewise.
10029 2002-01-15 Kazu Hirata <kazu@hxi.com>
10031 * config/i386/i386.c: Fix formatting.
10033 2002-01-15 Jakub Jelinek <jakub@redhat.com>
10035 * c-typeck.c (process_init_element): Don't save_expr
10036 COMPOUND_LITERAL_EXPR if just its initializer will be used.
10038 2002-01-15 David Edelsohn <edelsohn@gnu.org>
10040 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
10041 emit optional traceback table if optimize_size or TARGET_ELF.
10042 * config/rs6000/rs6000.md (prefetch): New.
10044 2002-01-15 Andreas Jaeger <aj@suse.de>
10046 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
10048 2002-01-15 Kazu Hirata <kazu@hxi.com>
10050 * mips-tfile.c: Fix formatting.
10052 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
10054 * unroll.c (final_reg_note_copy): Fix previous commit.
10056 2002-01-14 Kazu Hirata <kazu@hxi.com>
10058 * config/h8300/h8300-protos.h: Remove the prototype for
10060 * config/h8300/h8300.c (eq_operator): Remove.
10062 2002-01-14 Richard Henderson <rth@redhat.com>
10064 * config/i386/i386.md (prefetch): Tidy.
10065 (prefetch_3dnow): Fix locality operand.
10067 2002-01-14 Richard Henderson <rth@redhat.com>
10069 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
10070 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
10072 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
10074 * reload1.c (reload_combine): Pass reg_sum replacement through
10075 copy_rtx in loop performing multiple changes.
10077 2002-01-14 Jakub Jelinek <jakub@redhat.com>
10079 * except.c (remove_unreachable_regions): New.
10080 (free_eh_status): Clear exception_handler_labels.
10081 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
10082 (find_exception_handler_labels): Don't add the same label more than
10084 (remove_exception_handler_label): Don't die if
10085 find_exception_handler_labels hasn't been called for the current
10088 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
10090 * toplev.c (rest_of_compilation): Rebuild jump labels after
10093 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
10095 * doc/extend.texi: Move documentation of X86 built-in functions
10097 * doc/invoke.texi: From here.
10098 * doc/sourcebuild.texi: Document location of documentation for
10099 machine built-in functions.
10101 2002-01-13 Christopher Faylor <cgf@redhat.com>
10103 * cppfiles.c (TEST_THRESHOLD): New macro.
10104 (SHOULD_MMAP): Ditto.
10105 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
10108 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
10110 * unroll.c (final_reg_note_copy): Properly handle
10112 (unroll_loops): Fix LOOP_CONDITION heuristics.
10114 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
10116 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
10117 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
10119 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
10121 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
10124 2002-01-14 Tom Rix <trix@redhat.com>
10126 * config/rs6000/rs6000.md: Fix typo with sradi.
10128 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
10130 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
10131 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
10132 (clrstrdi, clrstrsi): Adapt callers.
10134 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
10136 (movti splitter): Never use register 0 as base register.
10138 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
10140 * combine.c (simplify_shift_const): Always generate new rtx
10141 for shift expression instead of reusing given expression.
10143 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10145 * config/alpha/alpha.c (alpha_expand_mov): Don't call
10146 alpha_legitimize_address unless mode is Pmode.
10148 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
10150 * doc/md.texi (Modifiers): Document the '*' constraint for the
10153 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
10154 * doc/extend.texi (Function Attributes): 'interrupt' is valid
10157 2002-01-13 Richard Henderson <rth@redhat.com>
10159 * reload.c (find_reloads): Use a hard reg destination as reload reg
10160 for an input reload of the source.
10162 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10164 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
10167 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
10169 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10170 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10172 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
10174 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10176 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
10178 2002-01-12 Tom Rix <trix@redhat.com>
10180 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
10183 2002-01-12 Richard Henderson <rth@redhat.com>
10185 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
10187 * doc/invoke.texi: Update Alpha options.
10189 * doc/invoke.texi: Update i386 built-in function lists.
10191 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
10193 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
10194 referencing outside.
10196 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10198 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
10199 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
10200 offsets, and change line folding.
10201 * optabs.c (expand_binop): Remove warnings.
10202 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
10204 2002-01-12 Graham Stott <grahams@redhat.com>
10206 * attribs.c (handle_deprecated_attribute): constify WHAT.
10207 * diagnostic.c (warn_deprecated_use): Add braces, fixes
10208 dangling else warning and constify WHAT.
10209 * except.h (struct function, struct inline_remap): Move
10210 struct tag forward defs before all prototypes.
10211 (duplicate_eh_regions): Whitespace.
10213 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
10215 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10216 MODE_BASE_REG_CLASS.
10217 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
10219 2002-01-12 Richard Henderson <rth@redhat.com>
10221 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
10222 (ix86_expand_vector_move): New.
10223 (bdesc_2arg): Remove andps, andnps, orps, xorps.
10224 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
10225 Remove old prefetch builtins. Special case the logicals removed above.
10226 (ix86_expand_builtin): Likewise.
10227 (safe_vector_operand): Use V4SFmode, not TImode.
10228 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
10229 (ix86_expand_timode_binop_builtin): New.
10230 * config/i386/i386-protos.h: Update.
10231 * config/i386/i386.h (enum ix86_builtins): Update.
10232 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
10233 Use ix86_expand_vector_move in vector move expanders.
10234 (movti_internal, movti_rex64): Add xorps alternative.
10235 (sse_clrv4sf): Rename and adjust from sse_clrti.
10236 (prefetch): Don't work so hard.
10237 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
10238 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
10239 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
10241 2002-01-11 Richard Henderson <rth@redhat.com>
10243 * config/i386/mmintrin.h: New file.
10244 * config/i386/xmmintrin.h: New file.
10245 * config.gcc (i?86-*-*): Add extra_headers.
10246 * simplify-rtx.c (simplify_unary_operation): Handle saturating
10248 (simplify_binary_operation): Handle saturating arithmetic codes.
10249 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
10250 not the lowpart subreg.
10251 (ix86_expand_builtin): Return a TImode dummy register instead of 0
10253 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
10255 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10257 * conflict.c (conflict_graph_compute): Free regsets when finished.
10258 * ssa.c (compute_coalesced_reg_partition): Likewise.
10260 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10262 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
10263 every where we allocate a register.
10265 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10267 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
10268 * lcm.c (compute_earliest, compute_farthest): Likewise.
10270 2002-01-11 Janis Johnson <janis187@us.ibm.com>
10272 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
10274 2002-01-11 Janis Johnson <janis187@us.ibm.com>
10276 * doc/rtl.texi (Insns): Fix 2 typos.
10278 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
10280 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
10281 options. Use @table @gcctabopt for MMIX options. Add index
10282 entries for MMIX options. Start new paragraph with first
10283 heading of the machine-dependent options.
10285 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
10288 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
10289 * combine.c (force_to_mode): Same.
10290 * reload1.c (clear_reload_reg_in_use): Same.
10292 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
10294 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
10297 2002-01-11 Andreas Jaeger <aj@suse.de>,
10298 Brad Lucier <lucier@math.purdue.edu>
10300 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
10303 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
10305 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
10306 Protect with IN_LIBGCC.
10307 (LINK_EH_SPEC): Add required trailing space.
10309 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
10311 * c-tree.h: Move function declarations so that they are listed
10312 under the filename which contains them.
10313 (check_identifier, finish_decl_top_level,
10314 lookup_name_current_level_global, shadow_record_fields): Remove.
10316 2002-01-11 Andreas Jaeger <aj@suse.de>
10318 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
10321 2002-01-10 Richard Henderson <rth@redhat.com>
10323 * config/alpha/alpha.c (print_operand): Add 'J'.
10324 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
10325 new operand with the sequence number for the lituse. When splitting
10326 the insns, use gen_movdi_er_high_g and generate a sequence number.
10327 (gen_movdi_er_high_g): Print the sequence number if non-zero.
10329 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
10331 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
10332 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
10334 (altivec_expand_builtin): Same.
10335 (altivec_expand_stv_builtin): New.
10337 * config/rs6000/rs6000.h (rs6000_builtins): Same.
10339 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
10340 ("altivec_lvehx"): New.
10341 ("altivec_lvewx"): New.
10342 ("altivec_lvxl"): New.
10343 ("altivec_lvx"): New.
10344 ("altivec_stvx"): New.
10345 ("altivec_stvebx"): New.
10346 ("altivec_stvehx"): New.
10347 ("altivec_stvewx"): New.
10348 ("altivec_stvxl"): New.
10350 2002-01-10 Richard Henderson <rth@redhat.com>
10352 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
10353 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
10354 care not to delete instructions twice.
10356 2002-01-10 Zack Weinberg <zack@codesourcery.com>
10358 * toplev.c: Don't declare environ (it's not used anywhere).
10359 * configure.in: Don't check for declaration of environ.
10360 * config/i386/xm-mingw32.h: Don't #define environ.
10361 * config.in, configure: Regenerate.
10363 2002-01-10 Zack Weinberg <zack@codesourcery.com>
10365 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
10366 * configure: Regenerate.
10368 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
10369 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
10370 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
10372 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
10373 LIMITS_H_TEST here, not in m68k/x-next.
10374 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
10375 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
10377 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
10378 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
10379 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
10381 * config/i386/x-djgpp: Renamed i386/t-djgpp.
10382 * config/m88k/x-dolph: Renamed m88k/t-dolph.
10383 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
10384 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
10385 replacement of quadlib.asm with quadlib.c.
10387 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
10388 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
10389 config/rs6000/xm-beos.h: Delete file.
10391 * config.gcc: Update to match above changes.
10393 2002-01-10 Kazu Hirata <kazu@hxi.com>
10395 * config/h8300/h8300.h: Fix comment typos.
10396 * config/h8300/h8300.md: Likewise.
10397 * config/h8300/lib1funcs.asm: Likewise.
10399 2002-01-10 Dale Johannesen <dalej@apple.com>
10401 PR optimization/5269
10402 * unroll.c (precondition_loop_p): Make *increment be the correct
10403 sign when n_iterations known, to avoid confusing caller.
10405 2002-01-10 Kazu Hirata <kazu@hxi.com>
10407 * doc/extend.texi (deprecated): Fix a typo.
10409 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
10411 * basic-block.h (update_br_prob_note): Declare.
10412 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
10413 (try_forward_edges): Care negative frequencies and update note.
10414 (outgoing_edges_match): Tweek conditional merging heuristics.
10415 (try_crossjump_to_edge): use update_br_prob_note.
10416 * cfglayout.c (fixup_reorder_chain): Likewise.
10417 * cfrtl.c (update_br_prob_note): New.
10418 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
10420 * i386.c (ix86_decompose_address): Return -1 if address contains
10422 (legitimate_address_p): Require ix86_decompose_address to return 1.
10424 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
10425 (cprop_insn): Likewise.
10427 2002-01-10 Kazu Hirata <kazu@hxi.com>
10429 * toplev.c: Fix formatting.
10430 * tree.c: Likewise.
10431 * tree-dump.c: Likewise.
10432 * unroll.c: Likewise.
10433 * unwind-dw2.c: Likewise.
10434 * unwind-dw2-fde.c: Likewise.
10435 * unwind-dw2-fde-glibc.c: Likewise.
10436 * unwind-sjlj.c: Likewise.
10438 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
10440 * doc/invoke.texi: Document PDP-11 options.
10442 2002-01-10 Kazu Hirata <kazu@hxi.com>
10444 * config/h8300/h8300.h: Fix formatting.
10446 2002-01-10 Ira Ruben <ira@apple.com>
10448 Add __attribute__ ((deprecated)).
10449 * extend.texi: Document __attribute__ ((deprecated)).
10450 * invoke.texi: Document -Wno-deprecated-declarations.
10451 * testsuite/g++.dg/other/deprecated.C: New C++ test.
10452 * testsuite/gcc.dg/deprecated.c: New C test.
10453 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
10454 (c_common_attribute_table): Add "deprecated" entry.
10455 (handle_deprecated_attribute): New function.
10456 * c-decl.c (deprecated_states): New enum.
10457 deprecated_state: State of "deprecated" handling.
10458 (start_decl): Set deprecated_state based on attributes.
10459 (grokdeclarator): Test for deprecated uses, propagate attribute.
10460 * c-typeck.c (build_component_ref): Test for deprecated fields.
10461 (build_external_ref): Test for deprecated primaries.
10462 * diagnostic.c (warn_deprecated_use) New function to issue
10463 warnings about __attribute__ ((depricated)) references.
10464 * flags.h (warn_deprecated_decl): Extern declared for
10465 -W[no-]deprecated-declarations option.
10466 * print-tree.c (print_node): Show deprecated flag status.
10467 * toplev.c (warn_deprecated_decl): Defined.
10468 (W_options): Added "deprecated-declaration".
10469 * toplev.h (warn_deprecated_use): Extern declared.
10470 * tree.h (struct tree_common): Define deprecated_flag.
10471 (TREE_DEPRECATED): New macro to access flag.
10472 * cp/call.c (build_call): Test for deprecated calls.
10473 * cp/class.c (add_implicitly_declared_members): Set global
10474 flag to tell grokdeclarator to not issue deprecated warnings.
10475 * cp/cp-tree.h: Add extern for adding_implicit_members.
10476 * cp/decl.c (deprecated_states): New enum.
10477 (start_decl): Set deprecated_state based on attributes.
10478 (grokdeclarator): Test for deprecated uses, propagate attribute.
10479 * cp/lex.c (do_identifier): Test for deprecated primaries.
10480 * cp/typeck.c (build_component_ref): Test for deprecated fields.
10482 2002-01-10 Ira Ruben <ira@apple.com>
10484 Fix to assign attributes to inline member functions.
10485 * cp/decl.c (start_method): Handle attrlist.
10487 2002-01-10 Kazu Hirata <kazu@hxi.com>
10489 * combine.c (expand_field_assignment): Use subreg_lsb().
10491 2002-01-10 David Edelsohn <edelsohn@gnu.org>
10493 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
10494 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
10495 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
10496 Recurse for any operand of AND as long as constant is non-zero.
10498 2002-01-10 Kazu Hirata <kazu@hxi.com>
10500 * config/h8300/h8300.md: Remove constraints from expanders.
10502 2002-01-10 Kazu Hirata <kazu@hxi.com>
10504 * varasm.c: Fix formatting.
10505 * varray.c: Likewise.
10506 * vmsdbgout.c: Likewise.
10507 * xcoffout.c: Likewise.
10509 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
10511 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
10512 update edge probabilities to match.
10514 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
10516 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
10518 * doc/languages.texi, doc/sourcebuild.texi: New files.
10519 * doc/configfiles.texi: Make a subsubsection. Update.
10520 * doc/configterms.texi: Add @node. Remove warning that this isn't
10521 instructions for building GCC.
10522 * doc/makefile.texi: Make a subsection.
10523 * doc/gccint.texi: Update.
10525 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
10527 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
10529 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
10531 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
10533 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
10535 * optabs.c (expand_fix): Look for wider integer modes first.
10537 * i386.md (mov?f): Avoid the fake const double trick for medium
10539 (min?f*/max?f*): Prohibit memory operands for i387 variant.
10540 (fop_df_4): Disable for SSE compilation.
10542 2002-01-10 Graham Stott <grahams@redhat.com>
10544 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
10545 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
10547 2002-01-10 Richard Henderson <rth@redhat.com>
10549 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
10551 2002-01-10 Richard Henderson <rth@redhat.com>
10553 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
10554 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
10556 2002-01-10 Kazu Hirata <kazu@hxi.com>
10558 * combine.c (can_combine_p): Fix a comment typo.
10560 2002-01-09 Zack Weinberg <zack@codesourcery.com>
10562 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
10563 empty list correctly. Change loop index $t to $f for
10564 consistency with rest of Makefile.
10566 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
10568 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
10569 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10571 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
10572 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
10573 (altivec_init_builtins): Same.
10574 (altivec_expand_unop_builtin): Return NULL_RTX on error.
10575 (altivec_expand_binop_builtin): Same.
10576 (altivec_expand_ternop_builtin): Same.
10579 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
10580 ("altivec_vctuxs"): Fix typo.
10581 ("altivec_vnmsubfp"): Same.
10582 ("altivec_dssall"): New.
10583 ("altivec_mfvscr"): New.
10584 ("altivec_dss"): New.
10585 ("altivec_lvsl"): New.
10586 ("altivec_lvsr"): New.
10587 ("altivec_dstt"): New.
10588 ("altivec_dstst"): New.
10589 ("altivec_dststt"): New.
10590 ("altivec_dst"): New.
10592 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
10593 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10595 2002-01-09 Richard Henderson <rth@redhat.com>
10597 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
10599 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
10601 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
10603 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
10605 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
10607 2002-01-09 Kazu Hirata <kazu@hxi.com>
10609 * read-rtl.c: Fix formatting.
10610 * real.c: Likewise.
10611 * regclass.c: Likewise.
10612 * regrename.c: Likewise.
10613 * reg-stack.c: Likewise.
10614 * reload1.c: Likewise.
10615 * reload.c: Likewise.
10618 2002-01-09 Kazu Hirata <kazu@hxi.com>
10620 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
10621 to extract items in the expr_list chain.
10623 2002-01-09 Richard Henderson <rth@redhat.com>
10625 * config/vax/vax.c (vax_rtx_cost): Never abort.
10627 * config/vax/vax.h (REAL_ARITHMETIC): Define.
10629 2002-01-09 Jan Hubicka <jh@suse.cz>
10631 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
10633 2002-01-09 Richard Henderson <rth@redhat.com>
10635 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
10636 Unify code from various alternatives.
10638 2002-01-09 Richard Henderson <rth@redhat.com>
10640 * regrename.c (copy_value): Ignore the copy if the source register
10641 is present in the value chain with a narrower mode.
10643 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10645 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
10646 for the c4x target. Also improve layout.
10648 2002-01-09 Richard Henderson <rth@redhat.com>
10650 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
10651 * config/m32r/m32r.md (and ior xor splitters): Swap operands
10652 to match insn patterns.
10654 2002-01-09 Richard Henderson <rth@redhat.com>
10656 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
10657 (copyprop_hardreg_forward_1): Likewise.
10659 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
10661 * pa.md (decrement_and_branch_until_zero): Change predicate for
10662 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
10664 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
10666 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
10667 gets undefined. For Darwin.
10669 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10671 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
10673 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10675 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
10677 2002-01-08 Richard Henderson <rth@redhat.com>
10679 * regrename.c (copy_value): Ignore overlapping copies.
10681 2002-01-08 Richard Henderson <rth@redhat.com>
10683 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
10684 as needed to avoid shared structure.
10686 2002-01-08 Kazu Hirata <kazu@hxi.com>
10688 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
10691 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10693 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
10694 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
10695 documentation of obsolete macros.
10696 * system.h: Poison these macros.
10697 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10698 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10699 config/c4x/c4x.h, config/clipper/clipper.h,
10700 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10701 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10702 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10703 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10704 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10705 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10706 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10707 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10708 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10709 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10710 config/sparc/sparc.h, config/stormy16/stormy16.h,
10711 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10712 definitions and commented out definitions of obsolete macros.
10713 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10714 of MAX_INT_TYPE_SIZE.
10716 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10718 * config/s390/s390.c (s390_preferred_reload_class): Never
10719 return ADDR_REGS if it isn't a subset of the given class.
10720 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10721 FP_REGS, but all superclasses as well.
10723 * config/s390/s390.c (s390_function_profiler): Fix thinko.
10725 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10726 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10727 must not be a const_int.
10729 2002-01-08 Richard Henderson <rth@redhat.com>
10731 * Makefile.in (toplev.o): Depend on options.h.
10732 (gcc.o): Depend on specs.h.
10734 2002-01-08 Jakub Jelinek <jakub@redhat.com>
10736 * expr.c (store_expr): Convert VOIDmode constants back to target's
10739 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10741 * doc/invoke.texi: Markup gcc as @command. Refer to
10742 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10743 of http://gcc.gnu.org/thanks.html.
10745 2002-01-08 Dale Johannesen <dalej@apple.com>
10747 * config/rs6000/rs6000.md: Add missing int register
10748 target case to movdf_low.
10750 2002-01-08 Zack Weinberg <zack@codesourcery.com>
10752 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10753 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
10754 (cppinit.o): Depend on except.h.
10755 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10756 s-specs): New rules.
10758 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10759 Don't create specs.h/options.h/gencheck.h here. Remove
10760 unnecessary variable settings from last argument of AC_OUTPUT.
10761 * config.in, configure: Regenerate.
10762 * intl.c: Hardcode package name as "gcc".
10764 * cppinit.c: Include except.h.
10765 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10767 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10768 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10769 (!)USING_SJLJ_EXCEPTIONS.
10770 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10772 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10774 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10775 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10776 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10777 documentation of obsolete macros.
10778 * system.h: Poison these macros.
10779 * config/d30v/d30v.h, config/ns32k/encore.h,
10780 config/stormy16/stormy16.h: Remove definitions and commented out
10781 definitions of obsolete macros.
10783 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
10785 * objc/objc-act.c (handle_class_ref): Mark the declaration of
10786 %sobjc_class_ref_%s as used - to prevent unwanted compiler
10789 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10791 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10792 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10793 to insn adjusting stack/frame pointer.
10794 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10795 accept operands that cause the insn to be non-splittable.
10797 2002-01-08 Graham Stott <grahams@redhat.com>
10799 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10800 (C_TYPE_FIELDS_VOLATILE): Likewise.
10801 (C_TYPE_BEING_DEFINED): Likewise.
10802 (C_IS_RESERVED_WORD): Likewise.
10803 (C_TYPE_VARIABLE_SIZE): Likewise.
10804 (C_DECL_VARIABLE_SIZE): Likewise.
10805 (C_MISSING_PROTOTYPE_WARNED): Likewise.
10806 (C_SET_EXP_ORIGINAL_CODE): Likewise.
10807 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10809 (C_DECL_ANTICIPATED): Likewise.
10810 (c_build_type_variant): Add parenthesis.
10812 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10814 * gcc.c (option_map): Remove --version.
10815 (process_command): Handle -fversion following the GNU Coding
10816 Standards. Partially addresses PR other/704.
10818 2002-01-08 Graham Stott <grahams@redhat.com>
10820 * combine.c (combine_instructions): Fix typo.
10822 2002-01-08 Graham Stott <grahams@redhat.com>
10824 * debug.h: Use "tree" and "rtx" throughout.
10826 * debug.c: Likewise.
10828 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
10830 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10831 constant pool, use the pool's version of the symbol instead.
10833 2002-01-07 Richard Henderson <rth@redhat.com>
10835 * regrename.c (find_oldest_value_reg): Ignore the value chain if
10836 the original register was copied in a mode with a fewer number of
10837 hard registers than the desired mode.
10838 (copyprop_hardreg_forward_1): Likewise.
10839 (debug_value_data): Fix loop test.
10840 * toplev.c (parse_options_and_default_flags): Reenable
10841 -fcprop-registers at -O1.
10843 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10845 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10846 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10848 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10851 * config/rs6000/rs6000.md: Add altivec predicate patterns.
10853 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
10855 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10856 (pa_output_function_prologue): Output local label at the beginning of
10857 the prologue when profiling.
10858 (hppa_profile_hook): Use the local label rather than the function label.
10859 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10861 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10863 * config/rs6000/rs6000.c (print_operand): Remove extra space.
10864 (altivec_expand_unop_builtin): Fix thinko.
10865 (altivec_expand_binop_builtin): Same.
10866 (altivec_expand_ternop_builtin): Same.
10867 (altivec_expand_builtin): Same.
10869 2002-01-07 Richard Henderson <rth@redhat.com>
10871 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10873 2002-01-07 Jason Merrill <jason@redhat.com>
10875 * unwind-dw2.c (execute_cfa_program): Use < again.
10877 2002-01-07 Jakub Jelinek <jakub@redhat.com>
10879 * predict.c (combine_predictions_for_insn): Avoid division by zero.
10881 2002-01-07 Jakub Jelinek <jakub@redhat.com>
10883 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10884 Don't allow -1 - x -> ~x simplifications in the first pass.
10886 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10888 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10890 (altivec_expand_binop_builtin): Same.
10891 (altivec_expand_unop_builtin): Same.
10892 (print_operand): Fix typo.
10893 (bdesc_1arg): Add vupk* variants.
10895 * rs6000.h (rs6000_builtins): Add vupk* enums.
10897 * rs6000.md: Add altivec_vupk* variants.
10899 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
10901 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10902 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10903 and last update dates.
10905 2002-01-07 Janis Johnson <janis187@us.ibm.com>
10907 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10909 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
10911 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10912 * config/avr/avr.h (CPP_SPEC): Likewise.
10913 (LINK_SPEC): Likewise.
10914 (CRT_BINUTILS_SPECS): Likewise.
10915 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10916 * doc/invoke.texi (AVR Options): Document them.
10918 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
10920 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10923 2002-01-07 Graham Stott <grahams@redhat.com>
10925 * config/i386/i386.h: Update copyright date.
10926 (HALF_PIC_PTR): Add parenthesis.
10927 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10928 (CONSTANT_ALIGNMENT): Add parenthesis.
10929 (DATA_ALIGNMENT): Likewise.
10930 (LOCAL_ALIGNMENT): Likewise.
10931 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10932 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10933 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10934 (HARD_REGNO_NREGS): Add paranethesis.
10935 (VALID_SSE_REG_MODE): Whitespace.
10936 (VALID_MMX_REG_MODE): Whitespace.
10937 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10938 (ix86_hard_regno_mode_ok): Add parenthesis.
10939 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10940 (RETURN_IN_MEMORY): Whitespace.
10941 (N_REG_CLASSES): Add parenthesis.
10942 (INTEGER_CLASS_P): Add parenthesis and wrap.
10943 (FLOAT_CLASS_P): Likewise.
10944 (SSE_CLASS_P): Likewise.
10945 (MMX_CLASS_P): Likewise.
10946 (MAYBE_INTEGER_CLASS_P): Likewise.
10947 (MAYBE_FLOAT_CLASS_P): Likewise.
10948 (MAYBE_SSE_CLASS_P): Likewise.
10949 (MAYBE_MMX_CLASS_P): Likewise.
10950 (Q_CLASS_P): Likewise.
10951 (GENERAL_REGNO_P): Uppercase macro parameter.
10952 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10953 (FP_REGNO_P): Likewise.
10954 (ANY_FP_REGNO_P): Uppercase macro parameter.
10955 (SSE_REGNO_P): Likewise.
10956 (SSE_REGNO): Likewise.
10957 (SSE_REG_P): Likewise.
10958 (SSE_FLOAT_MODE_P): Likewise.
10959 (MMX_REGNO_P): Likewise.
10960 (MMX_REG_P):Likewise.
10961 (STACK_REG_P): Likewise.
10962 (NON_STACK_REG_P): Likewise.
10963 (STACK_TOP_P): Likewise.
10964 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10965 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10966 (SECONDARY_MEMORY_NEEDED): Likewise.
10967 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10968 (MD_ASM_CLOBBERS): Whitespace and wrap.
10969 (MUST_PASS_IN_STACK): Whitespace and wrap.
10970 (RETURN_POPS_ARGS): Add parenthesis.
10971 (INIT_CUMULATIVE_ARGS): Likewise.
10972 (FUNCTION_ARG): Likewise.
10973 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10974 (SETUP_INCOMING_VARARGS): Likewise.
10975 (BUILD_VA_LIST_TYPE): Add parenthesis.
10976 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10978 (EXPAND_BUILTIN_VA_ARG): Likewise.
10979 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10980 (INITIALIZE_TRAMPOLINE): Add parenthesis.
10981 (INITIAL_ELIMINATION_OFFSET): Likewise.
10982 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10983 (REGNO_OK_FOR_BASE_P): Likewise.
10984 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10985 (REGNO_OK_FOR_DIREG_P): Likewise.
10986 (REG_OK_FOR_INDEX_P): Whitespace.
10987 (REG_OK_FOR_BASE_P): Whitespace.
10988 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10990 (FIND_BASE_TERM): Fix typo.
10991 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
10992 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10993 (SYMBOLIC_CONST; Whitespace.
10994 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
10995 (ENCODE_SECTION_INFO): Whitespace.
10996 (FINALIZE_PIC): Remove do { ... } while (0).
10997 (PROMOTE_MODE): Wrap in do { ... } while (0).
10998 (CONST_COSTS): Whitespace.
10999 (RTX_COSTS): Add paramethesis, whitespace and wrap.
11000 (REGISTER_MOVE_COST): Add parenthesis.
11001 (MEMORY_MOVE_COST): Likewise.
11002 (EXTRA_CC_MODES): Whitespace.
11003 (SELECT_CC_MODE): Add parenthesis and whitespace.
11004 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
11005 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
11006 (ASM_OUTPUT_LABEL): Add paramethesis.
11007 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
11008 (ASM_OUTPUT_REG_POP): Likewise.
11009 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
11010 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11012 * config/i386/i386.c: Update copyright.
11013 (CHECK_STACK_LIMIT): Add parenthesis.
11014 (AT_BP): Uppercase macro parameter.
11015 (x86_64_int_parameter_registers): Constify.
11016 (x86_64_int_return_registers): Likewise.
11017 (ix86_compare_op0): Use rtx.
11018 (construct_container): Constify INTREG parameter.
11019 (function_arg): Use rtx.
11021 * diagnostic.h: Update copyright date.
11022 (output_buffer_state): Add parenthesis.
11023 (output_buffer_format_args): Likewise.
11025 * combine.c (combine_instructions): Replace XEXP (links, 0)
11028 2002-01-06 H.J. Lu <hjl@gnu.org>
11030 * cfgcleanup.c (thread_jump): Fix 2 typos.
11032 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
11034 * config.gcc: Add support for --enable-altivec.
11036 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
11038 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
11040 2002-01-06 Jakub Jelinek <jakub@redhat.com>
11042 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
11043 __objc_class_name_*.
11045 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
11047 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
11049 2002-01-06 Richard Henderson <rth@redhat.com>
11051 * reorg.c (emit_delay_sequence): Remove death notes, not merely
11052 nop them out. Increment label reference count for REG_LABEL.
11053 (fill_slots_from_thread): Frob label reference count around
11054 delete_related_insns.
11056 2002-01-05 Richard Henderson <rth@redhat.com>
11058 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
11061 2002-01-05 Richard Henderson <rth@redhat.com>
11063 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
11064 * integrate.c (output_inline_function): Likewise.
11065 * toplev.c (rest_of_compilation): Do it here instead. Move call
11066 to remove_unnecessary_notes after emitting abstract instance.
11067 Force an emitted nested function to have its parent emited as well.
11068 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
11070 (rtl_for_decl_location): Do not look at reload data structures
11071 before reload has run.
11073 2002-01-05 Kazu Hirata <kazu@hxi.com>
11075 * cse.c: Fix formatting.
11076 * dwarf2asm.c: Likewise.
11077 * dwarf2out.c: Likewise.
11078 * explow.c: Likewise.
11079 * expmed.c: Likewise.
11080 * function.c: Likewise.
11081 * gcov.c: Likewise.
11082 * gencheck.c: Likewise.
11083 * genrecog.c: Likewise.
11084 * ggc-common.c: Likewise.
11085 * ggc-page.c: Likewise.
11086 * global.c: Likewise.
11088 2002-01-05 Kazu Hirata <kazu@hxi.com>
11090 * combine.c: Fix formatting.
11092 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
11095 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
11097 2002-01-05 David Edelsohn <edelsohn@gnu.org>
11099 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
11100 as 1 for __powerpc64__ as well.
11102 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
11104 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
11107 2002-01-05 Daniel Berlin <dan@dberlin.org>
11109 * lcm.c: Revert change, due to performance regression it causes on
11110 SPEC because it's slightly more conservative (sigh, I hate
11113 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
11115 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
11117 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
11119 * doc/cppinternals.texi: Update.
11121 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
11123 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
11124 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
11126 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
11127 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
11128 kludge for pre-october-14th mmix versions to handle new-found bug
11129 with PUSHJ/PUSHGO and the register stack.
11130 * config/mmix/mmix.h (struct machine_function): Rename member
11131 has_call_value_without_parameters to has_call_without_parameters.
11132 All referers changed.
11133 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
11134 TARGET_MASK_BRANCH_PREDICT): New macros.
11135 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
11136 -mno-reg-stack-fill-bug-workaround.
11137 * config/mmix/mmix.md ("call"): Set struct machine member
11138 has_call_without_parameters.
11140 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
11142 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
11144 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
11146 * cfgcleanup.c: Include tm_p.h
11147 (mark_effect): Fix handling of hard register; fix handling of SET
11149 2002-01-04 Kazu Hirata <kazu@hxi.com>
11151 * config/h8300/h8300.md (anonymous patterns): Check that
11152 operands are registers before using REGNO on them.
11154 2002-01-03 Roland McGrath <roland@frob.com>
11156 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
11158 2002-01-04 Jakub Jelinek <jakub@redhat.com>
11160 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
11161 * c-common.h (genrtl_expr_stmt_value): Likewise.
11162 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
11163 (expand_expr_stmt_value): Add maybe_last argument.
11164 Don't warn about statement with no effect if it is the last statement
11165 in expression statement.
11166 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
11167 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
11168 expand_expr_stmt_value.
11169 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
11170 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
11171 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
11172 as maybe_last to expand_expr_stmt_value.
11174 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
11176 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
11177 be passed in, do not build it.
11178 (c_begin_if_stmt): New function.
11179 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11180 * c-common.h (c_expand_start_cond): Update prototype.
11181 (c_begin_if_stmt): Prototype new function.
11182 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11183 * c-parse.in (if_prefix): Use c_begin_if_stmt,
11184 c_begin_while_stmt and c_finish_while_stmt_cond.
11186 2002-01-04 William Cohen <wcohen@redhat.com>
11188 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
11189 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11190 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11191 * config/pa/som.h (ASM_FILE_START): Likewise.
11193 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
11195 * lcm.c: Include df.h.
11196 Add available_transfer_function prototype.
11197 (compute_available): Rework to use iterative dataflow framework.
11198 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
11199 with bb_info in df.h
11200 (available_transfer_function): New function.
11202 * Makefile.in (lcm.o): add df.h to dependencies.
11204 2002-01-04 Richard Henderson <rth@redhat.com>
11206 * config/alpha/alpha.c (some_operand): Accept HIGH.
11207 (input_operand): Likewise; accept simple references to globals.
11208 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
11209 (alpha_const_double_ok_for_letter_p): Likewise.
11210 (alpha_extra_constraint): Likewise.
11211 (alpha_preferred_reload_class): Likewise. Do not force
11212 symbolic constants to memory.
11213 (alpha_legitimate_address_p): Accept simple references
11214 to small_symbolic_operand.
11215 (alpha_legitimize_address): New arg scratch. Be prepared to be
11216 called when no_new_pseudos. Emit simple symbolic references.
11217 Split integers into low, high, and rest.
11218 (alpha_expand_mov): Use alpha_legitimize_address.
11219 (some_small_symbolic_mem_operand): New.
11220 (split_small_symbolic_mem_operand): New.
11221 * config/alpha/alpha-protos.h: Update.
11222 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
11223 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
11224 (EXTRA_CONSTRAINT): Likewise.
11225 (PREFERRED_RELOAD_CLASS): Likewise.
11226 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
11227 (PREDICATE_CODES): Update.
11228 * config/alpha/alpha.md: New post-reload splitters to convert
11229 simplfied symbolic operands to the form that references $29.
11230 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
11231 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
11233 2002-01-03 Richard Henderson <rth@redhat.com>
11235 * local-alloc.c (function_invariant_p): Update commentary.
11237 2002-01-04 H.J. Lu <hjl@gnu.org>
11239 * toplev.c (rest_of_compilation): Fix a typo when calling
11242 2002-01-03 Kazu Hirata <kazu@hxi.com>
11244 * c-common.c: Fix formatting.
11245 * diagnostic.c: Likewise.
11246 * doloop.c: Likewise.
11247 * dwarf2out.c: Likewise.
11249 2002-01-03 Kazu Hirata <kazu@hxi.com>
11251 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
11252 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
11254 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
11256 * cpperror.c: Update comments and copyright.
11257 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
11258 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
11260 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11262 * collect2.c (main): Use strcmp when testing for "-shared".
11264 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
11266 * cppmacro.c: Don't include intl.h. Update comments.
11267 (new_number_token): Allocate enough buffer for 64-bit unsigned
11268 integers; update prototype.
11269 * cppmain.c: Update comments.
11271 2002-01-03 William Cohen <wcohen@redhat.com>
11273 * function.h (struct function): Add profile.
11274 (current_function_profile): New.
11275 doc/extend.texi: Update documentation.
11276 * final.c (final_start_function): Use current_function_profile
11277 instead of profile_flag.
11278 (profile_after_prologue): Likewise.
11279 * function.c (expand_function_start): Likewise.
11280 (expand_function_start): Likewise.
11281 * config/alpha/alpha.c (direct_call_operand):
11282 (alpha_does_function_need_gp): Likewise.
11283 (alpha_expand_prologue): Likewise.
11284 * config/arm/arm.c (arm_expand_prologue): Likewise.
11285 thumb_expand_prologue: Likewise.
11286 * config/d30v/d30v.c (d30v_stack_info): Likewise.
11287 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
11288 (fr30_expand_prologue): Likewise.
11289 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
11290 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
11291 * config/i386/i386.h (FINALIZE_PIC): Likewise.
11292 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
11293 * config/i960/i960.c (i960_output_function_prologue): Likewise.
11294 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11295 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
11296 (m32r_expand_prologue): Likewise.
11297 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
11298 (m88k_expand_prologue): Likewise.
11299 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
11300 * config/mips/mips.c (compute_frame_size): Likewise.
11301 (mips_expand_prologue): Likewise.
11302 (mips_can_use_return_insn): Likewise.
11303 * config/pa/elf.h (ASM_FILE_START): Likewise.
11304 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11305 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11306 * config/pa/som.h (ASM_FILE_START): Likewise.
11307 * config/romp/romp.c (romp_using_r14): Likewise.
11308 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
11309 (rs6000_stack_info): Likewise.
11310 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11311 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
11312 * config/v850/v850.c (compute_register_save_size): Likewise.
11314 2002-01-03 Jakub Jelinek <jakub@redhat.com>
11316 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
11317 gen_lowpart_common fails, use gen_lowpart_SUBREG.
11319 2002-01-03 Turly O'Connor <turly@apple.com>
11321 * darwin.c (machopic_output_possible_stub_label): Don't generate
11322 stub routines for pseudo-stubs which we've just defined.
11324 2002-01-03 Kazu Hirata <kazu@hxi.com>
11326 * builtins.c: Fix formatting.
11327 * c-typeck.c: Likewise.
11328 * combine.c: Likewise.
11329 * expr.c: Likewise.
11330 * loop.c: Likewise.
11332 2002-01-03 Andreas Schwab <schwab@suse.de>
11334 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
11335 and return true if _cpp_push_next_buffer pushed a new include
11337 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
11338 _cpp_pop_file_buffer did not push a new file.
11339 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
11341 2002-01-02 Eric Christopher <echristo@redhat.com>
11343 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
11344 FIND_REG_INC_NOTE call. Update copyright.
11345 * loop.c (canonicalize_condition): Ditto.
11346 * reorg.c (delete_scheduled_jump): Ditto.
11348 2002-01-03 Kazu Hirata <kazu@hxi.com>
11350 * gcse.c: Fix formatting.
11352 2002-01-03 Graham Stott <grahams@redhat.com>
11354 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
11355 forward defs for struct tags rtx_def, union_tree, rtvec_def
11356 also output corresponding typedefs for rtx, tree, and rtvec.
11358 * system.h: Move forward defs for struct tags rtx_def, union_tree,
11359 rtvec_def along with corresponding typedefs for rtx, tree, and
11360 rtvec to config.h, hconfig.h, tconfig.h.
11362 2002-01-03 Graham Stott <grahams@redhat.com>
11364 * tree.h: Update copyright date.
11365 (IS_EXPR_CODE_CLASS): Add parenthesis.
11366 (TREE_SET_CODE): Add whitespace.
11367 (TREE_CHECK): Add parenthesis.
11368 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
11369 (CST_OR_CONSTRUCTOR_CHECK):
11370 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
11371 (TREE_SYMBOL_REFERENCED): Whitespace.
11372 (INT_CST_LT): Likewise.
11373 (INT_CST_LT_UNSIGNED): Likewise.
11374 (tree_real_cst): Unwrap comment.
11375 (tree_string): Likewise.
11376 (tree_complex): Likewise.
11377 (IDENTIFIER_POINTER): correct cast.
11378 (SAVE_EXPR_CONTEXT): Whitespace.
11379 (EXPR_WFL_FILENAME_NODE): Likewise.
11380 (EXPR_WFL_FILENAME): Remove parenthesis.
11381 (DECL_ORIGIN): Add parenthesis.
11382 (DECL_FROM_INLINE): Use NULL_TREE.
11383 (build_int_2): Whitespace.
11384 (build_type_variant): Add parenthesis.
11386 * gcc/jcf-parse.c: Update copyright date.
11387 (yyparse): Constify resource_filename.
11389 2002-01-03 Graham Stott <grahams@redhat.com>
11391 * rtl.h: Update copyright date.
11392 (RTL_CHECK1): Wrap long line.
11393 (RTL_CHECK2): Likewise.
11394 (RTL_CHECKC1): Wrap long line and whitespace.
11395 (RTL_CHECKC2): Likewise.
11396 (XWINT): Whitespace.
11402 (XBITMAP): Likewise.
11404 (XBBDEF): Likewise.
11406 (X0WINT): Likewise.
11408 (X0UINT): Likewise.
11412 (X0MODE): Likewise.
11413 (X0BITMAP): Likewise.
11414 (X0TREE): Likewise.
11415 (X0BBDEF): Likewise.
11416 (X0ADVFLAGS): Likewise.
11417 (X0CSELIB): Likewise.
11418 (X0MEMATTR): Likewise.
11419 (XCWINT): Likewise.
11421 (XCUINT): Likewise.
11425 (XCMODE): Likewise.
11426 (XCBITMAP): Likewise.
11427 (XCTREE): Likewise.
11428 (XCBBDEF): Likewise.
11429 (XCADVFLAGS): Likewise.
11430 (XCCSELIB): Likewise.
11431 (XC2EXP): Likewise.
11432 (INSN_UID): Likewise.
11433 (PREV_INSN): Likewise.
11434 (PATTERN): Likewise.
11435 (INSN_CODE): Likewise.
11436 (PUT_REG_NOTE_KIND): Likewise.
11437 (CODE_LABEL_NUMBER): Likewise.
11438 (NOTE_SOURCE_FILE): Likewise.
11439 (NOTE_BLOCK): Likewise.
11440 (NOTE_EH_HANDLER): Likewise.
11441 (NOTE_RANGE_INFO): Likewise.
11442 (NOTE_LIVE_INFO): Likewise.
11443 (NOTE_BASIC_BLOCK): Likewise.
11444 (NOTE_EXPECTED_VALUE): Likewise.
11445 (NOTE_LINE_NUMBER): Likewise.
11446 (LABEL_NAME): Likewise.
11447 (LABEL_NUSES): Likewise.
11448 (LABEL_ALTERNATE_NAME): Likewise.
11449 (ADDRESSOF_DECL): Likewise.
11450 (JUMP_LABEL): Likewise.
11451 (LABEL_NEXTREF): Likewise.
11453 (ORIGINAL_REGNO: Likewise.
11454 (HARD_REGISTER_NUM_P): Add parenthesis.
11455 (SUBREG_REG): Whitespace.
11456 (SUBREG_BYTE): Likewise.
11457 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
11458 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
11459 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
11460 (ASM_OPERANDS_INPUT_VEC): Likewise.
11461 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
11462 (ASM_OPERANDS_INPUT): Likewise.
11463 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
11464 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
11465 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
11466 (ASM_OPERANDS_INPUT_MODE): Likewise.
11467 (ASM_OPERANDS_SOURCE_FILE): Likewise.
11468 (ASM_OPERANDS_SOURCE_LINE): Likewise.
11469 (MEM_SET_IN_STRUCT_P): Minor reformat.
11470 (TRAP_CONDITION): Whitespace.
11471 (TRAP_CODE): Likewise.
11472 (COND_EXEC_TEST): Likewise.
11473 (COND_EXEC_CODE): Likewise.
11474 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
11475 (PHI_NODE_P): Add parenthesis.
11476 (plus_constant): Whitespace and add parenthesis.
11478 2002-01-03 Kazu Hirata <kazu@hxi.com>
11480 * config/avr/avr.c: Fix comment typos.
11481 * config/c4x/c4x.md: Likewise.
11482 * config/dsp16xx/dsp16xx.h: Likewise.
11483 * config/dsp16xx/dsp16xx.md: Likewise.
11484 * config/i386/i386.md: Likewise.
11485 * config/ia64/ia64.c: Likewise.
11486 * config/m32r/m32r.h: Likewise.
11487 * config/m68hc11/m68hc11.md: Likewise.
11488 * config/mmix/mmix.c: Likewise.
11489 * config/mn10200/mn10200.c: Likewise.
11490 * config/romp/romp.c: Likewise.
11491 * config/sh/sh.c: Likewise.
11492 * config/stormy16/stormy16.c: Likewise.
11493 * config/stormy16/stormy16.h: Likewise.
11494 * config/stormy16/stormy16.md: Likewise.
11496 2002-01-03 Graham Stott <grahams@redhat.com>
11498 * loop.h: Update copyright date.
11499 (LOOP_MOVABLES): Fix typo.
11500 (LOOP_REGS): Likewise.
11501 (LOOP_IVS): Likewise.
11503 2002-01-03 Graham Stott <grahams@redhat.com>
11505 * cppinit.c: Update copyright date.
11506 Don't include output.h
11507 * Makefile.in: Update copyright date.
11510 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
11513 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
11514 (-pthread) Add to RS/6000 options.
11516 2002-01-02 Kazu Hirata <kazu@hxi.com>
11518 * except.c: Fix comment typos.
11519 * loop.c: Likewise.
11520 * varasm.c: Likewise.
11521 * doc/tm.texi: Fix a typo.
11523 2002-01-02 Jakub Jelinek <jakub@redhat.com>
11525 * c-typeck.c (output_init_element): Allow initializing static storage
11526 duration objects with compound literals.
11528 2002-01-02 Richard Henderson <rth@redhat.com>
11530 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
11533 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11535 * gcc.c (default_compilers): Const-ify.
11536 * mips-tdump.c (stab_names): Likewise.
11537 * mips-tfile.c (map_coff_types, map_coff_storage,
11538 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
11539 pseudo_ops_t, pseudo_ops): Likewise.
11540 * protoize.c (default_include): Likewise
11542 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
11543 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
11544 Add array size in declaration.
11545 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
11546 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
11547 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
11548 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
11549 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
11550 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
11551 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
11552 emtens, make_nan): Const-ify.
11553 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
11554 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
11556 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
11558 * config.gcc (ia64-*-*): Set extra_headers.
11559 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
11560 * config/alpha/t-osf: Remove.
11561 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
11563 2002-01-02 David Edelsohn <edelsohn@gnu.org>
11565 * config/rs6000/t-aix43: Revert previous change.
11567 2002-01-02 Jason Merrill <jason@redhat.com>
11569 * c-decl.c (c_expand_body): Call outlining_inline_function when
11570 emitting an inline function out of line.
11572 2002-01-02 Richard Henderson <rth@redhat.com>
11574 * dwarf2out.c (limbo_die_node): Add created_for member.
11575 (new_die): New argument created_for. Update all callers.
11576 (mark_limbo_die_list): New.
11577 (dwarf2out_init): Register limbo_die_list as a root.
11578 (dwarf2out_finish): Force insert limbo dies into their function
11581 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
11584 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
11586 2002-01-02 Kazu Hirata <kazu@hxi.com>
11588 * config/h8300/fixunssfsi.c: Update copyright.
11591 * config/h8300/h8300.c: Update copyright.
11592 Eliminate warnings.
11594 2002-01-02 Kazu Hirata <kazu@hxi.com>
11596 * config/romp/romp.c: Fix comment formatting.
11597 * config/romp/romp.h: Likewise.
11598 * config/romp/romp.md: Likewise.
11599 * config/s390/s390.c: Likewise.
11600 * config/stormy16/stormy16.c: Likewise.
11601 * config/stormy16/stormy16.h: Likewise.
11603 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
11605 * c-common.h (genrtl_expr_stmt_value): Declare.
11606 * c-semantics.c (genrtl_goto_stmt): Redirect to...
11607 (genrtl_goto_stmt_value): ... this new function. Pass new
11608 argument down to expand_expr_stmt_value, taking
11609 TREE_ADDRESSABLE into account.
11610 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
11611 STMT_EXPR as addressable, i.e., one whose result we want.
11612 * expr.c (expand_expr): Don't save expression statement value
11613 of labeled_blocks or loop_exprs.
11614 * stmt.c (expand_expr_stmt): Redirect to...
11615 (expand_expr_stmt_value): ... this new function. Use new
11616 argument to tell whether to save expression value.
11617 (expand_end_stmt_expr): Reset last_expr_type and
11618 last_expr_value if we don't have either.
11619 * tree-inline.c (declare_return_variable): Mark its use
11620 statement as addressable.
11621 * tree.h: Document new use of TREE_ADDRESSABLE.
11622 (expand_expr_stmt_value): Declare.
11624 2002-01-01 Tom Rix <trix@redhat.com>
11626 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
11627 rs6000_emit_allocate_stack.
11629 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
11631 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
11632 ${srcdir}/ginclude/ to every entry in extra_headers.
11633 * configure: Regenerate.
11634 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
11635 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
11636 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
11637 * ginclude/proto.h: Rename to config/convex/proto.h.
11639 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11641 * attribs.c (handle_vector_size_attribute): Use host_integerp
11642 and tree_int_cst; remove warnings.
11643 * caller-save.c (insert_restore): Add cast to get rid of warning.
11644 (insert_save): Likewise.
11645 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
11646 * regmove.c (find_matches): Add temporary var to kill a warning.
11648 2002-01-01 Douglas B Rupp <rupp@gnat.com>
11650 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
11651 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
11652 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
11653 (vms-dwarf2eh.o): Add Makefile rule.
11654 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
11655 * config/alpha/vms-dwarf2eh.asm: New file.
11657 * gcc.c (delete_if_ordinary): Delete all versions.
11659 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
11661 * config/mmix/mmix.md: Update FIXME to not mention
11663 (MMIX_rJ_REGNUM): New define_constants constant.
11664 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
11665 "*movdicc_real"): Adjust contraints formatting.
11666 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
11667 for branch prediction.
11668 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
11670 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
11671 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
11672 number. Delete related FIXMEs.
11673 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
11674 from number to MMIX_rJ_REGNUM.
11675 (TARGET_MASK_BRANCH_PREDICT): New.
11676 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
11677 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
11678 value. Add -mbranch-predict and -mno-branch-predict.
11679 (TARGET_VERSION): Drop date.
11680 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
11681 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
11682 for finding out global symbols.
11683 (mmix_asm_output_labelref): Revert condition for global symbol.
11684 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
11685 (mmix_print_operand_punct_valid_p): A '+' is valid.
11687 See ChangeLog.6 for earlier changes.